diff --git a/.changelog/41575353444b40ffbf474f4155544f00.json b/.changelog/41575353444b40ffbf474f4155544f00.json new file mode 100644 index 00000000000..1b2305cc97f --- /dev/null +++ b/.changelog/41575353444b40ffbf474f4155544f00.json @@ -0,0 +1,10 @@ +{ + "id": "41575353-444b-40ff-bf47-4f4155544f00", + "type": "release", + "description": "New AWS service client module", + "modules": [ + "service/backupgateway", + "service/iottwinmaker", + "service/workspacesweb" + ] +} \ No newline at end of file diff --git a/.changelog/c48d008cb13a4e8c882ba79dc0b44ba6.json b/.changelog/c48d008cb13a4e8c882ba79dc0b44ba6.json new file mode 100644 index 00000000000..bdc6240427e --- /dev/null +++ b/.changelog/c48d008cb13a4e8c882ba79dc0b44ba6.json @@ -0,0 +1,34 @@ +{ + "id": "c48d008c-b13a-4e8c-882b-a79dc0b44ba6", + "type": "feature", + "description": "API client updated", + "modules": [ + "service/accessanalyzer", + "service/applicationinsights", + "service/cloudhsm", + "service/devopsguru", + "service/directconnect", + "service/dynamodb", + "service/ec2", + "service/evidently", + "service/fsx", + "service/glue", + "service/inspector2", + "service/iot", + "service/kafka", + "service/kendra", + "service/kinesis", + "service/lakeformation", + "service/lexmodelsv2", + "service/outposts", + "service/rbin", + "service/redshiftdata", + "service/rum", + "service/s3", + "service/sagemaker", + "service/sagemakerruntime", + "service/shield", + "service/snowball", + "service/storagegateway" + ] +} diff --git a/codegen/sdk-codegen/aws-models/accessanalyzer.2019-11-01.json b/codegen/sdk-codegen/aws-models/accessanalyzer.2019-11-01.json index fe905ed5a2d..86deeb92cb5 100644 --- a/codegen/sdk-codegen/aws-models/accessanalyzer.2019-11-01.json +++ b/codegen/sdk-codegen/aws-models/accessanalyzer.2019-11-01.json @@ -3,6 +3,27 @@ "shapes": { "com.amazonaws.accessanalyzer#AccessAnalyzer": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "AccessAnalyzer", + "arnNamespace": "access-analyzer", + "cloudFormationName": "AccessAnalyzer", + "cloudTrailEventSource": "access-analyzer.amazonaws.com", + "endpointPrefix": "access-analyzer" + }, + "aws.auth#sigv4": { + "name": "access-analyzer" + }, + "aws.protocols#restJson1": {}, + "smithy.api#cors": {}, + "smithy.api#documentation": "
Identity and Access Management Access Analyzer helps identify potential resource-access risks by enabling you to\n identify any policies that grant access to an external principal. It does this by using\n logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An\n external principal can be another Amazon Web Services account, a root user, an IAM user or role, a\n federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to\n preview and validate public and cross-account access to your resources before deploying\n permissions changes. This guide describes the Identity and Access Management Access Analyzer operations that you can\n call programmatically. For general information about IAM Access Analyzer, see Identity and Access Management Access Analyzer in the IAM User Guide.
\nTo start using IAM Access Analyzer, you first need to create an analyzer.
", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#title": "Access Analyzer" + }, "version": "2019-11-01", "operations": [ { @@ -67,28 +88,7 @@ { "target": "com.amazonaws.accessanalyzer#Analyzer" } - ], - "traits": { - "aws.api#service": { - "sdkId": "AccessAnalyzer", - "arnNamespace": "access-analyzer", - "cloudFormationName": "AccessAnalyzer", - "cloudTrailEventSource": "access-analyzer.amazonaws.com", - "endpointPrefix": "access-analyzer" - }, - "aws.auth#sigv4": { - "name": "access-analyzer" - }, - "aws.protocols#restJson1": {}, - "smithy.api#cors": {}, - "smithy.api#documentation": "Identity and Access Management Access Analyzer helps identify potential resource-access risks by enabling you to\n identify any policies that grant access to an external principal. It does this by using\n logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An\n external principal can be another Amazon Web Services account, a root user, an IAM user or role, a\n federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to\n preview and validate public and cross-account access to your resources before deploying\n permissions changes. This guide describes the Identity and Access Management Access Analyzer operations that you can\n call programmatically. For general information about IAM Access Analyzer, see Identity and Access Management Access Analyzer in the IAM User Guide.
\nTo start using IAM Access Analyzer, you first need to create an analyzer.
", - "smithy.api#paginated": { - "inputToken": "nextToken", - "outputToken": "nextToken", - "pageSize": "maxResults" - }, - "smithy.api#title": "Access Analyzer" - } + ] }, "com.amazonaws.accessanalyzer#AccessDeniedException": { "type": "structure", @@ -3863,7 +3863,7 @@ "kmsKeyId": { "target": "com.amazonaws.accessanalyzer#SecretsManagerSecretKmsId", "traits": { - "smithy.api#documentation": "The proposed ARN, key ID, or alias of the KMS customer master key (CMK).
" + "smithy.api#documentation": "The proposed ARN, key ID, or alias of the KMS key.
" } }, "secretPolicy": { @@ -3874,7 +3874,7 @@ } }, "traits": { - "smithy.api#documentation": "The configuration for a Secrets Manager secret. For more information, see CreateSecret.
\nYou can propose a configuration for a new secret or an existing secret that you own by\n specifying the secret policy and optional KMS encryption key. If the configuration is for\n an existing secret and you do not specify the secret policy, the access preview uses the\n existing policy for the secret. If the access preview is for a new resource and you do not\n specify the policy, the access preview assumes a secret without a policy. To propose\n deletion of an existing policy, you can specify an empty string. If the proposed\n configuration is for a new secret and you do not specify the KMS key ID, the access\n preview uses the default CMK of the Amazon Web Services account. If you specify an empty string for the\n KMS key ID, the access preview uses the default CMK of the Amazon Web Services account. For more\n information about secret policy limits, see Quotas for\n Secrets Manager..
" + "smithy.api#documentation": "The configuration for a Secrets Manager secret. For more information, see CreateSecret.
\nYou can propose a configuration for a new secret or an existing secret that you own by\n specifying the secret policy and optional KMS encryption key. If the configuration is for\n an existing secret and you do not specify the secret policy, the access preview uses the\n existing policy for the secret. If the access preview is for a new resource and you do not\n specify the policy, the access preview assumes a secret without a policy. To propose\n deletion of an existing policy, you can specify an empty string. If the proposed\n configuration is for a new secret and you do not specify the KMS key ID, the access\n preview uses the Amazon Web Services managed key aws/secretsmanager
. If you specify an empty\n string for the KMS key ID, the access preview uses the Amazon Web Services managed key of the Amazon Web Services\n account. For more information about secret policy limits, see Quotas for\n Secrets Manager..
The type of policy to validate. Identity policies grant permissions to IAM principals.\n Identity policies include managed and inline policies for IAM roles, users, and groups.\n They also include service-control policies (SCPs) that are attached to an Amazon Web Services\n organization, organizational unit (OU), or an account.
\nResource policies grant permissions on Amazon Web Services resources. Resource policies include trust\n policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic\n input such as identity policy or resource policy or a specific input such as managed policy\n or Amazon S3 bucket policy.
", "smithy.api#required": {} } + }, + "validatePolicyResourceType": { + "target": "com.amazonaws.accessanalyzer#ValidatePolicyResourceType", + "traits": { + "smithy.api#documentation": "The type of resource to attach to your resource policy. Specify a value for the policy\n validation resource type only if the policy type is RESOURCE_POLICY
. For\n example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose\n AWS::S3::Bucket
for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that\n apply to all resource policies. For example, to validate a resource policy to attach to a\n KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer\n will run policy checks that apply to all resource policies.
" + } } } }, + "com.amazonaws.accessanalyzer#ValidatePolicyResourceType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AWS::S3::Bucket", + "name": "S3_BUCKET" + }, + { + "value": "AWS::S3::AccessPoint", + "name": "S3_ACCESS_POINT" + }, + { + "value": "AWS::S3::MultiRegionAccessPoint", + "name": "S3_MULTI_REGION_ACCESS_POINT" + }, + { + "value": "AWS::S3ObjectLambda::AccessPoint", + "name": "S3_OBJECT_LAMBDA_ACCESS_POINT" + } + ] + } + }, "com.amazonaws.accessanalyzer#ValidatePolicyResponse": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/backupgateway.2021-01-01.json b/codegen/sdk-codegen/aws-models/backupgateway.2021-01-01.json new file mode 100644 index 00000000000..dd94f3e7306 --- /dev/null +++ b/codegen/sdk-codegen/aws-models/backupgateway.2021-01-01.json @@ -0,0 +1,1543 @@ +{ + "smithy": "1.0", + "shapes": { + "com.amazonaws.backupgateway#AccessDeniedException": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.backupgateway#string", + "traits": { + "smithy.api#documentation": "A description of why you have insufficient permissions.
", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.backupgateway#string" + } + }, + "traits": { + "smithy.api#documentation": "The operation cannot proceed because you have insufficient permissions.
", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.backupgateway#ActivationKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 50 + }, + "smithy.api#pattern": "^[0-9a-zA-Z\\-]+$" + } + }, + "com.amazonaws.backupgateway#AssociateGatewayToServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#AssociateGatewayToServerInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#AssociateGatewayToServerOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#ConflictException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Associates a backup gateway with your server. After you complete the association process,\n you can back up and restore your VMs through the gateway.
" + } + }, + "com.amazonaws.backupgateway#AssociateGatewayToServerInput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
operation\n to return a list of gateways for your account and Amazon Web Services Region.
The Amazon Resource Name (ARN) of the server that hosts your virtual machines.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#AssociateGatewayToServerOutput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a gateway.
" + } + } + } + }, + "com.amazonaws.backupgateway#BackupOnPremises_v20210101": { + "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Backup Gateway", + "arnNamespace": "backup-gateway", + "cloudFormationName": "BackupGateway", + "cloudTrailEventSource": "backup-gateway.amazonaws.com", + "endpointPrefix": "backup-gateway" + }, + "aws.auth#sigv4": { + "name": "backup-gateway" + }, + "aws.protocols#awsJson1_0": {}, + "smithy.api#documentation": "Backup gateway connects Backup to your hypervisor, so you can\n create, store, and restore backups of your virtual machines (VMs) anywhere, whether\n on-premises or in the VMware Cloud (VMC) on Amazon Web Services.
\nAdd on-premises resources by connecting to a hypervisor through a gateway. Backup will automatically discover the resources in your hypervisor.
\nUse Backup to assign virtual or on-premises resources to a backup plan, or run\n on-demand backups. Once you have backed up your resources, you can view them and restore them\n like any resource supported by Backup.
\nTo download the Amazon Web Services software to get started, navigate to the Backup console, choose Gateways, then choose Create gateway.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + }, + "smithy.api#title": "AWS Backup Gateway" + }, + "version": "2021-01-01", + "operations": [ + { + "target": "com.amazonaws.backupgateway#ListTagsForResource" + }, + { + "target": "com.amazonaws.backupgateway#ListVirtualMachines" + }, + { + "target": "com.amazonaws.backupgateway#TagResource" + }, + { + "target": "com.amazonaws.backupgateway#UntagResource" + } + ], + "resources": [ + { + "target": "com.amazonaws.backupgateway#GatewayResource" + }, + { + "target": "com.amazonaws.backupgateway#HypervisorResource" + } + ] + }, + "com.amazonaws.backupgateway#ConflictException": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.backupgateway#string", + "traits": { + "smithy.api#documentation": "A description of why the operation is not supported.
", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.backupgateway#string" + } + }, + "traits": { + "smithy.api#documentation": "The operation cannot proceed because it is not supported.
", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.backupgateway#CreateGateway": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#CreateGatewayInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#CreateGatewayOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a backup gateway. After you create a gateway, you can associate it with a server\n using the AssociateGatewayToServer
operation.
The activation key of the created gateway.
", + "smithy.api#required": {} + } + }, + "GatewayDisplayName": { + "target": "com.amazonaws.backupgateway#Name", + "traits": { + "smithy.api#documentation": "The display name of the created gateway.
", + "smithy.api#required": {} + } + }, + "GatewayType": { + "target": "com.amazonaws.backupgateway#GatewayType", + "traits": { + "smithy.api#documentation": "The type of created gateway.
", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.backupgateway#Tags", + "traits": { + "smithy.api#documentation": "A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.
" + } + } + } + }, + "com.amazonaws.backupgateway#CreateGatewayOutput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway you create.
" + } + } + } + }, + "com.amazonaws.backupgateway#DayOfMonth": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 31 + } + } + }, + "com.amazonaws.backupgateway#DayOfWeek": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 6 + } + } + }, + "com.amazonaws.backupgateway#DeleteGateway": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#DeleteGatewayInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#DeleteGatewayOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a backup gateway.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.backupgateway#DeleteGatewayInput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#DeleteGatewayOutput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway you deleted.
" + } + } + } + }, + "com.amazonaws.backupgateway#DeleteHypervisor": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#DeleteHypervisorInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#DeleteHypervisorOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#AccessDeniedException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a hypervisor.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.backupgateway#DeleteHypervisorInput": { + "type": "structure", + "members": { + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the hypervisor to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#DeleteHypervisorOutput": { + "type": "structure", + "members": { + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the hypervisor you deleted.
" + } + } + } + }, + "com.amazonaws.backupgateway#DisassociateGatewayFromServer": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#DisassociateGatewayFromServerInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#DisassociateGatewayFromServerOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#ConflictException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Disassociates a backup gateway from the specified server. After the disassociation process\n finishes, the gateway can no longer access the virtual machines on the server.
" + } + }, + "com.amazonaws.backupgateway#DisassociateGatewayFromServerInput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway to disassociate.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#DisassociateGatewayFromServerOutput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway you disassociated.
" + } + } + } + }, + "com.amazonaws.backupgateway#Gateway": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
operation\n to return a list of gateways for your account and Amazon Web Services Region.
The display name of the gateway.
" + } + }, + "GatewayType": { + "target": "com.amazonaws.backupgateway#GatewayType", + "traits": { + "smithy.api#documentation": "The type of the gateway.
" + } + }, + "HypervisorId": { + "target": "com.amazonaws.backupgateway#HypervisorId", + "traits": { + "smithy.api#documentation": "The hypervisor ID of the gateway.
" + } + }, + "LastSeenTime": { + "target": "com.amazonaws.backupgateway#Time", + "traits": { + "smithy.api#documentation": "The last time Backup gateway communicated with the gateway, in Unix format and\n UTC time.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A gateway is an Backup Gateway appliance that runs on the customer's network\n to provide seamless connectivity to backup storage in the Amazon Web Services Cloud.
" + } + }, + "com.amazonaws.backupgateway#GatewayArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 50, + "max": 500 + }, + "smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\\/[a-zA-Z-0-9]+$" + } + }, + "com.amazonaws.backupgateway#GatewayResource": { + "type": "resource", + "identifiers": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn" + } + }, + "create": { + "target": "com.amazonaws.backupgateway#CreateGateway" + }, + "update": { + "target": "com.amazonaws.backupgateway#UpdateGatewayInformation" + }, + "delete": { + "target": "com.amazonaws.backupgateway#DeleteGateway" + }, + "list": { + "target": "com.amazonaws.backupgateway#ListGateways" + }, + "operations": [ + { + "target": "com.amazonaws.backupgateway#AssociateGatewayToServer" + }, + { + "target": "com.amazonaws.backupgateway#DisassociateGatewayFromServer" + }, + { + "target": "com.amazonaws.backupgateway#PutMaintenanceStartTime" + }, + { + "target": "com.amazonaws.backupgateway#TestHypervisorConfiguration" + } + ], + "traits": { + "aws.cloudformation#cfnResource": { + "name": "Gateway" + } + } + }, + "com.amazonaws.backupgateway#GatewayType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "BACKUP_VM", + "name": "BACKUP_VM" + } + ] + } + }, + "com.amazonaws.backupgateway#Gateways": { + "type": "list", + "member": { + "target": "com.amazonaws.backupgateway#Gateway" + } + }, + "com.amazonaws.backupgateway#Host": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 128 + }, + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.backupgateway#HourOfDay": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 23 + } + } + }, + "com.amazonaws.backupgateway#Hypervisor": { + "type": "structure", + "members": { + "Host": { + "target": "com.amazonaws.backupgateway#Host", + "traits": { + "smithy.api#documentation": "The server host of the hypervisor. This can be either an IP address or a fully-qualified\n domain name (FQDN).
" + } + }, + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the hypervisor.
" + } + }, + "KmsKeyArn": { + "target": "com.amazonaws.backupgateway#KmsKeyArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Key Management Service used to encrypt the\n hypervisor.
" + } + }, + "Name": { + "target": "com.amazonaws.backupgateway#Name", + "traits": { + "smithy.api#documentation": "The name of the hypervisor.
" + } + }, + "State": { + "target": "com.amazonaws.backupgateway#HypervisorState", + "traits": { + "smithy.api#documentation": "The state of the hypervisor.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Represents the hypervisor's permissions to which the gateway will connect.
\nA hypervisor is hardware, software, or firmware that creates and manages virtual machines,\n and allocates resources to them.
" + } + }, + "com.amazonaws.backupgateway#HypervisorId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.backupgateway#HypervisorResource": { + "type": "resource", + "identifiers": { + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn" + } + }, + "create": { + "target": "com.amazonaws.backupgateway#ImportHypervisorConfiguration" + }, + "update": { + "target": "com.amazonaws.backupgateway#UpdateHypervisor" + }, + "delete": { + "target": "com.amazonaws.backupgateway#DeleteHypervisor" + }, + "list": { + "target": "com.amazonaws.backupgateway#ListHypervisors" + }, + "traits": { + "aws.cloudformation#cfnResource": { + "name": "Hypervisor" + } + } + }, + "com.amazonaws.backupgateway#HypervisorState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "ONLINE", + "name": "ONLINE" + }, + { + "value": "OFFLINE", + "name": "OFFLINE" + }, + { + "value": "ERROR", + "name": "ERROR" + } + ] + } + }, + "com.amazonaws.backupgateway#Hypervisors": { + "type": "list", + "member": { + "target": "com.amazonaws.backupgateway#Hypervisor" + } + }, + "com.amazonaws.backupgateway#ImportHypervisorConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#ImportHypervisorConfigurationInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#ImportHypervisorConfigurationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#AccessDeniedException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Connect to a hypervisor by importing its configuration.
" + } + }, + "com.amazonaws.backupgateway#ImportHypervisorConfigurationInput": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.backupgateway#Name", + "traits": { + "smithy.api#documentation": "The name of the hypervisor.
", + "smithy.api#required": {} + } + }, + "Host": { + "target": "com.amazonaws.backupgateway#Host", + "traits": { + "smithy.api#documentation": "The server host of the hypervisor. This can be either an IP address or a fully-qualified\n domain name (FQDN).
", + "smithy.api#required": {} + } + }, + "Username": { + "target": "com.amazonaws.backupgateway#Username", + "traits": { + "smithy.api#documentation": "The username for the hypervisor.
" + } + }, + "Password": { + "target": "com.amazonaws.backupgateway#Password", + "traits": { + "smithy.api#documentation": "The password for the hypervisor.
" + } + }, + "KmsKeyArn": { + "target": "com.amazonaws.backupgateway#KmsKeyArn", + "traits": { + "smithy.api#documentation": "The Key Management Service for the hypervisor.
" + } + }, + "Tags": { + "target": "com.amazonaws.backupgateway#Tags", + "traits": { + "smithy.api#documentation": "The tags of the hypervisor configuration to import.
" + } + } + } + }, + "com.amazonaws.backupgateway#ImportHypervisorConfigurationOutput": { + "type": "structure", + "members": { + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the hypervisor you disassociated.
" + } + } + } + }, + "com.amazonaws.backupgateway#InternalServerException": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.backupgateway#string", + "traits": { + "smithy.api#documentation": "A description of which internal error occured.
" + } + }, + "Message": { + "target": "com.amazonaws.backupgateway#string" + } + }, + "traits": { + "smithy.api#documentation": "The operation did not succeed because an internal error occurred. Try again later.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.backupgateway#KmsKeyArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 50, + "max": 500 + }, + "smithy.api#pattern": "^(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\\S+)$)|(^alias/(\\S+)$)$" + } + }, + "com.amazonaws.backupgateway#ListGateways": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#ListGatewaysInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#ListGatewaysOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).
", + "smithy.api#paginated": { + "items": "Gateways" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.backupgateway#ListGatewaysInput": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.backupgateway#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of gateways to list.
" + } + }, + "NextToken": { + "target": "com.amazonaws.backupgateway#NextToken", + "traits": { + "smithy.api#documentation": "The next item following a partial list of returned resources. For example, if a request is\n made to return MaxResults
number of resources, NextToken
allows you\n to return more items in your list starting at the location pointed to by the next\n token.
A list of your gateways.
" + } + }, + "NextToken": { + "target": "com.amazonaws.backupgateway#NextToken", + "traits": { + "smithy.api#documentation": "The next item following a partial list of returned resources. For example, if a request is\n made to return maxResults
number of resources, NextToken
allows you\n to return more items in your list starting at the location pointed to by the next\n token.
Lists your hypervisors.
", + "smithy.api#paginated": { + "items": "Hypervisors" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.backupgateway#ListHypervisorsInput": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.backupgateway#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of hypervisors to list.
" + } + }, + "NextToken": { + "target": "com.amazonaws.backupgateway#NextToken", + "traits": { + "smithy.api#documentation": "The next item following a partial list of returned resources. For example, if a request is\n made to return maxResults
number of resources, NextToken
allows you\n to return more items in your list starting at the location pointed to by the next\n token.
A list of your Hypervisor
objects, ordered by their Amazon Resource Names\n (ARNs).
The next item following a partial list of returned resources. For example, if a request is\n made to return maxResults
number of resources, NextToken
allows you\n to return more items in your list starting at the location pointed to by the next\n token.
Lists the tags applied to the resource identified by its Amazon Resource Name\n (ARN).
" + } + }, + "com.amazonaws.backupgateway#ListTagsForResourceInput": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource's tags to list.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#ListTagsForResourceOutput": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource's tags that you listed.
" + } + }, + "Tags": { + "target": "com.amazonaws.backupgateway#Tags", + "traits": { + "smithy.api#documentation": "A list of the resource's tags.
" + } + } + } + }, + "com.amazonaws.backupgateway#ListVirtualMachines": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#ListVirtualMachinesInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#ListVirtualMachinesOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists your virtual machines.
", + "smithy.api#paginated": { + "items": "VirtualMachines" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.backupgateway#ListVirtualMachinesInput": { + "type": "structure", + "members": { + "MaxResults": { + "target": "com.amazonaws.backupgateway#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of virtual machines to list.
" + } + }, + "NextToken": { + "target": "com.amazonaws.backupgateway#NextToken", + "traits": { + "smithy.api#documentation": "The next item following a partial list of returned resources. For example, if a request is\n made to return maxResults
number of resources, NextToken
allows you\n to return more items in your list starting at the location pointed to by the next\n token.
A list of your VirtualMachine
objects, ordered by their Amazon Resource Names\n (ARNs).
The next item following a partial list of returned resources. For example, if a request is\n made to return maxResults
number of resources, NextToken
allows you\n to return more items in your list starting at the location pointed to by the next\n token.
Set the maintenance start time for a gateway.
" + } + }, + "com.amazonaws.backupgateway#PutMaintenanceStartTimeInput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) for the gateway, used to specify its maintenance start\n time.
", + "smithy.api#required": {} + } + }, + "HourOfDay": { + "target": "com.amazonaws.backupgateway#HourOfDay", + "traits": { + "smithy.api#documentation": "The hour of the day to start maintenance on a gateway.
", + "smithy.api#required": {} + } + }, + "MinuteOfHour": { + "target": "com.amazonaws.backupgateway#MinuteOfHour", + "traits": { + "smithy.api#documentation": "The minute of the hour to start maintenance on a gateway.
", + "smithy.api#required": {} + } + }, + "DayOfWeek": { + "target": "com.amazonaws.backupgateway#DayOfWeek", + "traits": { + "smithy.api#documentation": "The day of the week to start maintenance on a gateway.
" + } + }, + "DayOfMonth": { + "target": "com.amazonaws.backupgateway#DayOfMonth", + "traits": { + "smithy.api#documentation": "The day of the month start maintenance on a gateway.
\nValid values range from Sunday
to Saturday
.
The Amazon Resource Name (ARN) of a gateway for which you set the maintenance start\n time.
" + } + } + } + }, + "com.amazonaws.backupgateway#ResourceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 50, + "max": 500 + }, + "smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\\/[a-zA-Z-0-9]+$" + } + }, + "com.amazonaws.backupgateway#ResourceNotFoundException": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.backupgateway#string", + "traits": { + "smithy.api#documentation": "A description of which resource wasn't found.
" + } + }, + "Message": { + "target": "com.amazonaws.backupgateway#string" + } + }, + "traits": { + "smithy.api#documentation": "A resource that is required for the action wasn't found.
", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.backupgateway#ServerArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 50, + "max": 500 + }, + "smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\\/[a-zA-Z-0-9]+$" + } + }, + "com.amazonaws.backupgateway#Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.backupgateway#TagKey", + "traits": { + "smithy.api#documentation": "The key part of a tag's key-value pair. The key can't start with aws:
.
The key part of a value's key-value pair.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A key-value pair you can use to manage, filter, and search for your resources. Allowed\n characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ :\n /.
" + } + }, + "com.amazonaws.backupgateway#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.backupgateway#TagKeys": { + "type": "list", + "member": { + "target": "com.amazonaws.backupgateway#TagKey" + } + }, + "com.amazonaws.backupgateway#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#TagResourceInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#TagResourceOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Tag the resource.
" + } + }, + "com.amazonaws.backupgateway#TagResourceInput": { + "type": "structure", + "members": { + "ResourceARN": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource to tag.
", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.backupgateway#Tags", + "traits": { + "smithy.api#documentation": "A list of tags to assign to the resource.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#TagResourceOutput": { + "type": "structure", + "members": { + "ResourceARN": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource you tagged.
" + } + } + } + }, + "com.amazonaws.backupgateway#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[^\\x00]*$" + } + }, + "com.amazonaws.backupgateway#Tags": { + "type": "list", + "member": { + "target": "com.amazonaws.backupgateway#Tag" + } + }, + "com.amazonaws.backupgateway#TestHypervisorConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#TestHypervisorConfigurationInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#TestHypervisorConfigurationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#ConflictException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Tests your hypervisor configuration to validate that backup gateway can connect with the\n hypervisor and its resources.
" + } + }, + "com.amazonaws.backupgateway#TestHypervisorConfigurationInput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.
", + "smithy.api#required": {} + } + }, + "Host": { + "target": "com.amazonaws.backupgateway#Host", + "traits": { + "smithy.api#documentation": "The server host of the hypervisor. This can be either an IP address or a fully-qualified\n domain name (FQDN).
", + "smithy.api#required": {} + } + }, + "Username": { + "target": "com.amazonaws.backupgateway#Username", + "traits": { + "smithy.api#documentation": "The username for the hypervisor.
" + } + }, + "Password": { + "target": "com.amazonaws.backupgateway#Password", + "traits": { + "smithy.api#documentation": "The password for the hypervisor.
" + } + } + } + }, + "com.amazonaws.backupgateway#TestHypervisorConfigurationOutput": { + "type": "structure", + "members": {} + }, + "com.amazonaws.backupgateway#Time": { + "type": "timestamp" + }, + "com.amazonaws.backupgateway#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#UntagResourceInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#UntagResourceOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Removes tags from the resource.
" + } + }, + "com.amazonaws.backupgateway#UntagResourceInput": { + "type": "structure", + "members": { + "ResourceARN": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource from which to remove tags.
", + "smithy.api#required": {} + } + }, + "TagKeys": { + "target": "com.amazonaws.backupgateway#TagKeys", + "traits": { + "smithy.api#documentation": "The list of tag keys specifying which tags to remove.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.backupgateway#UntagResourceOutput": { + "type": "structure", + "members": { + "ResourceARN": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource from which you removed tags.
" + } + } + } + }, + "com.amazonaws.backupgateway#UpdateGatewayInformation": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#UpdateGatewayInformationInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#UpdateGatewayInformationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#ConflictException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name\n (ARN) of the gateway in your request.
" + } + }, + "com.amazonaws.backupgateway#UpdateGatewayInformationInput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway to update.
", + "smithy.api#required": {} + } + }, + "GatewayDisplayName": { + "target": "com.amazonaws.backupgateway#Name", + "traits": { + "smithy.api#documentation": "The updated display name of the gateway.
" + } + } + } + }, + "com.amazonaws.backupgateway#UpdateGatewayInformationOutput": { + "type": "structure", + "members": { + "GatewayArn": { + "target": "com.amazonaws.backupgateway#GatewayArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the gateway you updated.
" + } + } + } + }, + "com.amazonaws.backupgateway#UpdateHypervisor": { + "type": "operation", + "input": { + "target": "com.amazonaws.backupgateway#UpdateHypervisorInput" + }, + "output": { + "target": "com.amazonaws.backupgateway#UpdateHypervisorOutput" + }, + "errors": [ + { + "target": "com.amazonaws.backupgateway#AccessDeniedException" + }, + { + "target": "com.amazonaws.backupgateway#InternalServerException" + }, + { + "target": "com.amazonaws.backupgateway#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.backupgateway#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates a hypervisor metadata, including its host, username, and password. Specify which\n hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your\n request.
" + } + }, + "com.amazonaws.backupgateway#UpdateHypervisorInput": { + "type": "structure", + "members": { + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the hypervisor to update.
", + "smithy.api#required": {} + } + }, + "Host": { + "target": "com.amazonaws.backupgateway#Host", + "traits": { + "smithy.api#documentation": "The updated host of the hypervisor. This can be either an IP address or a fully-qualified\n domain name (FQDN).
" + } + }, + "Username": { + "target": "com.amazonaws.backupgateway#Username", + "traits": { + "smithy.api#documentation": "The updated username for the hypervisor.
" + } + }, + "Password": { + "target": "com.amazonaws.backupgateway#Password", + "traits": { + "smithy.api#documentation": "The updated password for the hypervisor.
" + } + } + } + }, + "com.amazonaws.backupgateway#UpdateHypervisorOutput": { + "type": "structure", + "members": { + "HypervisorArn": { + "target": "com.amazonaws.backupgateway#ServerArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the hypervisor you updated.
" + } + } + } + }, + "com.amazonaws.backupgateway#Username": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[ -\\.0-\\[\\]-~]*[!-\\.0-\\[\\]-~][ -\\.0-\\[\\]-~]*$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.backupgateway#ValidationException": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.backupgateway#string", + "traits": { + "smithy.api#documentation": "A description of what caused the validation error.
" + } + }, + "Message": { + "target": "com.amazonaws.backupgateway#string" + } + }, + "traits": { + "smithy.api#documentation": "The operation did not succeed because a validation error occurred.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.backupgateway#VirtualMachine": { + "type": "structure", + "members": { + "HostName": { + "target": "com.amazonaws.backupgateway#Name", + "traits": { + "smithy.api#documentation": "The host name of the virtual machine.
" + } + }, + "HypervisorId": { + "target": "com.amazonaws.backupgateway#string", + "traits": { + "smithy.api#documentation": "The ID of the virtual machine's hypervisor.
" + } + }, + "Name": { + "target": "com.amazonaws.backupgateway#Name", + "traits": { + "smithy.api#documentation": "The name of the virtual machine.
" + } + }, + "Path": { + "target": "com.amazonaws.backupgateway#Path", + "traits": { + "smithy.api#documentation": "The path of the virtual machine.
" + } + }, + "ResourceArn": { + "target": "com.amazonaws.backupgateway#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the virtual machine.
" + } + }, + "LastBackupDate": { + "target": "com.amazonaws.backupgateway#Time", + "traits": { + "smithy.api#documentation": "The most recent date a virtual machine was backed up, in Unix format and UTC time.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A virtual machine that is on a hypervisor.
" + } + }, + "com.amazonaws.backupgateway#VirtualMachines": { + "type": "list", + "member": { + "target": "com.amazonaws.backupgateway#VirtualMachine" + } + }, + "com.amazonaws.backupgateway#string": { + "type": "string" + } + } +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/devopsguru.2020-12-01.json b/codegen/sdk-codegen/aws-models/devopsguru.2020-12-01.json index 59c0a7d01e2..cb3eb4d29ee 100644 --- a/codegen/sdk-codegen/aws-models/devopsguru.2020-12-01.json +++ b/codegen/sdk-codegen/aws-models/devopsguru.2020-12-01.json @@ -167,6 +167,9 @@ } } }, + "com.amazonaws.devopsguru#AnomalyDescription": { + "type": "string" + }, "com.amazonaws.devopsguru#AnomalyId": { "type": "string", "traits": { @@ -174,7 +177,7 @@ "min": 1, "max": 100 }, - "smithy.api#pattern": "^[\\w-]*$" + "smithy.api#pattern": "^[\\w~.-]*$" } }, "com.amazonaws.devopsguru#AnomalyLimit": { @@ -183,6 +186,9 @@ "smithy.api#box": {} } }, + "com.amazonaws.devopsguru#AnomalyName": { + "type": "string" + }, "com.amazonaws.devopsguru#AnomalyReportedTimeRange": { "type": "structure", "members": { @@ -204,6 +210,32 @@ "smithy.api#documentation": " A time range that specifies when DevOps Guru opens and then closes an anomaly. This\n\t\t\tis different from AnomalyTimeRange
, which specifies the time range when\n\t\t\tDevOps Guru actually observes the anomalous behavior.
The name of the Amazon Web Services resource.
" + } + }, + "Type": { + "target": "com.amazonaws.devopsguru#ResourceType", + "traits": { + "smithy.api#documentation": "The type of the Amazon Web Services resource.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The Amazon Web Services resources in which DevOps Guru detected unusual behavior that resulted in \n \tthe generation of an anomaly. When DevOps Guru detects multiple related anomalies, it creates \n and insight with details about the anomalous behavior and suggestions about how to correct the \n problem.
" + } + }, + "com.amazonaws.devopsguru#AnomalyResources": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#AnomalyResource" + } + }, "com.amazonaws.devopsguru#AnomalySeverity": { "type": "string", "traits": { @@ -229,12 +261,18 @@ "CloudWatchMetrics": { "target": "com.amazonaws.devopsguru#CloudWatchMetricsDetails", "traits": { - "smithy.api#documentation": " An array of CloudWatchMetricsDetail
object that contains information\n\t\t\tabout the analyzed metrics that displayed anomalous behavior.
An array of CloudWatchMetricsDetail
objects that contain information\n\t\t\tabout analyzed CloudWatch metrics that show anomalous behavior.
An array of PerformanceInsightsMetricsDetail
objects that contain information\n \t\tabout analyzed Performance Insights metrics that show anomalous behavior.
Details about the source of the anomalous operational data that triggered the\n\t\t\tanomaly. The one supported source is Amazon CloudWatch metrics.
" + "smithy.api#documentation": "Details about the source of the anomalous operational data that triggered the\n\t\t\tanomaly.
" } }, "com.amazonaws.devopsguru#AnomalyStatus": { @@ -273,6 +311,37 @@ "smithy.api#documentation": " A time range that specifies when the observed unusual behavior in an anomaly started\n\t\t\tand ended. This is different from AnomalyReportedTimeRange
, which specifies\n\t\t\tthe time range when DevOps Guru opens and then closes an anomaly.
This is a list of cloudwatch metric values at given timestamp.
" + "smithy.api#documentation": "This is a list of Amazon CloudWatch metric values at given timestamp.
" } }, "StatusCode": { "target": "com.amazonaws.devopsguru#CloudWatchMetricDataStatusCode", "traits": { - "smithy.api#documentation": "This is enum of the status showing whether the metric value pair list has Partial or\n\t\t\tComplete data or there was an error.
" + "smithy.api#documentation": "This is an enum of the status showing whether the metric value pair list has partial or\n\t\t\tcomplete data, or if there was an error.
" } } }, @@ -578,7 +647,7 @@ } }, "traits": { - "smithy.api#documentation": "The dimension of a Amazon CloudWatch metric that is used when DevOps Guru analyzes the resources in\n\t\t\tyour account for operational problems and anomalous behavior. A dimension is a\n\t\t\tname/value pair that is part of the identity of a metric. A metric can have up to 10\n\t\t\tdimensions. For more information, see Dimensions in the Amazon CloudWatch User Guide.
" + "smithy.api#documentation": "The dimension of am Amazon CloudWatch metric that is used when DevOps Guru analyzes the resources in\n\t\t\tyour account for operational problems and anomalous behavior. A dimension is a\n\t\t\tname/value pair that is part of the identity of a metric. A metric can have up to 10\n\t\t\tdimensions. For more information, see Dimensions in the Amazon CloudWatch User Guide.
" } }, "com.amazonaws.devopsguru#CloudWatchMetricsDimensionName": { @@ -685,6 +754,12 @@ "traits": { "smithy.api#documentation": "An object that specifies the CloudFormation stack that defines the Amazon Web Services resources\n\t\t\tused to create a monthly estimate for DevOps Guru.
" } + }, + "Tags": { + "target": "com.amazonaws.devopsguru#TagCostEstimationResourceCollectionFilters", + "traits": { + "smithy.api#documentation": "The Amazon Web Services tags used to filter the resource collection that is used for \n \t\ta cost estimate.
\n \tTags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support\n \t\ttagging, so you can assign the same tag to resources from different services to indicate\n \t\tthat the resources are related. For example, you can assign the same tag to an Amazon DynamoDB\n \t\ttable resource that you assign to an Lambda function. For more information about\n \t\tusing tags, see the Tagging\n \t\t\tbest practices whitepaper.
\n \tEach Amazon Web Services tag has two parts.
\n \tA tag key (for example, CostCenter
,\n \t\t\t\tEnvironment
, Project
, or Secret
). Tag\n \t\t\t\tkeys are case-sensitive.
An optional field known as a tag value (for example,\n \t\t\t\t111122223333
, Production
, or a team\n \t\t\t\tname). Omitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive.
Together these are known as key-value pairs.
\n \tThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
A ReactiveAnomaly
object that represents the requested anomaly.
A ProactiveAnomaly
object that represents the requested anomaly.
A ProactiveAnomaly
object that represents the requested anomaly.
A ReactiveAnomaly
object that represents the requested anomaly.
An Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources\n\t\t\tare defined. The one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", + "smithy.api#documentation": "An Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources\n\t\t\tare defined. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", "smithy.api#required": {} } }, @@ -1332,7 +1419,7 @@ "CloudFormation": { "target": "com.amazonaws.devopsguru#CloudFormationHealths", "traits": { - "smithy.api#documentation": "The returned CloudFormationHealthOverview
object that contains an\n\t\t\t\tInsightHealthOverview
object with the requested system health\n\t\t\tinformation.
The returned CloudFormationHealthOverview
object that contains an\n\t\t\tInsightHealthOverview
object with the requested system health\n\t\t\tinformation.
Returns the number of open proactive insights, open reactive insights, and the Mean Time to Recover (MTTR)\n\t\t\tfor all closed insights in resource collections in your account. You specify the type of\n\t\t\tAmazon Web Services resources collection. The one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", + "smithy.api#documentation": "Returns the number of open proactive insights, open reactive insights, and the Mean Time to Recover (MTTR)\n\t\t\tfor all closed insights in resource collections in your account. You specify the type of\n\t\t\tAmazon Web Services resources collection. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", "smithy.api#http": { "method": "GET", "uri": "/accounts/health/resource-collection/{ResourceCollectionType}", @@ -1396,7 +1483,7 @@ "ResourceCollectionType": { "target": "com.amazonaws.devopsguru#ResourceCollectionType", "traits": { - "smithy.api#documentation": "An Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources\n\t\t\tare defined. The one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", + "smithy.api#documentation": "An Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources\n\t\t\tare defined. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1416,8 +1503,7 @@ "CloudFormation": { "target": "com.amazonaws.devopsguru#CloudFormationHealths", "traits": { - "smithy.api#documentation": " The returned CloudFormationHealthOverview
object that contains an\n\t\t\t\tInsightHealthOverview
object with the requested system health\n\t\t\tinformation.
The returned CloudFormationHealthOverview
object that contains an\n\t\t\t\tInsightHealthOverview
object with the requested system health\n\t\t\tinformation.
The pagination token to use to retrieve \n the next page of results for this operation. If there are no more pages, this value is null.
" } + }, + "Tags": { + "target": "com.amazonaws.devopsguru#TagHealths", + "traits": { + "smithy.api#documentation": "The Amazon Web Services tags that are used by resources in the resource collection.
\n \tTags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support\n \t\ttagging, so you can assign the same tag to resources from different services to indicate\n \t\tthat the resources are related. For example, you can assign the same tag to an Amazon DynamoDB\n \t\ttable resource that you assign to an Lambda function. For more information about\n \t\tusing tags, see the Tagging\n \t\t\tbest practices whitepaper.
\n \tEach Amazon Web Services tag has two parts.
\n \tA tag key (for example, CostCenter
,\n \t\t\t\tEnvironment
, Project
, or Secret
). Tag\n \t\t\t\tkeys are case-sensitive.
An optional field known as a tag value (for example,\n \t\t\t\t111122223333
, Production
, or a team\n \t\t\t\tname). Omitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive.
Together these are known as key-value pairs.
\n \tThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
Returns lists Amazon Web Services resources that are of the specified resource collection type.\n\t\t\tThe one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", + "smithy.api#documentation": "Returns lists Amazon Web Services resources that are of the specified resource collection type.\n\t\t\tThe two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
", "smithy.api#http": { "method": "GET", "uri": "/resource-collections/{ResourceCollectionType}", @@ -1871,7 +1963,7 @@ "ResourceCollection": { "target": "com.amazonaws.devopsguru#ResourceCollectionFilter", "traits": { - "smithy.api#documentation": "The requested list of Amazon Web Services resource collections.\n\t\t\tThe one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" + "smithy.api#documentation": "The requested list of Amazon Web Services resource collections.\n\t\t\tThe two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" } }, "NextToken": { @@ -3004,6 +3096,266 @@ } } }, + "com.amazonaws.devopsguru#PerformanceInsightsMetricDimension": { + "type": "string" + }, + "com.amazonaws.devopsguru#PerformanceInsightsMetricDimensionGroup": { + "type": "structure", + "members": { + "Group": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsMetricGroup", + "traits": { + "smithy.api#documentation": "The name of the dimension group. Its valid values are:
\n \t\n \t\n \t\t\t\t db
- The name of the database to which the client is connected (only Aurora PostgreSQL, Amazon RDS PostgreSQL,\n \t\t\t\tAurora MySQL, Amazon RDS MySQL, and MariaDB)
\n \t\t\t\t db.application
- The name of the application that is connected to the database (only Aurora\n \t\t\t\tPostgreSQL and RDS PostgreSQL)
\n \t\t\t\t db.host
- The host name of the connected client (all engines)
\n \t\t\t\t db.session_type
- The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)
\n \t\t\t\t db.sql
- The SQL that is currently executing (all engines)
\n \t\t\t\t db.sql_tokenized
- The SQL digest (all engines)
\n \t\t\t\t db.wait_event
- The event for which the database backend is waiting (all engines)
\n \t\t\t\t db.wait_event_type
- The type of event for which the database backend is waiting (all engines)
\n \t\t\t\t db.user
- The user logged in to the database (all engines)
A list of specific dimensions from a dimension group. If this parameter is not present,\n \t\tthen it signifies that all of the dimensions in the group were requested or are present in\n \t\tthe response.
\n \tValid values for elements in the Dimensions
array are:
\n \t\t\t\t db.application.name
- The name of the application that is connected to the database (only\n \t\t\t\tAurora PostgreSQL and RDS PostgreSQL)
\n \t\t\t\t db.host.id
- The host ID of the connected client (all engines)
\n \t\t\t\t db.host.name
- The host name of the connected client (all engines)
\n \t\t\t\t db.name
- The name of the database to which the client is connected (only Aurora PostgreSQL, Amazon RDS\n \t\t\t\tPostgreSQL, Aurora MySQL, Amazon RDS MySQL, and MariaDB)
\n \t\t\t\t db.session_type.name
- The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)
\n \t\t\t\t db.sql.id
- The SQL ID generated by Performance Insights (all engines)
\n \t\t\t\t db.sql.db_id
- The SQL ID generated by the database (all engines)
\n \t\t\t\t db.sql.statement
- The SQL text that is being executed (all engines)
\n \t\t\t\t db.sql.tokenized_id
\n \t\t\t
\n \t\t\t\t db.sql_tokenized.id
- The SQL digest ID generated by Performance Insights (all engines)
\n \t\t\t\t db.sql_tokenized.db_id
- SQL digest ID generated by the database (all engines)
\n \t\t\t\t db.sql_tokenized.statement
- The SQL digest text (all engines)
\n \t\t\t\t db.user.id
- The ID of the user logged in to the database (all engines)
\n \t\t\t\t db.user.name
- The name of the user logged in to the database (all engines)
\n \t\t\t\t db.wait_event.name
- The event for which the backend is waiting (all engines)
\n \t\t\t\t db.wait_event.type
- The type of event for which the backend is waiting (all engines)
\n \t\t\t\t db.wait_event_type.name
- The name of the event type for which the backend is waiting (all\n \t\t\t\tengines)
The maximum number of items to fetch for this dimension group.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A logical grouping of Performance Insights metrics for a related subject area. For example, the\n \t\tdb.sql
dimension group consists of the following dimensions:\n \t\tdb.sql.id
, db.sql.db_id
, db.sql.statement
, and\n \t\tdb.sql.tokenized_id
.
Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n \t\t\tonly the first 500 bytes are returned.
\n \tAmazon RDS Performance Insights enables you to monitor and explore different \n \t\tdimensions of database load based on data captured from a running DB instance. \n \t\tDB load is measured as average active sessions. Performance Insights provides the \n \t\tdata to API consumers as a two-dimensional time-series dataset. The time dimension \n \t\tprovides DB load data for each time point in the queried time range. Each time point \n \t\tdecomposes overall load in relation to the requested dimensions, measured at that \n \t\ttime point. Examples include SQL, Wait event, User, and Host.
\n \t\n \tTo learn more about Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora User Guide.\n \t\t\t
\n \t\tTo learn more about Performance Insights and Amazon RDS DB instances, go to the Amazon RDS User Guide.\n \t\t\t
\n \t\tThe name of the meteric used used when querying an Performance Insights GetResourceMetrics
API for \n \tanomaly metrics.
Valid values for Metric
are:
\n \t\t\t\t db.load.avg
- a scaled representation of the number of active sessions\n \t\t\t\tfor the database engine.
\n \t\t\t\t db.sampledload.avg
- the raw number of active sessions for the\n \t\t\t\tdatabase engine.
If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg
and db.sampledload.avg
\n \t\tare the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg
\n \t\tshowing the scaled values, db.sampledload.avg
showing the raw values, and db.sampledload.avg
less than db.load.avg
. \n \t\tFor most use cases, you can query db.load.avg
only.
The specification for how to aggregate the data points from a Performance Insights GetResourceMetrics
API query. The \n \t\tPerformance Insights query returns all of the dimensions within that group,\n \t\tunless you provide the names of specific dimensions within that group. You can also request\n \t\tthat Performance Insights return a limited number of values for a dimension.
One or more filters to apply to a Performance Insights GetResourceMetrics
API query. Restrictions:
Any number of filters by the same dimension, as specified in the GroupBy
parameter.
A single filter for any other dimension in this dimension group.
\n \t\tA single query to be processed. Use these parameters to \n \t\tquery the Performance Insights GetResourceMetrics
API to retrieve the metrics \n \t\tfor an anomaly. For more information, see \n GetResourceMetrics\n
\n \tin the Amazon RDS Performance Insights API Reference.
Amazon RDS Performance Insights enables you to monitor and explore different \n \t\tdimensions of database load based on data captured from a running DB instance. \n \t\tDB load is measured as average active sessions. Performance Insights provides the \n \t\tdata to API consumers as a two-dimensional time-series dataset. The time dimension \n \t\tprovides DB load data for each time point in the queried time range. Each time point \n \t\tdecomposes overall load in relation to the requested dimensions, measured at that \n \t\ttime point. Examples include SQL, Wait event, User, and Host.
\n \t\n \tTo learn more about Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora User Guide.\n \t\t\t
\n \t\tTo learn more about Performance Insights and Amazon RDS DB instances, go to the Amazon RDS User Guide.\n \t\t\t
\n \t\tThe name used for a specific Performance Insights metric.
" + } + }, + "Unit": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsMetricUnit", + "traits": { + "smithy.api#documentation": "The unit of measure for a metric. For example, a session or a process.
" + } + }, + "MetricQuery": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsMetricQuery", + "traits": { + "smithy.api#documentation": "A single query to be processed for the metric. For more information, see \n \t\t\n PerformanceInsightsMetricQuery\n
.
\n \tFor more information, see \n \t\n PerformanceInsightsReferenceData\n
.\n
The metric statistics during the anomalous period detected by DevOps Guru;
" + } + }, + "StatsAtBaseline": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsStats", + "traits": { + "smithy.api#documentation": "Typical metric statistics that are not considered anomalous. When DevOps Guru analyzes\n\t\t\tmetrics, it compares them to StatsAtBaseline
to help determine if they are\n\t\t\tanomalous.
Details about Performance Insights metrics.
\n \t\n \tAmazon RDS Performance Insights enables you to monitor and explore different \n \t\tdimensions of database load based on data captured from a running DB instance. \n \t\tDB load is measured as average active sessions. Performance Insights provides the \n \t\tdata to API consumers as a two-dimensional time-series dataset. The time dimension \n \t\tprovides DB load data for each time point in the queried time range. Each time point \n \t\tdecomposes overall load in relation to the requested dimensions, measured at that \n \t\ttime point. Examples include SQL, Wait event, User, and Host.
\n \t\n \tTo learn more about Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora User Guide.\n \t\t\t
\n \t\tTo learn more about Performance Insights and Amazon RDS DB instances, go to the Amazon RDS User Guide.\n \t\t\t
\n \t\tA scalar value DevOps Guru for a metric that DevOps Guru compares to actual metric values. This reference value is used \n to determine if an actual metric value should be considered anomalous.
" + } + }, + "ReferenceMetric": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsReferenceMetric", + "traits": { + "smithy.api#documentation": "A metric that DevOps Guru compares to actual metric values. This reference metric is used \n \t\tto determine if an actual metric should be considered anomalous.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Reference scalar values and other metrics that DevOps Guru displays on a graph in its console along with the actual metrics it \n analyzed. Compare these reference values to your actual metrics to help you understand anomalous behavior that DevOps Guru detected.
" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsReferenceData": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsReferenceName", + "traits": { + "smithy.api#documentation": "The name of the reference data.
" + } + }, + "ComparisonValues": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsReferenceComparisonValues", + "traits": { + "smithy.api#documentation": "The specific reference values used to evaluate the Performance Insights. For more information, see \n\t\t\t\n PerformanceInsightsReferenceComparisonValues\n
.\n\t\t
Reference data used to evaluate Performance Insights to determine if its performance \n is anomalous or not.
" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsReferenceDataList": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsReferenceData" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsReferenceMetric": { + "type": "structure", + "members": { + "MetricQuery": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsMetricQuery", + "traits": { + "smithy.api#documentation": "A query to be processed on the metric.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about a reference metric used to evaluate Performance Insights.
" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsReferenceName": { + "type": "string" + }, + "com.amazonaws.devopsguru#PerformanceInsightsReferenceScalar": { + "type": "structure", + "members": { + "Value": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsValueDouble", + "traits": { + "smithy.api#documentation": "The reference value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A reference value to compare Performance Insights metrics against to determine if the metrics \n demonstrate anomalous behavior.
" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsStat": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsStatType", + "traits": { + "smithy.api#documentation": "The statistic type.
" + } + }, + "Value": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsValueDouble", + "traits": { + "smithy.api#documentation": "The value of the statistic.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A statistic in a Performance Insights collection.
" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsStatType": { + "type": "string" + }, + "com.amazonaws.devopsguru#PerformanceInsightsStats": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#PerformanceInsightsStat" + } + }, + "com.amazonaws.devopsguru#PerformanceInsightsValueDouble": { + "type": "double", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.devopsguru#PredictionTimeRange": { "type": "structure", "members": { @@ -3043,7 +3395,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#AnomalySeverity", "traits": { - "smithy.api#documentation": "The severity of a proactive anomaly.
" + "smithy.api#documentation": "The severity of the anomaly. The severity of anomalies that generate \n\tan insight determine that insight's severity. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3064,7 +3416,7 @@ "AnomalyReportedTimeRange": { "target": "com.amazonaws.devopsguru#AnomalyReportedTimeRange", "traits": { - "smithy.api#documentation": "\n\t\t\tA AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
\n\t\t\tAn AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
The severity of the anomaly.
" + "smithy.api#documentation": "The severity of the anomaly. The severity of anomalies that generate \n\tan insight determine that insight's severity. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3129,7 +3481,7 @@ "AnomalyReportedTimeRange": { "target": "com.amazonaws.devopsguru#AnomalyReportedTimeRange", "traits": { - "smithy.api#documentation": "\n\t\t\tA AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
\n\t\t\tAn AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
The severity of the proactive insight.
" + "smithy.api#documentation": "The severity of the insight. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3226,7 +3578,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#InsightSeverity", "traits": { - "smithy.api#documentation": "The severity of the proactive insight.
" + "smithy.api#documentation": "The severity of the insight. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3249,6 +3601,12 @@ "traits": { "smithy.api#documentation": "A collection of the names of Amazon Web Services services.
" } + }, + "AssociatedResourceArns": { + "target": "com.amazonaws.devopsguru#AssociatedResourceArns", + "traits": { + "smithy.api#documentation": "The Amazon Resource Names (ARNs) \n\tof the Amazon Web Services resources that generated this insight.
" + } } }, "traits": { @@ -3291,7 +3649,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#InsightSeverity", "traits": { - "smithy.api#documentation": "An array of severity values used to search for insights.
" + "smithy.api#documentation": "An array of severity values used to search for insights. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3314,7 +3672,7 @@ } }, "traits": { - "smithy.api#documentation": "Details about a proactive insight. This object is returned by\n\t\t\t\tDescribeInsight
.
Details about a proactive insight. This object is returned by\n\t\t\tDescribeInsight
.
The severity of the anomaly.
" + "smithy.api#documentation": "The severity of the anomaly. The severity of anomalies that generate \n\tan insight determine that insight's severity. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3408,7 +3766,7 @@ "AnomalyReportedTimeRange": { "target": "com.amazonaws.devopsguru#AnomalyReportedTimeRange", "traits": { - "smithy.api#documentation": "\n\t\t\tA AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
\n\t\t\tAn AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
The type of the reactive anomaly. It can be one of the following types.
\n\t\n\t \t\t CAUSAL
- the anomaly can cause a new insight.
\n\t \t\t CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
The name of the reactive anomaly.
" + } + }, + "Description": { + "target": "com.amazonaws.devopsguru#AnomalyDescription", + "traits": { + "smithy.api#documentation": "A description of the reactive anomaly.
" + } + }, + "CausalAnomalyId": { + "target": "com.amazonaws.devopsguru#AnomalyId", + "traits": { + "smithy.api#documentation": "The ID of the causal anomaly that is associated with this \n reactive anomaly. The ID of a `CAUSAL` anomaly is always `NULL`.
" + } + }, + "AnomalyResources": { + "target": "com.amazonaws.devopsguru#AnomalyResources", + "traits": { + "smithy.api#documentation": "The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru.
" + } } }, "traits": { @@ -3443,7 +3831,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#AnomalySeverity", "traits": { - "smithy.api#documentation": "The severity of the reactive anomaly.
" + "smithy.api#documentation": "The severity of the anomaly. The severity of anomalies that generate \n\tan insight determine that insight's severity. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3458,7 +3846,7 @@ "AnomalyReportedTimeRange": { "target": "com.amazonaws.devopsguru#AnomalyReportedTimeRange", "traits": { - "smithy.api#documentation": "\n\t\t\tA AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
\n\t\t\tAn AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.\n\t\t
The type of the reactive anomaly. It can be one of the following types.
\n\t\n\t \t\t CAUSAL
- the anomaly can cause a new insight.
\n\t \t\t CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
The name of the reactive anomaly.
" + } + }, + "Description": { + "target": "com.amazonaws.devopsguru#AnomalyDescription", + "traits": { + "smithy.api#documentation": "A description of the reactive anomaly.
" + } + }, + "CausalAnomalyId": { + "target": "com.amazonaws.devopsguru#AnomalyId", + "traits": { + "smithy.api#documentation": "The ID of the causal anomaly that is associated with this \n reactive anomaly. The ID of a `CAUSAL` anomaly is always `NULL`.
" + } + }, + "AnomalyResources": { + "target": "com.amazonaws.devopsguru#AnomalyResources", + "traits": { + "smithy.api#documentation": "The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru.
" + } } }, "traits": { @@ -3499,7 +3917,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#InsightSeverity", "traits": { - "smithy.api#documentation": "The severity of a reactive insight.
" + "smithy.api#documentation": "The severity of the insight. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3543,7 +3961,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#InsightSeverity", "traits": { - "smithy.api#documentation": "The severity of a reactive insight.
" + "smithy.api#documentation": "The severity of the insight. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3563,6 +3981,12 @@ "traits": { "smithy.api#documentation": "A collection of the names of Amazon Web Services services.
" } + }, + "AssociatedResourceArns": { + "target": "com.amazonaws.devopsguru#AssociatedResourceArns", + "traits": { + "smithy.api#documentation": "The Amazon Resource Names (ARNs) \n\tof the Amazon Web Services resources that generated this insight.
" + } } }, "traits": { @@ -3587,7 +4011,7 @@ "AccountId": { "target": "com.amazonaws.devopsguru#AwsAccountId", "traits": { - "smithy.api#documentation": "The ID of the Amazon Web Services account.
" + "smithy.api#documentation": "The ID of the Amazon Web Services account.
" } }, "OrganizationalUnitId": { @@ -3605,7 +4029,7 @@ "Severity": { "target": "com.amazonaws.devopsguru#InsightSeverity", "traits": { - "smithy.api#documentation": "An array of severity values used to search for insights.
" + "smithy.api#documentation": "An array of severity values used to search for insights. For more information, see \n\tUnderstanding \n\tinsight severities in the Amazon DevOps Guru User Guide.
" } }, "Status": { @@ -3625,7 +4049,7 @@ } }, "traits": { - "smithy.api#documentation": "Information about a reactive insight. This object is returned by\n\t\t\t\tDescribeInsight
.
Information about a reactive insight. This object is returned by\n\t\t\tDescribeInsight
.
Information about where the anomalous behavior related the recommendation was found.\n\t\t\tFor example, details in Amazon CloudWatch metrics.
" } + }, + "AnomalyId": { + "target": "com.amazonaws.devopsguru#AnomalyId", + "traits": { + "smithy.api#documentation": "The ID of an anomaly that generated the insight with this recommendation.
" + } } }, "traits": { @@ -3728,7 +4158,7 @@ "Type": { "target": "com.amazonaws.devopsguru#RecommendationRelatedAnomalyResourceType", "traits": { - "smithy.api#documentation": "The type of the resource.
" + "smithy.api#documentation": " The type of the resource. Resource types take the same form that is \n\t\t\tused by Amazon Web Services CloudFormation resource type identifiers, service-provider::service-name::data-type-name
. \n\t\t\tFor example, AWS::RDS::DBCluster
. For more information, see \n\t\t\tAmazon Web Services resource and \n\t\t\t\tproperty types reference in the Amazon Web Services CloudFormation User Guide.
An array of the names of Amazon Web Services CloudFormation stacks. The stacks define Amazon Web Services resources that\n\t\t\tDevOps Guru analyzes. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" } + }, + "Tags": { + "target": "com.amazonaws.devopsguru#TagCollections", + "traits": { + "smithy.api#documentation": "The Amazon Web Services tags that are used by resources in the resource collection.
\n \tTags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support\n \t\ttagging, so you can assign the same tag to resources from different services to indicate\n \t\tthat the resources are related. For example, you can assign the same tag to an Amazon DynamoDB\n \t\ttable resource that you assign to an Lambda function. For more information about\n \t\tusing tags, see the Tagging\n \t\t\tbest practices whitepaper.
\n \tEach Amazon Web Services tag has two parts.
\n \tA tag key (for example, CostCenter
,\n \t\t\t\tEnvironment
, Project
, or Secret
). Tag\n \t\t\t\tkeys are case-sensitive.
An optional field known as a tag value (for example,\n \t\t\t\t111122223333
, Production
, or a team\n \t\t\t\tname). Omitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive.
Together these are known as key-value pairs.
\n \tThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
A collection of Amazon Web Services resources supported by DevOps Guru.\n\t\t\tThe one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" + "smithy.api#documentation": "A collection of Amazon Web Services resources supported by DevOps Guru.\n\t\t\tThe two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" } }, "com.amazonaws.devopsguru#ResourceCollectionFilter": { @@ -3949,6 +4394,12 @@ "traits": { "smithy.api#documentation": "Information about Amazon Web Services CloudFormation stacks. You can use up to 500\n\t\t\tstacks to specify which Amazon Web Services resources in your account to analyze. For more\n\t\t\tinformation, see Stacks in the\n\t\t\t\tAmazon Web Services CloudFormation User Guide.
" } + }, + "Tags": { + "target": "com.amazonaws.devopsguru#TagCollectionFilters", + "traits": { + "smithy.api#documentation": "The Amazon Web Services tags used to filter the resources in the resource collection.
\n \tTags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support\n \t\ttagging, so you can assign the same tag to resources from different services to indicate\n \t\tthat the resources are related. For example, you can assign the same tag to an Amazon DynamoDB\n \t\ttable resource that you assign to an Lambda function. For more information about\n \t\tusing tags, see the Tagging\n \t\t\tbest practices whitepaper.
\n \tEach Amazon Web Services tag has two parts.
\n \tA tag key (for example, CostCenter
,\n \t\t\t\tEnvironment
, Project
, or Secret
). Tag\n \t\t\t\tkeys are case-sensitive.
An optional field known as a tag value (for example,\n \t\t\t\t111122223333
, Production
, or a team\n \t\t\t\tname). Omitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive.
Together these are known as key-value pairs.
\n \tThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
Returns a list of insights in your organization. You can specify which insights are\n\t\t\treturned by their start time, one or more statuses (ONGOING
,\n\t\t\t\tCLOSED
, and CLOSED
), one or more severities\n\t\t\t\t(LOW
, MEDIUM
, and HIGH
), and type\n\t\t\t\t(REACTIVE
or PROACTIVE
).
Use the Filters
parameter to specify status and severity search\n\t\t\tparameters. Use the Type
parameter to specify REACTIVE
or\n\t\t\t\tPROACTIVE
in your search.
Returns a list of insights in your organization. You can specify which insights are\n\t\t\treturned by their start time, one or more statuses (ONGOING
,\n\t\t\tCLOSED
, and CLOSED
), one or more severities\n\t\t\t(LOW
, MEDIUM
, and HIGH
), and type\n\t\t\t(REACTIVE
or PROACTIVE
).
Use the Filters
parameter to specify status and severity search\n\t\t\tparameters. Use the Type
parameter to specify REACTIVE
or\n\t\t\tPROACTIVE
in your search.
The type of insights you are searching for (REACTIVE
or\n\t\t\t\tPROACTIVE
).
The type of insights you are searching for (REACTIVE
or\n\t\t\tPROACTIVE
).
A time range used to specify when the behavior of an insight or anomaly started.\n\t\t
" } }, + "com.amazonaws.devopsguru#TagCollection": { + "type": "structure", + "members": { + "AppBoundaryKey": { + "target": "com.amazonaws.devopsguru#AppBoundaryKey", + "traits": { + "smithy.api#documentation": "An Amazon Web Services tag key that is used to identify the Amazon Web Services resources that \n \tDevOps Guru analyzes. All Amazon Web Services resources in your account and Region tagged with this key make \n up your DevOps Guru application and analysis boundary.
\nThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
The values in an Amazon Web Services tag collection.
\n \tThe tag's value is an optional field used to associate a string with \n\t\t\t\t\tthe tag key (for example, 111122223333
, Production
, or a team\n \t\t\t\tname). The key and value are the tag's key pair. \n \t\t\t\tOmitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive. You can specify a maximum of 256 characters for a tag value.
A collection of Amazon Web Services stags.
\n \tTags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support\n \t\ttagging, so you can assign the same tag to resources from different services to indicate\n \t\tthat the resources are related. For example, you can assign the same tag to an Amazon DynamoDB\n \t\ttable resource that you assign to an Lambda function. For more information about\n \t\tusing tags, see the Tagging\n \t\t\tbest practices whitepaper.
\n \tEach Amazon Web Services tag has two parts.
\n \tA tag key (for example, CostCenter
,\n \t\t\t\tEnvironment
, Project
, or Secret
). Tag\n \t\t\t\tkeys are case-sensitive.
An optional field known as a tag value (for example,\n \t\t\t\t111122223333
, Production
, or a team\n \t\t\t\tname). Omitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive.
Together these are known as key-value pairs.
\n \tThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
An Amazon Web Services tag key that is used to identify the Amazon Web Services resources that \n \tDevOps Guru analyzes. All Amazon Web Services resources in your account and Region tagged with this key make \n up your DevOps Guru application and analysis boundary.
\nThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
The values in an Amazon Web Services tag collection.
\n \tThe tag's value is an optional field used to associate a string with \n\t\t\t\t\tthe tag key (for example, 111122223333
, Production
, or a team\n \t\t\t\tname). The key and value are the tag's key pair. \n \t\t\t\tOmitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive. You can specify a maximum of 256 characters for a tag value.
A collection of Amazon Web Services tags used to filter insights. This is used to return insights generated from \n only resources that contain the tags in the tag collection.
" + } + }, + "com.amazonaws.devopsguru#TagCollectionFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#TagCollectionFilter" + } + }, + "com.amazonaws.devopsguru#TagCollections": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#TagCollection" + } + }, + "com.amazonaws.devopsguru#TagCostEstimationResourceCollectionFilter": { + "type": "structure", + "members": { + "AppBoundaryKey": { + "target": "com.amazonaws.devopsguru#AppBoundaryKey", + "traits": { + "smithy.api#documentation": "An Amazon Web Services tag key that is used to identify the Amazon Web Services resources that \n \tDevOps Guru analyzes. All Amazon Web Services resources in your account and Region tagged with this key make \n up your DevOps Guru application and analysis boundary.
\nThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
The values in an Amazon Web Services tag collection.
\n \tThe tag's value is an optional field used to associate a string with \n\t\t\t\t\tthe tag key (for example, 111122223333
, Production
, or a team\n \t\t\t\tname). The key and value are the tag's key pair. \n \t\t\t\tOmitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive. You can specify a maximum of 256 characters for a tag value.
Information about a collection of Amazon Web Services resources that are identified by an \n \t\tAmazon Web Services tag. This collection of resources is used to create a monthly cost estimate\n \t\tfor DevOps Guru to analyze Amazon Web Services resources. The maximum number of tags you can specify for a\n \t\tcost estimate is one. The estimate created is for the cost to analyze the Amazon Web Services\n \t\tresources defined by the tag. For more information, see Stacks in the\n \t\tAmazon Web Services CloudFormation User Guide.
" + } + }, + "com.amazonaws.devopsguru#TagCostEstimationResourceCollectionFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#TagCostEstimationResourceCollectionFilter" + } + }, + "com.amazonaws.devopsguru#TagHealth": { + "type": "structure", + "members": { + "AppBoundaryKey": { + "target": "com.amazonaws.devopsguru#AppBoundaryKey", + "traits": { + "smithy.api#documentation": "An Amazon Web Services tag key that is used to identify the Amazon Web Services resources that \n \tDevOps Guru analyzes. All Amazon Web Services resources in your account and Region tagged with this key make \n up your DevOps Guru application and analysis boundary.
\nThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
The value in an Amazon Web Services tag.
\n \tThe tag's value is an optional field used to associate a string with \n\t\t\t\t\tthe tag key (for example, 111122223333
, Production
, or a team\n \t\t\t\tname). The key and value are the tag's key pair. \n \t\t\t\tOmitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive. You can specify a maximum of 256 characters for a tag value.
Information about the health of the Amazon Web Services resources in your account that are\n\t\t\tspecified by an Amazon Web Services tag, including the number of open proactive, open reactive\n\t\t\tinsights, and the Mean Time to Recover (MTTR) of closed insights.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about the health of Amazon Web Services resources in your account that are specified by\n \t\tan Amazon Web Services tag key.
" + } + }, + "com.amazonaws.devopsguru#TagHealths": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#TagHealth" + } + }, + "com.amazonaws.devopsguru#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*|\\*)$" + } + }, + "com.amazonaws.devopsguru#TagValues": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#TagValue" + } + }, "com.amazonaws.devopsguru#ThrottlingException": { "type": "structure", "members": { @@ -4788,7 +5378,7 @@ } ], "traits": { - "smithy.api#documentation": "Updates the collection of resources that DevOps Guru analyzes.\n\t\t\tThe one type of Amazon Web Services resource collection supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be configured to analyze \n \tonly the Amazon Web Services resources that are defined in the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks. This method also creates the IAM role required for\n\t\t\tyou to use DevOps Guru.
", + "smithy.api#documentation": "Updates the collection of resources that DevOps Guru analyzes.\n\t\t\tThe two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and \n Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze \n \tthe Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks. This method also creates the IAM role required for\n\t\t\tyou to use DevOps Guru.
", "smithy.api#http": { "method": "PUT", "uri": "/resource-collections", @@ -4817,7 +5407,13 @@ "CloudFormation": { "target": "com.amazonaws.devopsguru#UpdateCloudFormationCollectionFilter", "traits": { - "smithy.api#documentation": "An collection of Amazon Web Services CloudFormation stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" + "smithy.api#documentation": "A collection of Amazon Web Services CloudFormation stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks.
" + } + }, + "Tags": { + "target": "com.amazonaws.devopsguru#UpdateTagCollectionFilters", + "traits": { + "smithy.api#documentation": "The updated Amazon Web Services tags used to filter the resources in the resource collection.
\n \tTags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support\n \t\ttagging, so you can assign the same tag to resources from different services to indicate\n \t\tthat the resources are related. For example, you can assign the same tag to an Amazon DynamoDB\n \t\ttable resource that you assign to an Lambda function. For more information about\n \t\tusing tags, see the Tagging\n \t\t\tbest practices whitepaper.
\n \tEach Amazon Web Services tag has two parts.
\n \tA tag key (for example, CostCenter
,\n \t\t\t\tEnvironment
, Project
, or Secret
). Tag\n \t\t\t\tkeys are case-sensitive.
An optional field known as a tag value (for example,\n \t\t\t\t111122223333
, Production
, or a team\n \t\t\t\tname). Omitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive.
Together these are known as key-value pairs.
\n \tThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
An Amazon Web Services tag key that is used to identify the Amazon Web Services resources that \n \tDevOps Guru analyzes. All Amazon Web Services resources in your account and Region tagged with this key make \n up your DevOps Guru application and analysis boundary.
\nThe string used for a key in a tag that you use to define your resource coverage must begin with the\n\t\t\tprefix Devops-guru-
. The tag key might be\n\t\t\tDevops-guru-deployment-application
or\n\t\t\tDevops-guru-rds-application
. While keys are case-sensitive, the\n\t\t\tcase of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a\n\t\t\tkey named devops-guru-rds
and a key named\n\t\t\tDevOps-Guru-RDS
. Possible key/value pairs in your\n\t\t\tapplication might be Devops-Guru-production-application/RDS
or\n\t\t\tDevops-Guru-production-application/containers
.
The values in an Amazon Web Services tag collection.
\n \tThe tag's value is an optional field used to associate a string with \n\t\t\t\t\tthe tag key (for example, 111122223333
, Production
, or a team\n \t\t\t\tname). The key and value are the tag's key pair. \n \t\t\t\tOmitting the tag value is the same as using an empty\n \t\t\t\tstring. Like tag keys, tag values are\n \t\t\t\tcase-sensitive. You can specify a maximum of 256 characters for a tag value.
A new collection of Amazon Web Services resources that are defined by an Amazon Web Services tag or tag \n key/value pair.
" + } + }, + "com.amazonaws.devopsguru#UpdateTagCollectionFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#UpdateTagCollectionFilter" + } + }, + "com.amazonaws.devopsguru#UpdateTagValues": { + "type": "list", + "member": { + "target": "com.amazonaws.devopsguru#TagValue" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + } + } + }, "com.amazonaws.devopsguru#UuidNextToken": { "type": "string", "traits": { @@ -5006,6 +5642,14 @@ { "value": "OTHER", "name": "OTHER" + }, + { + "value": "INVALID_PARAMETER_COMBINATION", + "name": "INVALID_PARAMETER_COMBINATION" + }, + { + "value": "PARAMETER_INCONSISTENT_WITH_SERVICE_STATE", + "name": "PARAMETER_INCONSISTENT_WITH_SERVICE_STATE" } ] } diff --git a/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json b/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json index 09061bdf624..09aafecca71 100644 --- a/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json +++ b/codegen/sdk-codegen/aws-models/directconnect.2012-10-25.json @@ -881,7 +881,7 @@ "agreementName": { "target": "com.amazonaws.directconnect#AgreementName", "traits": { - "smithy.api#documentation": "\n The name of the customer agreement.\n
" + "smithy.api#documentation": "\n\n The name of the customer agreement.\n\n
" } } } @@ -2938,7 +2938,7 @@ "virtualInterfaceName": { "target": "com.amazonaws.directconnect#VirtualInterfaceName", "traits": { - "smithy.api#documentation": "The name of the virtual interface assigned by the customer network.
" + "smithy.api#documentation": "Provides the details about a virtual interface's router.
" } } } @@ -3527,6 +3527,12 @@ "smithy.api#error": "client" } }, + "com.amazonaws.directconnect#EnableSiteLink": { + "type": "boolean", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.directconnect#EncryptionMode": { "type": "string" }, @@ -4286,6 +4292,12 @@ "traits": { "smithy.api#documentation": "The tags associated with the private virtual interface.
" } + }, + "enableSiteLink": { + "target": "com.amazonaws.directconnect#EnableSiteLink", + "traits": { + "smithy.api#documentation": "Indicates whether to enable or disable SiteLink.
" + } } }, "traits": { @@ -4549,6 +4561,12 @@ "traits": { "smithy.api#documentation": "The tags associated with the transitive virtual interface.
" } + }, + "enableSiteLink": { + "target": "com.amazonaws.directconnect#EnableSiteLink", + "traits": { + "smithy.api#documentation": "Indicates whether to enable or disable SiteLink.
" + } } }, "traits": { @@ -4638,6 +4656,24 @@ }, "com.amazonaws.directconnect#OvertureService": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Direct Connect", + "arnNamespace": "directconnect", + "cloudFormationName": "DirectConnect", + "cloudTrailEventSource": "directconnect.amazonaws.com", + "endpointPrefix": "directconnect" + }, + "aws.auth#sigv4": { + "name": "directconnect" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Direct Connect links your internal network to an Direct Connect location over a standard Ethernet fiber-optic cable. \n One end of the cable is connected to your router, the other to an Direct Connect router. With this connection\n in place, you can create virtual interfaces directly to the Amazon Web Services Cloud (for example, to Amazon EC2 \n and Amazon S3) and to Amazon VPC, bypassing Internet service providers in your network path. A \n connection provides access to all Amazon Web Services Regions except the China (Beijing) and (China) Ningxia Regions. \n Amazon Web Services resources in the China Regions can only be accessed through locations associated with those Regions.
", + "smithy.api#title": "AWS Direct Connect", + "smithy.api#xmlNamespace": { + "uri": "http://directconnect.amazonaws.com/doc/2012-10-25/" + } + }, "version": "2012-10-25", "operations": [ { @@ -4829,25 +4865,7 @@ { "target": "com.amazonaws.directconnect#UpdateVirtualInterfaceAttributes" } - ], - "traits": { - "aws.api#service": { - "sdkId": "Direct Connect", - "arnNamespace": "directconnect", - "cloudFormationName": "DirectConnect", - "cloudTrailEventSource": "directconnect.amazonaws.com", - "endpointPrefix": "directconnect" - }, - "aws.auth#sigv4": { - "name": "directconnect" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Direct Connect links your internal network to an Direct Connect location over a standard Ethernet fiber-optic cable. \n One end of the cable is connected to your router, the other to an Direct Connect router. With this connection\n in place, you can create virtual interfaces directly to the Amazon Web Services Cloud (for example, to Amazon EC2 \n and Amazon S3) and to Amazon VPC, bypassing Internet service providers in your network path. A \n connection provides access to all Amazon Web Services Regions except the China (Beijing) and (China) Ningxia Regions. \n Amazon Web Services resources in the China Regions can only be accessed through locations associated with those Regions.
", - "smithy.api#title": "AWS Direct Connect", - "smithy.api#xmlNamespace": { - "uri": "http://directconnect.amazonaws.com/doc/2012-10-25/" - } - } + ] }, "com.amazonaws.directconnect#OwnerAccount": { "type": "string" @@ -4993,6 +5011,12 @@ "com.amazonaws.directconnect#SecretARN": { "type": "string" }, + "com.amazonaws.directconnect#SiteLinkEnabled": { + "type": "boolean", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.directconnect#Software": { "type": "string" }, @@ -5513,6 +5537,18 @@ "traits": { "smithy.api#documentation": "The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
" } + }, + "enableSiteLink": { + "target": "com.amazonaws.directconnect#EnableSiteLink", + "traits": { + "smithy.api#documentation": "Indicates whether to enable or disable SiteLink.
" + } + }, + "virtualInterfaceName": { + "target": "com.amazonaws.directconnect#VirtualInterfaceName", + "traits": { + "smithy.api#documentation": "The name of the virtual private interface.
" + } } } }, @@ -5723,6 +5759,12 @@ "traits": { "smithy.api#documentation": "The tags associated with the virtual interface.
" } + }, + "siteLinkEnabled": { + "target": "com.amazonaws.directconnect#SiteLinkEnabled", + "traits": { + "smithy.api#documentation": "Indicates whether SiteLink is enabled.
" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/dynamodb.2012-08-10.json b/codegen/sdk-codegen/aws-models/dynamodb.2012-08-10.json index dae7d6b7301..5b6f3724d43 100644 --- a/codegen/sdk-codegen/aws-models/dynamodb.2012-08-10.json +++ b/codegen/sdk-codegen/aws-models/dynamodb.2012-08-10.json @@ -1822,6 +1822,12 @@ "traits": { "smithy.api#documentation": "Replica-specific global secondary index settings.
" } + }, + "TableClassOverride": { + "target": "com.amazonaws.dynamodb#TableClass", + "traits": { + "smithy.api#documentation": "Replica-specific table class. If not specified, uses the source table's\n table class.
" + } } }, "traits": { @@ -1922,6 +1928,12 @@ "traits": { "smithy.api#documentation": "A list of key-value pairs to label the table. For more information, see Tagging\n for DynamoDB.
" } + }, + "TableClass": { + "target": "com.amazonaws.dynamodb#TableClass", + "traits": { + "smithy.api#documentation": "The table class of the new table. Valid values are STANDARD
and\n STANDARD_INFREQUENT_ACCESS
.
The time at which the replica was first detected as inaccessible. To determine cause\n of inaccessibility check the ReplicaStatus
property.
Replica global secondary index settings for the global table.
" } + }, + "ReplicaTableClassSummary": { + "target": "com.amazonaws.dynamodb#TableClassSummary" } }, "traits": { @@ -6611,6 +6629,12 @@ "traits": { "smithy.api#documentation": "Represents the settings of a global secondary index for a global table that will be\n modified.
" } + }, + "ReplicaTableClass": { + "target": "com.amazonaws.dynamodb#TableClass", + "traits": { + "smithy.api#documentation": "Replica-specific table class. If not specified, uses the source table's\n table class.
" + } } }, "traits": { @@ -7725,6 +7749,41 @@ "smithy.api#documentation": "Represents the auto scaling configuration for a global table.
" } }, + "com.amazonaws.dynamodb#TableClass": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "STANDARD", + "name": "STANDARD" + }, + { + "value": "STANDARD_INFREQUENT_ACCESS", + "name": "STANDARD_INFREQUENT_ACCESS" + } + ] + } + }, + "com.amazonaws.dynamodb#TableClassSummary": { + "type": "structure", + "members": { + "TableClass": { + "target": "com.amazonaws.dynamodb#TableClass", + "traits": { + "smithy.api#documentation": "The table class of the specified table. Valid values are STANDARD
and\n STANDARD_INFREQUENT_ACCESS
.
The date and time at which the table class was last updated.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details of the table class.
" + } + }, "com.amazonaws.dynamodb#TableCreationDateTime": { "type": "timestamp" }, @@ -7856,6 +7915,12 @@ "traits": { "smithy.api#documentation": "Contains information about the table archive.
" } + }, + "TableClassSummary": { + "target": "com.amazonaws.dynamodb#TableClassSummary", + "traits": { + "smithy.api#documentation": "Contains details of the table class.
" + } } }, "traits": { @@ -8986,6 +9051,12 @@ "traits": { "smithy.api#documentation": "Replica-specific global secondary index settings.
" } + }, + "TableClassOverride": { + "target": "com.amazonaws.dynamodb#TableClass", + "traits": { + "smithy.api#documentation": "Replica-specific table class. If not specified, uses the source table's\n table class.
" + } } }, "traits": { @@ -9075,6 +9146,12 @@ "traits": { "smithy.api#documentation": "A list of replica update actions (create, delete, or update) for the table.
\nThis property only applies to Version\n 2019.11.21 of global tables.
\nThe table class of the table to be updated. Valid values are STANDARD
and\n STANDARD_INFREQUENT_ACCESS
.
The ID of the Network Access Scope analysis.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysisId" + } + }, + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeId", + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScopeId" + } + }, + "FindingId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "FindingId", + "smithy.api#documentation": "The ID of the finding.
", + "smithy.api#xmlName": "findingId" + } + }, + "FindingComponents": { + "target": "com.amazonaws.ec2#PathComponentList", + "traits": { + "aws.protocols#ec2QueryName": "FindingComponentSet", + "smithy.api#documentation": "The finding components.
", + "smithy.api#xmlName": "findingComponentSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a finding for a Network Access Scope.
" + } + }, + "com.amazonaws.ec2#AccessScopeAnalysisFindingList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#AccessScopeAnalysisFinding", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#AccessScopePath": { + "type": "structure", + "members": { + "Source": { + "target": "com.amazonaws.ec2#PathStatement", + "traits": { + "aws.protocols#ec2QueryName": "Source", + "smithy.api#documentation": "The source.
", + "smithy.api#xmlName": "source" + } + }, + "Destination": { + "target": "com.amazonaws.ec2#PathStatement", + "traits": { + "aws.protocols#ec2QueryName": "Destination", + "smithy.api#documentation": "The destination.
", + "smithy.api#xmlName": "destination" + } + }, + "ThroughResources": { + "target": "com.amazonaws.ec2#ThroughResourcesStatementList", + "traits": { + "aws.protocols#ec2QueryName": "ThroughResourceSet", + "smithy.api#documentation": "The through resources.
", + "smithy.api#xmlName": "throughResourceSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a path.
" + } + }, + "com.amazonaws.ec2#AccessScopePathList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#AccessScopePath", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#AccessScopePathListRequest": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#AccessScopePathRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#AccessScopePathRequest": { + "type": "structure", + "members": { + "Source": { + "target": "com.amazonaws.ec2#PathStatementRequest", + "traits": { + "smithy.api#documentation": "The source.
" + } + }, + "Destination": { + "target": "com.amazonaws.ec2#PathStatementRequest", + "traits": { + "smithy.api#documentation": "The destination.
" + } + }, + "ThroughResources": { + "target": "com.amazonaws.ec2#ThroughResourcesStatementRequestList", + "traits": { + "smithy.api#documentation": "The through resources.
", + "smithy.api#xmlName": "ThroughResource" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a path.
" + } + }, "com.amazonaws.ec2#AccountAttribute": { "type": "structure", "members": { @@ -668,6 +794,32 @@ ] } }, + "com.amazonaws.ec2#AddIpamOperatingRegion": { + "type": "structure", + "members": { + "RegionName": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The name of the operating Region.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Add an operating Region to an IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only\n discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
\nFor more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#AddIpamOperatingRegionSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#AddIpamOperatingRegion" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, "com.amazonaws.ec2#AddPrefixListEntries": { "type": "list", "member": { @@ -872,6 +1024,21 @@ ] } }, + "com.amazonaws.ec2#AddressFamily": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ipv4", + "name": "ipv4" + }, + { + "value": "ipv6", + "name": "ipv6" + } + ] + } + }, "com.amazonaws.ec2#AddressList": { "type": "list", "member": { @@ -1182,6 +1349,87 @@ "smithy.api#documentation": "Contains the output of AllocateHosts.
" } }, + "com.amazonaws.ec2#AllocateIpamPoolCidr": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#AllocateIpamPoolCidrRequest" + }, + "output": { + "target": "com.amazonaws.ec2#AllocateIpamPoolCidrResult" + }, + "traits": { + "smithy.api#documentation": "Allocate a CIDR from an IPAM pool. In IPAM, an allocation is a CIDR assignment from an IPAM pool to another resource or IPAM pool. For more information, see Allocate CIDRs in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#AllocateIpamPoolCidrRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool from which you would like to allocate a CIDR.
", + "smithy.api#required": {} + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The CIDR you would like to allocate from the IPAM pool. Note the following:
\nIf there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
\nIf the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
\nPossible values: Any available IPv4 or IPv6 CIDR.
" + } + }, + "NetmaskLength": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:
\nIf there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
\nIf the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
\nPossible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
" + } + }, + "ClientToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
", + "smithy.api#idempotencyToken": {} + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "A description for the allocation.
" + } + }, + "PreviewNextCidr": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A preview of the next available CIDR in a pool.
" + } + }, + "DisallowedCidrs": { + "target": "com.amazonaws.ec2#IpamPoolAllocationDisallowedCidrs", + "traits": { + "smithy.api#documentation": "Exclude a particular CIDR range from being returned by the pool.
", + "smithy.api#xmlName": "DisallowedCidr" + } + } + } + }, + "com.amazonaws.ec2#AllocateIpamPoolCidrResult": { + "type": "structure", + "members": { + "IpamPoolAllocation": { + "target": "com.amazonaws.ec2#IpamPoolAllocation", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolAllocation", + "smithy.api#documentation": "Information about the allocation created.
", + "smithy.api#xmlName": "ipamPoolAllocation" + } + } + } + }, "com.amazonaws.ec2#AllocationId": { "type": "string" }, @@ -1387,6 +1635,9 @@ { "target": "com.amazonaws.ec2#AllocateHosts" }, + { + "target": "com.amazonaws.ec2#AllocateIpamPoolCidr" + }, { "target": "com.amazonaws.ec2#ApplySecurityGroupsToClientVpnTargetNetwork" }, @@ -1549,6 +1800,15 @@ { "target": "com.amazonaws.ec2#CreateInternetGateway" }, + { + "target": "com.amazonaws.ec2#CreateIpam" + }, + { + "target": "com.amazonaws.ec2#CreateIpamPool" + }, + { + "target": "com.amazonaws.ec2#CreateIpamScope" + }, { "target": "com.amazonaws.ec2#CreateKeyPair" }, @@ -1576,6 +1836,9 @@ { "target": "com.amazonaws.ec2#CreateNetworkAclEntry" }, + { + "target": "com.amazonaws.ec2#CreateNetworkInsightsAccessScope" + }, { "target": "com.amazonaws.ec2#CreateNetworkInsightsPath" }, @@ -1588,6 +1851,9 @@ { "target": "com.amazonaws.ec2#CreatePlacementGroup" }, + { + "target": "com.amazonaws.ec2#CreatePublicIpv4Pool" + }, { "target": "com.amazonaws.ec2#CreateReplaceRootVolumeTask" }, @@ -1726,6 +1992,15 @@ { "target": "com.amazonaws.ec2#DeleteInternetGateway" }, + { + "target": "com.amazonaws.ec2#DeleteIpam" + }, + { + "target": "com.amazonaws.ec2#DeleteIpamPool" + }, + { + "target": "com.amazonaws.ec2#DeleteIpamScope" + }, { "target": "com.amazonaws.ec2#DeleteKeyPair" }, @@ -1753,6 +2028,12 @@ { "target": "com.amazonaws.ec2#DeleteNetworkAclEntry" }, + { + "target": "com.amazonaws.ec2#DeleteNetworkInsightsAccessScope" + }, + { + "target": "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeAnalysis" + }, { "target": "com.amazonaws.ec2#DeleteNetworkInsightsAnalysis" }, @@ -1768,6 +2049,9 @@ { "target": "com.amazonaws.ec2#DeletePlacementGroup" }, + { + "target": "com.amazonaws.ec2#DeletePublicIpv4Pool" + }, { "target": "com.amazonaws.ec2#DeleteQueuedReservedInstances" }, @@ -1864,6 +2148,12 @@ { "target": "com.amazonaws.ec2#DeprovisionByoipCidr" }, + { + "target": "com.amazonaws.ec2#DeprovisionIpamPoolCidr" + }, + { + "target": "com.amazonaws.ec2#DeprovisionPublicIpv4PoolCidr" + }, { "target": "com.amazonaws.ec2#DeregisterImage" }, @@ -2026,6 +2316,15 @@ { "target": "com.amazonaws.ec2#DescribeInternetGateways" }, + { + "target": "com.amazonaws.ec2#DescribeIpamPools" + }, + { + "target": "com.amazonaws.ec2#DescribeIpams" + }, + { + "target": "com.amazonaws.ec2#DescribeIpamScopes" + }, { "target": "com.amazonaws.ec2#DescribeIpv6Pools" }, @@ -2068,6 +2367,12 @@ { "target": "com.amazonaws.ec2#DescribeNetworkAcls" }, + { + "target": "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopeAnalyses" + }, + { + "target": "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopes" + }, { "target": "com.amazonaws.ec2#DescribeNetworkInsightsAnalyses" }, @@ -2281,6 +2586,9 @@ { "target": "com.amazonaws.ec2#DisableImageDeprecation" }, + { + "target": "com.amazonaws.ec2#DisableIpamOrganizationAdminAccount" + }, { "target": "com.amazonaws.ec2#DisableSerialConsoleAccess" }, @@ -2338,6 +2646,9 @@ { "target": "com.amazonaws.ec2#EnableImageDeprecation" }, + { + "target": "com.amazonaws.ec2#EnableIpamOrganizationAdminAccount" + }, { "target": "com.amazonaws.ec2#EnableSerialConsoleAccess" }, @@ -2407,6 +2718,18 @@ { "target": "com.amazonaws.ec2#GetInstanceTypesFromInstanceRequirements" }, + { + "target": "com.amazonaws.ec2#GetIpamAddressHistory" + }, + { + "target": "com.amazonaws.ec2#GetIpamPoolAllocations" + }, + { + "target": "com.amazonaws.ec2#GetIpamPoolCidrs" + }, + { + "target": "com.amazonaws.ec2#GetIpamResourceCidrs" + }, { "target": "com.amazonaws.ec2#GetLaunchTemplateData" }, @@ -2416,6 +2739,12 @@ { "target": "com.amazonaws.ec2#GetManagedPrefixListEntries" }, + { + "target": "com.amazonaws.ec2#GetNetworkInsightsAccessScopeAnalysisFindings" + }, + { + "target": "com.amazonaws.ec2#GetNetworkInsightsAccessScopeContent" + }, { "target": "com.amazonaws.ec2#GetPasswordData" }, @@ -2533,6 +2862,18 @@ { "target": "com.amazonaws.ec2#ModifyInstancePlacement" }, + { + "target": "com.amazonaws.ec2#ModifyIpam" + }, + { + "target": "com.amazonaws.ec2#ModifyIpamPool" + }, + { + "target": "com.amazonaws.ec2#ModifyIpamResourceCidr" + }, + { + "target": "com.amazonaws.ec2#ModifyIpamScope" + }, { "target": "com.amazonaws.ec2#ModifyLaunchTemplate" }, @@ -2626,9 +2967,18 @@ { "target": "com.amazonaws.ec2#MoveAddressToVpc" }, + { + "target": "com.amazonaws.ec2#MoveByoipCidrToIpam" + }, { "target": "com.amazonaws.ec2#ProvisionByoipCidr" }, + { + "target": "com.amazonaws.ec2#ProvisionIpamPoolCidr" + }, + { + "target": "com.amazonaws.ec2#ProvisionPublicIpv4PoolCidr" + }, { "target": "com.amazonaws.ec2#PurchaseHostReservation" }, @@ -2674,6 +3024,9 @@ { "target": "com.amazonaws.ec2#ReleaseHosts" }, + { + "target": "com.amazonaws.ec2#ReleaseIpamPoolAllocation" + }, { "target": "com.amazonaws.ec2#ReplaceIamInstanceProfileAssociation" }, @@ -2764,6 +3117,9 @@ { "target": "com.amazonaws.ec2#StartInstances" }, + { + "target": "com.amazonaws.ec2#StartNetworkInsightsAccessScopeAnalysis" + }, { "target": "com.amazonaws.ec2#StartNetworkInsightsAnalysis" }, @@ -2873,6 +3229,14 @@ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the component.
", "smithy.api#xmlName": "arn" } + }, + "Name": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Name", + "smithy.api#documentation": "The name of the analysis component.
", + "smithy.api#xmlName": "name" + } } }, "traits": { @@ -4219,6 +4583,30 @@ "traits": { "smithy.api#documentation": "An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
in the request.
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
" } + }, + "Ipv4IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
" + } + }, + "Ipv4NetmaskLength": { + "target": "com.amazonaws.ec2#NetmaskLength", + "traits": { + "smithy.api#documentation": "The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.\n
" + } + }, + "Ipv6IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
" + } + }, + "Ipv6NetmaskLength": { + "target": "com.amazonaws.ec2#NetmaskLength", + "traits": { + "smithy.api#documentation": "The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
" + } } } }, @@ -5692,6 +6080,12 @@ ] } }, + "com.amazonaws.ec2#BoxedDouble": { + "type": "double", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.ec2#BundleId": { "type": "string" }, @@ -10921,6 +11315,256 @@ } } }, + "com.amazonaws.ec2#CreateIpam": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateIpamRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateIpamResult" + }, + "traits": { + "smithy.api#documentation": "Create an IPAM. Amazon VCP IP Address Manager (IPAM) is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization.
\nFor more information, see Create an IPAM in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#CreateIpamPool": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateIpamPoolRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateIpamPoolResult" + }, + "traits": { + "smithy.api#documentation": "Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.
\nFor more information, see Create a top-level pool in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#CreateIpamPoolRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the scope in which you would like to create the IPAM pool.
", + "smithy.api#required": {} + } + }, + "Locale": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "In IPAM, the locale is the Amazon Web Services Region where you want to make an IPAM pool available for allocations. Only resources in the same Region as the locale of the pool can get IP address allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, you cannot modify it. If you do not choose a locale, resources in Regions others than the IPAM's home region cannot use CIDRs from this pool.
\nPossible values: Any Amazon Web Services Region, such as us-east-1.
" + } + }, + "SourceIpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range.
" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "A description for the IPAM pool.
" + } + }, + "AddressFamily": { + "target": "com.amazonaws.ec2#AddressFamily", + "traits": { + "smithy.api#documentation": "The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.
" + } + }, + "AutoImport": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "If selected, IPAM will continuously look for resources within the CIDR range of this pool \n and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for\n these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import \n a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently \n marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM \n discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.\n
\nA locale must be set on the pool for this feature to work.
" + } + }, + "PubliclyAdvertisable": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Determines if the pool is publicly advertisable. This option is not available for pools with AddressFamily set to ipv4
.
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be \n less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
" + } + }, + "AllocationMaxNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "smithy.api#documentation": "The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be \n greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
" + } + }, + "AllocationDefaultNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "smithy.api#documentation": "The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, \n new allocations will default to 10.0.0.0/16.
" + } + }, + "AllocationResourceTags": { + "target": "com.amazonaws.ec2#RequestIpamResourceTagList", + "traits": { + "smithy.api#documentation": "Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.
", + "smithy.api#xmlName": "AllocationResourceTag" + } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
", + "smithy.api#idempotencyToken": {} + } + }, + "AwsService": { + "target": "com.amazonaws.ec2#IpamPoolAwsService", + "traits": { + "smithy.api#documentation": "Limits which service in Amazon Web Services that the pool can be used in. \"ec2\", for example, allows users to use space for Elastic IP addresses and VPCs.
" + } + } + } + }, + "com.amazonaws.ec2#CreateIpamPoolResult": { + "type": "structure", + "members": { + "IpamPool": { + "target": "com.amazonaws.ec2#IpamPool", + "traits": { + "aws.protocols#ec2QueryName": "IpamPool", + "smithy.api#documentation": "Information about the IPAM pool created.
", + "smithy.api#xmlName": "ipamPool" + } + } + } + }, + "com.amazonaws.ec2#CreateIpamRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
A description for the IPAM.
" + } + }, + "OperatingRegions": { + "target": "com.amazonaws.ec2#AddIpamOperatingRegionSet", + "traits": { + "smithy.api#documentation": "The operating Regions for the IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only\n discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
\nFor more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.\n
", + "smithy.api#xmlName": "OperatingRegion" + } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.ec2#CreateIpamResult": { + "type": "structure", + "members": { + "Ipam": { + "target": "com.amazonaws.ec2#Ipam", + "traits": { + "aws.protocols#ec2QueryName": "Ipam", + "smithy.api#documentation": "Information about the IPAM created.
", + "smithy.api#xmlName": "ipam" + } + } + } + }, + "com.amazonaws.ec2#CreateIpamScope": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateIpamScopeRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateIpamScopeResult" + }, + "traits": { + "smithy.api#documentation": "Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
\nFor more information, see Add a scope in the Amazon VPC IPAM User Guide.
" + } + }, + "com.amazonaws.ec2#CreateIpamScopeRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM for which you're creating this scope.
", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "A description for the scope you're creating.
" + } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.ec2#CreateIpamScopeResult": { + "type": "structure", + "members": { + "IpamScope": { + "target": "com.amazonaws.ec2#IpamScope", + "traits": { + "aws.protocols#ec2QueryName": "IpamScope", + "smithy.api#documentation": "Information about the created scope.
", + "smithy.api#xmlName": "ipamScope" + } + } + } + }, "com.amazonaws.ec2#CreateKeyPair": { "type": "operation", "input": { @@ -11545,6 +12189,79 @@ } } }, + "com.amazonaws.ec2#CreateNetworkInsightsAccessScope": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreateNetworkInsightsAccessScopeRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreateNetworkInsightsAccessScopeResult" + }, + "traits": { + "smithy.api#documentation": "Creates a Network Access Scope.
\nAmazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams \n to verify that their networks on Amazon Web Services conform to their network security and governance \n objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.
" + } + }, + "com.amazonaws.ec2#CreateNetworkInsightsAccessScopeRequest": { + "type": "structure", + "members": { + "MatchPaths": { + "target": "com.amazonaws.ec2#AccessScopePathListRequest", + "traits": { + "smithy.api#documentation": "The paths to match.
", + "smithy.api#xmlName": "MatchPath" + } + }, + "ExcludePaths": { + "target": "com.amazonaws.ec2#AccessScopePathListRequest", + "traits": { + "smithy.api#documentation": "The paths to exclude.
", + "smithy.api#xmlName": "ExcludePath" + } + }, + "ClientToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to ensure idempotency.
", + "smithy.api#idempotencyToken": {}, + "smithy.api#required": {} + } + }, + "TagSpecifications": { + "target": "com.amazonaws.ec2#TagSpecificationList", + "traits": { + "smithy.api#documentation": "The tags to apply.
", + "smithy.api#xmlName": "TagSpecification" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScope" + } + }, + "NetworkInsightsAccessScopeContent": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeContent", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeContent", + "smithy.api#documentation": "The Network Access Scope content.
", + "smithy.api#xmlName": "networkInsightsAccessScopeContent" + } + } + } + }, "com.amazonaws.ec2#CreateNetworkInsightsPath": { "type": "operation", "input": { @@ -11931,6 +12648,49 @@ } } }, + "com.amazonaws.ec2#CreatePublicIpv4Pool": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#CreatePublicIpv4PoolRequest" + }, + "output": { + "target": "com.amazonaws.ec2#CreatePublicIpv4PoolResult" + }, + "traits": { + "smithy.api#documentation": "Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. To monitor the status of pool creation, use DescribePublicIpv4Pools.
" + } + }, + "com.amazonaws.ec2#CreatePublicIpv4PoolRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
The ID of the public IPv4 pool.
", + "smithy.api#xmlName": "poolId" + } + } + } + }, "com.amazonaws.ec2#CreateReplaceRootVolumeTask": { "type": "operation", "input": { @@ -14345,8 +15105,7 @@ "CidrBlock": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "The IPv4 network range for the VPC, in CIDR notation. For example,\n\t\t 10.0.0.0/16
. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
, we modify it to 100.68.0.0/18
.
The IPv4 network range for the VPC, in CIDR notation. For example,\n\t\t 10.0.0.0/16
. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
, we modify it to 100.68.0.0/18
.
The IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
in the request.
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
" } }, + "Ipv4IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.\n \n
" + } + }, + "Ipv4NetmaskLength": { + "target": "com.amazonaws.ec2#NetmaskLength", + "traits": { + "smithy.api#documentation": "The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
" + } + }, + "Ipv6IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "The ID of an IPv6 IPAM pool which will be used to allocate this VPC an IPv6 CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization. For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.
" + } + }, + "Ipv6NetmaskLength": { + "target": "com.amazonaws.ec2#NetmaskLength", + "traits": { + "smithy.api#documentation": "The netmask length of the IPv6 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
" + } + }, "DryRun": { "target": "com.amazonaws.ec2#Boolean", "traits": { @@ -15444,6 +16227,135 @@ } } }, + "com.amazonaws.ec2#DeleteIpam": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteIpamRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteIpamResult" + }, + "traits": { + "smithy.api#documentation": "Delete an IPAM. Deleting an IPAM removes all monitored data associated with the IPAM including the historical data for CIDRs.
\nYou cannot delete an IPAM if there are CIDRs provisioned to pools or if there are allocations in the pools within the IPAM. To deprovision pool \n CIDRs, see DeprovisionIpamPoolCidr. To release allocations, see ReleaseIpamPoolAllocation.\n
\nFor more information, see Delete an IPAM in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#DeleteIpamPool": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteIpamPoolRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteIpamPoolResult" + }, + "traits": { + "smithy.api#documentation": "Delete an IPAM pool.
\nYou cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release \n allocations, see ReleaseIpamPoolAllocation. To deprovision pool \n CIDRs, see DeprovisionIpamPoolCidr.
\nFor more information, see Delete a pool in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#DeleteIpamPoolRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the pool to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DeleteIpamPoolResult": { + "type": "structure", + "members": { + "IpamPool": { + "target": "com.amazonaws.ec2#IpamPool", + "traits": { + "aws.protocols#ec2QueryName": "IpamPool", + "smithy.api#documentation": "Information about the results of the deletion.
", + "smithy.api#xmlName": "ipamPool" + } + } + } + }, + "com.amazonaws.ec2#DeleteIpamRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DeleteIpamResult": { + "type": "structure", + "members": { + "Ipam": { + "target": "com.amazonaws.ec2#Ipam", + "traits": { + "aws.protocols#ec2QueryName": "Ipam", + "smithy.api#documentation": "Information about the results of the deletion.
", + "smithy.api#xmlName": "ipam" + } + } + } + }, + "com.amazonaws.ec2#DeleteIpamScope": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteIpamScopeRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteIpamScopeResult" + }, + "traits": { + "smithy.api#documentation": "Delete the scope for an IPAM. You cannot delete the default scopes.
\nFor more information, see Delete a scope in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#DeleteIpamScopeRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the scope to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DeleteIpamScopeResult": { + "type": "structure", + "members": { + "IpamScope": { + "target": "com.amazonaws.ec2#IpamScope", + "traits": { + "aws.protocols#ec2QueryName": "IpamScope", + "smithy.api#documentation": "Information about the results of the deletion.
", + "smithy.api#xmlName": "ipamScope" + } + } + } + }, "com.amazonaws.ec2#DeleteKeyPair": { "type": "operation", "input": { @@ -15940,6 +16852,92 @@ } } }, + "com.amazonaws.ec2#DeleteNetworkInsightsAccessScope": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeResult" + }, + "traits": { + "smithy.api#documentation": "Deletes the specified Network Access Scope.
" + } + }, + "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeAnalysis": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeAnalysisRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeAnalysisResult" + }, + "traits": { + "smithy.api#documentation": "Deletes the specified Network Access Scope analysis.
" + } + }, + "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeAnalysisRequest": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeAnalysisId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisId", + "traits": { + "smithy.api#documentation": "The ID of the Network Access Scope analysis.
", + "smithy.api#required": {} + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the Network Access Scope analysis.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysisId" + } + } + } + }, + "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the Network Access Scope.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DeleteNetworkInsightsAccessScopeResult": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeId", + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScopeId" + } + } + } + }, "com.amazonaws.ec2#DeleteNetworkInsightsAnalysis": { "type": "operation", "input": { @@ -16146,6 +17144,49 @@ } } }, + "com.amazonaws.ec2#DeletePublicIpv4Pool": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeletePublicIpv4PoolRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeletePublicIpv4PoolResult" + }, + "traits": { + "smithy.api#documentation": "Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only.
" + } + }, + "com.amazonaws.ec2#DeletePublicIpv4PoolRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the public IPv4 pool you want to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DeletePublicIpv4PoolResult": { + "type": "structure", + "members": { + "ReturnValue": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "ReturnValue", + "smithy.api#documentation": "Information about the result of deleting the public IPv4 pool.
", + "smithy.api#xmlName": "returnValue" + } + } + } + }, "com.amazonaws.ec2#DeleteQueuedReservedInstances": { "type": "operation", "input": { @@ -17493,6 +18534,122 @@ } } }, + "com.amazonaws.ec2#DeprovisionIpamPoolCidr": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeprovisionIpamPoolCidrRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeprovisionIpamPoolCidrResult" + }, + "traits": { + "smithy.api#documentation": "Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from a pool that has a source pool, the CIDR is recycled back into the source pool. For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User Guide.
" + } + }, + "com.amazonaws.ec2#DeprovisionIpamPoolCidrRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the pool that has the CIDR you want to deprovision.
", + "smithy.api#required": {} + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The CIDR which you want to deprovision from the pool.
" + } + } + } + }, + "com.amazonaws.ec2#DeprovisionIpamPoolCidrResult": { + "type": "structure", + "members": { + "IpamPoolCidr": { + "target": "com.amazonaws.ec2#IpamPoolCidr", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolCidr", + "smithy.api#documentation": "The deprovisioned pool CIDR.
", + "smithy.api#xmlName": "ipamPoolCidr" + } + } + } + }, + "com.amazonaws.ec2#DeprovisionPublicIpv4PoolCidr": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DeprovisionPublicIpv4PoolCidrRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DeprovisionPublicIpv4PoolCidrResult" + }, + "traits": { + "smithy.api#documentation": "Deprovision a CIDR from a public IPv4 pool.
" + } + }, + "com.amazonaws.ec2#DeprovisionPublicIpv4PoolCidrRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the pool that you want to deprovision the CIDR from.
", + "smithy.api#required": {} + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The CIDR you want to deprovision from the pool.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DeprovisionPublicIpv4PoolCidrResult": { + "type": "structure", + "members": { + "PoolId": { + "target": "com.amazonaws.ec2#Ipv4PoolEc2Id", + "traits": { + "aws.protocols#ec2QueryName": "PoolId", + "smithy.api#documentation": "The ID of the pool that you deprovisioned the CIDR from.
", + "smithy.api#xmlName": "poolId" + } + }, + "DeprovisionedAddresses": { + "target": "com.amazonaws.ec2#DeprovisionedAddressSet", + "traits": { + "aws.protocols#ec2QueryName": "DeprovisionedAddressSet", + "smithy.api#documentation": "The deprovisioned CIDRs.
", + "smithy.api#xmlName": "deprovisionedAddressSet" + } + } + } + }, + "com.amazonaws.ec2#DeprovisionedAddressSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#DeregisterImage": { "type": "operation", "input": { @@ -21929,6 +23086,234 @@ } } }, + "com.amazonaws.ec2#DescribeIpamPools": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeIpamPoolsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeIpamPoolsResult" + }, + "traits": { + "smithy.api#documentation": "Get information about your IPAM pools.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "IpamPools", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#DescribeIpamPoolsRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
One or more filters for the request. For more information about filtering, see Filtering CLI output.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#IpamMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return in the request.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + }, + "IpamPoolIds": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The IDs of the IPAM pools you would like information on.
", + "smithy.api#xmlName": "IpamPoolId" + } + } + } + }, + "com.amazonaws.ec2#DescribeIpamPoolsResult": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Information about the IPAM pools.
", + "smithy.api#xmlName": "ipamPoolSet" + } + } + } + }, + "com.amazonaws.ec2#DescribeIpamScopes": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeIpamScopesRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeIpamScopesResult" + }, + "traits": { + "smithy.api#documentation": "Get information about your IPAM scopes.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "IpamScopes", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#DescribeIpamScopesRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
One or more filters for the request. For more information about filtering, see Filtering CLI output.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#IpamMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return in the request.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + }, + "IpamScopeIds": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The IDs of the scopes you want information on.
", + "smithy.api#xmlName": "IpamScopeId" + } + } + } + }, + "com.amazonaws.ec2#DescribeIpamScopesResult": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The scopes you want information on.
", + "smithy.api#xmlName": "ipamScopeSet" + } + } + } + }, + "com.amazonaws.ec2#DescribeIpams": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeIpamsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeIpamsResult" + }, + "traits": { + "smithy.api#documentation": "Get information about your IPAM pools.
\nFor more information, see What is IPAM? in the Amazon VPC IPAM User Guide.\n
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "Ipams", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#DescribeIpamsRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
One or more filters for the request. For more information about filtering, see Filtering CLI output.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#IpamMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return in the request.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + }, + "IpamIds": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The IDs of the IPAMs you want information on.
", + "smithy.api#xmlName": "IpamId" + } + } + } + }, + "com.amazonaws.ec2#DescribeIpamsResult": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Information about the IPAMs.
", + "smithy.api#xmlName": "ipamSet" + } + } + } + }, "com.amazonaws.ec2#DescribeIpv6Pools": { "type": "operation", "input": { @@ -23134,6 +24519,176 @@ } } }, + "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopeAnalyses": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopeAnalysesRequest" + }, + "output": { + "target": "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopeAnalysesResult" + }, + "traits": { + "smithy.api#documentation": "Describes the specified Network Access Scope analyses.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "NetworkInsightsAccessScopeAnalyses", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopeAnalysesRequest": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeAnalysisIds": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisIdList", + "traits": { + "smithy.api#documentation": "The IDs of the Network Access Scope analyses.
", + "smithy.api#xmlName": "NetworkInsightsAccessScopeAnalysisId" + } + }, + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "smithy.api#documentation": "The ID of the Network Access Scope.
" + } + }, + "AnalysisStartTimeBegin": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "smithy.api#documentation": "Filters the results based on the start time. The analysis must have started on or after this time.
" + } + }, + "AnalysisStartTimeEnd": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "smithy.api#documentation": "Filters the results based on the start time. The analysis must have started on or before this time.
" + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "There are no supported filters.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#NetworkInsightsMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return with a single call.\n To retrieve the remaining results, make another call with the returned nextToken
value.
Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The token for the next page of results.
" + } + } + } + }, + "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopeAnalysesResult": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeAnalyses": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisList", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeAnalysisSet", + "smithy.api#documentation": "The Network Access Scope analyses.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysisSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Describes the specified Network Access Scopes.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "NetworkInsightsAccessScopes", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopesRequest": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeIds": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeIdList", + "traits": { + "smithy.api#documentation": "The IDs of the Network Access Scopes.
", + "smithy.api#xmlName": "NetworkInsightsAccessScopeId" + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "There are no supported filters.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#NetworkInsightsMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return with a single call.\n To retrieve the remaining results, make another call with the returned nextToken
value.
Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The token for the next page of results.
" + } + } + } + }, + "com.amazonaws.ec2#DescribeNetworkInsightsAccessScopesResult": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopes": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeList", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeSet", + "smithy.api#documentation": "The Network Access Scopes.
", + "smithy.api#xmlName": "networkInsightsAccessScopeSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Disable the IPAM account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#DisableIpamOrganizationAdminAccountRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The Organizations member account ID that you want to disable as IPAM account.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#DisableIpamOrganizationAdminAccountResult": { + "type": "structure", + "members": { + "Success": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "Success", + "smithy.api#documentation": "The result of disabling the IPAM account.
", + "smithy.api#xmlName": "success" + } + } + } + }, "com.amazonaws.ec2#DisableSerialConsoleAccess": { "type": "operation", "input": { @@ -31445,6 +33043,49 @@ } } }, + "com.amazonaws.ec2#EnableIpamOrganizationAdminAccount": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#EnableIpamOrganizationAdminAccountRequest" + }, + "output": { + "target": "com.amazonaws.ec2#EnableIpamOrganizationAdminAccountResult" + }, + "traits": { + "smithy.api#documentation": "Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#EnableIpamOrganizationAdminAccountRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The Organizations member account ID that you want to enable as the IPAM account.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#EnableIpamOrganizationAdminAccountResult": { + "type": "structure", + "members": { + "Success": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "Success", + "smithy.api#documentation": "The result of enabling the IPAM account.
", + "smithy.api#xmlName": "success" + } + } + } + }, "com.amazonaws.ec2#EnableSerialConsoleAccess": { "type": "operation", "input": { @@ -33100,6 +34741,25 @@ } } }, + "com.amazonaws.ec2#FindingsFound": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "true", + "name": "true" + }, + { + "value": "false", + "name": "false" + }, + { + "value": "unknown", + "name": "unknown" + } + ] + } + }, "com.amazonaws.ec2#FleetActivityStatus": { "type": "string", "traits": { @@ -35352,6 +37012,370 @@ } } }, + "com.amazonaws.ec2#GetIpamAddressHistory": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#GetIpamAddressHistoryRequest" + }, + "output": { + "target": "com.amazonaws.ec2#GetIpamAddressHistoryResult" + }, + "traits": { + "smithy.api#documentation": "Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "HistoryRecords", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetIpamAddressHistoryRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address range. \n If you enter a /16 IPv4 CIDR, you will get records that match it exactly. You will not get records for any subnets within the /16 CIDR.
", + "smithy.api#required": {} + } + }, + "IpamScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", + "traits": { + "smithy.api#documentation": "The ID of the IPAM scope that the CIDR is in.
", + "smithy.api#required": {} + } + }, + "VpcId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The ID of the VPC you want your history records filtered by.
" + } + }, + "StartTime": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "smithy.api#documentation": "The start of the time period for which you are looking for history. If you omit this option, it will default to the value of EndTime.
" + } + }, + "EndTime": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "smithy.api#documentation": "The end of the time period for which you are looking for history. If you omit this option, it will default to the current time.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#IpamAddressHistoryMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of historical results you would like returned per page. Defaults to 100.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + } + } + }, + "com.amazonaws.ec2#GetIpamAddressHistoryResult": { + "type": "structure", + "members": { + "HistoryRecords": { + "target": "com.amazonaws.ec2#IpamAddressHistoryRecordSet", + "traits": { + "aws.protocols#ec2QueryName": "HistoryRecordSet", + "smithy.api#documentation": "A historical record for a CIDR within an IPAM scope. If the CIDR is associated with an EC2 instance, you will see an object in the response for the instance and one for the network interface.
", + "smithy.api#xmlName": "historyRecordSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Get a list of all the CIDR allocations in an IPAM pool.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "IpamPoolAllocations", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetIpamPoolAllocationsMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1000, + "max": 100000 + } + } + }, + "com.amazonaws.ec2#GetIpamPoolAllocationsRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool you want to see the allocations for.
", + "smithy.api#required": {} + } + }, + "IpamPoolAllocationId": { + "target": "com.amazonaws.ec2#IpamPoolAllocationId", + "traits": { + "smithy.api#documentation": "The ID of the allocation.
" + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "One or more filters for the request. For more information about filtering, see Filtering CLI output.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#GetIpamPoolAllocationsMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results you would like returned per page.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + } + } + }, + "com.amazonaws.ec2#GetIpamPoolAllocationsResult": { + "type": "structure", + "members": { + "IpamPoolAllocations": { + "target": "com.amazonaws.ec2#IpamPoolAllocationSet", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolAllocationSet", + "smithy.api#documentation": "The IPAM pool allocations you want information on.
", + "smithy.api#xmlName": "ipamPoolAllocationSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Get the CIDRs provisioned to an IPAM pool.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "IpamPoolCidrs", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetIpamPoolCidrsRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool you want the CIDR for.
", + "smithy.api#required": {} + } + }, + "Filters": { + "target": "com.amazonaws.ec2#FilterList", + "traits": { + "smithy.api#documentation": "One or more filters for the request. For more information about filtering, see Filtering CLI output.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#IpamMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return in the request.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + } + } + }, + "com.amazonaws.ec2#GetIpamPoolCidrsResult": { + "type": "structure", + "members": { + "IpamPoolCidrs": { + "target": "com.amazonaws.ec2#IpamPoolCidrSet", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolCidrSet", + "smithy.api#documentation": "Information about the CIDRs provisioned to an IPAM pool.
", + "smithy.api#xmlName": "ipamPoolCidrSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Get information about the resources in a scope.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "IpamResourceCidrs", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.ec2#GetIpamResourceCidrsRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
One or more filters for the request. For more information about filtering, see Filtering CLI output.
", + "smithy.api#xmlName": "Filter" + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#IpamMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return in the request.
" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "smithy.api#documentation": "The token for the next page of results.
" + } + }, + "IpamScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", + "traits": { + "smithy.api#documentation": "The ID of the scope that the resource is in.
", + "smithy.api#required": {} + } + }, + "IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "The ID of the IPAM pool that the resource is in.
" + } + }, + "ResourceId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The ID of the resource.
" + } + }, + "ResourceType": { + "target": "com.amazonaws.ec2#IpamResourceType", + "traits": { + "smithy.api#documentation": "The resource type.
" + } + }, + "ResourceTag": { + "target": "com.amazonaws.ec2#RequestIpamResourceTag" + }, + "ResourceOwner": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the resource.
" + } + } + } + }, + "com.amazonaws.ec2#GetIpamResourceCidrsResult": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.ec2#NextToken", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The resource CIDRs.
", + "smithy.api#xmlName": "ipamResourceCidrSet" + } + } + } + }, "com.amazonaws.ec2#GetLaunchTemplateData": { "type": "operation", "input": { @@ -35548,6 +37572,128 @@ } } }, + "com.amazonaws.ec2#GetNetworkInsightsAccessScopeAnalysisFindings": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#GetNetworkInsightsAccessScopeAnalysisFindingsRequest" + }, + "output": { + "target": "com.amazonaws.ec2#GetNetworkInsightsAccessScopeAnalysisFindingsResult" + }, + "traits": { + "smithy.api#documentation": "Gets the findings for the specified Network Access Scope analysis.
" + } + }, + "com.amazonaws.ec2#GetNetworkInsightsAccessScopeAnalysisFindingsRequest": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeAnalysisId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisId", + "traits": { + "smithy.api#documentation": "The ID of the Network Access Scope analysis.
", + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.ec2#NetworkInsightsMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return with a single call.\n To retrieve the remaining results, make another call with the returned nextToken
value.
The token for the next page of results.
" + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the Network Access Scope analysis.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysisId" + } + }, + "AnalysisStatus": { + "target": "com.amazonaws.ec2#AnalysisStatus", + "traits": { + "aws.protocols#ec2QueryName": "AnalysisStatus", + "smithy.api#documentation": "The status of Network Access Scope Analysis.
", + "smithy.api#xmlName": "analysisStatus" + } + }, + "AnalysisFindings": { + "target": "com.amazonaws.ec2#AccessScopeAnalysisFindingList", + "traits": { + "aws.protocols#ec2QueryName": "AnalysisFindingSet", + "smithy.api#documentation": "The findings associated with Network Access Scope Analysis.
", + "smithy.api#xmlName": "analysisFindingSet" + } + }, + "NextToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "NextToken", + "smithy.api#documentation": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
Gets the content for the specified Network Access Scope.
" + } + }, + "com.amazonaws.ec2#GetNetworkInsightsAccessScopeContentRequest": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#required": {} + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The Network Access Scope content.
", + "smithy.api#xmlName": "networkInsightsAccessScopeContent" + } + } + } + }, "com.amazonaws.ec2#GetPasswordData": { "type": "operation", "input": { @@ -43929,6 +46075,54 @@ "value": "vt1.24xlarge", "name": "vt1_24xlarge" }, + { + "value": "im4gn.16xlarge", + "name": "im4gn_16xlarge" + }, + { + "value": "im4gn.2xlarge", + "name": "im4gn_2xlarge" + }, + { + "value": "im4gn.4xlarge", + "name": "im4gn_4xlarge" + }, + { + "value": "im4gn.8xlarge", + "name": "im4gn_8xlarge" + }, + { + "value": "im4gn.large", + "name": "im4gn_large" + }, + { + "value": "im4gn.xlarge", + "name": "im4gn_xlarge" + }, + { + "value": "is4gen.2xlarge", + "name": "is4gen_2xlarge" + }, + { + "value": "is4gen.4xlarge", + "name": "is4gen_4xlarge" + }, + { + "value": "is4gen.8xlarge", + "name": "is4gen_8xlarge" + }, + { + "value": "is4gen.large", + "name": "is4gen_large" + }, + { + "value": "is4gen.medium", + "name": "is4gen_medium" + }, + { + "value": "is4gen.xlarge", + "name": "is4gen_xlarge" + }, { "value": "g5g.xlarge", "name": "g5g_xlarge" @@ -44623,211 +46817,103 @@ } } }, - "com.amazonaws.ec2#Ipv4PoolEc2Id": { - "type": "string" - }, - "com.amazonaws.ec2#Ipv4PrefixList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv4PrefixListResponse": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv4PrefixSpecification": { + "com.amazonaws.ec2#Ipam": { "type": "structure", "members": { - "Ipv4Prefix": { + "OwnerId": { "target": "com.amazonaws.ec2#String", "traits": { - "aws.protocols#ec2QueryName": "Ipv4Prefix", - "smithy.api#documentation": "The IPv4 prefix. For information, see \n Assigning prefixes to Amazon EC2 network interfaces in the\n Amazon Elastic Compute Cloud User Guide.
", - "smithy.api#xmlName": "ipv4Prefix" + "aws.protocols#ec2QueryName": "OwnerId", + "smithy.api#documentation": "The Amazon Web Services account ID of the owner of the IPAM.
", + "smithy.api#xmlName": "ownerId" } - } - }, - "traits": { - "smithy.api#documentation": "Describes an IPv4 prefix.
" - } - }, - "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest": { - "type": "structure", - "members": { - "Ipv4Prefix": { - "target": "com.amazonaws.ec2#String", + }, + "IpamId": { + "target": "com.amazonaws.ec2#IpamId", "traits": { - "smithy.api#documentation": "The IPv4 prefix. For information, see \n Assigning prefixes to Amazon EC2 network interfaces in the\n Amazon Elastic Compute Cloud User Guide.
" + "aws.protocols#ec2QueryName": "IpamId", + "smithy.api#documentation": "The ID of the IPAM.
", + "smithy.api#xmlName": "ipamId" } - } - }, - "traits": { - "smithy.api#documentation": "Describes the IPv4 prefix option for a network interface.
" - } - }, - "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse": { - "type": "structure", - "members": { - "Ipv4Prefix": { - "target": "com.amazonaws.ec2#String", + }, + "IpamArn": { + "target": "com.amazonaws.ec2#ResourceArn", "traits": { - "aws.protocols#ec2QueryName": "Ipv4Prefix", - "smithy.api#documentation": "One or more IPv4 delegated prefixes assigned to the network interface.
", - "smithy.api#xmlName": "ipv4Prefix" + "aws.protocols#ec2QueryName": "IpamArn", + "smithy.api#documentation": "The ARN of the IPAM.
", + "smithy.api#xmlName": "ipamArn" } - } - }, - "traits": { - "smithy.api#documentation": "Information about the IPv4 delegated prefixes assigned \n to a network interface.
" - } - }, - "com.amazonaws.ec2#Ipv4PrefixesList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv4PrefixSpecification", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv6Address": { - "type": "string" - }, - "com.amazonaws.ec2#Ipv6AddressList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#String", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv6CidrAssociation": { - "type": "structure", - "members": { - "Ipv6Cidr": { + }, + "IpamRegion": { "target": "com.amazonaws.ec2#String", "traits": { - "aws.protocols#ec2QueryName": "Ipv6Cidr", - "smithy.api#documentation": "The IPv6 CIDR block.
", - "smithy.api#xmlName": "ipv6Cidr" + "aws.protocols#ec2QueryName": "IpamRegion", + "smithy.api#documentation": "The Amazon Web Services Region of the IPAM.
", + "smithy.api#xmlName": "ipamRegion" } }, - "AssociatedResource": { - "target": "com.amazonaws.ec2#String", + "PublicDefaultScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", "traits": { - "aws.protocols#ec2QueryName": "AssociatedResource", - "smithy.api#documentation": "The resource that's associated with the IPv6 CIDR block.
", - "smithy.api#xmlName": "associatedResource" + "aws.protocols#ec2QueryName": "PublicDefaultScopeId", + "smithy.api#documentation": "The ID of the IPAM's default public scope.
", + "smithy.api#xmlName": "publicDefaultScopeId" } - } - }, - "traits": { - "smithy.api#documentation": "Describes an IPv6 CIDR block association.
" - } - }, - "com.amazonaws.ec2#Ipv6CidrAssociationSet": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6CidrAssociation", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv6CidrBlock": { - "type": "structure", - "members": { - "Ipv6CidrBlock": { - "target": "com.amazonaws.ec2#String", + }, + "PrivateDefaultScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", "traits": { - "aws.protocols#ec2QueryName": "Ipv6CidrBlock", - "smithy.api#documentation": "The IPv6 CIDR block.
", - "smithy.api#xmlName": "ipv6CidrBlock" + "aws.protocols#ec2QueryName": "PrivateDefaultScopeId", + "smithy.api#documentation": "The ID of the IPAM's default private scope.
", + "smithy.api#xmlName": "privateDefaultScopeId" } - } - }, - "traits": { - "smithy.api#documentation": "Describes an IPv6 CIDR block.
" - } - }, - "com.amazonaws.ec2#Ipv6CidrBlockSet": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6CidrBlock", - "traits": { - "smithy.api#xmlName": "item" - } - } - }, - "com.amazonaws.ec2#Ipv6Flag": { - "type": "boolean", - "traits": { - "smithy.api#box": {} - } - }, - "com.amazonaws.ec2#Ipv6Pool": { - "type": "structure", - "members": { - "PoolId": { - "target": "com.amazonaws.ec2#String", + }, + "ScopeCount": { + "target": "com.amazonaws.ec2#Integer", "traits": { - "aws.protocols#ec2QueryName": "PoolId", - "smithy.api#documentation": "The ID of the address pool.
", - "smithy.api#xmlName": "poolId" + "aws.protocols#ec2QueryName": "ScopeCount", + "smithy.api#documentation": "The number of scopes in the IPAM. The scope quota is 5. For more information on quotas, see Quotas in IPAM in the Amazon VPC IPAM User Guide.\n
", + "smithy.api#xmlName": "scopeCount" } }, "Description": { "target": "com.amazonaws.ec2#String", "traits": { "aws.protocols#ec2QueryName": "Description", - "smithy.api#documentation": "The description for the address pool.
", + "smithy.api#documentation": "The description for the IPAM.
", "smithy.api#xmlName": "description" } }, - "PoolCidrBlocks": { - "target": "com.amazonaws.ec2#PoolCidrBlocksSet", + "OperatingRegions": { + "target": "com.amazonaws.ec2#IpamOperatingRegionSet", "traits": { - "aws.protocols#ec2QueryName": "PoolCidrBlockSet", - "smithy.api#documentation": "The CIDR blocks for the address pool.
", - "smithy.api#xmlName": "poolCidrBlockSet" + "aws.protocols#ec2QueryName": "OperatingRegionSet", + "smithy.api#documentation": "The operating Regions for an IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only\n discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
\nFor more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "operatingRegionSet" + } + }, + "State": { + "target": "com.amazonaws.ec2#IpamState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "The state of the IPAM.
", + "smithy.api#xmlName": "state" } }, "Tags": { "target": "com.amazonaws.ec2#TagList", "traits": { "aws.protocols#ec2QueryName": "TagSet", - "smithy.api#documentation": "Any tags for the address pool.
", + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
Describes an IPv6 address pool.
" - } - }, - "com.amazonaws.ec2#Ipv6PoolEc2Id": { - "type": "string" - }, - "com.amazonaws.ec2#Ipv6PoolIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6PoolEc2Id", - "traits": { - "smithy.api#xmlName": "item" - } + "smithy.api#documentation": "IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization. For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.
" } }, - "com.amazonaws.ec2#Ipv6PoolMaxResults": { + "com.amazonaws.ec2#IpamAddressHistoryMaxResults": { "type": "integer", "traits": { "smithy.api#range": { @@ -44836,171 +46922,1531 @@ } } }, - "com.amazonaws.ec2#Ipv6PoolSet": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6Pool", - "traits": { - "smithy.api#xmlName": "item" + "com.amazonaws.ec2#IpamAddressHistoryRecord": { + "type": "structure", + "members": { + "ResourceOwnerId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceOwnerId", + "smithy.api#documentation": "The ID of the resource owner.
", + "smithy.api#xmlName": "resourceOwnerId" + } + }, + "ResourceRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceRegion", + "smithy.api#documentation": "The Amazon Web Services Region of the resource.
", + "smithy.api#xmlName": "resourceRegion" + } + }, + "ResourceType": { + "target": "com.amazonaws.ec2#IpamAddressHistoryResourceType", + "traits": { + "aws.protocols#ec2QueryName": "ResourceType", + "smithy.api#documentation": "The type of the resource.
", + "smithy.api#xmlName": "resourceType" + } + }, + "ResourceId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceId", + "smithy.api#documentation": "The ID of the resource.
", + "smithy.api#xmlName": "resourceId" + } + }, + "ResourceCidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceCidr", + "smithy.api#documentation": "The CIDR of the resource.
", + "smithy.api#xmlName": "resourceCidr" + } + }, + "ResourceName": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceName", + "smithy.api#documentation": "The name of the resource.
", + "smithy.api#xmlName": "resourceName" + } + }, + "ResourceComplianceStatus": { + "target": "com.amazonaws.ec2#IpamComplianceStatus", + "traits": { + "aws.protocols#ec2QueryName": "ResourceComplianceStatus", + "smithy.api#documentation": "The compliance status of a resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "resourceComplianceStatus" + } + }, + "ResourceOverlapStatus": { + "target": "com.amazonaws.ec2#IpamOverlapStatus", + "traits": { + "aws.protocols#ec2QueryName": "ResourceOverlapStatus", + "smithy.api#documentation": "The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "resourceOverlapStatus" + } + }, + "VpcId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "VpcId", + "smithy.api#documentation": "The VPC ID of the resource.
", + "smithy.api#xmlName": "vpcId" + } + }, + "SampledStartTime": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "SampledStartTime", + "smithy.api#documentation": "Sampled start time of the resource-to-CIDR association within the IPAM scope. Changes are picked up in periodic snapshots, so the start time may have occurred before this specific time.
", + "smithy.api#xmlName": "sampledStartTime" + } + }, + "SampledEndTime": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "SampledEndTime", + "smithy.api#documentation": "Sampled end time of the resource-to-CIDR association within the IPAM scope. Changes are picked up in periodic snapshots, so the end time may have occurred before this specific time.
", + "smithy.api#xmlName": "sampledEndTime" + } } + }, + "traits": { + "smithy.api#documentation": "The historical record of a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.\n
" } }, - "com.amazonaws.ec2#Ipv6PrefixList": { + "com.amazonaws.ec2#IpamAddressHistoryRecordSet": { "type": "list", "member": { - "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest", + "target": "com.amazonaws.ec2#IpamAddressHistoryRecord", "traits": { "smithy.api#xmlName": "item" } } }, - "com.amazonaws.ec2#Ipv6PrefixListResponse": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse", - "traits": { - "smithy.api#xmlName": "item" - } + "com.amazonaws.ec2#IpamAddressHistoryResourceType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "eip", + "name": "eip" + }, + { + "value": "vpc", + "name": "vpc" + }, + { + "value": "subnet", + "name": "subnet" + }, + { + "value": "network-interface", + "name": "network_interface" + }, + { + "value": "instance", + "name": "instance" + } + ] } }, - "com.amazonaws.ec2#Ipv6PrefixSpecification": { + "com.amazonaws.ec2#IpamCidrAuthorizationContext": { "type": "structure", "members": { - "Ipv6Prefix": { + "Message": { "target": "com.amazonaws.ec2#String", "traits": { - "aws.protocols#ec2QueryName": "Ipv6Prefix", - "smithy.api#documentation": "The IPv6 prefix.
", - "smithy.api#xmlName": "ipv6Prefix" + "smithy.api#documentation": "The plain-text authorization message for the prefix and account.
" } - } - }, - "traits": { - "smithy.api#documentation": "Describes the IPv6 prefix.
" - } - }, - "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest": { - "type": "structure", - "members": { - "Ipv6Prefix": { + }, + "Signature": { "target": "com.amazonaws.ec2#String", "traits": { - "smithy.api#documentation": "The IPv6 prefix.
" + "smithy.api#documentation": "The signed authorization message for the prefix and account.
" } } }, "traits": { - "smithy.api#documentation": "Describes the IPv4 prefix option for a network interface.
" + "smithy.api#documentation": "A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.
" } }, - "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse": { - "type": "structure", - "members": { - "Ipv6Prefix": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "Ipv6Prefix", - "smithy.api#documentation": "One or more IPv6 delegated prefixes assigned to the network interface.
", - "smithy.api#xmlName": "ipv6Prefix" + "com.amazonaws.ec2#IpamComplianceStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "compliant", + "name": "compliant" + }, + { + "value": "noncompliant", + "name": "noncompliant" + }, + { + "value": "unmanaged", + "name": "unmanaged" + }, + { + "value": "ignored", + "name": "ignored" } - } - }, + ] + } + }, + "com.amazonaws.ec2#IpamId": { + "type": "string" + }, + "com.amazonaws.ec2#IpamManagementState": { + "type": "string", "traits": { - "smithy.api#documentation": "Information about the IPv6 delegated prefixes assigned \n to a network interface.
" + "smithy.api#enum": [ + { + "value": "managed", + "name": "managed" + }, + { + "value": "unmanaged", + "name": "unmanaged" + }, + { + "value": "ignored", + "name": "ignored" + } + ] } }, - "com.amazonaws.ec2#Ipv6PrefixesList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#Ipv6PrefixSpecification", - "traits": { - "smithy.api#xmlName": "item" + "com.amazonaws.ec2#IpamMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 5, + "max": 1000 } } }, - "com.amazonaws.ec2#Ipv6Range": { + "com.amazonaws.ec2#IpamNetmaskLength": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 128 + } + } + }, + "com.amazonaws.ec2#IpamOperatingRegion": { "type": "structure", "members": { - "CidrIpv6": { - "target": "com.amazonaws.ec2#String", - "traits": { - "aws.protocols#ec2QueryName": "CidrIpv6", - "smithy.api#documentation": "The IPv6 CIDR range. You can either specify a CIDR range or a source security group,\n not both. To specify a single IPv6 address, use the /128 prefix length.
", - "smithy.api#xmlName": "cidrIpv6" - } - }, - "Description": { + "RegionName": { "target": "com.amazonaws.ec2#String", "traits": { - "aws.protocols#ec2QueryName": "Description", - "smithy.api#documentation": "A description for the security group rule that references this IPv6 address range.
\nConstraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9,\n spaces, and ._-:/()#,@[]+=&;{}!$*
", - "smithy.api#xmlName": "description" + "aws.protocols#ec2QueryName": "RegionName", + "smithy.api#documentation": "The name of the operating Region.
", + "smithy.api#xmlName": "regionName" } } }, "traits": { - "smithy.api#documentation": "[EC2-VPC only] Describes an IPv6 range.
" + "smithy.api#documentation": "The operating Regions for an IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only\n discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
\nFor more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.
" } }, - "com.amazonaws.ec2#Ipv6RangeList": { + "com.amazonaws.ec2#IpamOperatingRegionSet": { "type": "list", "member": { - "target": "com.amazonaws.ec2#Ipv6Range", + "target": "com.amazonaws.ec2#IpamOperatingRegion", "traits": { "smithy.api#xmlName": "item" } } }, - "com.amazonaws.ec2#Ipv6SupportValue": { + "com.amazonaws.ec2#IpamOverlapStatus": { "type": "string", "traits": { "smithy.api#enum": [ { - "value": "enable", - "name": "enable" + "value": "overlapping", + "name": "overlapping" }, { - "value": "disable", - "name": "disable" + "value": "nonoverlapping", + "name": "nonoverlapping" + }, + { + "value": "ignored", + "name": "ignored" } ] } }, - "com.amazonaws.ec2#KernelId": { - "type": "string" - }, - "com.amazonaws.ec2#KeyNameStringList": { - "type": "list", - "member": { - "target": "com.amazonaws.ec2#KeyPairName", - "traits": { - "smithy.api#xmlName": "KeyName" - } - } - }, - "com.amazonaws.ec2#KeyPair": { + "com.amazonaws.ec2#IpamPool": { "type": "structure", "members": { - "KeyFingerprint": { + "OwnerId": { "target": "com.amazonaws.ec2#String", "traits": { - "aws.protocols#ec2QueryName": "KeyFingerprint", - "smithy.api#documentation": "The SHA-1 digest of the DER encoded private key.
", - "smithy.api#xmlName": "keyFingerprint" + "aws.protocols#ec2QueryName": "OwnerId", + "smithy.api#documentation": "The Amazon Web Services account ID of the owner of the IPAM pool.
", + "smithy.api#xmlName": "ownerId" } }, - "KeyMaterial": { - "target": "com.amazonaws.ec2#SensitiveUserData", + "IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", "traits": { - "aws.protocols#ec2QueryName": "KeyMaterial", - "smithy.api#documentation": "An unencrypted PEM encoded RSA or ED25519 private key.
", - "smithy.api#xmlName": "keyMaterial" + "aws.protocols#ec2QueryName": "IpamPoolId", + "smithy.api#documentation": "The ID of the IPAM pool.
", + "smithy.api#xmlName": "ipamPoolId" } }, - "KeyName": { - "target": "com.amazonaws.ec2#String", + "SourceIpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", "traits": { - "aws.protocols#ec2QueryName": "KeyName", + "aws.protocols#ec2QueryName": "SourceIpamPoolId", + "smithy.api#documentation": "The ID of the source IPAM pool. You can use this option to create an IPAM pool within an existing source pool.
", + "smithy.api#xmlName": "sourceIpamPoolId" + } + }, + "IpamPoolArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolArn", + "smithy.api#documentation": "The ARN of the IPAM pool.
", + "smithy.api#xmlName": "ipamPoolArn" + } + }, + "IpamScopeArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "IpamScopeArn", + "smithy.api#documentation": "The ARN of the scope of the IPAM pool.
", + "smithy.api#xmlName": "ipamScopeArn" + } + }, + "IpamScopeType": { + "target": "com.amazonaws.ec2#IpamScopeType", + "traits": { + "aws.protocols#ec2QueryName": "IpamScopeType", + "smithy.api#documentation": "In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
", + "smithy.api#xmlName": "ipamScopeType" + } + }, + "IpamArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "IpamArn", + "smithy.api#documentation": "The ARN of the IPAM.
", + "smithy.api#xmlName": "ipamArn" + } + }, + "IpamRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "IpamRegion", + "smithy.api#documentation": "The Amazon Web Services Region of the IPAM pool.
", + "smithy.api#xmlName": "ipamRegion" + } + }, + "Locale": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Locale", + "smithy.api#documentation": "The locale of the IPAM pool. In IPAM, the locale is the Amazon Web Services Region where you want to make an IPAM pool available for allocations. Only resources in the same Region as the locale of the pool can get IP address allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, you cannot modify it. If you choose an Amazon Web Services Region for locale that has not been configured as an operating Region for the IPAM, you'll get an error.
", + "smithy.api#xmlName": "locale" + } + }, + "PoolDepth": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "aws.protocols#ec2QueryName": "PoolDepth", + "smithy.api#documentation": "The depth of pools in your IPAM pool. The pool depth quota is 10. For more information, see Quotas in IPAM in the Amazon VPC IPAM User Guide.\n
", + "smithy.api#xmlName": "poolDepth" + } + }, + "State": { + "target": "com.amazonaws.ec2#IpamPoolState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "The state of the IPAM pool.
", + "smithy.api#xmlName": "state" + } + }, + "StateMessage": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "StateMessage", + "smithy.api#documentation": "A message related to the failed creation of an IPAM pool.
", + "smithy.api#xmlName": "stateMessage" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Description", + "smithy.api#documentation": "The description of the IPAM pool.
", + "smithy.api#xmlName": "description" + } + }, + "AutoImport": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "AutoImport", + "smithy.api#documentation": "If selected, IPAM will continuously look for resources within the CIDR range of this pool \n and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for\n these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import \n a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently \n marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM \n discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.\n
\nA locale must be set on the pool for this feature to work.
", + "smithy.api#xmlName": "autoImport" + } + }, + "PubliclyAdvertisable": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "PubliclyAdvertisable", + "smithy.api#documentation": "Determines if a pool is publicly advertisable. This option is not available for pools with AddressFamily set to ipv4
.
The address family of the pool.
", + "smithy.api#xmlName": "addressFamily" + } + }, + "AllocationMinNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "aws.protocols#ec2QueryName": "AllocationMinNetmaskLength", + "smithy.api#documentation": "The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
", + "smithy.api#xmlName": "allocationMinNetmaskLength" + } + }, + "AllocationMaxNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "aws.protocols#ec2QueryName": "AllocationMaxNetmaskLength", + "smithy.api#documentation": "The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
", + "smithy.api#xmlName": "allocationMaxNetmaskLength" + } + }, + "AllocationDefaultNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "aws.protocols#ec2QueryName": "AllocationDefaultNetmaskLength", + "smithy.api#documentation": "The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and \n you enter 16 here, new allocations will default to 10.0.0.0/16.
", + "smithy.api#xmlName": "allocationDefaultNetmaskLength" + } + }, + "AllocationResourceTags": { + "target": "com.amazonaws.ec2#IpamResourceTagList", + "traits": { + "aws.protocols#ec2QueryName": "AllocationResourceTagSet", + "smithy.api#documentation": "Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.
", + "smithy.api#xmlName": "allocationResourceTagSet" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
Limits which service in Amazon Web Services that the pool can be used in. \"ec2\", for example, allows users to use space for Elastic IP addresses and VPCs.
", + "smithy.api#xmlName": "awsService" + } + } + }, + "traits": { + "smithy.api#documentation": "In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.
" + } + }, + "com.amazonaws.ec2#IpamPoolAllocation": { + "type": "structure", + "members": { + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Cidr", + "smithy.api#documentation": "The CIDR for the allocation. A CIDR is a representation of an IP address and its associated network mask (or netmask) and \n refers to a range of IP addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR example is 2001:DB8::/32
.
The ID of an allocation.
", + "smithy.api#xmlName": "ipamPoolAllocationId" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Description", + "smithy.api#documentation": "A description of the pool allocation.
", + "smithy.api#xmlName": "description" + } + }, + "ResourceId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceId", + "smithy.api#documentation": "The ID of the resource.
", + "smithy.api#xmlName": "resourceId" + } + }, + "ResourceType": { + "target": "com.amazonaws.ec2#IpamPoolAllocationResourceType", + "traits": { + "aws.protocols#ec2QueryName": "ResourceType", + "smithy.api#documentation": "The type of the resource.
", + "smithy.api#xmlName": "resourceType" + } + }, + "ResourceRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceRegion", + "smithy.api#documentation": "The Amazon Web Services Region of the resource.
", + "smithy.api#xmlName": "resourceRegion" + } + }, + "ResourceOwner": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceOwner", + "smithy.api#documentation": "The owner of the resource.
", + "smithy.api#xmlName": "resourceOwner" + } + } + }, + "traits": { + "smithy.api#documentation": "In IPAM, an allocation is a CIDR assignment from an IPAM pool to another resource or IPAM pool.
" + } + }, + "com.amazonaws.ec2#IpamPoolAllocationDisallowedCidrs": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamPoolAllocationId": { + "type": "string" + }, + "com.amazonaws.ec2#IpamPoolAllocationResourceType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ipam-pool", + "name": "ipam_pool" + }, + { + "value": "vpc", + "name": "vpc" + }, + { + "value": "ec2-public-ipv4-pool", + "name": "ec2_public_ipv4_pool" + }, + { + "value": "custom", + "name": "custom" + } + ] + } + }, + "com.amazonaws.ec2#IpamPoolAllocationSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#IpamPoolAllocation", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamPoolAwsService": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ec2", + "name": "ec2" + } + ] + } + }, + "com.amazonaws.ec2#IpamPoolCidr": { + "type": "structure", + "members": { + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Cidr", + "smithy.api#documentation": "The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP address and its associated network mask (or netmask) \n and refers to a range of IP addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR example is 2001:DB8::/32
.
The state of the CIDR.
", + "smithy.api#xmlName": "state" + } + }, + "FailureReason": { + "target": "com.amazonaws.ec2#IpamPoolCidrFailureReason", + "traits": { + "aws.protocols#ec2QueryName": "FailureReason", + "smithy.api#documentation": "Details related to why an IPAM pool CIDR failed to be provisioned.
", + "smithy.api#xmlName": "failureReason" + } + } + }, + "traits": { + "smithy.api#documentation": "A CIDR provisioned to an IPAM pool.
" + } + }, + "com.amazonaws.ec2#IpamPoolCidrFailureCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "cidr-not-available", + "name": "cidr_not_available" + } + ] + } + }, + "com.amazonaws.ec2#IpamPoolCidrFailureReason": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.ec2#IpamPoolCidrFailureCode", + "traits": { + "aws.protocols#ec2QueryName": "Code", + "smithy.api#documentation": "An error code related to why an IPAM pool CIDR failed to be provisioned.
", + "smithy.api#xmlName": "code" + } + }, + "Message": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Message", + "smithy.api#documentation": "A message related to why an IPAM pool CIDR failed to be provisioned.
", + "smithy.api#xmlName": "message" + } + } + }, + "traits": { + "smithy.api#documentation": "Details related to why an IPAM pool CIDR failed to be provisioned.
" + } + }, + "com.amazonaws.ec2#IpamPoolCidrSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#IpamPoolCidr", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamPoolCidrState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "pending-provision", + "name": "pending_provision" + }, + { + "value": "provisioned", + "name": "provisioned" + }, + { + "value": "failed-provision", + "name": "failed_provision" + }, + { + "value": "pending-deprovision", + "name": "pending_deprovision" + }, + { + "value": "deprovisioned", + "name": "deprovisioned" + }, + { + "value": "failed-deprovision", + "name": "failed_deprovision" + }, + { + "value": "pending-import", + "name": "pending_import" + }, + { + "value": "failed-import", + "name": "failed_import" + } + ] + } + }, + "com.amazonaws.ec2#IpamPoolId": { + "type": "string" + }, + "com.amazonaws.ec2#IpamPoolSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#IpamPool", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamPoolState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "create-in-progress", + "name": "create_in_progress" + }, + { + "value": "create-complete", + "name": "create_complete" + }, + { + "value": "create-failed", + "name": "create_failed" + }, + { + "value": "modify-in-progress", + "name": "modify_in_progress" + }, + { + "value": "modify-complete", + "name": "modify_complete" + }, + { + "value": "modify-failed", + "name": "modify_failed" + }, + { + "value": "delete-in-progress", + "name": "delete_in_progress" + }, + { + "value": "delete-complete", + "name": "delete_complete" + }, + { + "value": "delete-failed", + "name": "delete_failed" + } + ] + } + }, + "com.amazonaws.ec2#IpamResourceCidr": { + "type": "structure", + "members": { + "IpamId": { + "target": "com.amazonaws.ec2#IpamId", + "traits": { + "aws.protocols#ec2QueryName": "IpamId", + "smithy.api#documentation": "The IPAM ID for an IPAM resource.
", + "smithy.api#xmlName": "ipamId" + } + }, + "IpamScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", + "traits": { + "aws.protocols#ec2QueryName": "IpamScopeId", + "smithy.api#documentation": "The scope ID for an IPAM resource.
", + "smithy.api#xmlName": "ipamScopeId" + } + }, + "IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolId", + "smithy.api#documentation": "The pool ID for an IPAM resource.
", + "smithy.api#xmlName": "ipamPoolId" + } + }, + "ResourceRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceRegion", + "smithy.api#documentation": "The Amazon Web Services Region for an IPAM resource.
", + "smithy.api#xmlName": "resourceRegion" + } + }, + "ResourceOwnerId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceOwnerId", + "smithy.api#documentation": "The Amazon Web Services account number of the owner of an IPAM resource.
", + "smithy.api#xmlName": "resourceOwnerId" + } + }, + "ResourceId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceId", + "smithy.api#documentation": "The ID of an IPAM resource.
", + "smithy.api#xmlName": "resourceId" + } + }, + "ResourceName": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceName", + "smithy.api#documentation": "The name of an IPAM resource.
", + "smithy.api#xmlName": "resourceName" + } + }, + "ResourceCidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "ResourceCidr", + "smithy.api#documentation": "The CIDR for an IPAM resource.
", + "smithy.api#xmlName": "resourceCidr" + } + }, + "ResourceType": { + "target": "com.amazonaws.ec2#IpamResourceType", + "traits": { + "aws.protocols#ec2QueryName": "ResourceType", + "smithy.api#documentation": "The type of IPAM resource.
", + "smithy.api#xmlName": "resourceType" + } + }, + "ResourceTags": { + "target": "com.amazonaws.ec2#IpamResourceTagList", + "traits": { + "aws.protocols#ec2QueryName": "ResourceTagSet", + "smithy.api#documentation": "The tags for an IPAM resource.
", + "smithy.api#xmlName": "resourceTagSet" + } + }, + "IpUsage": { + "target": "com.amazonaws.ec2#BoxedDouble", + "traits": { + "aws.protocols#ec2QueryName": "IpUsage", + "smithy.api#documentation": "The IP address space in the IPAM pool that is allocated to this resource. To convert the decimal to a percentage, multiply the decimal by 100.
", + "smithy.api#xmlName": "ipUsage" + } + }, + "ComplianceStatus": { + "target": "com.amazonaws.ec2#IpamComplianceStatus", + "traits": { + "aws.protocols#ec2QueryName": "ComplianceStatus", + "smithy.api#documentation": "The compliance status of the IPAM resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "complianceStatus" + } + }, + "ManagementState": { + "target": "com.amazonaws.ec2#IpamManagementState", + "traits": { + "aws.protocols#ec2QueryName": "ManagementState", + "smithy.api#documentation": "The management state of the resource. For more information about management states, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "managementState" + } + }, + "OverlapStatus": { + "target": "com.amazonaws.ec2#IpamOverlapStatus", + "traits": { + "aws.protocols#ec2QueryName": "OverlapStatus", + "smithy.api#documentation": "The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "overlapStatus" + } + }, + "VpcId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "VpcId", + "smithy.api#documentation": "The ID of a VPC.
", + "smithy.api#xmlName": "vpcId" + } + } + }, + "traits": { + "smithy.api#documentation": "The CIDR for an IPAM resource.
" + } + }, + "com.amazonaws.ec2#IpamResourceCidrSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#IpamResourceCidr", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamResourceTag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Key", + "smithy.api#documentation": "The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
", + "smithy.api#xmlName": "key" + } + }, + "Value": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Value", + "smithy.api#documentation": "The value of the tag.
", + "smithy.api#xmlName": "value" + } + } + }, + "traits": { + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
The Amazon Web Services account ID of the owner of the scope.
", + "smithy.api#xmlName": "ownerId" + } + }, + "IpamScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", + "traits": { + "aws.protocols#ec2QueryName": "IpamScopeId", + "smithy.api#documentation": "The ID of the scope.
", + "smithy.api#xmlName": "ipamScopeId" + } + }, + "IpamScopeArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "IpamScopeArn", + "smithy.api#documentation": "The ARN of the scope.
", + "smithy.api#xmlName": "ipamScopeArn" + } + }, + "IpamArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "IpamArn", + "smithy.api#documentation": "The ARN of the IPAM.
", + "smithy.api#xmlName": "ipamArn" + } + }, + "IpamRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "IpamRegion", + "smithy.api#documentation": "The Amazon Web Services Region of the IPAM scope.
", + "smithy.api#xmlName": "ipamRegion" + } + }, + "IpamScopeType": { + "target": "com.amazonaws.ec2#IpamScopeType", + "traits": { + "aws.protocols#ec2QueryName": "IpamScopeType", + "smithy.api#documentation": "The type of the scope.
", + "smithy.api#xmlName": "ipamScopeType" + } + }, + "IsDefault": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "IsDefault", + "smithy.api#documentation": "Defines if the scope is the default scope or not.
", + "smithy.api#xmlName": "isDefault" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Description", + "smithy.api#documentation": "The description of the scope.
", + "smithy.api#xmlName": "description" + } + }, + "PoolCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "aws.protocols#ec2QueryName": "PoolCount", + "smithy.api#documentation": "The number of pools in the scope.
", + "smithy.api#xmlName": "poolCount" + } + }, + "State": { + "target": "com.amazonaws.ec2#IpamScopeState", + "traits": { + "aws.protocols#ec2QueryName": "State", + "smithy.api#documentation": "The state of the IPAM scope.
", + "smithy.api#xmlName": "state" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
\nFor more information, see How IPAM works in the Amazon VPC IPAM User Guide\n
" + } + }, + "com.amazonaws.ec2#IpamScopeId": { + "type": "string" + }, + "com.amazonaws.ec2#IpamScopeSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#IpamScope", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamScopeState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "create-in-progress", + "name": "create_in_progress" + }, + { + "value": "create-complete", + "name": "create_complete" + }, + { + "value": "create-failed", + "name": "create_failed" + }, + { + "value": "modify-in-progress", + "name": "modify_in_progress" + }, + { + "value": "modify-complete", + "name": "modify_complete" + }, + { + "value": "modify-failed", + "name": "modify_failed" + }, + { + "value": "delete-in-progress", + "name": "delete_in_progress" + }, + { + "value": "delete-complete", + "name": "delete_complete" + }, + { + "value": "delete-failed", + "name": "delete_failed" + } + ] + } + }, + "com.amazonaws.ec2#IpamScopeType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "public", + "name": "public" + }, + { + "value": "private", + "name": "private" + } + ] + } + }, + "com.amazonaws.ec2#IpamSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipam", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#IpamState": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "create-in-progress", + "name": "create_in_progress" + }, + { + "value": "create-complete", + "name": "create_complete" + }, + { + "value": "create-failed", + "name": "create_failed" + }, + { + "value": "modify-in-progress", + "name": "modify_in_progress" + }, + { + "value": "modify-complete", + "name": "modify_complete" + }, + { + "value": "modify-failed", + "name": "modify_failed" + }, + { + "value": "delete-in-progress", + "name": "delete_in_progress" + }, + { + "value": "delete-complete", + "name": "delete_complete" + }, + { + "value": "delete-failed", + "name": "delete_failed" + } + ] + } + }, + "com.amazonaws.ec2#Ipv4PoolEc2Id": { + "type": "string" + }, + "com.amazonaws.ec2#Ipv4PrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv4PrefixListResponse": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv4PrefixSpecification": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4Prefix", + "smithy.api#documentation": "The IPv4 prefix. For information, see \n Assigning prefixes to Amazon EC2 network interfaces in the\n Amazon Elastic Compute Cloud User Guide.
", + "smithy.api#xmlName": "ipv4Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes an IPv4 prefix.
" + } + }, + "com.amazonaws.ec2#Ipv4PrefixSpecificationRequest": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The IPv4 prefix. For information, see \n Assigning prefixes to Amazon EC2 network interfaces in the\n Amazon Elastic Compute Cloud User Guide.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the IPv4 prefix option for a network interface.
" + } + }, + "com.amazonaws.ec2#Ipv4PrefixSpecificationResponse": { + "type": "structure", + "members": { + "Ipv4Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv4Prefix", + "smithy.api#documentation": "One or more IPv4 delegated prefixes assigned to the network interface.
", + "smithy.api#xmlName": "ipv4Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about the IPv4 delegated prefixes assigned \n to a network interface.
" + } + }, + "com.amazonaws.ec2#Ipv4PrefixesList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv4PrefixSpecification", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6Address": { + "type": "string" + }, + "com.amazonaws.ec2#Ipv6AddressList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6CidrAssociation": { + "type": "structure", + "members": { + "Ipv6Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Cidr", + "smithy.api#documentation": "The IPv6 CIDR block.
", + "smithy.api#xmlName": "ipv6Cidr" + } + }, + "AssociatedResource": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "AssociatedResource", + "smithy.api#documentation": "The resource that's associated with the IPv6 CIDR block.
", + "smithy.api#xmlName": "associatedResource" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes an IPv6 CIDR block association.
" + } + }, + "com.amazonaws.ec2#Ipv6CidrAssociationSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6CidrAssociation", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6CidrBlock": { + "type": "structure", + "members": { + "Ipv6CidrBlock": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6CidrBlock", + "smithy.api#documentation": "The IPv6 CIDR block.
", + "smithy.api#xmlName": "ipv6CidrBlock" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes an IPv6 CIDR block.
" + } + }, + "com.amazonaws.ec2#Ipv6CidrBlockSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6CidrBlock", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6Flag": { + "type": "boolean", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.ec2#Ipv6Pool": { + "type": "structure", + "members": { + "PoolId": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "PoolId", + "smithy.api#documentation": "The ID of the address pool.
", + "smithy.api#xmlName": "poolId" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Description", + "smithy.api#documentation": "The description for the address pool.
", + "smithy.api#xmlName": "description" + } + }, + "PoolCidrBlocks": { + "target": "com.amazonaws.ec2#PoolCidrBlocksSet", + "traits": { + "aws.protocols#ec2QueryName": "PoolCidrBlockSet", + "smithy.api#documentation": "The CIDR blocks for the address pool.
", + "smithy.api#xmlName": "poolCidrBlockSet" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "Any tags for the address pool.
", + "smithy.api#xmlName": "tagSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes an IPv6 address pool.
" + } + }, + "com.amazonaws.ec2#Ipv6PoolEc2Id": { + "type": "string" + }, + "com.amazonaws.ec2#Ipv6PoolIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PoolEc2Id", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6PoolMaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 1000 + } + } + }, + "com.amazonaws.ec2#Ipv6PoolSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6Pool", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6PrefixList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6PrefixListResponse": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6PrefixSpecification": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Prefix", + "smithy.api#documentation": "The IPv6 prefix.
", + "smithy.api#xmlName": "ipv6Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the IPv6 prefix.
" + } + }, + "com.amazonaws.ec2#Ipv6PrefixSpecificationRequest": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The IPv6 prefix.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the IPv4 prefix option for a network interface.
" + } + }, + "com.amazonaws.ec2#Ipv6PrefixSpecificationResponse": { + "type": "structure", + "members": { + "Ipv6Prefix": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Ipv6Prefix", + "smithy.api#documentation": "One or more IPv6 delegated prefixes assigned to the network interface.
", + "smithy.api#xmlName": "ipv6Prefix" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about the IPv6 delegated prefixes assigned \n to a network interface.
" + } + }, + "com.amazonaws.ec2#Ipv6PrefixesList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6PrefixSpecification", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6Range": { + "type": "structure", + "members": { + "CidrIpv6": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "CidrIpv6", + "smithy.api#documentation": "The IPv6 CIDR range. You can either specify a CIDR range or a source security group,\n not both. To specify a single IPv6 address, use the /128 prefix length.
", + "smithy.api#xmlName": "cidrIpv6" + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "Description", + "smithy.api#documentation": "A description for the security group rule that references this IPv6 address range.
\nConstraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9,\n spaces, and ._-:/()#,@[]+=&;{}!$*
", + "smithy.api#xmlName": "description" + } + } + }, + "traits": { + "smithy.api#documentation": "[EC2-VPC only] Describes an IPv6 range.
" + } + }, + "com.amazonaws.ec2#Ipv6RangeList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Ipv6Range", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#Ipv6SupportValue": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "enable", + "name": "enable" + }, + { + "value": "disable", + "name": "disable" + } + ] + } + }, + "com.amazonaws.ec2#KernelId": { + "type": "string" + }, + "com.amazonaws.ec2#KeyNameStringList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#KeyPairName", + "traits": { + "smithy.api#xmlName": "KeyName" + } + } + }, + "com.amazonaws.ec2#KeyPair": { + "type": "structure", + "members": { + "KeyFingerprint": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "KeyFingerprint", + "smithy.api#documentation": "The SHA-1 digest of the DER encoded private key.
", + "smithy.api#xmlName": "keyFingerprint" + } + }, + "KeyMaterial": { + "target": "com.amazonaws.ec2#SensitiveUserData", + "traits": { + "aws.protocols#ec2QueryName": "KeyMaterial", + "smithy.api#documentation": "An unencrypted PEM encoded RSA or ED25519 private key.
", + "smithy.api#xmlName": "keyMaterial" + } + }, + "KeyName": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "KeyName", "smithy.api#documentation": "The name of the key pair.
", "smithy.api#xmlName": "keyName" } @@ -49753,6 +53199,287 @@ } } }, + "com.amazonaws.ec2#ModifyIpam": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyIpamRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyIpamResult" + }, + "traits": { + "smithy.api#documentation": "Modify the configurations of an IPAM.\n
" + } + }, + "com.amazonaws.ec2#ModifyIpamPool": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyIpamPoolRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyIpamPoolResult" + }, + "traits": { + "smithy.api#documentation": "Modify the configurations of an IPAM pool.
\nFor more information, see Modify a pool in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#ModifyIpamPoolRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool you want to modify.
", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The description of the IPAM pool you want to modify.
" + } + }, + "AutoImport": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "If true, IPAM will continuously look for resources within the CIDR range of this pool \n and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for\n these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import \n a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently \n marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM \n discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.\n
\nA locale must be set on the pool for this feature to work.
" + } + }, + "AllocationMinNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "smithy.api#documentation": "The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible \n netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask \n length must be less than the maximum netmask length.
" + } + }, + "AllocationMaxNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "smithy.api#documentation": "The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible \n netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask \n length must be greater than the minimum netmask length.
" + } + }, + "AllocationDefaultNetmaskLength": { + "target": "com.amazonaws.ec2#IpamNetmaskLength", + "traits": { + "smithy.api#documentation": "The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
" + } + }, + "ClearAllocationDefaultNetmaskLength": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Clear the default netmask length allocation rule for this pool.
" + } + }, + "AddAllocationResourceTags": { + "target": "com.amazonaws.ec2#RequestIpamResourceTagList", + "traits": { + "smithy.api#documentation": "Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "AddAllocationResourceTag" + } + }, + "RemoveAllocationResourceTags": { + "target": "com.amazonaws.ec2#RequestIpamResourceTagList", + "traits": { + "smithy.api#documentation": "Remove tag allocation rules from a pool.
", + "smithy.api#xmlName": "RemoveAllocationResourceTag" + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamPoolResult": { + "type": "structure", + "members": { + "IpamPool": { + "target": "com.amazonaws.ec2#IpamPool", + "traits": { + "aws.protocols#ec2QueryName": "IpamPool", + "smithy.api#documentation": "The results of the modification.
", + "smithy.api#xmlName": "ipamPool" + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM you want to modify.
", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The description of the IPAM you want to modify.
" + } + }, + "AddOperatingRegions": { + "target": "com.amazonaws.ec2#AddIpamOperatingRegionSet", + "traits": { + "smithy.api#documentation": "Choose the operating Regions for the IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only\n discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
\nFor more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide.
", + "smithy.api#xmlName": "AddOperatingRegion" + } + }, + "RemoveOperatingRegions": { + "target": "com.amazonaws.ec2#RemoveIpamOperatingRegionSet", + "traits": { + "smithy.api#documentation": "The operating Regions to remove.
", + "smithy.api#xmlName": "RemoveOperatingRegion" + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamResourceCidr": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyIpamResourceCidrRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyIpamResourceCidrResult" + }, + "traits": { + "smithy.api#documentation": "Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.
\nFor more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.
" + } + }, + "com.amazonaws.ec2#ModifyIpamResourceCidrRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the resource you want to modify.
", + "smithy.api#required": {} + } + }, + "ResourceCidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The CIDR of the resource you want to modify.
", + "smithy.api#required": {} + } + }, + "ResourceRegion": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The Amazon Web Services Region of the resource you want to modify.
", + "smithy.api#required": {} + } + }, + "CurrentIpamScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", + "traits": { + "smithy.api#documentation": "The ID of the current scope that the resource CIDR is in.
", + "smithy.api#required": {} + } + }, + "DestinationIpamScopeId": { + "target": "com.amazonaws.ec2#IpamScopeId", + "traits": { + "smithy.api#documentation": "The ID of the scope you want to transfer the resource CIDR to.
" + } + }, + "Monitored": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamResourceCidrResult": { + "type": "structure", + "members": { + "IpamResourceCidr": { + "target": "com.amazonaws.ec2#IpamResourceCidr", + "traits": { + "aws.protocols#ec2QueryName": "IpamResourceCidr", + "smithy.api#xmlName": "ipamResourceCidr" + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamResult": { + "type": "structure", + "members": { + "Ipam": { + "target": "com.amazonaws.ec2#Ipam", + "traits": { + "aws.protocols#ec2QueryName": "Ipam", + "smithy.api#documentation": "The results of the modification.
", + "smithy.api#xmlName": "ipam" + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamScope": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ModifyIpamScopeRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ModifyIpamScopeResult" + }, + "traits": { + "smithy.api#documentation": "Modify an IPAM scope.
" + } + }, + "com.amazonaws.ec2#ModifyIpamScopeRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the scope you want to modify.
", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The description of the scope you want to modify.
" + } + } + } + }, + "com.amazonaws.ec2#ModifyIpamScopeResult": { + "type": "structure", + "members": { + "IpamScope": { + "target": "com.amazonaws.ec2#IpamScope", + "traits": { + "aws.protocols#ec2QueryName": "IpamScope", + "smithy.api#documentation": "The results of the modification.
", + "smithy.api#xmlName": "ipamScope" + } + } + } + }, "com.amazonaws.ec2#ModifyLaunchTemplate": { "type": "operation", "input": { @@ -50329,7 +54056,7 @@ "target": "com.amazonaws.ec2#ModifySubnetAttributeRequest" }, "traits": { - "smithy.api#documentation": "Modifies a subnet attribute. You can only modify one attribute at a time.
" + "smithy.api#documentation": "Modifies a subnet attribute. You can only modify one attribute at a time.
\n\t \n\tUse this action to modify subnets on Amazon Web Services Outposts.
\nTo modify a subnet on an Outpost rack, set both\n MapCustomerOwnedIpOnLaunch
and\n CustomerOwnedIpv4Pool
. These two parameters act as a single\n attribute.
To modify a subnet on an Outpost server, set either\n EnableLniAtDeviceIndex
or\n DisableLniAtDeviceIndex
.
For more information about Amazon Web Services Outposts, see the following:
\n\t \n\t\n Outpost servers\n
\n\n Outpost racks\n
\nIndicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
" } + }, + "EnableLniAtDeviceIndex": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "\n Indicates the device position for local network interfaces in this subnet. For example, \n 1
indicates local network interfaces in this subnet are the secondary \n network interface (eth1). A local network interface cannot be the primary network\n interface (eth0).\n
\n Specify true
to indicate that local network interfaces at the current \n position should be disabled. \n
Move an BYOIP IPv4 CIDR to IPAM from a public IPv4 pool.
" + } + }, + "com.amazonaws.ec2#MoveByoipCidrToIpamRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The BYOIP CIDR.
" + } + }, + "IpamPoolId": { + "target": "com.amazonaws.ec2#IpamPoolId", + "traits": { + "smithy.api#documentation": "The IPAM pool ID.
" + } + }, + "IpamPoolOwner": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The Amazon Web Services account ID of the owner of the IPAM pool.
" + } + } + } + }, + "com.amazonaws.ec2#MoveByoipCidrToIpamResult": { + "type": "structure", + "members": { + "ByoipCidr": { + "target": "com.amazonaws.ec2#ByoipCidr", + "traits": { + "aws.protocols#ec2QueryName": "ByoipCidr", + "smithy.api#xmlName": "byoipCidr" + } + } + } + }, "com.amazonaws.ec2#MoveStatus": { "type": "string", "traits": { @@ -52225,6 +56017,12 @@ ] } }, + "com.amazonaws.ec2#NetmaskLength": { + "type": "integer", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.ec2#NetworkAcl": { "type": "structure", "members": { @@ -52586,6 +56384,224 @@ "smithy.api#documentation": "Describes the networking features of the instance type.
" } }, + "com.amazonaws.ec2#NetworkInsightsAccessScope": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeId", + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScopeId" + } + }, + "NetworkInsightsAccessScopeArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeArn", + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScopeArn" + } + }, + "CreatedDate": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "CreatedDate", + "smithy.api#documentation": "The creation date.
", + "smithy.api#xmlName": "createdDate" + } + }, + "UpdatedDate": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "UpdatedDate", + "smithy.api#documentation": "The last updated date.
", + "smithy.api#xmlName": "updatedDate" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "The tags.
", + "smithy.api#xmlName": "tagSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a Network Access Scope.
" + } + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeAnalysisId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisId", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeAnalysisId", + "smithy.api#documentation": "The ID of the Network Access Scope analysis.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysisId" + } + }, + "NetworkInsightsAccessScopeAnalysisArn": { + "target": "com.amazonaws.ec2#ResourceArn", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeAnalysisArn", + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Network Access Scope analysis.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysisArn" + } + }, + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeId", + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScopeId" + } + }, + "Status": { + "target": "com.amazonaws.ec2#AnalysisStatus", + "traits": { + "aws.protocols#ec2QueryName": "Status", + "smithy.api#documentation": "The status.
", + "smithy.api#xmlName": "status" + } + }, + "StatusMessage": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "StatusMessage", + "smithy.api#documentation": "The status message.
", + "smithy.api#xmlName": "statusMessage" + } + }, + "WarningMessage": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "WarningMessage", + "smithy.api#documentation": "The warning message.
", + "smithy.api#xmlName": "warningMessage" + } + }, + "StartDate": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "StartDate", + "smithy.api#documentation": "The analysis start date.
", + "smithy.api#xmlName": "startDate" + } + }, + "EndDate": { + "target": "com.amazonaws.ec2#MillisecondDateTime", + "traits": { + "aws.protocols#ec2QueryName": "EndDate", + "smithy.api#documentation": "The analysis end date.
", + "smithy.api#xmlName": "endDate" + } + }, + "FindingsFound": { + "target": "com.amazonaws.ec2#FindingsFound", + "traits": { + "aws.protocols#ec2QueryName": "FindingsFound", + "smithy.api#documentation": "Indicates whether there are findings.
", + "smithy.api#xmlName": "findingsFound" + } + }, + "AnalyzedEniCount": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "aws.protocols#ec2QueryName": "AnalyzedEniCount", + "smithy.api#documentation": "The number of network interfaces analyzed.
", + "smithy.api#xmlName": "analyzedEniCount" + } + }, + "Tags": { + "target": "com.amazonaws.ec2#TagList", + "traits": { + "aws.protocols#ec2QueryName": "TagSet", + "smithy.api#documentation": "The tags.
", + "smithy.api#xmlName": "tagSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a Network Access Scope analysis.
" + } + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisId": { + "type": "string" + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisId", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysisList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeContent": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeId", + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#xmlName": "networkInsightsAccessScopeId" + } + }, + "MatchPaths": { + "target": "com.amazonaws.ec2#AccessScopePathList", + "traits": { + "aws.protocols#ec2QueryName": "MatchPathSet", + "smithy.api#documentation": "The paths to match.
", + "smithy.api#xmlName": "matchPathSet" + } + }, + "ExcludePaths": { + "target": "com.amazonaws.ec2#AccessScopePathList", + "traits": { + "aws.protocols#ec2QueryName": "ExcludePathSet", + "smithy.api#documentation": "The paths to exclude.
", + "smithy.api#xmlName": "excludePathSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the Network Access Scope content.
" + } + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeId": { + "type": "string" + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#NetworkInsightsAccessScopeList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScope", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#NetworkInsightsAnalysis": { "type": "structure", "members": { @@ -52645,6 +56661,14 @@ "smithy.api#xmlName": "statusMessage" } }, + "WarningMessage": { + "target": "com.amazonaws.ec2#String", + "traits": { + "aws.protocols#ec2QueryName": "WarningMessage", + "smithy.api#documentation": "The warning message.
", + "smithy.api#xmlName": "warningMessage" + } + }, "NetworkPathFound": { "target": "com.amazonaws.ec2#Boolean", "traits": { @@ -53836,6 +57860,127 @@ } } }, + "com.amazonaws.ec2#PacketHeaderStatement": { + "type": "structure", + "members": { + "SourceAddresses": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "SourceAddressSet", + "smithy.api#documentation": "The source addresses.
", + "smithy.api#xmlName": "sourceAddressSet" + } + }, + "DestinationAddresses": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "DestinationAddressSet", + "smithy.api#documentation": "The destination addresses.
", + "smithy.api#xmlName": "destinationAddressSet" + } + }, + "SourcePorts": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "SourcePortSet", + "smithy.api#documentation": "The source ports.
", + "smithy.api#xmlName": "sourcePortSet" + } + }, + "DestinationPorts": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "DestinationPortSet", + "smithy.api#documentation": "The destination ports.
", + "smithy.api#xmlName": "destinationPortSet" + } + }, + "SourcePrefixLists": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "SourcePrefixListSet", + "smithy.api#documentation": "The source prefix lists.
", + "smithy.api#xmlName": "sourcePrefixListSet" + } + }, + "DestinationPrefixLists": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "DestinationPrefixListSet", + "smithy.api#documentation": "The destination prefix lists.
", + "smithy.api#xmlName": "destinationPrefixListSet" + } + }, + "Protocols": { + "target": "com.amazonaws.ec2#ProtocolList", + "traits": { + "aws.protocols#ec2QueryName": "ProtocolSet", + "smithy.api#documentation": "The protocols.
", + "smithy.api#xmlName": "protocolSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a packet header statement.
" + } + }, + "com.amazonaws.ec2#PacketHeaderStatementRequest": { + "type": "structure", + "members": { + "SourceAddresses": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The source addresses.
", + "smithy.api#xmlName": "SourceAddress" + } + }, + "DestinationAddresses": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The destination addresses.
", + "smithy.api#xmlName": "DestinationAddress" + } + }, + "SourcePorts": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The source ports.
", + "smithy.api#xmlName": "SourcePort" + } + }, + "DestinationPorts": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The destination ports.
", + "smithy.api#xmlName": "DestinationPort" + } + }, + "SourcePrefixLists": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The source prefix lists.
", + "smithy.api#xmlName": "SourcePrefixList" + } + }, + "DestinationPrefixLists": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The destination prefix lists.
", + "smithy.api#xmlName": "DestinationPrefixList" + } + }, + "Protocols": { + "target": "com.amazonaws.ec2#ProtocolList", + "traits": { + "smithy.api#documentation": "The protocols.
", + "smithy.api#xmlName": "Protocol" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a packet header statement.
" + } + }, "com.amazonaws.ec2#PartitionLoadFrequency": { "type": "string", "traits": { @@ -53878,6 +58023,14 @@ "smithy.api#xmlName": "aclRule" } }, + "AttachedTo": { + "target": "com.amazonaws.ec2#AnalysisComponent", + "traits": { + "aws.protocols#ec2QueryName": "AttachedTo", + "smithy.api#documentation": "The resource to which the path component is attached.
", + "smithy.api#xmlName": "attachedTo" + } + }, "Component": { "target": "com.amazonaws.ec2#AnalysisComponent", "traits": { @@ -53964,6 +58117,50 @@ } } }, + "com.amazonaws.ec2#PathStatement": { + "type": "structure", + "members": { + "PacketHeaderStatement": { + "target": "com.amazonaws.ec2#PacketHeaderStatement", + "traits": { + "aws.protocols#ec2QueryName": "PacketHeaderStatement", + "smithy.api#documentation": "The packet header statement.
", + "smithy.api#xmlName": "packetHeaderStatement" + } + }, + "ResourceStatement": { + "target": "com.amazonaws.ec2#ResourceStatement", + "traits": { + "aws.protocols#ec2QueryName": "ResourceStatement", + "smithy.api#documentation": "The resource statement.
", + "smithy.api#xmlName": "resourceStatement" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a path statement.
" + } + }, + "com.amazonaws.ec2#PathStatementRequest": { + "type": "structure", + "members": { + "PacketHeaderStatement": { + "target": "com.amazonaws.ec2#PacketHeaderStatementRequest", + "traits": { + "smithy.api#documentation": "The packet header statement.
" + } + }, + "ResourceStatement": { + "target": "com.amazonaws.ec2#ResourceStatementRequest", + "traits": { + "smithy.api#documentation": "The resource statement.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a path statement.
" + } + }, "com.amazonaws.ec2#PaymentOption": { "type": "string", "traits": { @@ -55526,6 +59723,15 @@ ] } }, + "com.amazonaws.ec2#ProtocolList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#Protocol", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#ProtocolValue": { "type": "string", "traits": { @@ -55611,6 +59817,125 @@ } } }, + "com.amazonaws.ec2#ProvisionIpamPoolCidr": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ProvisionIpamPoolCidrRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ProvisionIpamPoolCidrResult" + }, + "traits": { + "smithy.api#documentation": "Provision a CIDR to an IPAM pool. You can use thsi action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.
\nFor more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#ProvisionIpamPoolCidrRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool to which you want to assign a CIDR.
", + "smithy.api#required": {} + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The CIDR you want to assign to the IPAM pool.
" + } + }, + "CidrAuthorizationContext": { + "target": "com.amazonaws.ec2#IpamCidrAuthorizationContext", + "traits": { + "smithy.api#documentation": "A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.
" + } + } + } + }, + "com.amazonaws.ec2#ProvisionIpamPoolCidrResult": { + "type": "structure", + "members": { + "IpamPoolCidr": { + "target": "com.amazonaws.ec2#IpamPoolCidr", + "traits": { + "aws.protocols#ec2QueryName": "IpamPoolCidr", + "smithy.api#documentation": "Information about the provisioned CIDR.
", + "smithy.api#xmlName": "ipamPoolCidr" + } + } + } + }, + "com.amazonaws.ec2#ProvisionPublicIpv4PoolCidr": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ProvisionPublicIpv4PoolCidrRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ProvisionPublicIpv4PoolCidrResult" + }, + "traits": { + "smithy.api#documentation": "Provision a CIDR to a public IPv4 pool.
\nFor more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#ProvisionPublicIpv4PoolCidrRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool you would like to use to allocate this CIDR.
", + "smithy.api#required": {} + } + }, + "PoolId": { + "target": "com.amazonaws.ec2#Ipv4PoolEc2Id", + "traits": { + "smithy.api#documentation": "The ID of the public IPv4 pool you would like to use for this CIDR.
", + "smithy.api#required": {} + } + }, + "NetmaskLength": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "smithy.api#documentation": "The netmask length of the CIDR you would like to allocate to the public IPv4 pool.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#ProvisionPublicIpv4PoolCidrResult": { + "type": "structure", + "members": { + "PoolId": { + "target": "com.amazonaws.ec2#Ipv4PoolEc2Id", + "traits": { + "aws.protocols#ec2QueryName": "PoolId", + "smithy.api#documentation": "The ID of the pool that you want to provision the CIDR to.
", + "smithy.api#xmlName": "poolId" + } + }, + "PoolAddressRange": { + "target": "com.amazonaws.ec2#PublicIpv4PoolRange", + "traits": { + "aws.protocols#ec2QueryName": "PoolAddressRange", + "smithy.api#xmlName": "poolAddressRange" + } + } + } + }, "com.amazonaws.ec2#ProvisionedBandwidth": { "type": "structure", "members": { @@ -57043,6 +61368,88 @@ } } }, + "com.amazonaws.ec2#ReleaseIpamPoolAllocation": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#ReleaseIpamPoolAllocationRequest" + }, + "output": { + "target": "com.amazonaws.ec2#ReleaseIpamPoolAllocationResult" + }, + "traits": { + "smithy.api#documentation": "Release an allocation within an IPAM pool. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide.\n
" + } + }, + "com.amazonaws.ec2#ReleaseIpamPoolAllocationRequest": { + "type": "structure", + "members": { + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "A check for whether you have the required permissions for the action without actually making the request \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The ID of the IPAM pool which contains the allocation you want to release.
", + "smithy.api#required": {} + } + }, + "Cidr": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The CIDR of the allocation you want to release.
", + "smithy.api#required": {} + } + }, + "IpamPoolAllocationId": { + "target": "com.amazonaws.ec2#IpamPoolAllocationId", + "traits": { + "smithy.api#documentation": "The ID of the allocation.
" + } + } + } + }, + "com.amazonaws.ec2#ReleaseIpamPoolAllocationResult": { + "type": "structure", + "members": { + "Success": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "aws.protocols#ec2QueryName": "Success", + "smithy.api#documentation": "Indicates if the release was successful.
", + "smithy.api#xmlName": "success" + } + } + } + }, + "com.amazonaws.ec2#RemoveIpamOperatingRegion": { + "type": "structure", + "members": { + "RegionName": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The name of the operating Region you want to remove.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Remove an operating Region from an IPAM. Operating Regions are Amazon Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only\n discovers and monitors resources in the Amazon Web Services Regions you select as operating Regions.
\nFor more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide\n
" + } + }, + "com.amazonaws.ec2#RemoveIpamOperatingRegionSet": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#RemoveIpamOperatingRegion" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, "com.amazonaws.ec2#RemovePrefixListEntries": { "type": "list", "member": { @@ -57815,6 +62222,35 @@ } } }, + "com.amazonaws.ec2#RequestIpamResourceTag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
" + } + }, + "Value": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "The value for the tag.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A tag on an IPAM resource.
" + } + }, + "com.amazonaws.ec2#RequestIpamResourceTagList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#RequestIpamResourceTag", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#RequestLaunchTemplateData": { "type": "structure", "members": { @@ -59582,6 +64018,52 @@ } } }, + "com.amazonaws.ec2#ResourceStatement": { + "type": "structure", + "members": { + "Resources": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "ResourceSet", + "smithy.api#documentation": "The resources.
", + "smithy.api#xmlName": "resourceSet" + } + }, + "ResourceTypes": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "aws.protocols#ec2QueryName": "ResourceTypeSet", + "smithy.api#documentation": "The resource types.
", + "smithy.api#xmlName": "resourceTypeSet" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a resource statement.
" + } + }, + "com.amazonaws.ec2#ResourceStatementRequest": { + "type": "structure", + "members": { + "Resources": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The resources.
", + "smithy.api#xmlName": "Resource" + } + }, + "ResourceTypes": { + "target": "com.amazonaws.ec2#ValueStringList", + "traits": { + "smithy.api#documentation": "The resource types.
", + "smithy.api#xmlName": "ResourceType" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a resource statement.
" + } + }, "com.amazonaws.ec2#ResourceType": { "type": "string", "traits": { @@ -59666,6 +64148,18 @@ "value": "internet-gateway", "name": "internet_gateway" }, + { + "value": "ipam", + "name": "ipam" + }, + { + "value": "ipam-pool", + "name": "ipam_pool" + }, + { + "value": "ipam-scope", + "name": "ipam_scope" + }, { "value": "ipv4pool-ec2", "name": "ipv4pool_ec2" @@ -59726,6 +64220,14 @@ "value": "network-insights-path", "name": "network_insights_path" }, + { + "value": "network-insights-access-scope", + "name": "network_insights_access_scope" + }, + { + "value": "network-insights-access-scope-analysis", + "name": "network_insights_access_scope_analysis" + }, { "value": "placement-group", "name": "placement_group" @@ -65487,6 +69989,64 @@ } } }, + "com.amazonaws.ec2#StartNetworkInsightsAccessScopeAnalysis": { + "type": "operation", + "input": { + "target": "com.amazonaws.ec2#StartNetworkInsightsAccessScopeAnalysisRequest" + }, + "output": { + "target": "com.amazonaws.ec2#StartNetworkInsightsAccessScopeAnalysisResult" + }, + "traits": { + "smithy.api#documentation": "Starts analyzing the specified Network Access Scope.
" + } + }, + "com.amazonaws.ec2#StartNetworkInsightsAccessScopeAnalysisRequest": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeId": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeId", + "traits": { + "smithy.api#documentation": "The ID of the Network Access Scope.
", + "smithy.api#required": {} + } + }, + "DryRun": { + "target": "com.amazonaws.ec2#Boolean", + "traits": { + "smithy.api#documentation": "Checks whether you have the required permissions for the action, without actually making the request, \n and provides an error response. If you have the required permissions, the error response is DryRunOperation
. \n Otherwise, it is UnauthorizedOperation
.
The tags to apply.
", + "smithy.api#xmlName": "TagSpecification" + } + }, + "ClientToken": { + "target": "com.amazonaws.ec2#String", + "traits": { + "smithy.api#documentation": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, \n see How to ensure idempotency.
", + "smithy.api#idempotencyToken": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.ec2#StartNetworkInsightsAccessScopeAnalysisResult": { + "type": "structure", + "members": { + "NetworkInsightsAccessScopeAnalysis": { + "target": "com.amazonaws.ec2#NetworkInsightsAccessScopeAnalysis", + "traits": { + "aws.protocols#ec2QueryName": "NetworkInsightsAccessScopeAnalysis", + "smithy.api#documentation": "The Network Access Scope analysis.
", + "smithy.api#xmlName": "networkInsightsAccessScopeAnalysis" + } + } + } + }, "com.amazonaws.ec2#StartNetworkInsightsAnalysis": { "type": "operation", "input": { @@ -65964,6 +70524,14 @@ "smithy.api#xmlName": "defaultForAz" } }, + "EnableLniAtDeviceIndex": { + "target": "com.amazonaws.ec2#Integer", + "traits": { + "aws.protocols#ec2QueryName": "EnableLniAtDeviceIndex", + "smithy.api#documentation": "\n Indicates the device position for local network interfaces in this subnet. For example, \n 1
indicates local network interfaces in this subnet are the secondary \n network interface (eth1). \n
The resource statement.
", + "smithy.api#xmlName": "resourceStatement" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a through resource statement.
" + } + }, + "com.amazonaws.ec2#ThroughResourcesStatementList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#ThroughResourcesStatement", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, + "com.amazonaws.ec2#ThroughResourcesStatementRequest": { + "type": "structure", + "members": { + "ResourceStatement": { + "target": "com.amazonaws.ec2#ResourceStatementRequest", + "traits": { + "smithy.api#documentation": "The resource statement.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes a through resource statement.
" + } + }, + "com.amazonaws.ec2#ThroughResourcesStatementRequestList": { + "type": "list", + "member": { + "target": "com.amazonaws.ec2#ThroughResourcesStatementRequest", + "traits": { + "smithy.api#xmlName": "item" + } + } + }, "com.amazonaws.ec2#TieringOperationStatus": { "type": "string", "traits": { diff --git a/codegen/sdk-codegen/aws-models/fsx.2018-03-01.json b/codegen/sdk-codegen/aws-models/fsx.2018-03-01.json index 664d3f7c956..566abe519b8 100644 --- a/codegen/sdk-codegen/aws-models/fsx.2018-03-01.json +++ b/codegen/sdk-codegen/aws-models/fsx.2018-03-01.json @@ -42,6 +42,21 @@ }, "com.amazonaws.fsx#AWSSimbaAPIService_v20180301": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "FSx", + "arnNamespace": "fsx", + "cloudFormationName": "FSx", + "cloudTrailEventSource": "fsx.amazonaws.com", + "endpointPrefix": "fsx" + }, + "aws.auth#sigv4": { + "name": "fsx" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Amazon FSx is a fully managed service that makes it easy for storage and\n application administrators to launch and use shared file storage.
", + "smithy.api#title": "Amazon FSx" + }, "version": "2018-03-01", "operations": [ { @@ -56,6 +71,9 @@ { "target": "com.amazonaws.fsx#CreateBackup" }, + { + "target": "com.amazonaws.fsx#CreateDataRepositoryAssociation" + }, { "target": "com.amazonaws.fsx#CreateDataRepositoryTask" }, @@ -65,6 +83,9 @@ { "target": "com.amazonaws.fsx#CreateFileSystemFromBackup" }, + { + "target": "com.amazonaws.fsx#CreateSnapshot" + }, { "target": "com.amazonaws.fsx#CreateStorageVirtualMachine" }, @@ -77,9 +98,15 @@ { "target": "com.amazonaws.fsx#DeleteBackup" }, + { + "target": "com.amazonaws.fsx#DeleteDataRepositoryAssociation" + }, { "target": "com.amazonaws.fsx#DeleteFileSystem" }, + { + "target": "com.amazonaws.fsx#DeleteSnapshot" + }, { "target": "com.amazonaws.fsx#DeleteStorageVirtualMachine" }, @@ -89,6 +116,9 @@ { "target": "com.amazonaws.fsx#DescribeBackups" }, + { + "target": "com.amazonaws.fsx#DescribeDataRepositoryAssociations" + }, { "target": "com.amazonaws.fsx#DescribeDataRepositoryTasks" }, @@ -98,6 +128,9 @@ { "target": "com.amazonaws.fsx#DescribeFileSystems" }, + { + "target": "com.amazonaws.fsx#DescribeSnapshots" + }, { "target": "com.amazonaws.fsx#DescribeStorageVirtualMachines" }, @@ -110,37 +143,34 @@ { "target": "com.amazonaws.fsx#ListTagsForResource" }, + { + "target": "com.amazonaws.fsx#ReleaseFileSystemNfsV3Locks" + }, + { + "target": "com.amazonaws.fsx#RestoreVolumeFromSnapshot" + }, { "target": "com.amazonaws.fsx#TagResource" }, { "target": "com.amazonaws.fsx#UntagResource" }, + { + "target": "com.amazonaws.fsx#UpdateDataRepositoryAssociation" + }, { "target": "com.amazonaws.fsx#UpdateFileSystem" }, + { + "target": "com.amazonaws.fsx#UpdateSnapshot" + }, { "target": "com.amazonaws.fsx#UpdateStorageVirtualMachine" }, { "target": "com.amazonaws.fsx#UpdateVolume" } - ], - "traits": { - "aws.api#service": { - "sdkId": "FSx", - "arnNamespace": "fsx", - "cloudFormationName": "FSx", - "cloudTrailEventSource": "fsx.amazonaws.com", - "endpointPrefix": "fsx" - }, - "aws.auth#sigv4": { - "name": "fsx" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Amazon FSx is a fully managed service that makes it easy for storage and\n application administrators to launch and use shared file storage.
", - "smithy.api#title": "Amazon FSx" - } + ] }, "com.amazonaws.fsx#ActiveDirectoryBackupAttributes": { "type": "structure", @@ -148,7 +178,7 @@ "DomainName": { "target": "com.amazonaws.fsx#ActiveDirectoryFullyQualifiedName", "traits": { - "smithy.api#documentation": "The fully qualified domain name of the self-managed AD directory.
" + "smithy.api#documentation": "The fully qualified domain name of the self-managed Active Directory directory.
" } }, "ActiveDirectoryId": { @@ -162,7 +192,7 @@ } }, "traits": { - "smithy.api#documentation": "The Microsoft AD attributes of the Amazon FSx for Windows File Server file system.
" + "smithy.api#documentation": "The Microsoft Active Directory attributes of the Amazon FSx for Windows File\n Server file system.
" } }, "com.amazonaws.fsx#ActiveDirectoryError": { @@ -244,19 +274,19 @@ "ProgressPercent": { "target": "com.amazonaws.fsx#ProgressPercent", "traits": { - "smithy.api#documentation": "Provides the percent complete of a STORAGE_OPTIMIZATION
administrative action. \n Does not apply to any other administrative action type.
The percentage-complete status of a STORAGE_OPTIMIZATION
administrative\n action. Does not apply to any other administrative action type.
Time that the administrative action request was received.
" + "smithy.api#documentation": "The time that the administrative action request was received.
" } }, "Status": { "target": "com.amazonaws.fsx#Status", "traits": { - "smithy.api#documentation": "Describes the status of the administrative action, as follows:
\n\n FAILED
- Amazon FSx failed to process the administrative action successfully.
\n IN_PROGRESS
- Amazon FSx is processing the administrative action.
\n PENDING
- Amazon FSx is waiting to process the administrative action.
\n COMPLETED
- Amazon FSx has finished processing the administrative task.
\n UPDATED_OPTIMIZING
- For a storage capacity increase update, Amazon FSx has\n updated the file system with the new storage capacity, and is now performing the\n storage optimization process. For more information, see\n Managing\n storage capacity in the Amazon FSx for Windows File Server\n User Guide and Managing storage\n and throughput capacity in the Amazon FSx for Lustre User\n Guide.
Describes the status of the administrative action, as follows:
\n\n FAILED
- Amazon FSx failed to process the administrative action\n successfully.
\n IN_PROGRESS
- Amazon FSx is processing the administrative action.
\n PENDING
- Amazon FSx is waiting to process the administrative\n action.
\n COMPLETED
- Amazon FSx has finished processing the administrative\n task.
\n UPDATED_OPTIMIZING
- For a storage-capacity increase update, Amazon FSx\n has updated the file system with the new storage capacity, and is now performing\n the storage-optimization process.
Describes a specific Amazon FSx administrative action for the current Windows or\n Lustre file system.
" + "smithy.api#documentation": "Describes a specific Amazon FSx administrative action for the current Windows,\n Lustre, or OpenZFS file system.
" } }, "com.amazonaws.fsx#AdministrativeActionFailureDetails": { @@ -293,7 +326,7 @@ "com.amazonaws.fsx#AdministrativeActionType": { "type": "string", "traits": { - "smithy.api#documentation": "Describes the type of administrative action, as follows:
\n\n FILE_SYSTEM_UPDATE
- A file system update administrative action initiated by the user from the \n Amazon FSx console, API (UpdateFileSystem), or CLI (update-file-system).
\n STORAGE_OPTIMIZATION
- Once the FILE_SYSTEM_UPDATE
\n task to increase a file system's storage capacity completes successfully, a \n STORAGE_OPTIMIZATION
task starts.\n
For Windows, storage optimization is the process of migrating the file system data\n to the new, larger disks.
\nFor Lustre, storage optimization consists of rebalancing the data across the existing and\n newly added file servers.
\nYou can track the storage optimization progress using the\n ProgressPercent
property. When\n STORAGE_OPTIMIZATION
completes successfully, the parent\n FILE_SYSTEM_UPDATE
action status changes to\n COMPLETED
. For more information, see Managing\n storage capacity in the Amazon FSx for Windows File Server\n User Guide and Managing storage\n and throughput capacity in the Amazon FSx for Lustre User\n Guide.
\n FILE_SYSTEM_ALIAS_ASSOCIATION
- A file system update to associate a new DNS alias with the file system. \n For more information, see\n .
\n FILE_SYSTEM_ALIAS_DISASSOCIATION
- A file system update to disassociate a DNS alias from the file system.\n For more information, see .
Describes the type of administrative action, as follows:
\n\n FILE_SYSTEM_UPDATE
- A file system update administrative action\n initiated from the Amazon FSx console, API\n (UpdateFileSystem
), or CLI\n (update-file-system
).
\n STORAGE_OPTIMIZATION
- After the FILE_SYSTEM_UPDATE
\n task to increase a file system's storage capacity has been completed\n successfully, a STORAGE_OPTIMIZATION
task starts.
For Windows, storage optimization is the process of migrating the file system data\n to the new, larger disks.
\nFor Lustre, storage optimization consists of rebalancing the data across the existing and\n newly added file servers.
\nFor OpenZFS, storage optimization consists of migrating data from the\n older smaller disks to the newer larger disks.
\nYou can track the storage-optimization progress using the\n ProgressPercent
property. When\n STORAGE_OPTIMIZATION
has been completed successfully, the\n parent FILE_SYSTEM_UPDATE
action status changes to\n COMPLETED
. For more information, see Managing\n storage capacity in the Amazon FSx for Windows\n File Server User Guide, Managing storage\n and throughput capacity in the Amazon FSx for\n Lustre User Guide, and Managing storage capacity in the\n Amazon FSx for OpenZFS User Guide.
\n FILE_SYSTEM_ALIAS_ASSOCIATION
- A file system update to associate a new Domain\n Name System (DNS) alias with the file system. For more information, see \n AssociateFileSystemAliases.
\n FILE_SYSTEM_ALIAS_DISASSOCIATION
- A file system update to disassociate a DNS alias from the file system.\n For more information, see DisassociateFileSystemAliases.
\n VOLUME_UPDATE
- A volume update to an Amazon FSx for NetApp ONTAP or\n Amazon FSx for OpenZFS volume initiated from the Amazon FSx\n console, API (UpdateVolume
), or CLI\n (update-volume
).
\n SNAPSHOT_UPDATE
- A snapshot update to an Amazon FSx for\n OpenZFS volume initiated from the Amazon FSx console, API\n (UpdateSnapshot
), or CLI (update-snapshot
).
\n RELEASE_NFS_V3_LOCKS
- Tracks the release of Network File System\n (NFS) V3 locks on an Amazon FSx for OpenZFS file system.
The system generated response showing the DNS aliases that \n Amazon FSx is attempting to associate with the file system. \n Use the API \n operation to monitor the status of the aliases Amazon FSx is \n associating with the file system. It can take up to 2.5 minutes for \n the alias status to change from CREATING
to AVAILABLE
.
The AutoExportPolicy
can have the following event values:
\n NEW
- Amazon FSx automatically exports new files and\n directories to the data repository as they are added to the file system.
\n CHANGED
- Amazon FSx automatically exports changes to\n files and directories on the file system to the data repository.
\n DELETED
- Files and directories are automatically deleted\n on the data repository when they are deleted on the file system.
You can define any combination of event types for your AutoExportPolicy
.
Describes a data repository association's automatic export policy. The\n AutoExportPolicy
defines the types of updated objects on the\n file system that will be automatically exported to the data repository.\n As you create, modify, or delete files, Amazon FSx automatically\n exports the defined changes asynchronously once your application finishes\n modifying the file.
This AutoExportPolicy
is supported only for file systems with the\n Persistent_2
deployment type.
The AutoImportPolicy
can have the following event values:
\n NEW
- Amazon FSx automatically imports metadata of\n files added to the linked S3 bucket that do not currently exist in the FSx\n file system.
\n CHANGED
- Amazon FSx automatically updates file\n metadata and invalidates existing file content on the file system as files\n change in the data repository.
\n DELETED
- Amazon FSx automatically deletes files\n on the file system as corresponding files are deleted in the data repository.
You can define any combination of event types for your AutoImportPolicy
.
Describes the data repository association's automatic import policy.\n The AutoImportPolicy defines how Amazon FSx keeps your file metadata and directory\n listings up to date by importing changes to your file system as you modify\n objects in a linked S3 bucket.
\nThis AutoImportPolicy
is supported only for file systems\n with the Persistent_2
deployment type.
The number of days to retain automatic backups. Setting this to 0 disables\n automatic backups. You can retain automatic backups for a maximum of 90 days. The default is 0.
", + "smithy.api#documentation": "The number of days to retain automatic backups. Setting this property to\n 0
disables automatic backups. You can retain automatic backups for a\n maximum of 90 days. The default is 0
.
The lifecycle status of the backup.
\n\n AVAILABLE
- The backup is fully available.
\n PENDING
- For user-initiated backups on Lustre file systems only; Amazon FSx has not started creating the backup.
\n CREATING
- Amazon FSx is creating the backup.
\n TRANSFERRING
- For user-initiated backups on Lustre file systems only; Amazon FSx is transferring the backup to S3.
\n COPYING
- Amazon FSx is copying the backup.
\n DELETED
- Amazon FSx deleted the backup and it is no longer available.
\n FAILED
- Amazon FSx could not complete the backup.
The lifecycle status of the backup.
\n\n AVAILABLE
- The backup is fully available.
\n PENDING
- For user-initiated backups on Lustre file systems only; Amazon FSx hasn't started creating the backup.
\n CREATING
- Amazon FSx is creating the backup.
\n TRANSFERRING
- For user-initiated backups on Lustre file systems only; Amazon FSx is transferring the backup to Amazon S3.
\n COPYING
- Amazon FSx is copying the backup.
\n DELETED
- Amazon FSx deleted the backup and it's no longer\n available.
\n FAILED
- Amazon FSx couldn't finish the backup.
Details explaining any failures that occur when creating a backup.
" + "smithy.api#documentation": "Details explaining any failures that occurred when creating a backup.
" } }, "Type": { "target": "com.amazonaws.fsx#BackupType", "traits": { - "smithy.api#documentation": "The type of the file system backup.
", + "smithy.api#documentation": "The type of the file-system backup.
", "smithy.api#required": {} } }, @@ -556,7 +633,7 @@ "KmsKeyId": { "target": "com.amazonaws.fsx#KmsKeyId", "traits": { - "smithy.api#documentation": "The ID of the Key Management Service (KMS) key used to encrypt the \n backup of the Amazon FSx file system's data at rest. \n
" + "smithy.api#documentation": "The ID of the Key Management Service (KMS) key used to encrypt the\n backup of the Amazon FSx file system's data at rest.
" } }, "ResourceARN": { @@ -568,20 +645,20 @@ "Tags": { "target": "com.amazonaws.fsx#Tags", "traits": { - "smithy.api#documentation": "Tags associated with a particular file system.
" + "smithy.api#documentation": "The tags associated with a particular file system.
" } }, "FileSystem": { "target": "com.amazonaws.fsx#FileSystem", "traits": { - "smithy.api#documentation": "Metadata of the file system associated with the backup. This metadata is persisted\n even if the file system is deleted.
", + "smithy.api#documentation": "The metadata of the file system associated with the backup. This metadata is persisted\n even if the file system is deleted.
", "smithy.api#required": {} } }, "DirectoryInformation": { "target": "com.amazonaws.fsx#ActiveDirectoryBackupAttributes", "traits": { - "smithy.api#documentation": "The configuration of the self-managed Microsoft Active Directory (AD) to which the Windows File Server instance is joined.
" + "smithy.api#documentation": "The configuration of the self-managed Microsoft Active Directory directory to which\n the Windows File Server instance is joined.
" } }, "OwnerId": { @@ -599,7 +676,7 @@ "ResourceType": { "target": "com.amazonaws.fsx#ResourceType", "traits": { - "smithy.api#documentation": "Specifies the resource type that is backed up.
" + "smithy.api#documentation": "Specifies the resource type that's backed up.
" } }, "Volume": { @@ -607,7 +684,7 @@ } }, "traits": { - "smithy.api#documentation": "A backup of an Amazon FSx for Windows File Server or Amazon FSx for Lustre file system,\n or of an Amazon FSx for NetApp ONTAP volume.
" + "smithy.api#documentation": "A backup of an Amazon FSx for Windows File Server, Amazon FSx for\n Lustre file system, Amazon FSx for NetApp ONTAP volume, or Amazon FSx\n for OpenZFS file system.
" } }, "com.amazonaws.fsx#BackupBeingCopied": { @@ -631,7 +708,7 @@ "Message": { "target": "com.amazonaws.fsx#ErrorMessage", "traits": { - "smithy.api#documentation": "A message describing the backup creation failure.
" + "smithy.api#documentation": "A message describing the backup-creation failure.
" } } }, @@ -642,7 +719,7 @@ "com.amazonaws.fsx#BackupId": { "type": "string", "traits": { - "smithy.api#documentation": "The ID of the source backup. Specifies the backup you are copying.
", + "smithy.api#documentation": "The ID of the source backup. Specifies the backup that you are copying.
", "smithy.api#length": { "min": 12, "max": 128 @@ -678,7 +755,7 @@ "com.amazonaws.fsx#BackupLifecycle": { "type": "string", "traits": { - "smithy.api#documentation": "The lifecycle status of the backup.
\n\n AVAILABLE
- The backup is fully available.
\n PENDING
- For user-initiated backups on Lustre file systems only; Amazon FSx has not started creating the backup.
\n CREATING
- Amazon FSx is creating the new user-intiated backup
\n TRANSFERRING
- For user-initiated backups on Lustre file systems only; Amazon FSx is backing up the file system.
\n COPYING
- Amazon FSx is copying the backup.
\n DELETED
- Amazon FSx deleted the backup and it is no longer available.
\n FAILED
- Amazon FSx could not complete the backup.
The lifecycle status of the backup.
\n\n AVAILABLE
- The backup is fully available.
\n PENDING
- For user-initiated backups on Lustre file systems only; Amazon FSx hasn't started creating the backup.
\n CREATING
- Amazon FSx is creating the new user-initiated backup.
\n TRANSFERRING
- For user-initiated backups on Lustre file systems only; Amazon FSx is backing up the file\n system.
\n COPYING
- Amazon FSx is copying the backup.
\n DELETED
- Amazon FSx deleted the backup and it's no longer\n available.
\n FAILED
- Amazon FSx couldn't finish the backup.
Copies an existing backup within the same Amazon Web Services account to another Amazon Web Services Region\n (cross-Region copy) or within the same Amazon Web Services Region (in-Region copy). You can have up to five\n backup copy requests in progress to a single destination Region per account.
\nYou can use cross-Region backup copies for cross-region disaster recovery.\n You periodically take backups and copy them to another Region so that in the\n event of a disaster in the primary Region, you can restore from backup and recover\n availability quickly in the other Region. You can make cross-Region copies\n only within your Amazon Web Services partition.
\nYou can also use backup copies to clone your file data set to another Region\n or within the same Region.
\nYou can use the SourceRegion
parameter to specify the Amazon Web Services Region\n from which the backup will be copied. For example, if you make the call from the\n us-west-1
Region and want to copy a backup from the us-east-2
\n Region, you specify us-east-2
in the SourceRegion
parameter\n to make a cross-Region copy. If you don't specify a Region, the backup copy is\n created in the same Region where the request is sent from (in-Region copy).
For more information on creating backup copies, see \n \n Copying backups in the Amazon FSx for Windows User Guide and \n Copying backups \n in the Amazon FSx for Lustre User Guide.
", + "smithy.api#documentation": "Copies an existing backup within the same Amazon Web Services account to another Amazon Web Services Region\n (cross-Region copy) or within the same Amazon Web Services Region (in-Region copy). You can have up to five\n backup copy requests in progress to a single destination Region per account.
\nYou can use cross-Region backup copies for cross-Region disaster recovery. You can\n periodically take backups and copy them to another Region so that in the event of a\n disaster in the primary Region, you can restore from backup and recover availability\n quickly in the other Region. You can make cross-Region copies only within your Amazon Web Services partition. A partition is a grouping of Regions. Amazon Web Services currently\n has three partitions: aws
(Standard Regions), aws-cn
(China\n Regions), and aws-us-gov
(Amazon Web Services GovCloud [US] Regions).
You can also use backup copies to clone your file dataset to another Region or within\n the same Region.
\nYou can use the SourceRegion
parameter to specify the Amazon Web Services Region\n from which the backup will be copied. For example, if you make the call from the\n us-west-1
Region and want to copy a backup from the us-east-2
\n Region, you specify us-east-2
in the SourceRegion
parameter\n to make a cross-Region copy. If you don't specify a Region, the backup copy is\n created in the same Region where the request is sent from (in-Region copy).
For more information about creating backup copies, see Copying backups\n in the Amazon FSx for Windows User Guide, Copying backups in the Amazon FSx for Lustre User\n Guide, and Copying backups in the Amazon FSx for OpenZFS User\n Guide.
", "smithy.api#idempotent": {} } }, @@ -962,14 +1045,14 @@ "SourceBackupId": { "target": "com.amazonaws.fsx#SourceBackupId", "traits": { - "smithy.api#documentation": "The ID of the source backup. Specifies the ID of the backup that is\n being copied.
", + "smithy.api#documentation": "The ID of the source backup. Specifies the ID of the backup that's being copied.
", "smithy.api#required": {} } }, "SourceRegion": { "target": "com.amazonaws.fsx#Region", "traits": { - "smithy.api#documentation": "The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which\n the backup is being copied. The source and destination Regions must be in\n the same Amazon Web Services partition. If you don't specify a Region, it defaults to\n the Region where the request is sent from (in-Region copy).
" + "smithy.api#documentation": "The source Amazon Web Services Region of the backup. Specifies the Amazon Web Services Region from which the backup is being copied. The source and destination\n Regions must be in the same Amazon Web Services partition. If you don't specify a\n Region, SourceRegion
defaults to the Region where the request is sent from\n (in-Region copy).
A boolean flag indicating whether tags from the source backup\n should be copied to the backup copy. This value defaults to false.
\nIf you set CopyTags
to true and the source backup has\n existing tags, you can use the Tags
parameter to create new\n tags, provided that the sum of the source backup tags and the new tags\n doesn't exceed 50. Both sets of tags are merged. If there are tag\n conflicts (for example, two tags with the same key but different values),\n the tags created with the Tags
parameter take precedence.
A Boolean flag indicating whether tags from the source backup should be copied to the\n backup copy. This value defaults to false
.
If you set CopyTags
to true
and the source backup has existing\n tags, you can use the Tags
parameter to create new tags, provided that the sum\n of the source backup tags and the new tags doesn't exceed 50. Both sets of tags are\n merged. If there are tag conflicts (for example, two tags with the same key but different\n values), the tags created with the Tags
parameter take precedence.
Creates a backup of an existing Amazon FSx for Windows File Server\n or Amazon FSx for Lustre file system, or of an Amazon FSx for NetApp ONTAP\n volume. Creating regular backups is a best practice, enabling you to restore\n a file system or volume from a backup if an issue arises with the original\n file system or volume.
\nFor Amazon FSx for Lustre file systems, you can create a backup only \n for file systems with the following configuration:
\na Persistent deployment type
\nis not linked to a data repository.
\nFor more information about backups, see the following:
\nFor Amazon FSx for Lustre, \n see Working with FSx for Lustre backups.
\nFor Amazon FSx for Windows, \n see Working with FSx for Windows backups.
\nFor Amazon FSx for NetApp ONTAP, \n see Working with FSx for NetApp ONTAP backups.
\nIf a backup with the specified client request token exists, and the parameters\n match, this operation returns the description of the existing backup. If a backup\n specified client request token exists, and the parameters don't match, this\n operation returns IncompatibleParameterError
. If a backup with the\n specified client request token doesn't exist, CreateBackup
does the\n following:
Creates a new Amazon FSx backup with an assigned ID, and an initial\n lifecycle state of CREATING
.
Returns the description of the backup.
\nBy using the idempotent operation, you can retry a CreateBackup
\n operation without the risk of creating an extra backup. This approach can be useful when\n an initial call fails in a way that makes it unclear whether a backup was created. If\n you use the same client request token and the initial call created a backup, the\n operation returns a successful result because all the parameters are the same.
The CreateBackup
operation returns while the backup's\n lifecycle state is still CREATING
. You can check the backup creation\n status by calling the DescribeBackups operation, which returns the\n backup state along with other information.
Creates a backup of an existing Amazon FSx for Windows File Server file\n system, Amazon FSx for Lustre file system, Amazon FSx for NetApp ONTAP\n volume, or Amazon FSx for OpenZFS file system. We recommend creating regular\n backups so that you can restore a file system or volume from a backup if an issue arises\n with the original file system or volume.
\nFor Amazon FSx for Lustre file systems, you can create a backup only for file\n systems that have the following configuration:
\nA Persistent deployment type
\nAre not linked to a data repository
\nFor more information about backups, see the following:
\nFor Amazon FSx for Lustre, see Working with FSx for\n Lustre backups.
\nFor Amazon FSx for Windows, see Working with FSx for\n Windows backups.
\nFor Amazon FSx for NetApp ONTAP, see Working with FSx for NetApp\n ONTAP backups.
\nFor Amazon FSx for OpenZFS, see Working with FSx for OpenZFS backups.
\nIf a backup with the specified client request token exists and the parameters match,\n this operation returns the description of the existing backup. If a backup with the\n specified client request token exists and the parameters don't match, this operation\n returns IncompatibleParameterError
. If a backup with the specified client\n request token doesn't exist, CreateBackup
does the following:
Creates a new Amazon FSx backup with an assigned ID, and an initial\n lifecycle state of CREATING
.
Returns the description of the backup.
\nBy using the idempotent operation, you can retry a CreateBackup
\n operation without the risk of creating an extra backup. This approach can be useful when\n an initial call fails in a way that makes it unclear whether a backup was created. If\n you use the same client request token and the initial call created a backup, the\n operation returns a successful result because all the parameters are the same.
The CreateBackup
operation returns while the backup's lifecycle state is\n still CREATING
. You can check the backup creation status by calling the\n DescribeBackups operation, which returns the backup state along with other\n information.
(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent creation. This string is automatically filled on your behalf when you use the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", + "smithy.api#documentation": "(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to\n ensure idempotent creation. This string is automatically filled on your behalf when you\n use the Command Line Interface (CLI) or an Amazon Web Services SDK.
", "smithy.api#idempotencyToken": {} } }, "Tags": { "target": "com.amazonaws.fsx#Tags", "traits": { - "smithy.api#documentation": "(Optional) The tags to apply to the backup at backup creation. The key value of the\n Name
tag appears in the console as the backup name. If you have set CopyTagsToBackups
to true, and \n you specify one or more tags using the CreateBackup
action, no existing file system tags are copied from the file system to the backup.
(Optional) The tags to apply to the backup at backup creation. The key value of the\n Name
tag appears in the console as the backup name. If you have set\n CopyTagsToBackups
to true
, and you specify one or more\n tags using the CreateBackup
operation, no existing file system tags are\n copied from the file system to the backup.
The ID of he FSx for NetApp ONTAP volume to back up.
" + "smithy.api#documentation": "(Optional) The ID of the FSx for ONTAP volume to back up.
" } } }, @@ -1080,6 +1163,102 @@ "smithy.api#documentation": "The response object for the CreateBackup
operation.
Creates an Amazon FSx for Lustre data repository association (DRA). A data\n repository association is a link between a directory on the file system and\n an Amazon S3 bucket or prefix. You can have a maximum of 8 data repository\n associations on a file system. Data repository associations are supported only\n for file systems with the Persistent_2
deployment type.
Each data repository association must have a unique Amazon FSx file\n system directory and a unique S3 bucket or prefix associated with it. You\n can configure a data repository association for automatic import only,\n for automatic export only, or for both. To learn more about linking a\n data repository to your file system, see \n Linking your file system to an S3 bucket.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.fsx#CreateDataRepositoryAssociationRequest": { + "type": "structure", + "members": { + "FileSystemId": { + "target": "com.amazonaws.fsx#FileSystemId", + "traits": { + "smithy.api#required": {} + } + }, + "FileSystemPath": { + "target": "com.amazonaws.fsx#Namespace", + "traits": { + "smithy.api#documentation": "A path on the file system that points to a high-level directory (such\n as /ns1/
) or subdirectory (such as /ns1/subdir/
)\n that will be mapped 1-1 with DataRepositoryPath
.\n The leading forward slash in the name is required. Two data repository\n associations cannot have overlapping file system paths. For example, if\n a data repository is associated with file system path /ns1/
,\n then you cannot link another data repository with file system\n path /ns1/ns2
.
This path specifies where in your file system files will be exported\n from or imported to. This file system directory can be linked to only one\n Amazon S3 bucket, and no other S3 bucket can be linked to the directory.
", + "smithy.api#required": {} + } + }, + "DataRepositoryPath": { + "target": "com.amazonaws.fsx#ArchivePath", + "traits": { + "smithy.api#documentation": "The path to the Amazon S3 data repository that will be linked to the file\n system. The path can be an S3 bucket or prefix in the format\n s3://myBucket/myPrefix/
. This path specifies where in the S3\n data repository files will be imported from or exported to.
Set to true
to run an import data repository task to import\n metadata from the data repository to the file system after the data repository\n association is created. Default is false
.
For files imported from a data repository, this value determines the stripe count and\n maximum amount of data per file (in MiB) stored on a single physical disk. The maximum\n number of disks that a single file can be striped across is limited by the total number\n of disks that make up the file system.
\n \nThe default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500\n GiB). Amazon S3 objects have a maximum size of 5 TB.
" + } + }, + "S3": { + "target": "com.amazonaws.fsx#S3DataRepositoryConfiguration", + "traits": { + "smithy.api#documentation": "The configuration for an Amazon S3 data repository linked to an\n Amazon FSx Lustre file system with a data repository association.\n The configuration defines which file events (new, changed, or\n deleted files or directories) are automatically imported from\n the linked data repository to the file system or automatically\n exported from the file system to the data repository.
" + } + }, + "ClientRequestToken": { + "target": "com.amazonaws.fsx#ClientRequestToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + }, + "Tags": { + "target": "com.amazonaws.fsx#Tags" + } + } + }, + "com.amazonaws.fsx#CreateDataRepositoryAssociationResponse": { + "type": "structure", + "members": { + "Association": { + "target": "com.amazonaws.fsx#DataRepositoryAssociation", + "traits": { + "smithy.api#documentation": "The response object returned after the data repository association is created.
" + } + } + } + }, "com.amazonaws.fsx#CreateDataRepositoryTask": { "type": "operation", "input": { @@ -1112,7 +1291,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates an Amazon FSx for Lustre data repository task. You use data repository tasks\n to perform bulk operations between your Amazon FSx file system and its linked data\n repository. An example of a data repository task is\n exporting any data and metadata changes, including POSIX metadata, to files, directories, and symbolic links (symlinks) from your FSx file system to its linked data repository. A\n CreateDataRepositoryTask
operation will fail if a data repository is not\n linked to the FSx file system. To learn more about data repository tasks, see \n Data Repository Tasks. \n To learn more about linking a data repository to your file system, see \n Linking your file system to an S3 bucket.
Creates an Amazon FSx for Lustre data repository task. You use data repository tasks\n to perform bulk operations between your Amazon FSx file system and its linked data\n repositories. An example of a data repository task is exporting any data and metadata\n changes, including POSIX metadata, to files, directories, and symbolic links (symlinks)\n from your FSx file system to a linked data repository. A CreateDataRepositoryTask
\n operation will fail if a data repository is not linked to the FSx file system. To learn\n more about data repository tasks, see \n Data Repository Tasks. \n To learn more about linking a data repository to your file system, see \n Linking your file system to an S3 bucket.
Creates a new, empty Amazon FSx file system.
\n\nIf a file system with the specified client request token exists and the parameters\n match, CreateFileSystem
returns the description of the existing file\n system. If a file system specified client request token exists and the parameters\n don't match, this call returns IncompatibleParameterError
. If a file\n system with the specified client request token doesn't exist,\n CreateFileSystem
does the following:
Creates a new, empty Amazon FSx file system with an assigned ID, and an\n initial lifecycle state of CREATING
.
Returns the description of the file system.
\nThis operation requires a client request token in the request that Amazon FSx uses\n to ensure idempotent creation. This means that calling the operation multiple times with\n the same client request token has no effect. By using the idempotent operation, you can\n retry a CreateFileSystem
operation without the risk of creating an extra\n file system. This approach can be useful when an initial call fails in a way that makes\n it unclear whether a file system was created. Examples are if a transport level timeout\n occurred, or your connection was reset. If you use the same client request token and the\n initial call created a file system, the client receives success as long as the\n parameters are the same.
The CreateFileSystem
call returns while the file system's\n lifecycle state is still CREATING
. You can check the file-system\n creation status by calling the DescribeFileSystems operation,\n which returns the file system state along with other information.
Creates a new, empty Amazon FSx file system. You can create the following supported \n Amazon FSx file systems using the CreateFileSystem
API operation:
Amazon FSx for Lustre
\nAmazon FSx for NetApp ONTAP
\nAmazon FSx for Windows File Server
\nThis operation requires a client request token in the request that Amazon FSx uses\n to ensure idempotent creation. This means that calling the operation multiple times with\n the same client request token has no effect. By using the idempotent operation, you can\n retry a CreateFileSystem
operation without the risk of creating an extra\n file system. This approach can be useful when an initial call fails in a way that makes\n it unclear whether a file system was created. Examples are if a transport level timeout\n occurred, or your connection was reset. If you use the same client request token and the\n initial call created a file system, the client receives success as long as the\n parameters are the same.
If a file system with the specified client request token exists and the parameters\n match, CreateFileSystem
returns the description of the existing file\n system. If a file system with the specified client request token exists and the\n parameters don't match, this call returns IncompatibleParameterError
. If a\n file system with the specified client request token doesn't exist,\n CreateFileSystem
does the following:
Creates a new, empty Amazon FSx file system with an assigned ID, and\n an initial lifecycle state of CREATING
.
Returns the description of the file system.
\nThis operation requires a client request token in the request that Amazon FSx\n uses to ensure idempotent creation. This means that calling the operation multiple times\n with the same client request token has no effect. By using the idempotent operation, you\n can retry a CreateFileSystem
operation without the risk of creating an\n extra file system. This approach can be useful when an initial call fails in a way that\n makes it unclear whether a file system was created. Examples are if a transport-level\n timeout occurred, or your connection was reset. If you use the same client request token\n and the initial call created a file system, the client receives a success message as\n long as the parameters are the same.
The CreateFileSystem
call returns while the file system's lifecycle\n state is still CREATING
. You can check the file-system creation status\n by calling the DescribeFileSystems operation, which returns the file system state\n along with other information.
Creates a new Amazon FSx for Lustre or Amazon FSx for Windows File Server file system\n from an existing Amazon FSx backup.
\n \nIf a file system with the specified client request token exists and the parameters\n match, this operation returns the description of the file system. If a client\n request token specified by the file system exists and the parameters don't match,\n this call returns IncompatibleParameterError
. If a file system with the\n specified client request token doesn't exist, this operation does the following:
Creates a new Amazon FSx file system from backup with an assigned ID, and\n an initial lifecycle state of CREATING
.
Returns the description of the file system.
\nParameters like Active Directory, default share name, automatic backup, and backup\n settings default to the parameters of the file system that was backed up, unless\n overridden. You can explicitly supply other settings.
\n\nBy using the idempotent operation, you can retry a\n CreateFileSystemFromBackup
call without the risk of creating an extra\n file system. This approach can be useful when an initial call fails in a way that makes\n it unclear whether a file system was created. Examples are if a transport level timeout\n occurred, or your connection was reset. If you use the same client request token and the\n initial call created a file system, the client receives success as long as the\n parameters are the same.
The CreateFileSystemFromBackup
call returns while the file\n system's lifecycle state is still CREATING
. You can check the\n file-system creation status by calling the DescribeFileSystems\n operation, which returns the file system state along with other\n information.
Creates a new Amazon FSx for Lustre, Amazon FSx for Windows File\n Server, or Amazon FSx for OpenZFS file system from an existing Amazon FSx backup.
\n \nIf a file system with the specified client request token exists and the parameters\n match, this operation returns the description of the file system. If a client request\n token with the specified by the file system exists and the parameters don't match, this\n call returns IncompatibleParameterError
. If a file system with the\n specified client request token doesn't exist, this operation does the following:
Creates a new Amazon FSx file system from backup with an assigned ID,\n and an initial lifecycle state of CREATING
.
Returns the description of the file system.
\nParameters like the Active Directory, default share name, automatic backup, and backup\n settings default to the parameters of the file system that was backed up, unless\n overridden. You can explicitly supply other settings.
\n\nBy using the idempotent operation, you can retry a\n CreateFileSystemFromBackup
call without the risk of creating an extra\n file system. This approach can be useful when an initial call fails in a way that makes\n it unclear whether a file system was created. Examples are if a transport level timeout\n occurred, or your connection was reset. If you use the same client request token and the\n initial call created a file system, the client receives a success message as long as the\n parameters are the same.
The CreateFileSystemFromBackup
call returns while the file system's\n lifecycle state is still CREATING
. You can check the file-system\n creation status by calling the \n DescribeFileSystems operation, which returns the file system state along\n with other information.
A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent creation. This string is automatically filled on your behalf when you use the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", + "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent creation. This string is automatically filled on your behalf when you use the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", "smithy.api#idempotencyToken": {} } }, "SubnetIds": { "target": "com.amazonaws.fsx#SubnetIds", "traits": { - "smithy.api#documentation": "Specifies the IDs of the subnets that the file system will be accessible from. For Windows MULTI_AZ_1
\n file system deployment types, provide exactly two subnet IDs, one for the preferred file server \n and one for the standby file server. You specify one of these subnets as the preferred subnet \n using the WindowsConfiguration > PreferredSubnetID
property.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
deployment \n types and Lustre file systems, provide exactly one subnet ID.\n The file server is launched in that subnet's Availability Zone.
Specifies the IDs of the subnets that the file system will be accessible from. For Windows MULTI_AZ_1
\n file system deployment types, provide exactly two subnet IDs, one for the preferred file server \n and one for the standby file server. You specify one of these subnets as the preferred subnet \n using the WindowsConfiguration > PreferredSubnetID
property.
Windows SINGLE_AZ_1
and SINGLE_AZ_2
file system deployment\n types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The\n file server is launched in that subnet's Availability Zone.
A list of IDs for the security groups that apply to the specified network\n interfaces created for file system access. These security groups apply to all network\n interfaces. This value isn't returned in later DescribeFileSystem requests.
" + "smithy.api#documentation": "A list of IDs for the security groups that apply to the specified network interfaces\n created for file system access. These security groups apply to all network interfaces.\n This value isn't returned in later DescribeFileSystem
requests.
Sets the storage type for the Windows file system you're creating from a backup. \n Valid values are SSD
and HDD
.
Set to SSD
to use solid state drive storage. \n Supported on all Windows deployment types.
Set to HDD
to use hard disk drive storage. \n Supported on SINGLE_AZ_2
and MULTI_AZ_1
Windows file system deployment types. \n
\n Default value is SSD
. \n
HDD and SSD storage types have different minimum storage capacity requirements. \n A restored file system's storage capacity is tied to the file system that was backed up. \n You can create a file system that uses HDD storage from a backup of a file system that \n used SSD storage only if the original SSD file system had a storage capacity of at least 2000 GiB. \n
\nSets the storage type for the Windows or OpenZFS file system that you're creating from\n a backup. Valid values are SSD
and HDD
.
Set to SSD
to use solid state drive storage. SSD is supported on all Windows and OpenZFS\n deployment types.
Set to HDD
to use hard disk drive storage. \n HDD is supported on SINGLE_AZ_2
and MULTI_AZ_1
FSx for Windows File Server file system deployment types.
The default value is SSD
.
HDD and SSD storage types have different minimum storage capacity requirements. \n A restored file system's storage capacity is tied to the file system that was backed up. \n You can create a file system that uses HDD storage from a backup of a file system that \n used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.
\nSets the version for the Amazon FSx for Lustre file system you're creating from a backup.\n Valid values are 2.10
and 2.12
.
You don't need to specify FileSystemTypeVersion
because it will\n be applied using the backup's FileSystemTypeVersion
setting.\n If you choose to specify FileSystemTypeVersion
when creating from backup, the\n value must match the backup's FileSystemTypeVersion
setting.
Sets the version for the Amazon FSx for Lustre file system that you're\n creating from a backup. Valid values are 2.10
and 2.12
.
You don't need to specify FileSystemTypeVersion
because it will\n be applied using the backup's FileSystemTypeVersion
setting.\n If you choose to specify FileSystemTypeVersion
when creating from backup, the\n value must match the backup's FileSystemTypeVersion
setting.
The OpenZFS configuration for the file system that's being created.
" } } }, @@ -1342,37 +1527,37 @@ "ImportPath": { "target": "com.amazonaws.fsx#ArchivePath", "traits": { - "smithy.api#documentation": "(Optional) The path to the Amazon S3 bucket (including the optional prefix) that\n you're using as the data repository for your Amazon FSx for Lustre file system.\n The root of your FSx for Lustre file system will\n be mapped to the root of the Amazon S3 bucket you select. An\n example is s3://import-bucket/optional-prefix
. If you specify a prefix\n after the Amazon S3 bucket name, only object keys with that prefix are loaded into the\n file system.
(Optional) The path to the Amazon S3 bucket (including the optional prefix) that\n you're using as the data repository for your Amazon FSx for Lustre file system.\n The root of your FSx for Lustre file system will\n be mapped to the root of the Amazon S3 bucket you select. An\n example is s3://import-bucket/optional-prefix
. If you specify a prefix\n after the Amazon S3 bucket name, only object keys with that prefix are loaded into the\n file system.
This parameter is not supported for file systems with the Persistent_2
deployment type.\n Instead, use CreateDataRepositoryAssociation
to create\n a data repository association to link your Lustre file system to a data repository.
(Optional) The path in Amazon S3 where the root of your Amazon FSx file system is exported. \n The path must use the same Amazon S3 bucket as specified in ImportPath. You can provide an optional prefix to which\n new and changed data is to be exported from your Amazon FSx for Lustre file system. If\n an ExportPath
value is not provided, Amazon FSx sets a default export path,\n s3://import-bucket/FSxLustre[creation-timestamp]
. The timestamp is in\n UTC format, for example\n s3://import-bucket/FSxLustre20181105T222312Z
.
The Amazon S3 export bucket must be the same as the import bucket specified by\n ImportPath
. If you only specify a bucket name, such as\n s3://import-bucket
, you get a 1:1 mapping of file system objects to S3\n bucket objects. This mapping means that the input data in S3 is overwritten on export.\n If you provide a custom prefix in the export path, such as\n s3://import-bucket/[custom-optional-prefix]
, Amazon FSx exports the contents of your file \n system to that export prefix in the Amazon S3 bucket.
(Optional) Available with Scratch
and Persistent_1
deployment types. \n Specifies the path in the Amazon S3 bucket where the root of your Amazon FSx file system is exported. \n The path must use the same Amazon S3 bucket as specified in ImportPath. You can provide an optional prefix to which\n new and changed data is to be exported from your Amazon FSx for Lustre file system. If\n an ExportPath
value is not provided, Amazon FSx sets a default export path,\n s3://import-bucket/FSxLustre[creation-timestamp]
. The timestamp is in\n UTC format, for example\n s3://import-bucket/FSxLustre20181105T222312Z
.
The Amazon S3 export bucket must be the same as the import bucket specified by\n ImportPath
. If you specify only a bucket name, such as\n s3://import-bucket
, you get a 1:1 mapping of file system objects to S3\n bucket objects. This mapping means that the input data in S3 is overwritten on export.\n If you provide a custom prefix in the export path, such as\n s3://import-bucket/[custom-optional-prefix]
, Amazon FSx exports the contents of your file \n system to that export prefix in the Amazon S3 bucket.
This parameter is not supported for file systems with the Persistent_2
deployment type.\n Instead, use CreateDataRepositoryAssociation
to create\n a data repository association to link your Lustre file system to a data repository.
(Optional) For files imported from a data repository, this value determines the stripe\n count and maximum amount of data per file (in MiB) stored on a single physical disk. The\n maximum number of disks that a single file can be striped across is limited by the total\n number of disks that make up the file system.
\n \nThe default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500\n GiB). Amazon S3 objects have a maximum size of 5 TB.
" + "smithy.api#documentation": "(Optional) For files imported from a data repository, this value determines the stripe\n count and maximum amount of data per file (in MiB) stored on a single physical disk. The\n maximum number of disks that a single file can be striped across is limited by the total\n number of disks that make up the file system.
\n \nThe default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500\n GiB). Amazon S3 objects have a maximum size of 5 TB.
\nThis parameter is not supported for file systems with the Persistent_2
deployment type.\n Instead, use CreateDataRepositoryAssociation
to create\n a data repository association to link your Lustre file system to a data repository.
\n Choose SCRATCH_1
and SCRATCH_2
deployment \n types when you need temporary storage and shorter-term processing of data. \n The SCRATCH_2
deployment type provides in-transit encryption of data and higher burst \n throughput capacity than SCRATCH_1
.
Choose PERSISTENT_1
deployment type for longer-term storage \n and workloads and encryption of data in transit. To learn more about deployment types, see \n \n FSx for Lustre Deployment Options.
Encryption of data in-transit is automatically \n enabled when you access a SCRATCH_2
or PERSISTENT_1
\n file system from Amazon EC2 instances that support this feature.\n (Default = SCRATCH_1
)\n
Encryption of data in-transit for SCRATCH_2
and PERSISTENT_1
\n deployment types is supported when accessed from supported instance types in supported Amazon Web Services Regions. To learn more, \n Encrypting Data in Transit.
(Optional) Choose SCRATCH_1
and SCRATCH_2
deployment \n types when you need temporary storage and shorter-term processing of data. \n The SCRATCH_2
deployment type provides in-transit encryption of data and higher burst \n throughput capacity than SCRATCH_1
.
Choose PERSISTENT_1
for longer-term storage and for throughput-focused \n workloads that aren’t latency-sensitive. a. \n PERSISTENT_1
supports encryption of data in transit, and is available in all \n Amazon Web Services Regions in which FSx for Lustre is available.
Choose PERSISTENT_2
for longer-term storage and for latency-sensitive workloads \n that require the highest levels of IOPS/throughput. PERSISTENT_2
supports \n SSD storage, and offers higher PerUnitStorageThroughput
(up to 1000 MB/s/TiB). PERSISTENT_2
\n is available in a limited number of Amazon Web Services Regions. \n For more information, and an up-to-date list of Amazon Web Services Regions in which \n PERSISTENT_2
is available, see \n File \n system deployment options for FSx for Lustre in the Amazon FSx for Lustre User Guide.
If you choose PERSISTENT_2
, and you set FileSystemTypeVersion
to\n 2.10
, the CreateFileSystem
operation fails.
Encryption of data in transit is automatically turned on when you access\n SCRATCH_2
, PERSISTENT_1
and PERSISTENT_2
file\n systems from Amazon EC2 instances that support\n automatic encryption in the Amazon Web Services Regions where they are\n available. For more information about encryption in transit for FSx for Lustre\n file systems, see Encrypting data in\n transit in the Amazon FSx for Lustre User Guide.
(Default = SCRATCH_1
)
(Optional) When you create your file system, your existing S3 objects appear as file and directory listings. \n Use this property to choose how Amazon FSx keeps your file and directory listings up to date \n as you add or modify objects in your linked S3 bucket. AutoImportPolicy
can\n have the following values:
\n NONE
- (Default) AutoImport is off. Amazon FSx only updates \n file and directory listings from the linked S3 bucket \n when the file system is created. FSx does not update file and directory \n listings for any new or changed objects after choosing this option.
\n NEW
- AutoImport is on. Amazon FSx automatically imports\n directory listings of any new objects added to the linked S3 bucket that \n do not currently exist in the FSx file system.
\n NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports \n file and directory listings of any new objects added to the S3 bucket and any \n existing objects that are changed in the S3 bucket after you choose this option. \n
For more information, see Automatically import updates from your S3 bucket.
" + "smithy.api#documentation": " (Optional) Available with Scratch
and Persistent_1
deployment types. When you \n create your file system, your existing S3 objects appear as file and directory listings. \n Use this property to choose how Amazon FSx keeps your file and directory listings up to date \n as you add or modify objects in your linked S3 bucket. AutoImportPolicy
can\n have the following values:
\n NONE
- (Default) AutoImport is off. Amazon FSx only updates \n file and directory listings from the linked S3 bucket \n when the file system is created. FSx does not update file and directory \n listings for any new or changed objects after choosing this option.
\n NEW
- AutoImport is on. Amazon FSx automatically imports\n directory listings of any new objects added to the linked S3 bucket that \n do not currently exist in the FSx file system.
\n NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports \n file and directory listings of any new objects added to the S3 bucket and any \n existing objects that are changed in the S3 bucket after you choose this option.
\n NEW_CHANGED_DELETED
- AutoImport is on. Amazon FSx automatically\n imports file and directory listings of any new objects added to the S3 bucket, any \n existing objects that are changed in the S3 bucket, and any objects that were deleted\n in the S3 bucket.
For more information, see \n Automatically import updates from your S3 bucket.
\nThis parameter is not supported for file systems with the Persistent_2
deployment type.\n Instead, use CreateDataRepositoryAssociation\"
to create\n a data repository association to link your Lustre file system to a data repository.
\n Required for the PERSISTENT_1
deployment type, describes the amount of read and write \n throughput for each 1 tebibyte of storage, in MB/s/TiB. \n File system throughput capacity is calculated by multiplying file system storage capacity (TiB) by the PerUnitStorageThroughput\n (MB/s/TiB). For a 2.4 TiB file system, provisioning 50 MB/s/TiB of PerUnitStorageThroughput\n yields 120 MB/s of file system throughput. You pay for the amount of throughput that you\n provision.\n
Valid values for SSD storage: 50, 100, 200. Valid values for HDD storage: 12, 40.
" + "smithy.api#documentation": "Required with PERSISTENT_1
and PERSISTENT_2
deployment\n types, provisions the amount of read and write throughput for each 1 tebibyte (TiB) of\n file system storage capacity, in MB/s/TiB. File system throughput capacity is calculated\n by multiplying file system storage capacity (TiB) by the\n PerUnitStorageThroughput
(MB/s/TiB). For a 2.4-TiB file system,\n provisioning 50 MB/s/TiB of PerUnitStorageThroughput
yields 120 MB/s of file\n system throughput. You pay for the amount of throughput that you provision.
Valid values:
\nFor PERSISTENT_1
SSD storage: 50, 100, 200 MB/s/TiB.
For PERSISTENT_1
HDD storage: 12, 40 MB/s/TiB.
For PERSISTENT_2
SSD storage: 125, 250, 500, 1000 MB/s/TiB.
(Optional) Not available to use with file systems that are linked to a data repository. \n A boolean flag indicating whether tags for the file system should be copied to\n backups. The default value is false. If it's set to true, all file system\n tags are copied to all automatic and user-initiated backups when the user\n doesn't specify any backup-specific tags. If this value is true, and you specify one or more backup tags, only\n the specified tags are copied to backups. If you specify one or more tags when creating a\n user-initiated backup, no tags are copied from the file system, regardless of this value.
\nFor more information, see Working with backups.
" + "smithy.api#documentation": "(Optional) Not available for use with file systems that are linked to a data\n repository. A boolean flag indicating whether tags for the file system should be copied\n to backups. The default value is false. If CopyTagsToBackups
is set to\n true, all file system tags are copied to all automatic and user-initiated backups when\n the user doesn't specify any backup-specific tags. If\n CopyTagsToBackups
is set to true and you specify one or more backup\n tags, only the specified tags are copied to backups. If you specify one or more tags\n when creating a user-initiated backup, no tags are copied from the file system,\n regardless of this value.
(Default = false
)
For more information, see \n Working with backups in the Amazon FSx for Lustre User Guide.
" } }, "DriveCacheType": { "target": "com.amazonaws.fsx#DriveCacheType", "traits": { - "smithy.api#documentation": "The type of drive cache used by PERSISTENT_1 file systems that are provisioned with\n HDD storage devices. This parameter is required when storage type is HDD. Set to\n READ
, improve the performance for frequently accessed files and allows 20%\n of the total storage capacity of the file system to be cached.
This parameter is required when StorageType
is set to HDD.
The type of drive cache used by PERSISTENT_1
file systems that are provisioned with\n HDD storage devices. This parameter is required when storage type is HDD. Set this property to\n READ
to improve the performance for frequently accessed files by caching up to 20%\n of the total storage capacity of the file system.
This parameter is required when StorageType
is set to HDD
.
Sets the data compression configuration for the file system. DataCompressionType
\n can have the following values:
\n NONE
- (Default) Data compression is turned off when\n the file system is created.
\n LZ4
- Data compression is turned on with the LZ4\n algorithm.
For more information, see Lustre data compression.
" + "smithy.api#documentation": "Sets the data compression configuration for the file system. DataCompressionType
\n can have the following values:
\n NONE
- (Default) Data compression is turned off when\n the file system is created.
\n LZ4
- Data compression is turned on with the LZ4\n algorithm.
For more information, see Lustre data compression \n in the Amazon FSx for Lustre User Guide.
" + } + }, + "LogConfiguration": { + "target": "com.amazonaws.fsx#LustreLogCreateConfiguration", + "traits": { + "smithy.api#documentation": "The Lustre logging configuration used when creating an Amazon FSx for Lustre\n file system. When logging is enabled, Lustre logs error and warning events for data repositories\n associated with your file system to Amazon CloudWatch Logs.
" } } }, "traits": { - "smithy.api#documentation": "The Lustre configuration for the file system being created. \n
" + "smithy.api#documentation": "The Lustre configuration for the file system being created.
\nThe following parameters are not supported for file systems with the Persistent_2
\n deployment type. Instead, use CreateDataRepositoryAssociation
\n to create a data repository association to link your Lustre file system to a data repository.
\n AutoImportPolicy
\n
\n ExportPath
\n
\n ImportedChunkSize
\n
\n ImportPath
\n
Specifies the ONTAP file system deployment type to use in creating the file system.
", + "smithy.api#documentation": "Specifies the FSx for ONTAP file system deployment type to use in creating the file system. \n MULTI_AZ_1
is the supported ONTAP deployment type.
The ONTAP administrative password for the fsxadmin
user that you can\n use to administer your file system using the ONTAP CLI and REST API.
The ONTAP administrative password for the fsxadmin
user with which you\n administer your file system using the NetApp ONTAP CLI and REST API.
The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system.
" + "smithy.api#documentation": "The SSD IOPS configuration for the FSx for ONTAP file system.
" } }, "PreferredSubnetId": { - "target": "com.amazonaws.fsx#SubnetId" + "target": "com.amazonaws.fsx#SubnetId", + "traits": { + "smithy.api#documentation": "Required when DeploymentType
is set to MULTI_AZ_1
. This specifies the subnet \n in which you want the preferred file server to be located.
Specifies the VPC route tables in which your file system's endpoints will be\n created. You should specify all VPC route tables associated with the subnets\n in which your clients are located. By default, Amazon FSx selects your VPC's\n default route table.
" + "smithy.api#documentation": "Specifies the virtual private cloud (VPC) route tables in which your file system's\n endpoints will be created. You should specify all VPC route tables associated with the\n subnets in which your clients are located. By default, Amazon FSx selects your VPC's\n default route table.
" + } + }, + "ThroughputCapacity": { + "target": "com.amazonaws.fsx#MegabytesPerSecond", + "traits": { + "smithy.api#documentation": "Sets the throughput capacity for the file system that you're creating. \n Valid values are 512, 1024, and 2048 MBps.
", + "smithy.api#required": {} + } + }, + "WeeklyMaintenanceStartTime": { + "target": "com.amazonaws.fsx#WeeklyTime" + } + }, + "traits": { + "smithy.api#documentation": "The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.
" + } + }, + "com.amazonaws.fsx#CreateFileSystemOpenZFSConfiguration": { + "type": "structure", + "members": { + "AutomaticBackupRetentionDays": { + "target": "com.amazonaws.fsx#AutomaticBackupRetentionDays" + }, + "CopyTagsToBackups": { + "target": "com.amazonaws.fsx#Flag", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether tags for the file system should be copied to\n backups. This value defaults to false
. If it's set to true
,\n all tags for the file system are copied to all automatic and user-initiated backups\n where the user doesn't specify tags. If this value is true
, and you specify\n one or more tags, only the specified tags are copied to backups. If you specify one or\n more tags when creating a user-initiated backup, no tags are copied from the file\n system, regardless of this value.
A Boolean value indicating whether tags for the volume should be copied to snapshots.\n This value defaults to false
. If it's set to true
, all tags\n for the volume are copied to snapshots where the user doesn't specify tags. If this\n value is true
, and you specify one or more tags, only the specified tags\n are copied to snapshots. If you specify one or more tags when creating the snapshot, no\n tags are copied from the volume, regardless of this value.
Specifies the file system deployment type. Amazon FSx for OpenZFS supports\n SINGLE_AZ_1
. SINGLE_AZ_1
is a file system configured for a\n single Availability Zone (AZ) of redundancy.
Specifies the throughput of an Amazon FSx for OpenZFS file system, measured in megabytes per second\n (MB/s). Valid values are 64, 128, 256, 512, 1024, 2048, 3072, or 4096 MB/s. \n You pay for additional throughput capacity that you provision.
", "smithy.api#required": {} } }, "WeeklyMaintenanceStartTime": { "target": "com.amazonaws.fsx#WeeklyTime" + }, + "DiskIopsConfiguration": { + "target": "com.amazonaws.fsx#DiskIopsConfiguration" + }, + "RootVolumeConfiguration": { + "target": "com.amazonaws.fsx#OpenZFSCreateRootVolumeConfiguration", + "traits": { + "smithy.api#documentation": "The configuration Amazon FSx uses when creating the root value of the Amazon FSx for OpenZFS\n file system. All volumes are children of the root volume.
" + } } }, "traits": { - "smithy.api#documentation": "The ONTAP configuration properties of the FSx for NetApp ONTAP file system that you are creating.
" + "smithy.api#documentation": "The OpenZFS configuration properties for the file system that you are creating.
" } }, "com.amazonaws.fsx#CreateFileSystemRequest": { @@ -1467,34 +1714,34 @@ "ClientRequestToken": { "target": "com.amazonaws.fsx#ClientRequestToken", "traits": { - "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent creation. This string is automatically filled on your behalf when you use the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", + "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent creation. This string is automatically filled on your behalf when you use the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", "smithy.api#idempotencyToken": {} } }, "FileSystemType": { "target": "com.amazonaws.fsx#FileSystemType", "traits": { - "smithy.api#documentation": "The type of Amazon FSx file system to create. Valid values are WINDOWS
,\n LUSTRE
, and ONTAP
.
The type of Amazon FSx file system to create. Valid values are\n WINDOWS
, LUSTRE
, ONTAP
, and\n OPENZFS
.
Sets the storage capacity of the file system that you're creating.
\nFor Lustre file systems:
\nFor SCRATCH_2
and PERSISTENT_1 SSD
deployment types, valid values are \n 1200 GiB, 2400 GiB, and increments of 2400 GiB.
For PERSISTENT HDD
file systems, valid values are increments of 6000 GiB for \n 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.
For SCRATCH_1
deployment type, valid values are \n 1200 GiB, 2400 GiB, and increments of 3600 GiB.
For Windows file systems:
\nIf StorageType=SSD
, valid values are 32 GiB - 65,536 GiB (64 TiB).
If StorageType=HDD
, valid values are 2000 GiB - 65,536 GiB (64 TiB).
For ONTAP file systems:
\nValid values are 1024 GiB - 196,608 GiB (192 TiB).
\nSets the storage capacity of the file system that you're creating, in gibibytes (GiB).
\n\n FSx for Lustre file systems - The amount of\n storage capacity that you can configure depends on the value that you set for\n StorageType
and the Lustre DeploymentType
, as\n follows:
For SCRATCH_2
, PERSISTENT_2
and PERSISTENT_1
deployment types \n using SSD storage type, the valid values are 1200 GiB, 2400 GiB, and increments of 2400 GiB.
For PERSISTENT_1
HDD file systems, valid values are increments of 6000 GiB for \n 12 MB/s/TiB file systems and increments of 1800 GiB for 40 MB/s/TiB file systems.
For SCRATCH_1
deployment type, valid values are \n 1200 GiB, 2400 GiB, and increments of 3600 GiB.
\n FSx for ONTAP file systems - The amount of storage capacity \n that you can configure is from 1024 GiB up to 196,608 GiB (192 TiB).
\n\n FSx for OpenZFS file systems - The amount of storage capacity that \n you can configure is from 64 GiB up to 524,288 GiB (512 TiB).
\n\n FSx for Windows File Server file systems - The amount\n of storage capacity that you can configure depends on the value that you set for\n StorageType
as follows:
For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB).
\nFor HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB).
\nSets the storage type for the file system you're creating. \n Valid values are SSD
and HDD
.
Set to SSD
to use solid state drive storage. \n SSD is supported on all Windows, Lustre, and ONTAP deployment types.
Set to HDD
to use hard disk drive storage. \n HDD is supported on SINGLE_AZ_2
and MULTI_AZ_1
Windows file system deployment types,\n and on PERSISTENT
Lustre file system deployment types. \n
\n Default value is SSD
. For more information, see \n \n Storage Type Options in the Amazon FSx for Windows User Guide and \n Multiple Storage Options \n in the Amazon FSx for Lustre User Guide.\n
Sets the storage type for the file system that you're creating. Valid values are\n SSD
and HDD
.
Set to SSD
to use solid state drive storage. SSD is supported on all Windows,\n Lustre, ONTAP, and OpenZFS deployment types.
Set to HDD
to use hard disk drive storage. \n HDD is supported on SINGLE_AZ_2
and MULTI_AZ_1
Windows file system deployment types,\n and on PERSISTENT
Lustre file system deployment types. \n
Default value is SSD
. For more information, see Storage\n type options in the FSx for Windows File Server User\n Guide and Multiple storage\n options in the FSx for Lustre User\n Guide.
Specifies the IDs of the subnets that the file system will be accessible from. For Windows\n and ONTAP MULTI_AZ_1
file system deployment types, provide exactly two subnet IDs,\n one for the preferred file server and one for the standby file server. You specify one of these\n subnets as the preferred subnet using the WindowsConfiguration > PreferredSubnetID
\n or OntapConfiguration > PreferredSubnetID
properties. For more information, \n see \n Availability and durability: Single-AZ and Multi-AZ file systems in the\n Amazon FSx for Windows User Guide and\n \n Availability and durability in the\n Amazon FSx for ONTAP User Guide.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
file system deployment types and Lustre file systems, provide exactly one subnet ID.\n The file server is launched in that subnet's Availability Zone.
Specifies the IDs of the subnets that the file system will be accessible from. For\n Windows and ONTAP MULTI_AZ_1
deployment types,provide exactly two subnet\n IDs, one for the preferred file server and one for the standby file server. You specify\n one of these subnets as the preferred subnet using the WindowsConfiguration >\n PreferredSubnetID
or OntapConfiguration > PreferredSubnetID
\n properties. For more information about Multi-AZ file system configuration, see \n Availability and durability: Single-AZ and Multi-AZ file systems in the\n Amazon FSx for Windows User Guide and \n Availability and durability in the Amazon FSx for ONTAP User\n Guide.
For Windows SINGLE_AZ_1
and SINGLE_AZ_2
and all Lustre \n deployment types, provide exactly one subnet ID.\n The file server is launched in that subnet's Availability Zone.
The tags to apply to the file system being created. The key value of\n the Name
tag appears in the console as the file system name.
The tags to apply to the file system that's being created. The key value of the\n Name
tag appears in the console as the file system name.
The Microsoft Windows configuration for the file system being created. \n
" + "smithy.api#documentation": "The Microsoft Windows configuration for the file system that's being created.
" } }, "LustreConfiguration": { @@ -1528,7 +1775,13 @@ "FileSystemTypeVersion": { "target": "com.amazonaws.fsx#FileSystemTypeVersion", "traits": { - "smithy.api#documentation": "Sets the version of the Amazon FSx for Lustre file system you're creating.\n Valid values are 2.10
and 2.12
.
Set the value to 2.10
to create a Lustre 2.10\n file system.
Set the value to 2.12
to create a Lustre 2.12\n file system.
Default value is 2.10
.
(Optional) For FSx for Lustre file systems, sets the Lustre version for the\n file system that you're creating. Valid values are 2.10
and\n 2.12
:
2.10 is supported by the Scratch and Persistent_1 Lustre deployment types.
\n2.12 is supported by all Lustre deployment types. 2.12
is \n required when setting FSx for Lustre DeploymentType
to \n PERSISTENT_2
.
Default value = 2.10
, except when DeploymentType
is set to \n PERSISTENT_2
, then the default is 2.12
.
If you set FileSystemTypeVersion
to 2.10
for a \n PERSISTENT_2
Lustre deployment type, the CreateFileSystem
\n operation fails.
The OpenZFS configuration for the file system that's being created.
" } } }, @@ -1577,7 +1830,7 @@ "ThroughputCapacity": { "target": "com.amazonaws.fsx#MegabytesPerSecond", "traits": { - "smithy.api#documentation": "The throughput of an Amazon FSx file system, measured in megabytes per second, in 2 to\n the nth increments, between 2^3 (8) and 2^11 (2048).
", + "smithy.api#documentation": "Sets the throughput capacity of an Amazon FSx file system, measured in megabytes per second (MB/s), in 2 to\n the nth increments, between 2^3 (8) and 2^11 (2048).
", "smithy.api#required": {} } }, @@ -1667,46 +1920,196 @@ "smithy.api#documentation": "Specifies the configuration of the ONTAP volume that you are creating.
" } }, - "com.amazonaws.fsx#CreateStorageVirtualMachine": { - "type": "operation", - "input": { - "target": "com.amazonaws.fsx#CreateStorageVirtualMachineRequest" - }, - "output": { - "target": "com.amazonaws.fsx#CreateStorageVirtualMachineResponse" - }, - "errors": [ - { - "target": "com.amazonaws.fsx#ActiveDirectoryError" - }, - { - "target": "com.amazonaws.fsx#BadRequest" - }, - { - "target": "com.amazonaws.fsx#FileSystemNotFound" - }, - { - "target": "com.amazonaws.fsx#IncompatibleParameterError" - }, - { - "target": "com.amazonaws.fsx#InternalServerError" - }, - { - "target": "com.amazonaws.fsx#ServiceLimitExceeded" + "com.amazonaws.fsx#CreateOpenZFSOriginSnapshotConfiguration": { + "type": "structure", + "members": { + "SnapshotARN": { + "target": "com.amazonaws.fsx#ResourceARN", + "traits": { + "smithy.api#required": {} + } }, - { - "target": "com.amazonaws.fsx#UnsupportedOperation" + "CopyStrategy": { + "target": "com.amazonaws.fsx#OpenZFSCopyStrategy", + "traits": { + "smithy.api#documentation": "The strategy used when copying data from the snapshot to the new volume.
\n\n CLONE
- The new volume references the data in the origin\n snapshot. Cloning a snapshot is faster than copying data from the snapshot to a\n new volume and doesn't consume disk throughput. However, the origin snapshot\n can't be deleted if there is a volume using its copied data.
\n FULL_COPY
- Copies all data from the snapshot to the new volume.\n
Creates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.
" + "smithy.api#documentation": "The snapshot configuration to use when creating an OpenZFS volume from a snapshot.
" } }, - "com.amazonaws.fsx#CreateStorageVirtualMachineRequest": { + "com.amazonaws.fsx#CreateOpenZFSVolumeConfiguration": { "type": "structure", "members": { - "ActiveDirectoryConfiguration": { - "target": "com.amazonaws.fsx#CreateSvmActiveDirectoryConfiguration", + "ParentVolumeId": { + "target": "com.amazonaws.fsx#VolumeId", + "traits": { + "smithy.api#documentation": "The ID of the volume to use as the parent volume.
", + "smithy.api#required": {} + } + }, + "StorageCapacityReservationGiB": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "The amount of storage in gibibytes (GiB) to reserve from the parent volume. You can't\n reserve more storage than the parent volume has reserved.
" + } + }, + "StorageCapacityQuotaGiB": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "The maximum amount of storage in gibibytes (GiB) that the volume can use from its\n parent. You can specify a quota larger than the storage on the parent volume.
" + } + }, + "DataCompressionType": { + "target": "com.amazonaws.fsx#OpenZFSDataCompressionType", + "traits": { + "smithy.api#documentation": "Specifies the method used to compress the data on the volume. Unless the compression\n type is specified, volumes inherit the DataCompressionType
value of their\n parent volume.
\n NONE
- Doesn't compress the data on the volume.
\n ZSTD
- Compresses the data in the volume using the Zstandard\n (ZSTD) compression algorithm. This algorithm reduces the amount of space used on\n your volume and has very little impact on compute resources.
A Boolean value indicating whether tags for the volume should be copied to snapshots.\n This value defaults to false
. If it's set to true
, all tags\n for the volume are copied to snapshots where the user doesn't specify tags. If this\n value is true
, and you specify one or more tags, only the specified tags\n are copied to snapshots. If you specify one or more tags when creating the snapshot, no\n tags are copied from the volume, regardless of this value.
The configuration object that specifies the snapshot to use as the origin of the data\n for the volume.
" + } + }, + "ReadOnly": { + "target": "com.amazonaws.fsx#ReadOnly", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether the volume is read-only.
" + } + }, + "NfsExports": { + "target": "com.amazonaws.fsx#OpenZFSNfsExports", + "traits": { + "smithy.api#documentation": "The configuration object for mounting a Network File System (NFS) file system.
" + } + }, + "UserAndGroupQuotas": { + "target": "com.amazonaws.fsx#OpenZFSUserAndGroupQuotas", + "traits": { + "smithy.api#documentation": "An object specifying how much storage users or groups can use on the volume.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the configuration of the OpenZFS volume that you are creating.
" + } + }, + "com.amazonaws.fsx#CreateSnapshot": { + "type": "operation", + "input": { + "target": "com.amazonaws.fsx#CreateSnapshotRequest" + }, + "output": { + "target": "com.amazonaws.fsx#CreateSnapshotResponse" + }, + "errors": [ + { + "target": "com.amazonaws.fsx#BadRequest" + }, + { + "target": "com.amazonaws.fsx#InternalServerError" + }, + { + "target": "com.amazonaws.fsx#ServiceLimitExceeded" + }, + { + "target": "com.amazonaws.fsx#VolumeNotFound" + } + ], + "traits": { + "smithy.api#documentation": "Creates a snapshot of an existing Amazon FSx for OpenZFS file system. With\n snapshots, you can easily undo file changes and compare file versions by restoring the\n volume to a previous version.
\nIf a snapshot with the specified client request token exists, and the parameters\n match, this operation returns the description of the existing snapshot. If a snapshot\n with the specified client request token exists, and the parameters don't match, this\n operation returns IncompatibleParameterError
. If a snapshot with the\n specified client request token doesn't exist, CreateSnapshot
does the\n following:
Creates a new OpenZFS snapshot with an assigned ID, and an initial lifecycle\n state of CREATING
.
Returns the description of the snapshot.
\nBy using the idempotent operation, you can retry a CreateSnapshot
\n operation without the risk of creating an extra snapshot. This approach can be useful\n when an initial call fails in a way that makes it unclear whether a snapshot was\n created. If you use the same client request token and the initial call created a\n snapshot, the operation returns a successful result because all the parameters are the\n same.
The CreateSnapshot
operation returns while the snapshot's lifecycle state\n is still CREATING
. You can check the snapshot creation status by calling\n the DescribeSnapshots operation, which returns the snapshot state along with\n other information.
The name of the snapshot.
", + "smithy.api#required": {} + } + }, + "VolumeId": { + "target": "com.amazonaws.fsx#VolumeId", + "traits": { + "smithy.api#documentation": "The ID of the volume that you are taking a snapshot of.
", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.fsx#Tags" + } + } + }, + "com.amazonaws.fsx#CreateSnapshotResponse": { + "type": "structure", + "members": { + "Snapshot": { + "target": "com.amazonaws.fsx#Snapshot", + "traits": { + "smithy.api#documentation": "A description of the snapshot.
" + } + } + } + }, + "com.amazonaws.fsx#CreateStorageVirtualMachine": { + "type": "operation", + "input": { + "target": "com.amazonaws.fsx#CreateStorageVirtualMachineRequest" + }, + "output": { + "target": "com.amazonaws.fsx#CreateStorageVirtualMachineResponse" + }, + "errors": [ + { + "target": "com.amazonaws.fsx#ActiveDirectoryError" + }, + { + "target": "com.amazonaws.fsx#BadRequest" + }, + { + "target": "com.amazonaws.fsx#FileSystemNotFound" + }, + { + "target": "com.amazonaws.fsx#IncompatibleParameterError" + }, + { + "target": "com.amazonaws.fsx#InternalServerError" + }, + { + "target": "com.amazonaws.fsx#ServiceLimitExceeded" + }, + { + "target": "com.amazonaws.fsx#UnsupportedOperation" + } + ], + "traits": { + "smithy.api#documentation": "Creates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.
" + } + }, + "com.amazonaws.fsx#CreateStorageVirtualMachineRequest": { + "type": "structure", + "members": { + "ActiveDirectoryConfiguration": { + "target": "com.amazonaws.fsx#CreateSvmActiveDirectoryConfiguration", "traits": { "smithy.api#documentation": "Describes the self-managed Microsoft Active Directory to which you want to join the SVM. \n Joining an Active Directory provides user authentication and access control for SMB clients, \n including Microsoft Windows and macOS client accessing the file system.
" } @@ -1811,7 +2214,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates an Amazon FSx for NetApp ONTAP storage volume.
" + "smithy.api#documentation": "Creates an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS storage\n volume.
" } }, "com.amazonaws.fsx#CreateVolumeFromBackup": { @@ -1908,25 +2311,31 @@ "VolumeType": { "target": "com.amazonaws.fsx#VolumeType", "traits": { - "smithy.api#documentation": "Specifies the type of volume to create; ONTAP
is the only valid volume type.
Specifies the type of volume to create; ONTAP
and OPENZFS
are\n the only valid volume types.
Specifies the name of the volume you're creating.
", + "smithy.api#documentation": "Specifies the name of the volume that you're creating.
", "smithy.api#required": {} } }, "OntapConfiguration": { "target": "com.amazonaws.fsx#CreateOntapVolumeConfiguration", "traits": { - "smithy.api#documentation": "Specifies the ONTAP
configuration to use in creating the volume.
Specifies the configuration to use when creating the ONTAP volume.
" } }, "Tags": { "target": "com.amazonaws.fsx#Tags" + }, + "OpenZFSConfiguration": { + "target": "com.amazonaws.fsx#CreateOpenZFSVolumeConfiguration", + "traits": { + "smithy.api#documentation": "Specifies the configuration to use when creating the OpenZFS volume.
" + } } } }, @@ -1984,13 +2393,124 @@ ] } }, + "com.amazonaws.fsx#DataRepositoryAssociation": { + "type": "structure", + "members": { + "AssociationId": { + "target": "com.amazonaws.fsx#DataRepositoryAssociationId", + "traits": { + "smithy.api#documentation": "The system-generated, unique ID of the data repository association.
" + } + }, + "ResourceARN": { + "target": "com.amazonaws.fsx#ResourceARN" + }, + "FileSystemId": { + "target": "com.amazonaws.fsx#FileSystemId" + }, + "Lifecycle": { + "target": "com.amazonaws.fsx#DataRepositoryLifecycle", + "traits": { + "smithy.api#documentation": "Describes the state of a data repository association. The lifecycle can have\n the following values:
\n\n CREATING
- The data repository association between \n the FSx file system and the S3 data repository is being created. \n The data repository is unavailable.
\n AVAILABLE
- The data repository association is\n available for use.
\n MISCONFIGURED
- Amazon FSx cannot automatically import updates\n from the S3 bucket or automatically export updates to the S3 bucket until the data\n repository association configuration is corrected.
\n UPDATING
- The data repository association is undergoing\n a customer initiated update that might affect its availability.
\n DELETING
- The data repository association is undergoing\n a customer initiated deletion.
\n FAILED
- The data repository association is in a terminal\n state that cannot be recovered.
A path on the file system that points to a high-level directory (such\n as /ns1/
) or subdirectory (such as /ns1/subdir/
)\n that will be mapped 1-1 with DataRepositoryPath
.\n The leading forward slash in the name is required. Two data repository\n associations cannot have overlapping file system paths. For example, if\n a data repository is associated with file system path /ns1/
,\n then you cannot link another data repository with file system\n path /ns1/ns2
.
This path specifies where in your file system files will be exported\n from or imported to. This file system directory can be linked to only one\n Amazon S3 bucket, and no other S3 bucket can be linked to the directory.
" + } + }, + "DataRepositoryPath": { + "target": "com.amazonaws.fsx#ArchivePath", + "traits": { + "smithy.api#documentation": "The path to the Amazon S3 data repository that will be linked to the file\n system. The path can be an S3 bucket or prefix in the format\n s3://myBucket/myPrefix/
. This path specifies where in the S3\n data repository files will be imported from or exported to.
A boolean flag indicating whether an import data repository task to import\n metadata should run after the data repository association is created. The\n task runs if this flag is set to true
.
For files imported from a data repository, this value determines the stripe count and\n maximum amount of data per file (in MiB) stored on a single physical disk. The maximum\n number of disks that a single file can be striped across is limited by the total number\n of disks that make up the file system.
\n \nThe default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500\n GiB). Amazon S3 objects have a maximum size of 5 TB.
" + } + }, + "S3": { + "target": "com.amazonaws.fsx#S3DataRepositoryConfiguration", + "traits": { + "smithy.api#documentation": "The configuration for an Amazon S3 data repository linked to an\n Amazon FSx Lustre file system with a data repository association.\n The configuration defines which file events (new, changed, or\n deleted files or directories) are automatically imported from\n the linked data repository to the file system or automatically\n exported from the file system to the data repository.
" + } + }, + "Tags": { + "target": "com.amazonaws.fsx#Tags" + }, + "CreationTime": { + "target": "com.amazonaws.fsx#CreationTime" + } + }, + "traits": { + "smithy.api#documentation": "The configuration of a data repository association that links\n an Amazon FSx for Lustre file system to an Amazon S3 bucket.\n The data repository association configuration object is returned \n in the response of the following operations:
\n\n CreateDataRepositoryAssociation
\n
\n UpdateDataRepositoryAssociation
\n
\n DescribeDataRepositoryAssociations
\n
Data repository associations are supported only for file systems\n with the Persistent_2
deployment type.
No data repository associations were found based upon the supplied parameters.
", + "smithy.api#error": "client" + } + }, + "com.amazonaws.fsx#DataRepositoryAssociations": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#DataRepositoryAssociation" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + } + } + }, "com.amazonaws.fsx#DataRepositoryConfiguration": { "type": "structure", "members": { "Lifecycle": { "target": "com.amazonaws.fsx#DataRepositoryLifecycle", "traits": { - "smithy.api#documentation": "Describes the state of the file system's S3 durable data repository, if it is configured with an S3 repository. \n The lifecycle can have the following values:
\n\n CREATING
- The data repository configuration between \n the FSx file system and the linked S3 data repository is being created. \n The data repository is unavailable.
\n AVAILABLE
- The data repository is available for use.
\n MISCONFIGURED
- Amazon FSx cannot automatically import updates from the S3 bucket \n until the data repository configuration is corrected. For more information, see \n Troubleshooting a Misconfigured linked S3 bucket.\n
\n UPDATING
- The data repository is undergoing a customer initiated update and availability may be impacted.
Describes the state of the file system's S3 durable data repository, if it is configured with an S3 repository. \n The lifecycle can have the following values:
\n\n CREATING
- The data repository configuration between \n the FSx file system and the linked S3 data repository is being created. \n The data repository is unavailable.
\n AVAILABLE
- The data repository is available for use.
\n MISCONFIGURED
- Amazon FSx cannot automatically import updates from the S3 bucket \n until the data repository configuration is corrected. For more information, see \n Troubleshooting a Misconfigured linked S3 bucket.\n
\n UPDATING
- The data repository is undergoing a customer\n initiated update and availability may be impacted.
\n FAILED
- The data repository is in a terminal state that\n cannot be recovered.
Describes the file system's linked S3 data repository's AutoImportPolicy
. \n The AutoImportPolicy configures how Amazon FSx keeps your file and directory listings up to date \n as you add or modify objects in your linked S3 bucket. AutoImportPolicy
can have the following values:
\n NONE
- (Default) AutoImport is off. Amazon FSx only updates \n file and directory listings from the linked S3 bucket \n when the file system is created. FSx does not update file and directory \n listings for any new or changed objects after choosing this option.
\n NEW
- AutoImport is on. Amazon FSx automatically imports\n directory listings of any new objects added to the linked S3 bucket that \n do not currently exist in the FSx file system.
\n NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports \n file and directory listings of any new objects added to the S3 bucket and any \n existing objects that are changed in the S3 bucket after you choose this option. \n
For more information, see Automatically import updates from your S3 bucket.
" + "smithy.api#documentation": "Describes the file system's linked S3 data repository's AutoImportPolicy
. \n The AutoImportPolicy configures how Amazon FSx keeps your file and directory listings up to date \n as you add or modify objects in your linked S3 bucket. AutoImportPolicy
can have the following values:
\n NONE
- (Default) AutoImport is off. Amazon FSx only updates \n file and directory listings from the linked S3 bucket \n when the file system is created. FSx does not update file and directory \n listings for any new or changed objects after choosing this option.
\n NEW
- AutoImport is on. Amazon FSx automatically imports\n directory listings of any new objects added to the linked S3 bucket that \n do not currently exist in the FSx file system.
\n NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports \n file and directory listings of any new objects added to the S3 bucket and any \n existing objects that are changed in the S3 bucket after you choose this option.
\n NEW_CHANGED_DELETED
- AutoImport is on. Amazon FSx automatically\n imports file and directory listings of any new objects added to the S3 bucket, any \n existing objects that are changed in the S3 bucket, and any objects that were deleted\n in the S3 bucket.
The data repository configuration object for Lustre file systems returned in the response of\n the CreateFileSystem
operation.
The data repository configuration object for Lustre file systems returned in the response of\n the CreateFileSystem
operation.
This data type is not supported for file systems with the Persistent_2
deployment type.\n Instead, use .
Provides detailed information about the data respository if its Lifecycle
is \n set to MISCONFIGURED
.
Provides detailed information about the data respository if its Lifecycle
is \n set to MISCONFIGURED
or FAILED
.
The type of data repository task; EXPORT_TO_REPOSITORY is the only type currently supported.
", + "smithy.api#documentation": "The type of data repository task.
\nThe EXPORT_TO_REPOSITORY
data repository task exports\n from your Lustre file system from to a linked S3 bucket.
The IMPORT_METADATA_FROM_REPOSITORY
data repository task\n imports metadata changes from a linked S3 bucket to your Lustre file system.
A description of the data repository task. You use data repository tasks\n to perform bulk transfer operations between your Amazon FSx file system and its linked data\n repository.
" + "smithy.api#documentation": "A description of the data repository task. You use data repository tasks\n to perform bulk transfer operations between your Amazon FSx file system and a linked data\n repository.
" } }, "com.amazonaws.fsx#DataRepositoryTaskEnded": { @@ -2209,6 +2733,10 @@ { "value": "task-lifecycle", "name": "TASK_LIFECYCLE" + }, + { + "value": "data-repository-association-id", + "name": "DATA_REPO_ASSOCIATION_ID" } ] } @@ -2351,6 +2879,10 @@ { "value": "EXPORT_TO_REPOSITORY", "name": "EXPORT" + }, + { + "value": "IMPORT_METADATA_FROM_REPOSITORY", + "name": "IMPORT" } ] } @@ -2399,7 +2931,7 @@ } ], "traits": { - "smithy.api#documentation": "Deletes an Amazon FSx backup, deleting its contents. After deletion, the backup no longer exists, and its data is gone.
\n\nThe DeleteBackup
call returns instantly. The backup will not show up\n in later DescribeBackups
calls.
The data in a deleted backup is also deleted and can't be recovered by any\n means.
\nDeletes an Amazon FSx backup. After deletion, the backup no longer exists, and\n its data is gone.
\n\nThe DeleteBackup
call returns instantly. The backup won't show up in\n later DescribeBackups
calls.
The data in a deleted backup is also deleted and can't be recovered by any\n means.
\nThe ID of the backup you want to delete.
", + "smithy.api#documentation": "The ID of the backup that you want to delete.
", "smithy.api#required": {} } }, "ClientRequestToken": { "target": "com.amazonaws.fsx#ClientRequestToken", "traits": { - "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent deletion. This is automatically filled on your behalf when using\n the CLI or SDK.
", + "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent deletion. This parameter is automatically filled on your behalf when using\n the CLI or SDK.
", "smithy.api#idempotencyToken": {} } } }, "traits": { - "smithy.api#documentation": "The request object for DeleteBackup
operation.
The request object for the DeleteBackup
operation.
The ID of the backup deleted.
" + "smithy.api#documentation": "The ID of the backup that was deleted.
" } }, "Lifecycle": { "target": "com.amazonaws.fsx#BackupLifecycle", "traits": { - "smithy.api#documentation": "The lifecycle of the backup. Should be DELETED
.
The lifecycle status of the backup. If the DeleteBackup
operation is\n successful, the status is DELETED
.
The response object for DeleteBackup
operation.
The response object for the DeleteBackup
operation.
Deletes a file system, deleting its contents. After deletion, the file system no\n longer exists, and its data is gone. Any existing automatic backups will also be\n deleted.
\nTo delete an Amazon FSx for NetApp ONTAP file system, first delete all the volumes\n and SVMs on the file system. Then provide a FileSystemId
value to the\n DeleFileSystem
operation.
By default, when you delete an Amazon FSx for Windows File Server file system, a\n final backup is created upon deletion. This final backup is not subject to the file\n system's retention policy, and must be manually deleted.
\n\nThe DeleteFileSystem
action returns while the file system has the\n DELETING
status. You can check the file system deletion status by\n calling the DescribeFileSystems action, which returns a list of file\n systems in your account. If you pass the file system ID for a deleted file system, the\n DescribeFileSystems returns a FileSystemNotFound
\n error.
Deleting an Amazon FSx for Lustre file system will fail with a 400 BadRequest if \n a data repository task is in a PENDING
or EXECUTING
\n state.
The data in a deleted file system is also deleted and can't be recovered by\n any means.
\nDeletes a data repository association on an Amazon FSx for Lustre\n file system. Deleting the data repository association unlinks the\n file system from the Amazon S3 bucket. When deleting a data repository\n association, you have the option of deleting the data in the file system\n that corresponds to the data repository association. Data repository\n associations are supported only for file systems with the\n Persistent_2
deployment type.
Set SkipFinalBackup
to false if you want to take a final backup of the file \n system you are deleting. By default, Amazon FSx will not take a final backup on your behalf when the\n DeleteFileSystem
operation is invoked. (Default = true)
The ID of the data repository association that you want to delete.
", + "smithy.api#required": {} } }, - "FinalBackupTags": { - "target": "com.amazonaws.fsx#Tags", + "ClientRequestToken": { + "target": "com.amazonaws.fsx#ClientRequestToken", "traits": { - "smithy.api#documentation": "Use if SkipFinalBackup
is set to false
, \n and you want to apply an array of tags to the final backup. If you have set the file system property\n CopyTagsToBackups
to true, and \n you specify one or more FinalBackupTags
when deleting a file system, Amazon FSx will not copy any existing file system tags to the backup.
Set to true
to delete the data in the file system that corresponds\n to the data repository association.
The configuration object for the Amazon FSx for Lustre file system being deleted in the\n DeleteFileSystem
operation.
The ID of the final backup for this file system.
" + "smithy.api#documentation": "The ID of the data repository association being deleted.
" } }, - "FinalBackupTags": { - "target": "com.amazonaws.fsx#Tags", - "traits": { + "Lifecycle": { + "target": "com.amazonaws.fsx#DataRepositoryLifecycle", + "traits": { + "smithy.api#documentation": "Describes the lifecycle state of the data repository association being deleted.
" + } + }, + "DeleteDataInFileSystem": { + "target": "com.amazonaws.fsx#DeleteDataInFileSystem", + "traits": { + "smithy.api#documentation": "Indicates whether data in the file system that corresponds to the data\n repository association is being deleted. Default is false
.
Deletes a file system. After deletion, the file system no longer exists, and its data\n is gone. Any existing automatic backups and snapshots are also deleted.
\nTo delete an Amazon FSx for NetApp ONTAP file system, first delete all the\n volumes and storage virtual machines (SVMs) on the file system. Then provide a\n FileSystemId
value to the DeleFileSystem
operation.
By default, when you delete an Amazon FSx for Windows File Server file system,\n a final backup is created upon deletion. This final backup isn't subject to the file\n system's retention policy, and must be manually deleted.
\n\nThe DeleteFileSystem
operation returns while the file system has the\n DELETING
status. You can check the file system deletion status by\n calling the DescribeFileSystems operation, which returns a list of file systems in your\n account. If you pass the file system ID for a deleted file system, the\n DescribeFileSystems
operation returns a FileSystemNotFound
\n error.
If a data repository task is in a PENDING
or EXECUTING
state,\n deleting an Amazon FSx for Lustre file system will fail with an HTTP status\n code 400 (Bad Request).
The data in a deleted file system is also deleted and can't be recovered by\n any means.
\nSet SkipFinalBackup
to false if you want to take a final backup of the file \n system you are deleting. By default, Amazon FSx will not take a final backup on your behalf when the\n DeleteFileSystem
operation is invoked. (Default = true)
The fsx:CreateBackup
permission is required if you set SkipFinalBackup
to false
in order to delete the file system and take a final backup.
Use if SkipFinalBackup
is set to false
, \n and you want to apply an array of tags to the final backup. If you have set the file system property\n CopyTagsToBackups
to true, and \n you specify one or more FinalBackupTags
when deleting a file system, Amazon FSx will not copy any existing file system tags to the backup.
The configuration object for the Amazon FSx for Lustre file system being deleted in the\n DeleteFileSystem
operation.
The ID of the final backup for this file system.
" + } + }, + "FinalBackupTags": { + "target": "com.amazonaws.fsx#Tags", + "traits": { "smithy.api#documentation": "The set of tags applied to the final backup.
" } } @@ -2515,20 +3131,51 @@ "smithy.api#documentation": "The response object for the Amazon FSx for Lustre file system being deleted in the\n DeleteFileSystem
operation.
By default, Amazon FSx for OpenZFS takes a final backup on your behalf when\n the DeleteFileSystem
operation is invoked. Doing this helps protect you\n from data loss, and we highly recommend taking the final backup. If you want to skip\n this backup, use this\n value\n to do so.
The configuration object for the OpenZFS file system used in the\n DeleteFileSystem
operation.
The response object for the Amazon FSx for OpenZFS file system that's being\n deleted in the DeleteFileSystem
operation.
The ID of the file system you want to delete.
", + "smithy.api#documentation": "The ID of the file system that you want to delete.
", "smithy.api#required": {} } }, "ClientRequestToken": { "target": "com.amazonaws.fsx#ClientRequestToken", "traits": { - "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent deletion. This is automatically filled on your behalf when using the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", + "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent deletion. This token is automatically filled on your behalf when using the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", "smithy.api#idempotencyToken": {} } }, @@ -2537,6 +3184,12 @@ }, "LustreConfiguration": { "target": "com.amazonaws.fsx#DeleteFileSystemLustreConfiguration" + }, + "OpenZFSConfiguration": { + "target": "com.amazonaws.fsx#DeleteFileSystemOpenZFSConfiguration", + "traits": { + "smithy.api#documentation": "The configuration object for the OpenZFS file system used in the\n DeleteFileSystem
operation.
The ID of the file system being deleted.
" + "smithy.api#documentation": "The ID of the file system that's being deleted.
" } }, "Lifecycle": { "target": "com.amazonaws.fsx#FileSystemLifecycle", "traits": { - "smithy.api#documentation": "The file system lifecycle for the deletion request. Should be\n DELETING
.
The file system lifecycle for the deletion request. If the\n DeleteFileSystem
operation is successful, this status is\n DELETING
.
The response object for the OpenZFS file system that's being deleted in the\n DeleteFileSystem
operation.
The response object for the Microsoft Windows file system used in the\n DeleteFileSystem
operation.
Deletes the Amazon FSx snapshot. After deletion, the snapshot no longer\n exists, and its data is gone. Deleting a snapshot doesn't affect snapshots stored in a\n file system backup.
\nThe DeleteSnapshot
operation returns instantly. The snapshot appears with\n the lifecycle status of DELETING
until the deletion is complete.
The ID of the snapshot that you want to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.fsx#DeleteSnapshotResponse": { + "type": "structure", + "members": { + "SnapshotId": { + "target": "com.amazonaws.fsx#SnapshotId", + "traits": { + "smithy.api#documentation": "The ID of the deleted snapshot.
" + } + }, + "Lifecycle": { + "target": "com.amazonaws.fsx#SnapshotLifecycle", + "traits": { + "smithy.api#documentation": "The lifecycle status of the snapshot. If the DeleteSnapshot
operation is\n successful, this status is DELETING
.
Deletes an Amazon FSx for NetApp ONTAP volume. When deleting a volume, \n you have the option of creating a final backup. If you create a final backup, you have the option to \n apply Tags to the backup. You need to have fsx:TagResource
\n permission in order to apply tags to the backup.
Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS\n volume.
" } }, "com.amazonaws.fsx#DeleteVolumeOntapConfiguration": { @@ -2727,6 +3468,20 @@ "smithy.api#documentation": "The response object for the Amazon FSx for NetApp ONTAP volume being deleted\n in the DeleteVolume
operation.
To delete the volume's children and snapshots, use the string\n DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
.
A value that specifies whether to delete all child volumes and snapshots.
" + } + }, "com.amazonaws.fsx#DeleteVolumeRequest": { "type": "structure", "members": { @@ -2739,14 +3494,20 @@ "VolumeId": { "target": "com.amazonaws.fsx#VolumeId", "traits": { - "smithy.api#documentation": "The ID of the volume you are deleting.
", + "smithy.api#documentation": "The ID of the volume that you are deleting.
", "smithy.api#required": {} } }, "OntapConfiguration": { "target": "com.amazonaws.fsx#DeleteVolumeOntapConfiguration", "traits": { - "smithy.api#documentation": "For Amazon FSx for ONTAP volumes, specify whether to take \n a final backup of the volume, and apply tags to the backup.
" + "smithy.api#documentation": "For Amazon FSx for ONTAP volumes, specify whether to take a final backup of\n the volume and apply tags to the backup. To apply tags to the backup, you must have the\n fsx:TagResource
permission.
For Amazon FSx for OpenZFS volumes, specify whether to delete all child\n volumes and snapshots.
" } } } @@ -2757,19 +3518,19 @@ "VolumeId": { "target": "com.amazonaws.fsx#VolumeId", "traits": { - "smithy.api#documentation": "The ID of the volume being deleted.
" + "smithy.api#documentation": "The ID of the volume that's being deleted.
" } }, "Lifecycle": { "target": "com.amazonaws.fsx#VolumeLifecycle", "traits": { - "smithy.api#documentation": "Describes the lifecycle state of the volume being deleted.
" + "smithy.api#documentation": "The lifecycle state of the volume being deleted. If the DeleteVolume
\n operation is successful, this value is DELETING
.
Returned after a DeleteVolume request, showing the status of the delete request.
\n
Returned after a DeleteVolume
request, showing the status of the delete\n request.
Returns the description of specific Amazon FSx backups, if\n a BackupIds
value is provided for that backup. Otherwise, it returns all\n backups owned by your Amazon Web Services account in the Amazon Web Services Region\n of the endpoint that you're calling.
When retrieving all backups, you can optionally specify the MaxResults
\n parameter to limit the number of backups in a response. If more backups remain, Amazon\n FSx returns a NextToken
value in the response. In this case, send a later\n request with the NextToken
request parameter set to the value of\n NextToken
from the last response.
This action is used in an iterative process to retrieve a list of your backups.\n DescribeBackups
is called first without a NextToken
value.\n Then the action continues to be called with the NextToken
parameter set to\n the value of the last NextToken
value until a response has no\n NextToken
.
When using this action, keep the following in mind:
\nThe implementation might return fewer than MaxResults
\n backup descriptions while still including a NextToken
\n value.
The order of backups returned in the response of one\n DescribeBackups
call and the order of backups returned across\n the responses of a multi-call iteration is unspecified.
Returns the description of a specific Amazon FSx backup, if a\n BackupIds
value is provided for that backup. Otherwise, it returns all\n backups owned by your Amazon Web Services account in the Amazon Web Services Region of the\n endpoint that you're calling.
When retrieving all backups, you can optionally specify the MaxResults
\n parameter to limit the number of backups in a response. If more backups remain, Amazon FSx returns a NextToken
value in the response. In this case,\n send a later request with the NextToken
request parameter set to the value\n of the NextToken
value from the last response.
This operation is used in an iterative process to retrieve a list of your backups.\n DescribeBackups
is called first without a NextToken
value.\n Then the operation continues to be called with the NextToken
parameter set\n to the value of the last NextToken
value until a response has no\n NextToken
value.
When using this operation, keep the following in mind:
\nThe operation might return fewer than the MaxResults
value of\n backup descriptions while still including a NextToken
\n value.
The order of the backups returned in the response of one\n DescribeBackups
call and the order of the backups returned\n across the responses of a multi-call iteration is unspecified.
IDs of the backups you want to retrieve (String). This overrides any\n filters. If any IDs are not found, BackupNotFound will be thrown.
" + "smithy.api#documentation": "The IDs of the backups that you want to retrieve. This parameter value overrides any\n filters. If any IDs aren't found, a BackupNotFound
error occurs.
Filters structure. Supported names are file-system-id
,\n backup-type
, file-system-type
, and\n volume-id
.
The filters structure. The supported names are file-system-id
,\n backup-type
, file-system-type
, and\n volume-id
.
Maximum number of backups to return in the response (integer). This\n parameter value must be greater than 0. The number of items that Amazon FSx returns is\n the minimum of the MaxResults
parameter specified in the request and the\n service's internal maximum number of items per page.
Maximum number of backups to return in the response. This parameter value must be\n greater than 0. The number of items that Amazon FSx returns is the minimum of\n the MaxResults
parameter specified in the request and the service's\n internal maximum number of items per page.
Opaque pagination token returned from a previous\n DescribeBackups
operation (String). If a token present, the action\n continues the list from where the returning call left off.
An opaque pagination token returned from a previous DescribeBackups
\n operation. If a token is present, the operation continues the list from where the\n returning call left off.
The request object for DescribeBackups
operation.
The request object for the DescribeBackups
operation.
This is present if there are more backups than returned in the response (String).\n You can use the NextToken
value in the later request to fetch the backups.\n
A NextToken
value is present if there are more backups than returned in\n the response. You can use the NextToken
value in the subsequent request to\n fetch the backups.
Response object for DescribeBackups
operation.
Response object for the DescribeBackups
operation.
Returns the description of specific Amazon FSx for Lustre data repository associations, if\n one or more AssociationIds
values are provided in the request, or if filters are\n used in the request. Data repository associations are supported only\n for file systems with the Persistent_2
deployment type.
You can use filters to narrow the response to include just data repository\n associations for specific file systems (use the file-system-id
filter with\n the ID of the file system) or data repository associations for a specific repository type\n (use the data-repository-type
filter with a value of S3
).\n If you don't use filters, the response returns all data repository associations\n owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint\n that you're calling.
When retrieving all data repository associations, you can paginate the response by using\n the optional MaxResults
parameter to limit the number of data repository associations\n returned in a response. If more data repository associations remain, Amazon FSx returns a\n NextToken
value in the response. In this case, send a later\n request with the NextToken
request parameter set to the value of\n NextToken
from the last response.
IDs of the data repository associations whose descriptions you want to retrieve\n (String).
" + } + }, + "Filters": { + "target": "com.amazonaws.fsx#Filters" + }, + "MaxResults": { + "target": "com.amazonaws.fsx#LimitedMaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of resources to return in the response. This value must be\n an integer greater than zero.
" + } + }, + "NextToken": { + "target": "com.amazonaws.fsx#NextToken" + } + } + }, + "com.amazonaws.fsx#DescribeDataRepositoryAssociationsResponse": { + "type": "structure", + "members": { + "Associations": { + "target": "com.amazonaws.fsx#DataRepositoryAssociations", + "traits": { + "smithy.api#documentation": "An array of one ore more data repository association descriptions.
" + } + }, + "NextToken": { + "target": "com.amazonaws.fsx#NextToken" + } } }, "com.amazonaws.fsx#DescribeDataRepositoryTasks": { @@ -3029,7 +3862,7 @@ } ], "traits": { - "smithy.api#documentation": "Returns the description of specific Amazon FSx file systems, if a\n FileSystemIds
value is provided for that file system. Otherwise, it\n returns descriptions of all file systems owned by your Amazon Web Services account in\n the Amazon Web Services Region of the endpoint that you're calling.
When retrieving all file system descriptions, you can optionally specify the\n MaxResults
parameter to limit the number of descriptions in a response.\n If more file system descriptions remain, Amazon FSx returns a NextToken
\n value in the response. In this case, send a later request with the\n NextToken
request parameter set to the value of NextToken
\n from the last response.
This action is used in an iterative process to retrieve a list of your file system\n descriptions. DescribeFileSystems
is called first without a\n NextToken
value. Then the action continues to be called with the\n NextToken
parameter set to the value of the last NextToken
\n value until a response has no NextToken
.
When using this action, keep the following in mind:
\nThe implementation might return fewer than MaxResults
file\n system descriptions while still including a NextToken
\n value.
The order of file systems returned in the response of one\n DescribeFileSystems
call and the order of file systems returned\n across the responses of a multicall iteration is unspecified.
Returns the description of specific Amazon FSx file systems, if a\n FileSystemIds
value is provided for that file system. Otherwise, it\n returns descriptions of all file systems owned by your Amazon Web Services account in the\n Amazon Web Services Region of the endpoint that you're calling.
When retrieving all file system descriptions, you can optionally specify the\n MaxResults
parameter to limit the number of descriptions in a response.\n If more file system descriptions remain, Amazon FSx returns a\n NextToken
value in the response. In this case, send a later request\n with the NextToken
request parameter set to the value of\n NextToken
from the last response.
This operation is used in an iterative process to retrieve a list of your file system\n descriptions. DescribeFileSystems
is called first without a\n NextToken
value. Then the operation continues to be called with the\n NextToken
parameter set to the value of the last NextToken
\n value until a response has no NextToken
.
When using this operation, keep the following in mind:
\nThe implementation might return fewer than MaxResults
file\n system descriptions while still including a NextToken
\n value.
The order of file systems returned in the response of one\n DescribeFileSystems
call and the order of file systems returned\n across the responses of a multicall iteration is unspecified.
Opaque pagination token returned from a previous\n DescribeFileSystems
operation (String). If a token present, the action\n continues the list from where the returning call left off.
Opaque pagination token returned from a previous DescribeFileSystems
\n operation (String). If a token present, the operation continues the list from where the\n returning call left off.
The response object for DescribeFileSystems
operation.
Describes one or more Amazon FSx for NetApp ONTAP storage virtual machines (SVMs).
", + "smithy.api#documentation": "Returns the description of specific Amazon FSx snapshots, if a\n SnapshotIds
value is provided. Otherwise, this operation returns all\n snapshots owned by your Amazon Web Services account in the Amazon Web Services Region of\n the endpoint that you're calling.
When retrieving all snapshots, you can optionally specify the MaxResults
\n parameter to limit the number of snapshots in a response. If more backups remain,\n Amazon FSx returns a NextToken
value in the response. In this\n case, send a later request with the NextToken
request parameter set to the\n value of NextToken
from the last response.
Use this operation in an iterative process to retrieve a list of your snapshots.\n DescribeSnapshots
is called first without a NextToken
\n value. Then the operation continues to be called with the NextToken
\n parameter set to the value of the last NextToken
value until a response has\n no NextToken
value.
When using this operation, keep the following in mind:
\nThe operation might return fewer than the MaxResults
value of\n snapshot descriptions while still including a NextToken
\n value.
The order of snapshots returned in the response of one\n DescribeSnapshots
call and the order of backups returned across\n the responses of a multi-call iteration is unspecified.
Enter the ID of one or more SVMs that you want to view.
" + "smithy.api#documentation": "The IDs of the snapshots that you want to retrieve. This parameter value overrides any\n filters. If any IDs aren't found, a SnapshotNotFound
error occurs.
Enter a filter name:value pair to view a select set of SVMs.
" + "smithy.api#documentation": "The filters structure. The supported names are file-system-id
or\n volume-id
.
Returned after a successful DescribeStorageVirtualMachines
operation, describing each SVM.
An array of snapshots.
" } }, "NextToken": { @@ -3148,13 +3981,13 @@ } } }, - "com.amazonaws.fsx#DescribeVolumes": { + "com.amazonaws.fsx#DescribeStorageVirtualMachines": { "type": "operation", "input": { - "target": "com.amazonaws.fsx#DescribeVolumesRequest" + "target": "com.amazonaws.fsx#DescribeStorageVirtualMachinesRequest" }, "output": { - "target": "com.amazonaws.fsx#DescribeVolumesResponse" + "target": "com.amazonaws.fsx#DescribeStorageVirtualMachinesResponse" }, "errors": [ { @@ -3164,11 +3997,11 @@ "target": "com.amazonaws.fsx#InternalServerError" }, { - "target": "com.amazonaws.fsx#VolumeNotFound" + "target": "com.amazonaws.fsx#StorageVirtualMachineNotFound" } ], "traits": { - "smithy.api#documentation": "Describes one or more Amazon FSx for NetApp ONTAP volumes.
", + "smithy.api#documentation": "Describes one or more Amazon FSx for NetApp ONTAP storage virtual machines (SVMs).
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -3176,19 +4009,84 @@ } } }, - "com.amazonaws.fsx#DescribeVolumesRequest": { + "com.amazonaws.fsx#DescribeStorageVirtualMachinesRequest": { + "type": "structure", + "members": { + "StorageVirtualMachineIds": { + "target": "com.amazonaws.fsx#StorageVirtualMachineIds", + "traits": { + "smithy.api#documentation": "Enter the ID of one or more SVMs that you want to view.
" + } + }, + "Filters": { + "target": "com.amazonaws.fsx#StorageVirtualMachineFilters", + "traits": { + "smithy.api#documentation": "Enter a filter name:value pair to view a select set of SVMs.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.fsx#MaxResults" + }, + "NextToken": { + "target": "com.amazonaws.fsx#NextToken" + } + } + }, + "com.amazonaws.fsx#DescribeStorageVirtualMachinesResponse": { + "type": "structure", + "members": { + "StorageVirtualMachines": { + "target": "com.amazonaws.fsx#StorageVirtualMachines", + "traits": { + "smithy.api#documentation": "Returned after a successful DescribeStorageVirtualMachines
operation, describing each SVM.
Describes one or more Amazon FSx for NetApp ONTAP or Amazon FSx for\n OpenZFS volumes.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.fsx#DescribeVolumesRequest": { "type": "structure", "members": { "VolumeIds": { "target": "com.amazonaws.fsx#VolumeIds", "traits": { - "smithy.api#documentation": "IDs of the volumes whose descriptions you want to retrieve.
" + "smithy.api#documentation": "The IDs of the volumes whose descriptions you want to retrieve.
" } }, "Filters": { "target": "com.amazonaws.fsx#VolumeFilters", "traits": { - "smithy.api#documentation": "Enter a filter name:value pair to view a select set of volumes.
" + "smithy.api#documentation": "Enter a filter Name
and Values
pair to view a select set of\n volumes.
The SSD IOPS (input/output operations per second) configuration\n for an Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS\n per GB of storage capacity, but you can provision additional IOPS\n per GB of storage. The configuration consists of the total number\n of provisioned SSD IOPS and how the amount was provisioned\n (by the customer or by the system).
" + "smithy.api#documentation": "The SSD IOPS (input/output operations per second) configuration for an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS file system. The\n default is 3 IOPS per GB of storage capacity, but you can provision additional IOPS per\n GB of storage. The configuration consists of the total number of provisioned SSD IOPS\n and how the amount was provisioned (by the customer or by the system).
" } }, "com.amazonaws.fsx#DiskIopsConfigurationMode": { @@ -3384,6 +4282,37 @@ } } }, + "com.amazonaws.fsx#EventType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "NEW", + "name": "NEW" + }, + { + "value": "CHANGED", + "name": "CHANGED" + }, + { + "value": "DELETED", + "name": "DELETED" + } + ] + } + }, + "com.amazonaws.fsx#EventTypes": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#EventType" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 3 + } + } + }, "com.amazonaws.fsx#FailedCount": { "type": "long", "traits": { @@ -3414,13 +4343,13 @@ "FileSystemType": { "target": "com.amazonaws.fsx#FileSystemType", "traits": { - "smithy.api#documentation": "The type of Amazon FSx file system, which can be LUSTRE
, WINDOWS
,\n or ONTAP
.
The type of Amazon FSx file system, which can be LUSTRE
,\n WINDOWS
, ONTAP
, or OPENZFS
.
The lifecycle status of the file system, following are the possible values and what they mean:
\n\n AVAILABLE
- The file system is in a healthy state, and is reachable and available for use.
\n CREATING
- Amazon FSx is creating the new file system.
\n DELETING
- Amazon FSx is deleting an existing file system.
\n FAILED
- An existing file system has experienced an unrecoverable failure. \n When creating a new file system, Amazon FSx was unable to create the file system.
\n MISCONFIGURED
indicates that the file system is in a failed but recoverable state.
\n UPDATING
indicates that the file system is undergoing a customer initiated update.
The lifecycle status of the file system. The following are the possible values and\n what they mean:
\n\n AVAILABLE
- The file system is in a healthy state, and is reachable and available for use.
\n CREATING
- Amazon FSx is creating the new file system.
\n DELETING
- Amazon FSx is deleting an existing file system.
\n FAILED
- An existing file system has experienced an unrecoverable failure. \n When creating a new file system, Amazon FSx was unable to create the file system.
\n MISCONFIGURED
- The file system is in a failed but recoverable state.
\n UPDATING
- The file system is undergoing a customer-initiated update.
The storage type of the file system. \n Valid values are SSD
and HDD
.\n If set to SSD
, the file system uses solid state drive storage. \n If set to HDD
, the file system uses hard disk drive storage.\n
The type of storage the file system is using. \n If set to SSD
, the file system uses solid state drive storage. \n If set to HDD
, the file system uses hard disk drive storage.\n
The ID of the primary VPC for the file system.
" + "smithy.api#documentation": "The ID of the primary virtual private cloud (VPC) for the file system.
" } }, "SubnetIds": { "target": "com.amazonaws.fsx#SubnetIds", "traits": { - "smithy.api#documentation": "Specifies the IDs of the subnets that the file system is accessible from. For Windows and\n ONTAP MULTI_AZ_1
file system deployment type, there are two subnet IDs, one for\n the preferred file server and one for the standby file server. The preferred file server subnet\n identified in the PreferredSubnetID
property. All other file systems have only one subnet ID.
For Lustre file systems, and Single-AZ Windows file systems, this is the ID of \n the subnet that contains the endpoint for the file system. For MULTI_AZ_1
Windows and\n ONTAP file systems, the endpoint for the file system is available in the PreferredSubnetID
.
Specifies the IDs of the subnets that the file system is accessible from. For the Amazon FSx Windows and\n ONTAP MULTI_AZ_1
file system deployment type, there are two subnet IDs, one for\n the preferred file server and one for the standby file server. The preferred file server subnet\n identified in the PreferredSubnetID
property. All other file systems have only one subnet ID.
For FSx for Lustre file systems, and Single-AZ Windows file systems, this is the ID of \n the subnet that contains the file system's endpoint. For MULTI_AZ_1
Windows and\n ONTAP file systems, the file system endpoint is available in the PreferredSubnetID
.
The IDs of the elastic network interface from which a specific file system is\n accessible. The elastic network interface is automatically created in the same VPC that\n the Amazon FSx file system was created in. For more information, see Elastic Network\n Interfaces in the Amazon EC2 User Guide.\n
\n\nFor an Amazon FSx for Windows File Server file system, you can have one network\n interface ID. For an Amazon FSx for Lustre file system, you can have more than\n one.
" + "smithy.api#documentation": "The IDs of the elastic network interfaces from which a specific file system is\n accessible. The elastic network interface is automatically created in the same virtual\n private cloud (VPC) that the Amazon FSx file system was created in. For more\n information, see Elastic Network Interfaces in\n the Amazon EC2 User Guide.\n
\n\nFor an Amazon FSx for Windows File Server file system, you can have one\n network interface ID. For an Amazon FSx for Lustre file system, you can have\n more than one.
" } }, "DNSName": { "target": "com.amazonaws.fsx#DNSName", "traits": { - "smithy.api#documentation": "The DNS name for the file system.
" + "smithy.api#documentation": "The Domain Name System (DNS) name for the file system.
" } }, "KmsKeyId": { "target": "com.amazonaws.fsx#KmsKeyId", "traits": { - "smithy.api#documentation": "The ID of the Key Management Service (KMS) key used to encrypt the file system's data\n for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp ONTAP file systems, and\n persistent Amazon FSx for Lustre file systems at rest. If not specified, the Amazon FSx\n managed key is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using\n Amazon FSx managed keys. For more information, see Encrypt\n in the Key Management Service API Reference.
" + "smithy.api#documentation": "The ID of the Key Management Service (KMS) key used to encrypt the file\n system's data for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp ONTAP file systems, and PERSISTENT
\n Amazon FSx for Lustre file systems at rest. If this ID isn't specified, the\n Amazon FSx-managed key for your account is used. The scratch Amazon FSx for Lustre file systems are always encrypted at rest using the Amazon\n FSx-managed key for your account. For more information, see Encrypt in the\n Key Management Service API Reference.
The tags to associate with the file system. For more information, see Tagging Your\n Amazon EC2 Resources in the Amazon EC2 User\n Guide.
" + "smithy.api#documentation": "The tags to associate with the file system. For more information, see Tagging your\n Amazon EC2 resources in the Amazon EC2 User\n Guide.
" } }, "WindowsConfiguration": { "target": "com.amazonaws.fsx#WindowsFileSystemConfiguration", "traits": { - "smithy.api#documentation": "The configuration for this Microsoft Windows file system.
" + "smithy.api#documentation": "The configuration for this FSx for Windows File Server file system.
" } }, "LustreConfiguration": { @@ -3492,19 +4421,25 @@ "AdministrativeActions": { "target": "com.amazonaws.fsx#AdministrativeActions", "traits": { - "smithy.api#documentation": "A list of administrative actions for the file system that are in process or waiting to be processed. \n Administrative actions describe changes to the Amazon FSx file system that you have initiated using\n the UpdateFileSystem
action.
A list of administrative actions for the file system that are in process or waiting to\n be processed. Administrative actions describe changes to the Amazon FSx system\n that you have initiated using the UpdateFileSystem
operation.
The configuration for this FSx for NetApp ONTAP file system.
" + "smithy.api#documentation": "The configuration for this FSx for ONTAP file system.
" } }, "FileSystemTypeVersion": { "target": "com.amazonaws.fsx#FileSystemTypeVersion", "traits": { - "smithy.api#documentation": "The version of your Amazon FSx for Lustre file system, either\n 2.10
or 2.12
.
The Lustre version of the Amazon FSx for Lustrefile system, either\n 2.10
or 2.12
.
The configuration for this Amazon FSx for OpenZFS file system.
" } } }, @@ -3570,7 +4505,7 @@ } }, "traits": { - "smithy.api#documentation": "A structure providing details of any failures that occur when creating the file system\n has failed.
" + "smithy.api#documentation": "A structure providing details of any failures that occurred when creating a file\n system.
" } }, "com.amazonaws.fsx#FileSystemId": { @@ -3590,7 +4525,7 @@ "target": "com.amazonaws.fsx#FileSystemId" }, "traits": { - "smithy.api#documentation": "A list of FileSystemId
s.
A list of file system IDs.
", "smithy.api#length": { "min": 0, "max": 50 @@ -3686,6 +4621,10 @@ { "value": "ONTAP", "name": "ONTAP" + }, + { + "value": "OPENZFS", + "name": "OPENZFS" } ] } @@ -3697,7 +4636,7 @@ "min": 1, "max": 20 }, - "smithy.api#pattern": "^[0-9](\\.[0-9]*)*$" + "smithy.api#pattern": "^[0-9](.[0-9]*)*$" } }, "com.amazonaws.fsx#FileSystems": { @@ -3753,6 +4692,10 @@ { "value": "volume-id", "name": "VOLUME_ID" + }, + { + "value": "data-repository-type", + "name": "DATA_REPOSITORY_TYPE" } ] } @@ -3856,10 +4799,20 @@ } }, "traits": { - "smithy.api#documentation": "Amazon FSx doesn't support Multi-AZ Windows File Server\n copy backup in the destination Region, so the copied backup\n can't be restored.
", + "smithy.api#documentation": "Amazon FSx doesn't support Multi-AZ Windows File Server copy backup in the\n destination Region, so the copied backup can't be restored.
", "smithy.api#error": "client" } }, + "com.amazonaws.fsx#IntegerNoMax": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 2147483647 + } + } + }, "com.amazonaws.fsx#InternalServerError": { "type": "structure", "members": { @@ -3872,6 +4825,18 @@ "smithy.api#error": "server" } }, + "com.amazonaws.fsx#InvalidDataRepositoryType": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.fsx#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "You have filtered the response to a data repository type that is not supported.
", + "smithy.api#error": "client" + } + }, "com.amazonaws.fsx#InvalidDestinationKmsKey": { "type": "structure", "members": { @@ -3880,7 +4845,7 @@ } }, "traits": { - "smithy.api#documentation": "The Key Management Service (KMS) key of the destination\n backup is invalid.
", + "smithy.api#documentation": "The Key Management Service (KMS) key of the destination backup is not\n valid.
", "smithy.api#error": "client" } }, @@ -3961,7 +4926,7 @@ } }, "traits": { - "smithy.api#documentation": "The Region provided for Source Region
is invalid or\n is in a different Amazon Web Services partition.
The Region provided for SourceRegion
is not valid or is in a different\n Amazon Web Services partition.
The Key Management Service (KMS) key of the source backup\n is invalid.
", + "smithy.api#documentation": "The Key Management Service (KMS) key of the source backup is not\n valid.
", "smithy.api#error": "client" } }, @@ -3983,7 +4948,7 @@ "smithy.api#box": {}, "smithy.api#range": { "min": 0, - "max": 80000 + "max": 160000 } } }, @@ -4020,7 +4985,7 @@ "com.amazonaws.fsx#KmsKeyId": { "type": "string", "traits": { - "smithy.api#documentation": "The ID of the Key Management Service (KMS) key used to encrypt the file system's data\n for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp ONTAP file systems, and\n Amazon FSx for Lustre PERSISTENT_1
file systems at rest. If not specified, the Amazon FSx\n managed key is used. The Amazon FSx for Lustre SCRATCH_1
and SCRATCH_2
file systems\n are always encrypted at rest using Amazon FSx managed keys. For more information, see Encrypt\n in the Key Management Service API Reference.
The ID of the Key Management Service (KMS) key used to encrypt the file\n system's data for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp ONTAP file systems, and Amazon FSx for Lustre\n PERSISTENT_1
and PERSISTENT_2
file systems at rest. If this ID\n isn't specified, the key managed by Amazon FSx is used. The Amazon FSx for Lustre\n SCRATCH_1
and SCRATCH_2
file systems are always encrypted at\n rest using Amazon FSx-managed keys. For more information, see Encrypt\n in the Key Management Service API Reference.
Describes why a resource lifecycle state changed.
" } }, + "com.amazonaws.fsx#LimitedMaxResults": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 25 + } + } + }, "com.amazonaws.fsx#ListTagsForResource": { "type": "operation", "input": { @@ -4123,6 +5098,29 @@ "smithy.api#documentation": "The response object for ListTagsForResource
operation.
The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC\n time zone. d is the weekday number, from 1 through 7, beginning with Monday and ending with Sunday.
" + "smithy.api#documentation": "The preferred start time to perform weekly maintenance, formatted d:HH:MM in the UTC\n time zone. Here, d is the weekday number, from 1 through 7, beginning with Monday and\n ending with Sunday.
" } }, "DataRepositoryConfiguration": { @@ -4157,19 +5159,19 @@ "DeploymentType": { "target": "com.amazonaws.fsx#LustreDeploymentType", "traits": { - "smithy.api#documentation": "The deployment type of the FSX for Lustre file system. Scratch deployment type is designed for temporary storage\n and shorter-term processing of data.
\n\n SCRATCH_1
and SCRATCH_2
deployment \n types are best suited for when you need temporary storage and shorter-term processing of data. \n The SCRATCH_2
deployment type provides in-transit encryption of data and higher burst \n throughput capacity than SCRATCH_1
.
The PERSISTENT_1
deployment type is used for longer-term storage \n and workloads and encryption of data in transit. To learn more about deployment types, see \n \n FSx for Lustre Deployment Options. (Default = SCRATCH_1
)
The deployment type of the FSx for Lustre file system. \n Scratch deployment type is designed for temporary storage\n and shorter-term processing of data.
\n\n SCRATCH_1
and SCRATCH_2
deployment types are best suited \n for when you need temporary storage and shorter-term processing of data. The \n SCRATCH_2
deployment type provides in-transit encryption of data and higher burst \n throughput capacity than SCRATCH_1
.
The PERSISTENT_1
and PERSISTENT_2
deployment type is used\n for longer-term storage and workloads and encryption of data in transit.\n PERSISTENT_2
is built on Lustre v2.12 and offers higher\n PerUnitStorageThroughput
(up to 1000 MB/s/TiB) along with a lower\n minimum storage capacity requirement (600 GiB). To learn more about FSx for Lustre deployment types, see \n FSx for Lustre deployment options.
The default is SCRATCH_1
.
Per unit storage throughput represents the megabytes per second of read or write\n throughput per 1 tebibyte of storage provisioned. File system throughput capacity is\n equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is\n only valid for PERSISTENT_1
deployment types.
Valid values for SSD storage: 50, 100, 200. Valid values for HDD storage: 12, 40.
" + "smithy.api#documentation": "Per unit storage throughput represents the megabytes per second of read or write\n throughput per 1 tebibyte of storage provisioned. File system throughput capacity is\n equal to Storage capacity (TiB) * PerUnitStorageThroughput (MB/s/TiB). This option is\n only valid for PERSISTENT_1
and PERSISTENT_2
deployment types.
Valid values:
\nFor PERSISTENT_1
SSD storage: 50, 100, 200.
For PERSISTENT_1
HDD storage: 12, 40.
For PERSISTENT_2
SSD storage: 125, 250, 500, 1000.
You use the MountName
value when mounting the file system.
For the SCRATCH_1
deployment type, this value is always \"fsx
\". \n For SCRATCH_2
and PERSISTENT_1
deployment types, this \n value is a string that is unique within an Amazon Web Services Region. \n \n
You use the MountName
value when mounting the file system.
For the SCRATCH_1
deployment type, this value is always \"fsx
\". \n For SCRATCH_2
, PERSISTENT_1
, and PERSISTENT_2
deployment\n types, this value is a string that is unique within an Amazon Web Services Region. \n \n
A boolean flag indicating whether tags on the file system should be copied to backups.\n If it's set to true, all tags on the file system are\n copied to all automatic backups and any user-initiated backups where the user\n doesn't specify any tags. If this value is true, and you specify one or more tags,\n only the specified tags are copied to backups. If you specify one or more tags when \n creating a user-initiated backup, no tags are copied from the file system, \n regardless of this value. (Default = false)
" + "smithy.api#documentation": "A boolean flag indicating whether tags on the file system are copied to backups.\n If it's set to true, all tags on the file system are\n copied to all automatic backups and any user-initiated backups where the user\n doesn't specify any tags. If this value is true, and you specify one or more tags,\n only the specified tags are copied to backups. If you specify one or more tags when \n creating a user-initiated backup, no tags are copied from the file system, \n regardless of this value. (Default = false)
" } }, "DriveCacheType": { "target": "com.amazonaws.fsx#DriveCacheType", "traits": { - "smithy.api#documentation": "The type of drive cache used by PERSISTENT_1 file systems that are provisioned with\n HDD storage devices. This parameter is required when storage type is HDD. Set to\n READ
, improve the performance for frequently accessed files and allows 20%\n of the total storage capacity of the file system to be cached.
This parameter is required when StorageType
is set to HDD.
The type of drive cache used by PERSISTENT_1
file systems that are provisioned with\n HDD storage devices. This parameter is required when StorageType
is HDD. When set to\n READ
the file system has an SSD storage cache that is sized to 20% of the file system's\n storage capacity. This improves the performance for frequently accessed files by caching up to 20%\n of the total storage capacity.
This parameter is required when StorageType
is set to HDD.
The data compression configuration for the file system. DataCompressionType
\n can have the following values:
\n NONE
- Data compression is turned off for\n the file system.
\n LZ4
- Data compression is turned on with the LZ4\n algorithm.
For more information, see Lustre data compression.
" } + }, + "LogConfiguration": { + "target": "com.amazonaws.fsx#LustreLogConfiguration", + "traits": { + "smithy.api#documentation": "The Lustre logging configuration. Lustre logging writes the enabled log\n events for your file system to Amazon CloudWatch Logs.
" + } } }, "traits": { @@ -4211,6 +5219,48 @@ "smithy.api#pattern": "^([A-Za-z0-9_-]{1,8})$" } }, + "com.amazonaws.fsx#LustreLogConfiguration": { + "type": "structure", + "members": { + "Level": { + "target": "com.amazonaws.fsx#LustreAccessAuditLogLevel", + "traits": { + "smithy.api#documentation": "The data repository events that are logged by Amazon FSx.
\n\n WARN_ONLY
- only warning events are logged.
\n ERROR_ONLY
- only error events are logged.
\n WARN_ERROR
- both warning events and error events\n are logged.
\n DISABLED
- logging of data repository events\n is turned off.
The Amazon Resource Name (ARN) that specifies the destination of the logs.\n The destination can be any Amazon CloudWatch Logs log group ARN. The destination\n ARN must be in the same Amazon Web Services partition, Amazon Web Services Region,\n and Amazon Web Services account as your Amazon FSx file system.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration for Lustre logging used to write the enabled\n logging events for your file system to Amazon CloudWatch Logs.
\nWhen logging is enabled, Lustre logs error and warning events\n from data repository operations such as automatic export and data repository tasks.\n To learn more about Lustre logging, see \n Logging with Amazon CloudWatch Logs.\n
" + } + }, + "com.amazonaws.fsx#LustreLogCreateConfiguration": { + "type": "structure", + "members": { + "Level": { + "target": "com.amazonaws.fsx#LustreAccessAuditLogLevel", + "traits": { + "smithy.api#documentation": "Sets which data repository events are logged by Amazon FSx.
\n\n WARN_ONLY
- only warning events are logged.
\n ERROR_ONLY
- only error events are logged.
\n WARN_ERROR
- both warning events and error events\n are logged.
\n DISABLED
- logging of data repository events\n is turned off.
The Amazon Resource Name (ARN) that specifies the destination of the logs.
\nThe destination can be any Amazon CloudWatch Logs log group ARN, with the following\n requirements:
\nThe destination ARN that you provide must be in the same Amazon Web Services partition,\n Amazon Web Services Region, and Amazon Web Services account as your Amazon FSx file system.
\nThe name of the Amazon CloudWatch Logs log group must begin with\n the /aws/fsx
prefix.
If you do not provide a destination, Amazon FSx will create and use a\n log stream in the CloudWatch Logs /aws/fsx/lustre
log group.
If Destination
is provided and the resource does not\n exist, the request will fail with a BadRequest
error.
If Level
is set to DISABLED
, you cannot specify\n a destination in Destination
.
The Lustre logging configuration used when creating or updating an\n Amazon FSx for Lustre file system. Lustre logging writes the enabled\n logging events for your file system to Amazon CloudWatch Logs.
\nError and warning events can be logged from the following data\n repository operations:
\nAutomatic export
\nData repository tasks
\nTo learn more about Lustre logging, see \n Logging to Amazon CloudWatch Logs.
" + } + }, "com.amazonaws.fsx#MaxResults": { "type": "integer", "traits": { @@ -4236,10 +5286,10 @@ "type": "integer", "traits": { "smithy.api#box": {}, - "smithy.api#documentation": "Sustained throughput of an Amazon FSx file system in MBps.
", + "smithy.api#documentation": "The sustained throughput of an Amazon FSx file system in MBps.
", "smithy.api#range": { "min": 8, - "max": 2048 + "max": 4096 } } }, @@ -4267,6 +5317,16 @@ "smithy.api#error": "client" } }, + "com.amazonaws.fsx#Namespace": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4096 + }, + "smithy.api#pattern": "^[^\\u0000\\u0085\\u2028\\u2029\\r\\n]{3,4096}$" + } + }, "com.amazonaws.fsx#NetBiosAlias": { "type": "string", "traits": { @@ -4419,13 +5479,13 @@ "JunctionPath": { "target": "com.amazonaws.fsx#JunctionPath", "traits": { - "smithy.api#documentation": "Specifies the directory that NAS clients use to mount the volume, along with the SVM DNS name or IP address.\n You can create a JunctionPath
directly below a parent volume junction or on a \n directory within a volume. A JunctionPath
for a volume named vol3 might \n be /vol1/vol2/vol3, or /vol1/dir2/vol3, or even /dir1/dir2/vol3..
Specifies the directory that network-attached storage (NAS) clients use to mount the\n volume, along with the storage virtual machine (SVM) Domain Name System (DNS) name or IP\n address. You can create a JunctionPath
directly below a parent volume\n junction or on a directory within a volume. A JunctionPath
for a volume\n named vol3
might be /vol1/vol2/vol3
, or\n /vol1/dir2/vol3
, or even /dir1/dir2/vol3
.
The security style for the volume, which can be UNIX
,\n NTFS
, or MIXED
.
The security style for the volume, which can be UNIX
, NTFS
,\n or\n MIXED
.
A boolean flag indicating whether this volume is the root volume for\n its storage virtual machine (SVM). Only one volume on an SVM can be the\n root volume. This value defaults to false. If this value is true, then\n this is the SVM root volume.
\nThis flag is useful when you're deleting an SVM, because you must\n first delete all non-root volumes. This flag, when set to false, helps\n you identify which volumes to delete before you can delete the SVM.
" + "smithy.api#documentation": "A Boolean flag indicating whether this volume is the root volume for its storage\n virtual machine (SVM). Only one volume on an SVM can be the root volume. This value\n defaults to false
. If this value is true
, then this is the SVM\n root volume.
This flag is useful when you're deleting an SVM, because you must first delete all\n non-root volumes. This flag, when set to false
, helps you identify which\n volumes to delete before you can delete the SVM.
The volume's UUID (universally unique identifier).
" + "smithy.api#documentation": "The volume's universally unique identifier (UUID).
" } }, "OntapVolumeType": { "target": "com.amazonaws.fsx#OntapVolumeType", "traits": { - "smithy.api#documentation": "Specifies the type of volume. Valid values are the following:
\n\n RW
specifies a read-write volume.\n RW
is the default.
\n DP
specifies a data protection volume. You can\n protect data by replicating it to data protection mirror copies and use\n data protection mirror copies to recover data when a disaster occurs.
\n LS
specifies a load-sharing mirror volume.\n A load-sharing mirror reduces the network traffic to a FlexVol volume\n by providing additional read-only access to clients.
Specifies the type of volume. Valid values are the following:
\n\n RW
specifies a read/write volume. RW
is the default.
\n DP
specifies a data-protection volume. You can protect data by replicating it to\n data-protection mirror copies. If a disaster occurs, you can use these\n data-protection mirror copies to recover data.
\n LS
specifies a load-sharing mirror volume. A load-sharing mirror reduces the\n network traffic to a FlexVol volume by providing additional read-only access to\n clients.
The configuration of an Amazon FSx for NetApp ONTAP volume
" + "smithy.api#documentation": "The configuration of an Amazon FSx for NetApp ONTAP volume.
" } }, "com.amazonaws.fsx#OntapVolumeType": { @@ -4494,143 +5554,666 @@ ] } }, - "com.amazonaws.fsx#OrganizationalUnitDistinguishedName": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2000 + "com.amazonaws.fsx#OpenZFSClientConfiguration": { + "type": "structure", + "members": { + "Clients": { + "target": "com.amazonaws.fsx#OpenZFSClients", + "traits": { + "smithy.api#documentation": "A value that specifies who can mount the file system. You can provide a wildcard\n character (*
), an IP address (0.0.0.0
), or a CIDR address\n (192.0.2.0/24
. By default, Amazon FSx uses the wildcard\n character when specifying the client.
The name of a parameter for the request. Parameter names are returned in\n PascalCase.
", - "smithy.api#length": { - "min": 1 + "Options": { + "target": "com.amazonaws.fsx#OpenZFSNfsExportOptions", + "traits": { + "smithy.api#documentation": "The options to use when mounting the file system. For a list of options that you can\n use with Network File System (NFS), see the exports(5) - Linux man page. When\n choosing your options, consider the following:
\n\n crossmount
is used by default. If you don't specify\n crossmount
when changing the client configuration, you won't be\n able to see or access snapshots in your file system's snapshot directory.
\n sync
is used by default. If you instead specify\n async
, the system acknowledges writes before writing to disk.\n If the system crashes before the writes are finished, you lose the unwritten\n data.
Specifies who can mount the file system and the options that can be used while\n mounting the file system.
" } }, - "com.amazonaws.fsx#ProgressPercent": { - "type": "integer", + "com.amazonaws.fsx#OpenZFSClientConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#OpenZFSClientConfiguration" + }, "traits": { - "smithy.api#box": {}, - "smithy.api#documentation": "The current percent of progress of an asynchronous task.
", - "smithy.api#range": { + "smithy.api#length": { "min": 0, - "max": 100 + "max": 25 } } }, - "com.amazonaws.fsx#Region": { + "com.amazonaws.fsx#OpenZFSClients": { "type": "string", "traits": { "smithy.api#length": { "min": 1, - "max": 20 + "max": 128 }, - "smithy.api#pattern": "^[a-z0-9-]{1,20}$" + "smithy.api#pattern": "^[ -~]{1,128}$" } }, - "com.amazonaws.fsx#ReportFormat": { + "com.amazonaws.fsx#OpenZFSCopyStrategy": { "type": "string", "traits": { "smithy.api#enum": [ { - "value": "REPORT_CSV_20191124", - "name": "REPORT_CSV_20191124" - } - ] - } - }, - "com.amazonaws.fsx#ReportScope": { - "type": "string", - "traits": { - "smithy.api#enum": [ + "value": "CLONE", + "name": "CLONE" + }, { - "value": "FAILED_FILES_ONLY", - "name": "FAILED_FILES_ONLY" + "value": "FULL_COPY", + "name": "FULL_COPY" } ] } }, - "com.amazonaws.fsx#RequestTime": { - "type": "timestamp" - }, - "com.amazonaws.fsx#ResourceARN": { - "type": "string", - "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services\n resources. We require an ARN when you need to specify a resource unambiguously across\n all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in\n the Amazon Web Services General Reference.
", - "smithy.api#length": { - "min": 8, - "max": 512 - }, + "com.amazonaws.fsx#OpenZFSCreateRootVolumeConfiguration": { + "type": "structure", + "members": { + "DataCompressionType": { + "target": "com.amazonaws.fsx#OpenZFSDataCompressionType", + "traits": { + "smithy.api#documentation": "Specifies the method used to compress the data on the volume. Unless the compression\n type is specified, volumes inherit the DataCompressionType
value of their\n parent volume.
\n NONE
- Doesn't compress the data on the volume.
\n ZSTD
- Compresses the data in the volume using the ZStandard\n (ZSTD) compression algorithm. This algorithm reduces the amount of space used on\n your volume and has very little impact on compute resources.
The configuration object for mounting a file system.
" + } + }, + "UserAndGroupQuotas": { + "target": "com.amazonaws.fsx#OpenZFSUserAndGroupQuotas", + "traits": { + "smithy.api#documentation": "An object specifying how much storage users or groups can use on the volume.
" + } + }, + "CopyTagsToSnapshots": { + "target": "com.amazonaws.fsx#Flag", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether tags for the volume should be copied to snapshots.\n This value defaults to false
. If it's set to true
, all tags\n for the volume are copied to snapshots where the user doesn't specify tags. If this\n value is true
and you specify one or more tags, only the specified tags are\n copied to snapshots. If you specify one or more tags when creating the snapshot, no tags\n are copied from the volume, regardless of this value.
A Boolean value indicating whether the volume is read-only. Setting this value to\n true
can be useful after you have completed changes to a volume and no\n longer want changes to occur.
The configuration of an Amazon FSx for OpenZFS root volume.
" + } + }, + "com.amazonaws.fsx#OpenZFSDataCompressionType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "NONE", + "name": "NONE" + }, + { + "value": "ZSTD", + "name": "ZSTD" + } + ] + } + }, + "com.amazonaws.fsx#OpenZFSDeploymentType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SINGLE_AZ_1", + "name": "SINGLE_AZ_1" + } + ] + } + }, + "com.amazonaws.fsx#OpenZFSFileSystemConfiguration": { + "type": "structure", + "members": { + "AutomaticBackupRetentionDays": { + "target": "com.amazonaws.fsx#AutomaticBackupRetentionDays" + }, + "CopyTagsToBackups": { + "target": "com.amazonaws.fsx#Flag", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether tags on the file system should be copied to\n backups.\n If it's set to true
, all tags on the file system are copied to all\n automatic backups and any user-initiated backups where the user doesn't specify any\n tags. If this value is true
and you specify one or more tags, only the\n specified tags are copied to backups. If you specify one or more tags when creating a\n user-initiated backup, no tags are copied from the file system, regardless of this\n value.
A Boolean value indicating whether tags for the volume should be copied to snapshots.\n This value defaults to false
. If it's set to true
, all tags\n for the volume are copied to snapshots where the user doesn't specify tags. If this\n value is true
and you specify one or more tags, only the specified tags are\n copied to snapshots. If you specify one or more tags when creating the snapshot, no tags\n are copied from the volume, regardless of this value.
Specifies the file-system deployment type. Amazon FSx for OpenZFS supports\n SINGLE_AZ_1
. SINGLE_AZ_1
is a file system configured for a\n single Availability Zone (AZ) of redundancy.
The throughput of an Amazon FSx file system, measured in megabytes per second\n (MBps), in 2 to the nth increments, between 2^3 (8) and 2^11 (2048).
" + } + }, + "WeeklyMaintenanceStartTime": { + "target": "com.amazonaws.fsx#WeeklyTime" + }, + "DiskIopsConfiguration": { + "target": "com.amazonaws.fsx#DiskIopsConfiguration" + }, + "RootVolumeId": { + "target": "com.amazonaws.fsx#VolumeId", + "traits": { + "smithy.api#documentation": "The ID of the root volume of the OpenZFS file system.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration for the Amazon FSx for OpenZFS file system.
" + } + }, + "com.amazonaws.fsx#OpenZFSNfsExport": { + "type": "structure", + "members": { + "ClientConfigurations": { + "target": "com.amazonaws.fsx#OpenZFSClientConfigurations", + "traits": { + "smithy.api#documentation": "A list of configuration objects that contain the client and options for mounting the\n OpenZFS file system.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The Network File System NFS) configurations for mounting an Amazon FSx for\n OpenZFS file system.
" + } + }, + "com.amazonaws.fsx#OpenZFSNfsExportOption": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[ -~]{1,128}$" + } + }, + "com.amazonaws.fsx#OpenZFSNfsExportOptions": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#OpenZFSNfsExportOption" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.fsx#OpenZFSNfsExports": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#OpenZFSNfsExport" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1 + } + } + }, + "com.amazonaws.fsx#OpenZFSOriginSnapshotConfiguration": { + "type": "structure", + "members": { + "SnapshotARN": { + "target": "com.amazonaws.fsx#ResourceARN" + }, + "CopyStrategy": { + "target": "com.amazonaws.fsx#OpenZFSCopyStrategy", + "traits": { + "smithy.api#documentation": "The strategy used when copying data from the snapshot to the new volume.
\n\n CLONE
- The new volume references the data in the origin\n snapshot. Cloning a snapshot is faster than copying the data from a snapshot to\n a new volume and doesn't consume disk throughput. However, the origin snapshot\n can't be deleted if there is a volume using its copied data.
\n FULL_COPY
- Copies all data from the snapshot to the new volume.\n
The snapshot configuration to use when creating an OpenZFS volume from a\n snapshot.
" + } + }, + "com.amazonaws.fsx#OpenZFSQuotaType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "USER", + "name": "USER" + }, + { + "value": "GROUP", + "name": "GROUP" + } + ] + } + }, + "com.amazonaws.fsx#OpenZFSUserAndGroupQuotas": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#OpenZFSUserOrGroupQuota" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + } + } + }, + "com.amazonaws.fsx#OpenZFSUserOrGroupQuota": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.fsx#OpenZFSQuotaType", + "traits": { + "smithy.api#documentation": "A value that specifies whether the quota applies to a user or group.
", + "smithy.api#required": {} + } + }, + "Id": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "The ID of the user or group.
", + "smithy.api#required": {} + } + }, + "StorageCapacityQuotaGiB": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "The amount of storage that the user or group can use in gibibytes (GiB).
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration for how much storage a user or group can use on the volume.
" + } + }, + "com.amazonaws.fsx#OpenZFSVolumeConfiguration": { + "type": "structure", + "members": { + "ParentVolumeId": { + "target": "com.amazonaws.fsx#VolumeId", + "traits": { + "smithy.api#documentation": "The ID of the parent volume.
" + } + }, + "VolumePath": { + "target": "com.amazonaws.fsx#VolumePath", + "traits": { + "smithy.api#documentation": "The path to the volume from the root volume. For example,\n fsx/parentVolume/volume1
.
The amount of storage in gibibytes (GiB) to reserve from the parent volume. You can't\n reserve more storage than the parent volume has reserved.
" + } + }, + "StorageCapacityQuotaGiB": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "The maximum amount of storage in gibibtyes (GiB) that the volume can use from its\n parent. You can specify a quota larger than the storage on the parent volume.
" + } + }, + "DataCompressionType": { + "target": "com.amazonaws.fsx#OpenZFSDataCompressionType", + "traits": { + "smithy.api#documentation": "The method used to compress the data on the volume. Unless a compression type is\n specified, volumes inherit the DataCompressionType
value of their parent\n volume.
\n NONE
- Doesn't compress the data on the volume.
\n ZSTD
- Compresses the data in the volume using the Zstandard\n (ZSTD) compression algorithm. This algorithm reduces the amount of space used on\n your volume and has very little impact on compute resources.
A Boolean value indicating whether tags for the volume should be copied to snapshots.\n This value defaults to false
. If it's set to true
, all tags\n for the volume are copied to snapshots where the user doesn't specify tags. If this\n value is true
and you specify one or more tags, only the specified tags are\n copied to snapshots. If you specify one or more tags when creating the snapshot, no tags\n are copied from the volume, regardless of this value.
The configuration object that specifies the snapshot to use as the origin of the data\n for the volume.
" + } + }, + "ReadOnly": { + "target": "com.amazonaws.fsx#ReadOnly", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether the volume is read-only.
" + } + }, + "NfsExports": { + "target": "com.amazonaws.fsx#OpenZFSNfsExports", + "traits": { + "smithy.api#documentation": "The configuration object for mounting a Network File System (NFS) file\n system.
" + } + }, + "UserAndGroupQuotas": { + "target": "com.amazonaws.fsx#OpenZFSUserAndGroupQuotas", + "traits": { + "smithy.api#documentation": "An object specifying how much storage users or groups can use on the volume.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration of an Amazon FSx for OpenZFS volume.
" + } + }, + "com.amazonaws.fsx#OrganizationalUnitDistinguishedName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2000 + }, + "smithy.api#pattern": "^[^\\u0000\\u0085\\u2028\\u2029\\r\\n]{1,2000}$" + } + }, + "com.amazonaws.fsx#Parameter": { + "type": "string", + "traits": { + "smithy.api#documentation": "The name of a parameter for the request. Parameter names are returned in\n PascalCase.
", + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.fsx#PerUnitStorageThroughput": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 12, + "max": 1000 + } + } + }, + "com.amazonaws.fsx#ProgressPercent": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#documentation": "The current percent of progress of an asynchronous task.
", + "smithy.api#range": { + "min": 0, + "max": 100 + } + } + }, + "com.amazonaws.fsx#ReadOnly": { + "type": "boolean", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.fsx#Region": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + }, + "smithy.api#pattern": "^[a-z0-9-]{1,20}$" + } + }, + "com.amazonaws.fsx#ReleaseFileSystemNfsV3Locks": { + "type": "operation", + "input": { + "target": "com.amazonaws.fsx#ReleaseFileSystemNfsV3LocksRequest" + }, + "output": { + "target": "com.amazonaws.fsx#ReleaseFileSystemNfsV3LocksResponse" + }, + "errors": [ + { + "target": "com.amazonaws.fsx#BadRequest" + }, + { + "target": "com.amazonaws.fsx#FileSystemNotFound" + }, + { + "target": "com.amazonaws.fsx#IncompatibleParameterError" + }, + { + "target": "com.amazonaws.fsx#InternalServerError" + }, + { + "target": "com.amazonaws.fsx#ServiceLimitExceeded" + } + ], + "traits": { + "smithy.api#documentation": "Releases the file system lock from an Amazon FSx for OpenZFS file\n system.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.fsx#ReleaseFileSystemNfsV3LocksRequest": { + "type": "structure", + "members": { + "FileSystemId": { + "target": "com.amazonaws.fsx#FileSystemId", + "traits": { + "smithy.api#required": {} + } + }, + "ClientRequestToken": { + "target": "com.amazonaws.fsx#ClientRequestToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.fsx#ReleaseFileSystemNfsV3LocksResponse": { + "type": "structure", + "members": { + "FileSystem": { + "target": "com.amazonaws.fsx#FileSystem" + } + } + }, + "com.amazonaws.fsx#ReportFormat": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "REPORT_CSV_20191124", + "name": "REPORT_CSV_20191124" + } + ] + } + }, + "com.amazonaws.fsx#ReportScope": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "FAILED_FILES_ONLY", + "name": "FAILED_FILES_ONLY" + } + ] + } + }, + "com.amazonaws.fsx#RequestTime": { + "type": "timestamp" + }, + "com.amazonaws.fsx#ResourceARN": { + "type": "string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services\n resources. We require an ARN when you need to specify a resource unambiguously across\n all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in\n the Amazon Web Services General Reference.
", + "smithy.api#length": { + "min": 8, + "max": 512 + }, "smithy.api#pattern": "^arn:(?=[^:]+:fsx:[^:]+:\\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\\d{1,3}(\\.\\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\\.)(?![^:]*\\.-)[a-z0-9].*(?The Amazon Resource Name (ARN) of the resource that doesn't support\n tagging.", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.fsx#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The resource specified does not support tagging.
", + "smithy.api#error": "client" + } + }, + "com.amazonaws.fsx#ResourceNotFound": { + "type": "structure", + "members": { + "ResourceARN": { + "target": "com.amazonaws.fsx#ResourceARN", + "traits": { + "smithy.api#documentation": "The resource ARN of the resource that can't be found.
", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.fsx#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The resource specified by the Amazon Resource Name (ARN) can't be found.
", + "smithy.api#error": "client" + } + }, + "com.amazonaws.fsx#ResourceType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "FILE_SYSTEM", + "name": "FILE_SYSTEM" + }, + { + "value": "VOLUME", + "name": "VOLUME" + } + ] + } + }, + "com.amazonaws.fsx#RestoreOpenZFSVolumeOption": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DELETE_INTERMEDIATE_SNAPSHOTS", + "name": "DELETE_INTERMEDIATE_SNAPSHOTS" + }, + { + "value": "DELETE_CLONED_VOLUMES", + "name": "DELETE_CLONED_VOLUMES" + } + ] + } + }, + "com.amazonaws.fsx#RestoreOpenZFSVolumeOptions": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#RestoreOpenZFSVolumeOption" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2 + } + } + }, + "com.amazonaws.fsx#RestoreVolumeFromSnapshot": { + "type": "operation", + "input": { + "target": "com.amazonaws.fsx#RestoreVolumeFromSnapshotRequest" + }, + "output": { + "target": "com.amazonaws.fsx#RestoreVolumeFromSnapshotResponse" + }, + "errors": [ + { + "target": "com.amazonaws.fsx#BadRequest" + }, + { + "target": "com.amazonaws.fsx#InternalServerError" + }, + { + "target": "com.amazonaws.fsx#VolumeNotFound" + } + ], + "traits": { + "smithy.api#documentation": "Returns an Amazon FSx for OpenZFS volume to the state saved by the specified\n snapshot.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.fsx#RestoreVolumeFromSnapshotRequest": { "type": "structure", "members": { - "ResourceARN": { - "target": "com.amazonaws.fsx#ResourceARN", + "ClientRequestToken": { + "target": "com.amazonaws.fsx#ClientRequestToken", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource that doesn't support\n tagging.
", + "smithy.api#idempotencyToken": {} + } + }, + "VolumeId": { + "target": "com.amazonaws.fsx#VolumeId", + "traits": { + "smithy.api#documentation": "The ID of the volume that you are restoring.
", "smithy.api#required": {} } }, - "Message": { - "target": "com.amazonaws.fsx#ErrorMessage" + "SnapshotId": { + "target": "com.amazonaws.fsx#SnapshotId", + "traits": { + "smithy.api#documentation": "The ID of the source snapshot. Specifies the snapshot that you are restoring\n from.
", + "smithy.api#required": {} + } + }, + "Options": { + "target": "com.amazonaws.fsx#RestoreOpenZFSVolumeOptions", + "traits": { + "smithy.api#documentation": "The settings used when restoring the specified volume from snapshot.
\n\n DELETE_INTERMEDIATE_SNAPSHOTS
- Deletes snapshots between the\n current state and the specified snapshot. If there are intermediate snapshots\n and this option isn't used, RestoreVolumeFromSnapshot
fails.
\n DELETE_CLONED_VOLUMES
- Deletes any volumes cloned from this\n volume. If there are any cloned volumes and this option isn't used,\n RestoreVolumeFromSnapshot
fails.
The resource specified does not support tagging.
", - "smithy.api#error": "client" } }, - "com.amazonaws.fsx#ResourceNotFound": { + "com.amazonaws.fsx#RestoreVolumeFromSnapshotResponse": { "type": "structure", "members": { - "ResourceARN": { - "target": "com.amazonaws.fsx#ResourceARN", + "VolumeId": { + "target": "com.amazonaws.fsx#VolumeId", "traits": { - "smithy.api#documentation": "The resource ARN of the resource that can't be found.
", - "smithy.api#required": {} + "smithy.api#documentation": "The ID of the volume that you restored.
" } }, - "Message": { - "target": "com.amazonaws.fsx#ErrorMessage" - } - }, - "traits": { - "smithy.api#documentation": "The resource specified by the Amazon Resource Name (ARN) can't be found.
", - "smithy.api#error": "client" - } - }, - "com.amazonaws.fsx#ResourceType": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "FILE_SYSTEM", - "name": "FILE_SYSTEM" - }, - { - "value": "VOLUME", - "name": "VOLUME" + "Lifecycle": { + "target": "com.amazonaws.fsx#VolumeLifecycle", + "traits": { + "smithy.api#documentation": "The lifecycle state of the volume being restored.
" } - ] + } } }, "com.amazonaws.fsx#RouteTableId": { @@ -4655,10 +6238,30 @@ } } }, + "com.amazonaws.fsx#S3DataRepositoryConfiguration": { + "type": "structure", + "members": { + "AutoImportPolicy": { + "target": "com.amazonaws.fsx#AutoImportPolicy", + "traits": { + "smithy.api#documentation": "Specifies the type of updated objects (new, changed, deleted)\n that will be automatically imported from the linked S3 bucket\n to your file system.
" + } + }, + "AutoExportPolicy": { + "target": "com.amazonaws.fsx#AutoExportPolicy", + "traits": { + "smithy.api#documentation": "Specifies the type of updated objects (new, changed, deleted)\n that will be automatically exported from your file system to\n the linked S3 bucket.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration for an Amazon S3 data repository linked to an\n Amazon FSx Lustre file system with a data repository association.\n The configuration consists of an AutoImportPolicy
that\n defines file events on the data repository are automatically\n imported to the file system and an AutoExportPolicy
\n that defines which file events on the file system are automatically\n exported to the data repository. File events are when files or\n directories are added, changed, or deleted on the file system or\n the data repository.
The ID of your Amazon EC2 security group. This ID is used to control network access\n to the endpoint that Amazon FSx creates on your behalf in each subnet. For more\n information, see Amazon EC2 Security\n Groups for Linux Instances in the Amazon EC2 User\n Guide.
", + "smithy.api#documentation": "The ID of your Amazon EC2 security group. This ID is used to control network access\n to the endpoint that Amazon FSx creates on your behalf in each subnet. For more\n information, see Amazon EC2 Security\n groups for Linux instances in the Amazon EC2 User\n Guide.
", "smithy.api#length": { "min": 11, "max": 20 @@ -4810,69 +6413,264 @@ "smithy.api#documentation": "The configuration that Amazon FSx uses to join the Windows File Server instance to a\n self-managed Microsoft Active Directory (AD) directory.
" } }, - "com.amazonaws.fsx#ServiceLimit": { + "com.amazonaws.fsx#ServiceLimit": { + "type": "string", + "traits": { + "smithy.api#documentation": "The types of limits on your service utilization. Limits include file system count,\n total throughput capacity, total storage, and total user-initiated backups. These limits\n apply for a specific account in a specific Amazon Web Services Region. You can increase some of them by\n contacting Amazon Web Services Support.
", + "smithy.api#enum": [ + { + "value": "FILE_SYSTEM_COUNT", + "name": "FILE_SYSTEM_COUNT" + }, + { + "value": "TOTAL_THROUGHPUT_CAPACITY", + "name": "TOTAL_THROUGHPUT_CAPACITY" + }, + { + "value": "TOTAL_STORAGE", + "name": "TOTAL_STORAGE" + }, + { + "value": "TOTAL_USER_INITIATED_BACKUPS", + "name": "TOTAL_USER_INITIATED_BACKUPS" + }, + { + "value": "TOTAL_USER_TAGS", + "name": "TOTAL_USER_TAGS" + }, + { + "value": "TOTAL_IN_PROGRESS_COPY_BACKUPS", + "name": "TOTAL_IN_PROGRESS_COPY_BACKUPS" + }, + { + "value": "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM", + "name": "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM" + }, + { + "value": "VOLUMES_PER_FILE_SYSTEM", + "name": "VOLUMES_PER_FILE_SYSTEM" + }, + { + "value": "TOTAL_SSD_IOPS", + "name": "TOTAL_SSD_IOPS" + } + ] + } + }, + "com.amazonaws.fsx#ServiceLimitExceeded": { + "type": "structure", + "members": { + "Limit": { + "target": "com.amazonaws.fsx#ServiceLimit", + "traits": { + "smithy.api#documentation": "Enumeration of the service limit that was exceeded.
", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.fsx#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "An error indicating that a particular service limit was exceeded. You can increase\n some service limits by contacting Amazon Web Services Support.
", + "smithy.api#error": "client" + } + }, + "com.amazonaws.fsx#Snapshot": { + "type": "structure", + "members": { + "ResourceARN": { + "target": "com.amazonaws.fsx#ResourceARN" + }, + "SnapshotId": { + "target": "com.amazonaws.fsx#SnapshotId", + "traits": { + "smithy.api#documentation": "The ID of the snapshot.
" + } + }, + "Name": { + "target": "com.amazonaws.fsx#SnapshotName", + "traits": { + "smithy.api#documentation": "The name of the snapshot.
" + } + }, + "VolumeId": { + "target": "com.amazonaws.fsx#VolumeId", + "traits": { + "smithy.api#documentation": "The ID of the volume that the snapshot is of.
" + } + }, + "CreationTime": { + "target": "com.amazonaws.fsx#CreationTime" + }, + "Lifecycle": { + "target": "com.amazonaws.fsx#SnapshotLifecycle", + "traits": { + "smithy.api#documentation": "The lifecycle status of the snapshot.
\n\n PENDING
- Amazon FSx hasn't started creating the\n snapshot.
\n CREATING
- Amazon FSx is creating the snapshot.
\n DELETING
- Amazon FSx is deleting the snapshot.
\n AVAILABLE
- The snapshot is fully available.
A list of administrative actions for the file system that are in process or waiting to\n be processed. Administrative actions describe changes to the Amazon FSx\n system.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A snapshot of an Amazon FSx for OpenZFS volume.
" + } + }, + "com.amazonaws.fsx#SnapshotFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.fsx#SnapshotFilterName", + "traits": { + "smithy.api#documentation": "The name of the filter to use. You can filter by the file-system-id
or by\n volume-id
.
The file-system-id
or volume-id
that you are filtering\n for.
A filter used to restrict the results of DescribeSnapshots
calls. You can\n use multiple filters to return results that meet all applied filter requirements.
The types of limits on your service utilization. Limits include file system count,\n total throughput capacity, total storage, and total user-initiated backups. These limits\n apply for a specific account in a specific Amazon Web Services Region. You can increase some of them by\n contacting Amazon Web Services Support.
", "smithy.api#enum": [ { - "value": "FILE_SYSTEM_COUNT", - "name": "FILE_SYSTEM_COUNT" - }, - { - "value": "TOTAL_THROUGHPUT_CAPACITY", - "name": "TOTAL_THROUGHPUT_CAPACITY" - }, - { - "value": "TOTAL_STORAGE", - "name": "TOTAL_STORAGE" - }, - { - "value": "TOTAL_USER_INITIATED_BACKUPS", - "name": "TOTAL_USER_INITIATED_BACKUPS" - }, - { - "value": "TOTAL_USER_TAGS", - "name": "TOTAL_USER_TAGS" - }, - { - "value": "TOTAL_IN_PROGRESS_COPY_BACKUPS", - "name": "TOTAL_IN_PROGRESS_COPY_BACKUPS" + "value": "PENDING", + "name": "PENDING" }, { - "value": "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM", - "name": "STORAGE_VIRTUAL_MACHINES_PER_FILE_SYSTEM" + "value": "CREATING", + "name": "CREATING" }, { - "value": "VOLUMES_PER_FILE_SYSTEM", - "name": "VOLUMES_PER_FILE_SYSTEM" + "value": "DELETING", + "name": "DELETING" }, { - "value": "TOTAL_SSD_IOPS", - "name": "TOTAL_SSD_IOPS" + "value": "AVAILABLE", + "name": "AVAILABLE" } ] } }, - "com.amazonaws.fsx#ServiceLimitExceeded": { + "com.amazonaws.fsx#SnapshotName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 203 + }, + "smithy.api#pattern": "^[a-zA-Z0-9_:.-]{1,203}$" + } + }, + "com.amazonaws.fsx#SnapshotNotFound": { "type": "structure", "members": { - "Limit": { - "target": "com.amazonaws.fsx#ServiceLimit", - "traits": { - "smithy.api#documentation": "Enumeration of the service limit that was exceeded.
", - "smithy.api#required": {} - } - }, "Message": { "target": "com.amazonaws.fsx#ErrorMessage" } }, "traits": { - "smithy.api#documentation": "An error indicating that a particular service limit was exceeded. You can increase\n some service limits by contacting Amazon Web Services Support.
", + "smithy.api#documentation": "No Amazon FSx snapshots were found based on the supplied parameters.
", "smithy.api#error": "client" } }, + "com.amazonaws.fsx#Snapshots": { + "type": "list", + "member": { + "target": "com.amazonaws.fsx#Snapshot" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, "com.amazonaws.fsx#SourceBackupId": { "type": "string", "traits": { @@ -4894,7 +6692,7 @@ } }, "traits": { - "smithy.api#documentation": "The request was rejected because the lifecycle status of the \n source backup is not AVAILABLE
.
The request was rejected because the lifecycle status of the source backup isn't\n AVAILABLE
.
The ID for a subnet. A subnet is a range of IP addresses in\n your virtual private cloud (VPC). For more information, see VPC and Subnets in the\n Amazon VPC User Guide.\n
", + "smithy.api#documentation": "The ID for a subnet. A subnet is a range of IP addresses in\n your virtual private cloud (VPC). For more information, see VPC and subnets in the\n Amazon VPC User Guide.\n
", "smithy.api#length": { "min": 15, "max": 24 @@ -5600,6 +7398,77 @@ "smithy.api#documentation": "The response object for UntagResource
action.
Updates the configuration of an existing data repository association\n on an Amazon FSx for Lustre file system. Data repository associations are\n supported only for file systems with the Persistent_2
deployment type.
The ID of the data repository association that you are updating.
", + "smithy.api#required": {} + } + }, + "ClientRequestToken": { + "target": "com.amazonaws.fsx#ClientRequestToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + }, + "ImportedFileChunkSize": { + "target": "com.amazonaws.fsx#Megabytes", + "traits": { + "smithy.api#documentation": "For files imported from a data repository, this value determines the stripe count and\n maximum amount of data per file (in MiB) stored on a single physical disk. The maximum\n number of disks that a single file can be striped across is limited by the total number\n of disks that make up the file system.
\n \nThe default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500\n GiB). Amazon S3 objects have a maximum size of 5 TB.
" + } + }, + "S3": { + "target": "com.amazonaws.fsx#S3DataRepositoryConfiguration", + "traits": { + "smithy.api#documentation": "The configuration for an Amazon S3 data repository linked to an\n Amazon FSx Lustre file system with a data repository association.\n The configuration defines which file events (new, changed, or\n deleted files or directories) are automatically imported from\n the linked data repository to the file system or automatically\n exported from the file system to the data repository.
" + } + } + } + }, + "com.amazonaws.fsx#UpdateDataRepositoryAssociationResponse": { + "type": "structure", + "members": { + "Association": { + "target": "com.amazonaws.fsx#DataRepositoryAssociation", + "traits": { + "smithy.api#documentation": "The response object returned after the data repository association is updated.
" + } + } + } + }, "com.amazonaws.fsx#UpdateFileSystem": { "type": "operation", "input": { @@ -5632,7 +7501,7 @@ } ], "traits": { - "smithy.api#documentation": "Use this operation to update the configuration of an existing Amazon FSx file system. \n You can update multiple properties in a single request.
\nFor Amazon FSx for Windows File Server file systems, you can update the following \n properties:
\nAuditLogConfiguration
\nAutomaticBackupRetentionDays
\nDailyAutomaticBackupStartTime
\nSelfManagedActiveDirectoryConfiguration
\nStorageCapacity
\nThroughputCapacity
\nWeeklyMaintenanceStartTime
\nFor Amazon FSx for Lustre file systems, you can update the following \n properties:
\nAutoImportPolicy
\nAutomaticBackupRetentionDays
\nDailyAutomaticBackupStartTime
\nDataCompressionType
\nStorageCapacity
\nWeeklyMaintenanceStartTime
\nFor Amazon FSx for NetApp ONTAP file systems, you can update the following\n properties:
\nAutomaticBackupRetentionDays
\nDailyAutomaticBackupStartTime
\nFsxAdminPassword
\nWeeklyMaintenanceStartTime
\nUse this operation to update the configuration of an existing Amazon FSx file\n system. You can update multiple properties in a single request.
\nFor Amazon FSx for Windows File Server file systems, you can update the following\n properties:
\n\n AuditLogConfiguration
\n
\n AutomaticBackupRetentionDays
\n
\n DailyAutomaticBackupStartTime
\n
\n SelfManagedActiveDirectoryConfiguration
\n
\n StorageCapacity
\n
\n ThroughputCapacity
\n
\n WeeklyMaintenanceStartTime
\n
For FSx for Lustre file systems, you can update the following\n properties:
\n\n AutoImportPolicy
\n
\n AutomaticBackupRetentionDays
\n
\n DailyAutomaticBackupStartTime
\n
\n DataCompressionType
\n
\n StorageCapacity
\n
\n WeeklyMaintenanceStartTime
\n
For FSx for ONTAP file systems, you can update the following\n properties:
\n\n AutomaticBackupRetentionDays
\n
\n DailyAutomaticBackupStartTime
\n
\n FsxAdminPassword
\n
\n WeeklyMaintenanceStartTime
\n
For the Amazon FSx for OpenZFS file systems, you can update the following\n properties:
\n\n AutomaticBackupRetentionDays
\n
\n CopyTagsToBackups
\n
\n CopyTagsToVolumes
\n
\n DailyAutomaticBackupStartTime
\n
\n DiskIopsConfiguration
\n
\n ThroughputCapacity
\n
\n WeeklyMaintenanceStartTime
\n
(Optional) When you create your file system, your existing S3 objects appear as file and directory listings. \n Use this property to choose how Amazon FSx keeps your file and directory listing up to date \n as you add or modify objects in your linked S3 bucket. AutoImportPolicy
can\n have the following values:
\n NONE
- (Default) AutoImport is off. Amazon FSx only updates \n file and directory listings from the linked S3 bucket \n when the file system is created. FSx does not update the file and directory \n listing for any new or changed objects after choosing this option.
\n NEW
- AutoImport is on. Amazon FSx automatically imports\n directory listings of any new objects added to the linked S3 bucket that \n do not currently exist in the FSx file system.
\n NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports \n file and directory listings of any new objects added to the S3 bucket and any \n existing objects that are changed in the S3 bucket after you choose this option. \n
For more information, see Automatically import updates from your S3 bucket.
" + "smithy.api#documentation": " (Optional) When you create your file system, your existing S3 objects appear as file and directory listings. \n Use this property to choose how Amazon FSx keeps your file and directory listing up to date \n as you add or modify objects in your linked S3 bucket. AutoImportPolicy
can\n have the following values:
\n NONE
- (Default) AutoImport is off. Amazon FSx only updates \n file and directory listings from the linked S3 bucket \n when the file system is created. FSx does not update the file and directory \n listing for any new or changed objects after choosing this option.
\n NEW
- AutoImport is on. Amazon FSx automatically imports\n directory listings of any new objects added to the linked S3 bucket that \n do not currently exist in the FSx file system.
\n NEW_CHANGED
- AutoImport is on. Amazon FSx automatically imports \n file and directory listings of any new objects added to the S3 bucket and any \n existing objects that are changed in the S3 bucket after you choose this option.
\n NEW_CHANGED_DELETED
- AutoImport is on. Amazon FSx automatically\n imports file and directory listings of any new objects added to the S3 bucket, any \n existing objects that are changed in the S3 bucket, and any objects that were deleted\n in the S3 bucket.
The AutoImportPolicy
parameter is not supported for Lustre file systems with\n the Persistent_2
deployment type. Instead, use \n to update a data repository association on your Persistent_2
file system.
Sets the data compression configuration for the file system. DataCompressionType
\n can have the following values:
\n NONE
- Data compression is turned off for\n the file system.
\n LZ4
- Data compression is turned on with the LZ4\n algorithm.
If you don't use DataCompressionType
, the file system retains\n its current data compression configuration.
For more information, see Lustre data compression.
" } + }, + "LogConfiguration": { + "target": "com.amazonaws.fsx#LustreLogCreateConfiguration", + "traits": { + "smithy.api#documentation": "The Lustre logging configuration used when updating an Amazon FSx for Lustre\n file system. When logging is enabled, Lustre logs error and warning events for\n data repositories associated with your file system to Amazon CloudWatch Logs.
" + } } }, "traits": { @@ -5690,33 +7565,71 @@ "smithy.api#documentation": "The configuration updates for an Amazon FSx for NetApp ONTAP file system.
" } }, + "com.amazonaws.fsx#UpdateFileSystemOpenZFSConfiguration": { + "type": "structure", + "members": { + "AutomaticBackupRetentionDays": { + "target": "com.amazonaws.fsx#AutomaticBackupRetentionDays" + }, + "CopyTagsToBackups": { + "target": "com.amazonaws.fsx#Flag", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether tags for the file system should be copied to\n backups. This value defaults to false
. If it's set to true
,\n all tags for the file system are copied to all automatic and user-initiated backups\n where the user doesn't specify tags. If this value is true
and you specify\n one or more tags, only the specified tags are copied to backups. If you specify one or\n more tags when creating a user-initiated backup, no tags are copied from the file\n system, regardless of this value.
A Boolean value indicating whether tags for the volume should be copied to snapshots.\n This value defaults to false
. If it's set to true
, all tags\n for the volume are copied to snapshots where the user doesn't specify tags. If this\n value is true
and you specify one or more tags, only the specified tags are\n copied to snapshots. If you specify one or more tags when creating the snapshot, no tags\n are copied from the volume, regardless of this value.
The throughput of an Amazon FSx file system, measured in megabytes per second\n (MBps), in 2 to the nth increments, between 2^3 (8) and 2^11 (2048).
" + } + }, + "WeeklyMaintenanceStartTime": { + "target": "com.amazonaws.fsx#WeeklyTime" + }, + "DiskIopsConfiguration": { + "target": "com.amazonaws.fsx#DiskIopsConfiguration" + } + }, + "traits": { + "smithy.api#documentation": "The configuration updates for an Amazon FSx for OpenZFS file system.
" + } + }, "com.amazonaws.fsx#UpdateFileSystemRequest": { "type": "structure", "members": { "FileSystemId": { "target": "com.amazonaws.fsx#FileSystemId", "traits": { - "smithy.api#documentation": "Identifies the file system that you are updating.
", + "smithy.api#documentation": "The ID of the file system that you are updating.
", "smithy.api#required": {} } }, "ClientRequestToken": { "target": "com.amazonaws.fsx#ClientRequestToken", "traits": { - "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent updates. This string is automatically filled on your behalf when you use\n the Command Line Interface (CLI) or an Amazon Web Services SDK.
", + "smithy.api#documentation": "A string of up to 64 ASCII characters that Amazon FSx uses to ensure\n idempotent updates. This string is automatically filled on your behalf when you use the\n Command Line Interface (CLI) or an Amazon Web Services SDK.
", "smithy.api#idempotencyToken": {} } }, "StorageCapacity": { "target": "com.amazonaws.fsx#StorageCapacity", "traits": { - "smithy.api#documentation": "Use this parameter to increase the storage capacity of an Amazon FSx for Windows File Server\n or Amazon FSx for Lustre file system.\n Specifies the storage capacity target value, GiB, to increase the storage capacity for the\n file system that you're updating. You cannot make a storage capacity increase request if\n there is an existing storage capacity increase request in progress.
\nFor Windows file systems, the storage capacity target value must be at least 10 percent\n (%) greater than the current storage capacity value. In order to increase storage capacity,\n the file system must have at least 16 MB/s of throughput capacity.
\nFor Lustre file systems, the storage capacity target value can be the following:
\nFor SCRATCH_2
and PERSISTENT_1 SSD
deployment types, valid values\n are in multiples of 2400 GiB. The value must be greater than the current storage capacity.
For PERSISTENT HDD
file systems, valid values are multiples of 6000 GiB for \n 12 MB/s/TiB file systems and multiples of 1800 GiB for 40 MB/s/TiB file systems. The values must be greater\n than the current storage capacity.
For SCRATCH_1
file systems, you cannot increase the storage capacity.
For more information, see Managing storage\n capacity in the Amazon FSx for Windows File Server User Guide\n and Managing storage and throughput capacity in the Amazon FSx for Lustre\n User Guide.
" + "smithy.api#documentation": "Use this parameter to increase the storage capacity of an Amazon FSx for Windows\n File Server or Amazon FSx for Lustre file system. Specifies the storage capacity\n target value, in GiB, to increase the storage capacity for the file system that you're\n updating.
\nYou can't make a storage capacity increase request if there is an existing storage\n capacity increase request in progress.
\nFor Windows file systems, the storage capacity target value must be at least 10 percent\n greater than the current storage capacity value. To increase storage capacity, the file system\n must have at least 16 MBps of throughput capacity.
\nFor Lustre file systems, the storage capacity target value can be the following:
\nFor SCRATCH_2
and PERSISTENT_1 SSD
deployment types, valid values\n are in multiples of 2400 GiB. The value must be greater than the current storage capacity.
For PERSISTENT HDD
file systems, valid values are multiples of 6000 GiB for\n 12-MBps throughput per TiB file systems and multiples of 1800 GiB for 40-MBps throughput\n per TiB file systems. The values must be greater than the current storage capacity.
For SCRATCH_1
file systems, you can't increase the storage capacity.
For OpenZFS file systems, the input/output operations per second (IOPS) automatically\n scale with increases to the storage capacity if IOPS is configured for automatic scaling. If\n the storage capacity increase would result in less than 3 IOPS per GiB of storage, this\n operation returns an error.
\nFor more information, see Managing storage\n capacity in the Amazon FSx for Windows File Server User\n Guide, Managing storage and throughput\n capacity in the Amazon FSx for Lustre User Guide, and\n Managing storage capacity in the Amazon FSx for OpenZFS User\n Guide.
" } }, "WindowsConfiguration": { "target": "com.amazonaws.fsx#UpdateFileSystemWindowsConfiguration", "traits": { - "smithy.api#documentation": "The configuration updates for an Amazon FSx for Windows File Server file system.
" + "smithy.api#documentation": "The configuration updates for an Amazon FSx for Windows File Server file\n system.
" } }, "LustreConfiguration": { @@ -5724,6 +7637,12 @@ }, "OntapConfiguration": { "target": "com.amazonaws.fsx#UpdateFileSystemOntapConfiguration" + }, + "OpenZFSConfiguration": { + "target": "com.amazonaws.fsx#UpdateFileSystemOpenZFSConfiguration", + "traits": { + "smithy.api#documentation": "The configuration updates for an Amazon FSx for OpenZFS file system.
" + } } }, "traits": { @@ -5826,6 +7745,110 @@ "smithy.api#documentation": "Used to specify changes to the ONTAP configuration for the volume you are updating.
" } }, + "com.amazonaws.fsx#UpdateOpenZFSVolumeConfiguration": { + "type": "structure", + "members": { + "StorageCapacityReservationGiB": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "The amount of storage in gibibytes (GiB) to reserve from the parent volume. You can't\n reserve more storage than the parent volume has reserved.
" + } + }, + "StorageCapacityQuotaGiB": { + "target": "com.amazonaws.fsx#IntegerNoMax", + "traits": { + "smithy.api#documentation": "\nThe maximum amount of storage in gibibytes (GiB) that the volume can use from its\n parent. You can specify a quota larger than the storage on the parent volume.
" + } + }, + "DataCompressionType": { + "target": "com.amazonaws.fsx#OpenZFSDataCompressionType", + "traits": { + "smithy.api#documentation": "\nSpecifies the method used to compress the data on the volume. Unless the compression\n type is specified, volumes inherit the DataCompressionType
value of their\n parent volume.
\n NONE
- Doesn't compress the data on the volume.
\n ZSTD
- Compresses the data in the volume using the Zstandard\n (ZSTD) compression algorithm. This algorithm reduces the amount of space used on\n your volume and has very little impact on compute resources.
The configuration object for mounting a Network File System (NFS) file system.
" + } + }, + "UserAndGroupQuotas": { + "target": "com.amazonaws.fsx#OpenZFSUserAndGroupQuotas", + "traits": { + "smithy.api#documentation": "An object specifying how much storage users or groups can use on the volume.
" + } + }, + "ReadOnly": { + "target": "com.amazonaws.fsx#ReadOnly", + "traits": { + "smithy.api#documentation": "A Boolean value indicating whether the volume is read-only.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Used to specify changes to the OpenZFS configuration for the volume that you are\n updating.
" + } + }, + "com.amazonaws.fsx#UpdateSnapshot": { + "type": "operation", + "input": { + "target": "com.amazonaws.fsx#UpdateSnapshotRequest" + }, + "output": { + "target": "com.amazonaws.fsx#UpdateSnapshotResponse" + }, + "errors": [ + { + "target": "com.amazonaws.fsx#BadRequest" + }, + { + "target": "com.amazonaws.fsx#InternalServerError" + }, + { + "target": "com.amazonaws.fsx#SnapshotNotFound" + } + ], + "traits": { + "smithy.api#documentation": "Updates the name of a snapshot.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.fsx#UpdateSnapshotRequest": { + "type": "structure", + "members": { + "ClientRequestToken": { + "target": "com.amazonaws.fsx#ClientRequestToken", + "traits": { + "smithy.api#idempotencyToken": {} + } + }, + "Name": { + "target": "com.amazonaws.fsx#SnapshotName", + "traits": { + "smithy.api#documentation": "The name of the snapshot to update.
", + "smithy.api#required": {} + } + }, + "SnapshotId": { + "target": "com.amazonaws.fsx#SnapshotId", + "traits": { + "smithy.api#documentation": "The ID of the snapshot that you want to update, in the format\n fsvolsnap-0123456789abcdef0
.
Returned after a successful UpdateSnapshot
operation, describing the\n snapshot that you updated.
Updates the Microsoft Active Directory (AD) configuration of an SVM joined to an AD. \n Pleae note, account credentials are not returned in the response payload.
" + "smithy.api#documentation": "Updates the Microsoft Active Directory (AD) configuration of an SVM joined to an AD. \n Please note, account credentials are not returned in the response payload.
" } }, "com.amazonaws.fsx#UpdateVolume": { @@ -5930,7 +7953,7 @@ } ], "traits": { - "smithy.api#documentation": "Updates an Amazon FSx for NetApp ONTAP volume's configuration.
" + "smithy.api#documentation": "Updates the configuration of an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume.
" } }, "com.amazonaws.fsx#UpdateVolumeRequest": { @@ -5945,14 +7968,26 @@ "VolumeId": { "target": "com.amazonaws.fsx#VolumeId", "traits": { - "smithy.api#documentation": "Specifies the volume that you want to update, formatted fsvol-0123456789abcdef0
.
The ID of the volume that you want to update, in the format\n fsvol-0123456789abcdef0
.
The ONTAP
configuration of the volume you are updating.
The configuration of the ONTAP volume that you are updating.
" + } + }, + "Name": { + "target": "com.amazonaws.fsx#VolumeName", + "traits": { + "smithy.api#documentation": "The name of the OpenZFS volume. OpenZFS root volumes are automatically named\n FSX
. Child volume names must be unique among their parent volume's\n children. The name of the volume is part of the mount string for the OpenZFS volume.
The configuration of the OpenZFS volume that you are updating.
" } } } @@ -5963,7 +7998,7 @@ "Volume": { "target": "com.amazonaws.fsx#Volume", "traits": { - "smithy.api#documentation": "Returned after a successful UpdateVolume
API operation, describing the volume just updated.
A description of the volume just updated. Returned after a successful\n UpdateVolume
API operation.
The lifecycle status of the volume.
\n\n CREATED
- The volume is fully available for use.
\n CREATING
- Amazon FSx is creating the new volume.
\n DELETING
- Amazon FSx is deleting an existing volume.
\n FAILED
- Amazon FSx was unable to create the volume.
\n MISCONFIGURED
- The volume is in a failed but recoverable state.
\n PENDING
- Amazon FSx has not started creating the volume.
The lifecycle status of the volume.
\n\n AVAILABLE
- The volume is fully available for\n use.
\n CREATED
- The volume has been created.
\n CREATING
- Amazon FSx is creating the new volume.
\n DELETING
- Amazon FSx is deleting an existing\n volume.
\n FAILED
- Amazon FSx was unable to create the\n volume.
\n MISCONFIGURED
- The volume is in a failed but recoverable\n state.
\n PENDING
- Amazon FSx hasn't started creating the\n volume.
The type of volume; ONTAP
is the only valid volume type.
The type of the volume.
" } }, "LifecycleTransitionReason": { "target": "com.amazonaws.fsx#LifecycleTransitionReason", "traits": { - "smithy.api#documentation": "Describes why the volume lifecycle state changed.
" + "smithy.api#documentation": "The reason why the volume lifecycle status changed.
" + } + }, + "AdministrativeActions": { + "target": "com.amazonaws.fsx#AdministrativeActions", + "traits": { + "smithy.api#documentation": "A list of administrative actions for the file system that are in process or waiting to\n be processed. Administrative actions describe changes to the Amazon FSx system\n that you initiated.
" + } + }, + "OpenZFSConfiguration": { + "target": "com.amazonaws.fsx#OpenZFSVolumeConfiguration", + "traits": { + "smithy.api#documentation": "The configuration of an Amazon FSx for OpenZFS volume.
" } } }, "traits": { - "smithy.api#documentation": "Describes an Amazon FSx for NetApp ONTAP volume.
" + "smithy.api#documentation": "Describes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS\n volume.
" } }, "com.amazonaws.fsx#VolumeCapacity": { @@ -6048,7 +8095,7 @@ } }, "traits": { - "smithy.api#documentation": "A filter used to restrict the results of describe calls for\n Amazon FSx for NetApp ONTAP volumes. You can use multiple\n filters to return results that meet all applied filter requirements.
" + "smithy.api#documentation": "A filter used to restrict the results of describe calls for Amazon FSx for\n NetApp ONTAP or Amazon FSx for OpenZFS volumes. You can use multiple filters to\n return results that meet all applied filter requirements.
" } }, "com.amazonaws.fsx#VolumeFilterName": { @@ -6149,6 +8196,10 @@ { "value": "PENDING", "name": "PENDING" + }, + { + "value": "AVAILABLE", + "name": "AVAILABLE" } ] } @@ -6175,6 +8226,16 @@ "smithy.api#error": "client" } }, + "com.amazonaws.fsx#VolumePath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[A-za-z0-9\\_\\.\\:\\-\\/]*$" + } + }, "com.amazonaws.fsx#VolumeType": { "type": "string", "traits": { @@ -6182,6 +8243,10 @@ { "value": "ONTAP", "name": "ONTAP" + }, + { + "value": "OPENZFS", + "name": "OPENZFS" } ] } @@ -6201,7 +8266,7 @@ "com.amazonaws.fsx#VpcId": { "type": "string", "traits": { - "smithy.api#documentation": "The ID of your virtual private cloud (VPC). For more information, see VPC and\n Subnets in the Amazon VPC User Guide.
", + "smithy.api#documentation": "The ID of your virtual private cloud (VPC). For more information, see VPC and\n subnets in the Amazon VPC User Guide.
", "smithy.api#length": { "min": 12, "max": 21 diff --git a/codegen/sdk-codegen/aws-models/glue.2017-03-31.json b/codegen/sdk-codegen/aws-models/glue.2017-03-31.json index 7813ff1bf12..43d31192a0f 100644 --- a/codegen/sdk-codegen/aws-models/glue.2017-03-31.json +++ b/codegen/sdk-codegen/aws-models/glue.2017-03-31.json @@ -31,6 +31,21 @@ "shapes": { "com.amazonaws.glue#AWSGlue": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Glue", + "arnNamespace": "glue", + "cloudFormationName": "Glue", + "cloudTrailEventSource": "glue.amazonaws.com", + "endpointPrefix": "glue" + }, + "aws.auth#sigv4": { + "name": "glue" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Defines the public endpoint for the Glue service.
", + "smithy.api#title": "AWS Glue" + }, "version": "2017-03-31", "operations": [ { @@ -531,22 +546,7 @@ { "target": "com.amazonaws.glue#UpdateWorkflow" } - ], - "traits": { - "aws.api#service": { - "sdkId": "Glue", - "arnNamespace": "glue", - "cloudFormationName": "Glue", - "cloudTrailEventSource": "glue.amazonaws.com", - "endpointPrefix": "glue" - }, - "aws.auth#sigv4": { - "name": "glue" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Defines the public endpoint for the Glue service.
", - "smithy.api#title": "AWS Glue" - } + ] }, "com.amazonaws.glue#AccessDeniedException": { "type": "structure", @@ -925,6 +925,9 @@ { "target": "com.amazonaws.glue#EntityNotFoundException" }, + { + "target": "com.amazonaws.glue#GlueEncryptionException" + }, { "target": "com.amazonaws.glue#InternalServiceException" }, @@ -933,6 +936,9 @@ }, { "target": "com.amazonaws.glue#OperationTimeoutException" + }, + { + "target": "com.amazonaws.glue#ResourceNotReadyException" } ], "traits": { @@ -973,6 +979,12 @@ "smithy.api#documentation": "A list of the table to delete.
", "smithy.api#required": {} } + }, + "TransactionId": { + "target": "com.amazonaws.glue#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction ID at which to delete the table contents.
" + } } } }, @@ -1321,6 +1333,9 @@ { "target": "com.amazonaws.glue#InvalidInputException" }, + { + "target": "com.amazonaws.glue#InvalidStateException" + }, { "target": "com.amazonaws.glue#OperationTimeoutException" } @@ -5393,6 +5408,9 @@ { "target": "com.amazonaws.glue#OperationTimeoutException" }, + { + "target": "com.amazonaws.glue#ResourceNotReadyException" + }, { "target": "com.amazonaws.glue#ResourceNumberLimitExceededException" } @@ -5429,6 +5447,12 @@ "traits": { "smithy.api#documentation": "A list of partition indexes, PartitionIndex
structures, to create in the table.
The ID of the transaction.
" + } } } }, @@ -7090,6 +7114,9 @@ }, { "target": "com.amazonaws.glue#OperationTimeoutException" + }, + { + "target": "com.amazonaws.glue#ResourceNotReadyException" } ], "traits": { @@ -7118,6 +7145,12 @@ "smithy.api#documentation": "The name of the table to be deleted. For Hive\n compatibility, this name is entirely lowercase.
", "smithy.api#required": {} } + }, + "TransactionId": { + "target": "com.amazonaws.glue#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction ID at which to delete the table contents.
" + } } } }, @@ -10188,8 +10221,14 @@ { "target": "com.amazonaws.glue#InvalidInputException" }, + { + "target": "com.amazonaws.glue#InvalidStateException" + }, { "target": "com.amazonaws.glue#OperationTimeoutException" + }, + { + "target": "com.amazonaws.glue#ResourceNotReadyException" } ], "traits": { @@ -10253,6 +10292,18 @@ "traits": { "smithy.api#documentation": "When true, specifies not returning the partition column schema. Useful when you are interested only in other partition attributes such as partition values or location. This approach avoids the problem of a large response by not returning duplicate data.
" } + }, + "TransactionId": { + "target": "com.amazonaws.glue#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction ID at which to read the partition contents.
" + } + }, + "QueryAsOfTime": { + "target": "com.amazonaws.glue#Timestamp", + "traits": { + "smithy.api#documentation": "The time as of when to read the partition contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId
.
The name of the table for which to retrieve the definition. For Hive\n compatibility, this name is entirely lowercase.
", "smithy.api#required": {} } + }, + "TransactionId": { + "target": "com.amazonaws.glue#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction ID at which to read the table contents.
" + } + }, + "QueryAsOfTime": { + "target": "com.amazonaws.glue#Timestamp", + "traits": { + "smithy.api#documentation": "The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId
.
The maximum number of tables to return in a single response.
" } + }, + "TransactionId": { + "target": "com.amazonaws.glue#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction ID at which to read the table contents.
" + } + }, + "QueryAsOfTime": { + "target": "com.amazonaws.glue#Timestamp", + "traits": { + "smithy.api#documentation": "The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId
.
A message describing the problem.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An error that indicates your data is in an invalid state.
", + "smithy.api#error": "client" + } + }, "com.amazonaws.glue#IsVersionValid": { "type": "boolean" }, @@ -15927,6 +16020,21 @@ } } }, + "com.amazonaws.glue#ResourceNotReadyException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.glue#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the problem.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A resource was not ready for a transaction.
", + "smithy.api#error": "client" + } + }, "com.amazonaws.glue#ResourceNumberLimitExceededException": { "type": "structure", "members": { @@ -18574,6 +18682,16 @@ } } }, + "com.amazonaws.glue#TransactionIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[\\p{L}\\p{N}\\p{P}]*$" + } + }, "com.amazonaws.glue#TransformEncryption": { "type": "structure", "members": { @@ -20247,6 +20365,9 @@ { "target": "com.amazonaws.glue#OperationTimeoutException" }, + { + "target": "com.amazonaws.glue#ResourceNotReadyException" + }, { "target": "com.amazonaws.glue#ResourceNumberLimitExceededException" } @@ -20283,6 +20404,12 @@ "traits": { "smithy.api#documentation": "By default, UpdateTable
always creates an archived version of the table\n before updating it. However, if skipArchive
is set to true,\n UpdateTable
does not create the archived version.
The transaction ID at which to update the table contents.
" + } } } }, diff --git a/codegen/sdk-codegen/aws-models/iot.2015-05-28.json b/codegen/sdk-codegen/aws-models/iot.2015-05-28.json index 42b7d32f07d..2141166c1b1 100644 --- a/codegen/sdk-codegen/aws-models/iot.2015-05-28.json +++ b/codegen/sdk-codegen/aws-models/iot.2015-05-28.json @@ -10900,7 +10900,7 @@ "schema": { "target": "com.amazonaws.iot#IndexSchema", "traits": { - "smithy.api#documentation": "Contains a value that specifies the type of indexing performed. Valid values\n are:
\nREGISTRY – Your thing index contains only registry data.
\nREGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
\nREGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and\n thing connectivity status data.
\nREGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry\n data, shadow data, and thing connectivity status data.
\nContains a value that specifies the type of indexing performed. Valid values\n are:
\nREGISTRY – Your thing index contains only registry data.
\nREGISTRY_AND_SHADOW - Your thing index contains registry data and shadow data.
\nREGISTRY_AND_CONNECTIVITY_STATUS - Your thing index contains registry data and\n thing connectivity status data.
\nREGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry\n data, shadow data, and thing connectivity status data.
\nMULTI_INDEXING_MODE - Your thing index contains multiple data sources. For more information, see \n GetIndexingConfiguration.
\nThe shadow.
" + "smithy.api#documentation": "The unnamed shadow and named shadow.
\nFor more information about shadows, see IoT Device Shadow service.\n
" + } + }, + "deviceDefender": { + "target": "com.amazonaws.iot#JsonDocument", + "traits": { + "smithy.api#documentation": "Contains Device Defender data.
\nFor more information about Device Defender, see Device Defender.
" } }, "connectivity": { @@ -26973,6 +27009,18 @@ "smithy.api#documentation": "Thing connectivity indexing mode. Valid values are:
\nSTATUS – Your thing index contains connectivity status. To enable thing\n connectivity indexing, thingIndexMode must not be set to\n OFF.
\nOFF - Thing connectivity status indexing is disabled.
\nDevice Defender indexing mode. Valid values are:
\nVIOLATIONS – Your thing index contains Device Defender violations. To enable Device\n Defender indexing, deviceDefenderIndexingMode must not be set to\n OFF.
\nOFF - Device Defender indexing is disabled.
\nFor more information about Device Defender violations, see Device Defender Detect.\n
" + } + }, + "namedShadowIndexingMode": { + "target": "com.amazonaws.iot#NamedShadowIndexingMode", + "traits": { + "smithy.api#documentation": "Named shadow indexing mode. Valid values are:
\nON – Your thing index contains named shadow. To enable thing\n named shadow indexing, namedShadowIndexingMode must not be set to\n OFF.
\nOFF - Named shadow indexing is disabled.
\nFor more information about Shadows, see IoT Device Shadow service.\n
" + } + }, "managedFields": { "target": "com.amazonaws.iot#Fields", "traits": { @@ -28892,7 +28940,7 @@ "unit": { "target": "com.amazonaws.iot#FleetMetricUnit", "traits": { - "smithy.api#documentation": "Used to support unit transformation such as milliseconds to seconds. The unit must be\n supported by CW metric.
" + "smithy.api#documentation": "Used to support unit transformation such as milliseconds to seconds. The unit must be\n supported by CW metric.
" } }, "expectedVersion": { diff --git a/codegen/sdk-codegen/aws-models/iottwinmaker.2021-11-29.json b/codegen/sdk-codegen/aws-models/iottwinmaker.2021-11-29.json new file mode 100644 index 00000000000..ded96f68bef --- /dev/null +++ b/codegen/sdk-codegen/aws-models/iottwinmaker.2021-11-29.json @@ -0,0 +1,4422 @@ +{ + "smithy": "1.0", + "shapes": { + "com.amazonaws.iottwinmaker#AWSIoTTwinMaker": { + "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "IoTTwinMaker", + "arnNamespace": "awsiottwinmaker", + "cloudFormationName": "AWSIoTTwinMaker", + "cloudTrailEventSource": "awsiottwinmaker.amazonaws.com", + "endpointPrefix": "iottwinmaker" + }, + "aws.auth#sigv4": { + "name": "iottwinmaker" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "\n TwinMaker is in public preview and is subject to change.\n
\nIoT TwinMaker is a service that enables you to build operational digital twins of\n physical systems. IoT TwinMaker overlays measurements and analysis from real-world sensors,\n cameras, and enterprise applications so you can create data visualizations to monitor your\n physical factory, building, or industrial plant. You can use this real-world data to\n monitor operations and diagnose and repair errors.
", + "smithy.api#title": "AWS IoT TwinMaker" + }, + "version": "2021-11-29", + "operations": [ + { + "target": "com.amazonaws.iottwinmaker#BatchPutPropertyValues" + }, + { + "target": "com.amazonaws.iottwinmaker#CreateComponentType" + }, + { + "target": "com.amazonaws.iottwinmaker#CreateEntity" + }, + { + "target": "com.amazonaws.iottwinmaker#CreateScene" + }, + { + "target": "com.amazonaws.iottwinmaker#CreateWorkspace" + }, + { + "target": "com.amazonaws.iottwinmaker#DeleteComponentType" + }, + { + "target": "com.amazonaws.iottwinmaker#DeleteEntity" + }, + { + "target": "com.amazonaws.iottwinmaker#DeleteScene" + }, + { + "target": "com.amazonaws.iottwinmaker#DeleteWorkspace" + }, + { + "target": "com.amazonaws.iottwinmaker#GetComponentType" + }, + { + "target": "com.amazonaws.iottwinmaker#GetEntity" + }, + { + "target": "com.amazonaws.iottwinmaker#GetPropertyValue" + }, + { + "target": "com.amazonaws.iottwinmaker#GetPropertyValueHistory" + }, + { + "target": "com.amazonaws.iottwinmaker#GetScene" + }, + { + "target": "com.amazonaws.iottwinmaker#GetWorkspace" + }, + { + "target": "com.amazonaws.iottwinmaker#ListComponentTypes" + }, + { + "target": "com.amazonaws.iottwinmaker#ListEntities" + }, + { + "target": "com.amazonaws.iottwinmaker#ListScenes" + }, + { + "target": "com.amazonaws.iottwinmaker#ListTagsForResource" + }, + { + "target": "com.amazonaws.iottwinmaker#ListWorkspaces" + }, + { + "target": "com.amazonaws.iottwinmaker#TagResource" + }, + { + "target": "com.amazonaws.iottwinmaker#UntagResource" + }, + { + "target": "com.amazonaws.iottwinmaker#UpdateComponentType" + }, + { + "target": "com.amazonaws.iottwinmaker#UpdateEntity" + }, + { + "target": "com.amazonaws.iottwinmaker#UpdateScene" + }, + { + "target": "com.amazonaws.iottwinmaker#UpdateWorkspace" + } + ] + }, + "com.amazonaws.iottwinmaker#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "Access is denied.
", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.iottwinmaker#BatchPutPropertyError": { + "type": "structure", + "members": { + "errorCode": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The error code.
", + "smithy.api#required": {} + } + }, + "errorMessage": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The error message.
", + "smithy.api#required": {} + } + }, + "entry": { + "target": "com.amazonaws.iottwinmaker#PropertyValueEntry", + "traits": { + "smithy.api#documentation": "An object that contains information about errors returned by the BatchPutProperty
action.
An error returned by the BatchPutProperty
action.
A list of objects that contain information about errors returned by the\n BatchPutProperty
action.
An object that contains information about errors returned by the BatchPutProperty
action.
Sets values for multiple time series properties.
", + "smithy.api#endpoint": { + "hostPrefix": "data." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}/entity-properties", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#BatchPutPropertyValuesRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the properties to set.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entries": { + "target": "com.amazonaws.iottwinmaker#Entries", + "traits": { + "smithy.api#documentation": "An object that maps strings to the property value entries to set. Each string \n in the mapping must be unique to this object.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#BatchPutPropertyValuesResponse": { + "type": "structure", + "members": { + "errorEntries": { + "target": "com.amazonaws.iottwinmaker#ErrorEntries", + "traits": { + "smithy.api#documentation": "Entries that caused errors in the batch put operation.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#Boolean": { + "type": "boolean", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.iottwinmaker#ComponentRequest": { + "type": "structure", + "members": { + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component request.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
" + } + }, + "properties": { + "target": "com.amazonaws.iottwinmaker#PropertyRequests", + "traits": { + "smithy.api#documentation": "An object that maps strings to the properties to set in the component type. Each string \n in the mapping must be unique to this object.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that sets information about a component type create or update request.
" + } + }, + "com.amazonaws.iottwinmaker#ComponentResponse": { + "type": "structure", + "members": { + "componentName": { + "target": "com.amazonaws.iottwinmaker#Name", + "traits": { + "smithy.api#documentation": "The name of the component.
" + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component type.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
" + } + }, + "status": { + "target": "com.amazonaws.iottwinmaker#Status", + "traits": { + "smithy.api#documentation": "The status of the component type.
" + } + }, + "definedIn": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The name of the property definition set in the request.
" + } + }, + "properties": { + "target": "com.amazonaws.iottwinmaker#PropertyResponses", + "traits": { + "smithy.api#documentation": "An object that maps strings to the properties to set in the component type. Each string \n in the mapping must be unique to this object.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that returns information about a component type create or update request.
" + } + }, + "com.amazonaws.iottwinmaker#ComponentTypeId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z_\\.\\-0-9:]+$" + } + }, + "com.amazonaws.iottwinmaker#ComponentTypeSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeSummary" + } + }, + "com.amazonaws.iottwinmaker#ComponentTypeSummary": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the component type.
", + "smithy.api#required": {} + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the component type was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the component type was last updated.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component type.
" + } + }, + "status": { + "target": "com.amazonaws.iottwinmaker#Status", + "traits": { + "smithy.api#documentation": "The current status of the component type.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains information about a component type.
" + } + }, + "com.amazonaws.iottwinmaker#ComponentUpdateRequest": { + "type": "structure", + "members": { + "updateType": { + "target": "com.amazonaws.iottwinmaker#ComponentUpdateType", + "traits": { + "smithy.api#documentation": "The update type of the component update request.
" + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component type.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
" + } + }, + "propertyUpdates": { + "target": "com.amazonaws.iottwinmaker#PropertyRequests", + "traits": { + "smithy.api#documentation": "An object that maps strings to the properties to set in the component type update. Each string \n in the mapping must be unique to this object.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The component update request.
" + } + }, + "com.amazonaws.iottwinmaker#ComponentUpdateType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CREATE", + "name": "CREATE" + }, + { + "value": "UPDATE", + "name": "UPDATE" + }, + { + "value": "DELETE", + "name": "DELETE" + } + ] + } + }, + "com.amazonaws.iottwinmaker#ComponentUpdatesMapRequest": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#ComponentUpdateRequest" + } + }, + "com.amazonaws.iottwinmaker#ComponentsMap": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#ComponentResponse" + } + }, + "com.amazonaws.iottwinmaker#ComponentsMapRequest": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#ComponentRequest" + } + }, + "com.amazonaws.iottwinmaker#Configuration": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#Value" + } + }, + "com.amazonaws.iottwinmaker#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "A conflict occurred.
", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.iottwinmaker#ConnectorFailureException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The connector failed.
", + "smithy.api#error": "client", + "smithy.api#httpError": 424 + } + }, + "com.amazonaws.iottwinmaker#ConnectorTimeoutException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The connector timed out.
", + "smithy.api#error": "client", + "smithy.api#httpError": 424 + } + }, + "com.amazonaws.iottwinmaker#CreateComponentType": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#CreateComponentTypeRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#CreateComponentTypeResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConflictException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a component type.
\n\n TwinMaker is in public preview and is subject to change.\n
\nThe ID of the workspace that contains the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "isSingleton": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether an entity can have more than one component of\n this type.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component type.
" + } + }, + "propertyDefinitions": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionsRequest", + "traits": { + "smithy.api#documentation": "An object that maps strings to the property definitions in the component type. Each string \n in the mapping must be unique to this object.
" + } + }, + "extendsFrom": { + "target": "com.amazonaws.iottwinmaker#ExtendsFrom", + "traits": { + "smithy.api#documentation": "Specifies the parent component type to extend.
" + } + }, + "functions": { + "target": "com.amazonaws.iottwinmaker#FunctionsRequest", + "traits": { + "smithy.api#documentation": "An object that maps strings to the functions in the component type. Each string in the\n mapping must be unique to this object.
" + } + }, + "tags": { + "target": "com.amazonaws.iottwinmaker#TagMap", + "traits": { + "smithy.api#documentation": "Metadata that you can use to manage the component type.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateComponentTypeResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the component type.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the entity was created.
", + "smithy.api#required": {} + } + }, + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the component type.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateEntity": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#CreateEntityRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#CreateEntityResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConflictException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates an entity.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}/entities", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#CreateEntityRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the entity.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
" + } + }, + "entityName": { + "target": "com.amazonaws.iottwinmaker#EntityName", + "traits": { + "smithy.api#documentation": "The name of the entity.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the entity.
" + } + }, + "components": { + "target": "com.amazonaws.iottwinmaker#ComponentsMapRequest", + "traits": { + "smithy.api#documentation": "An object that maps strings to the components in the entity. Each string \n in the mapping must be unique to this object.
" + } + }, + "parentEntityId": { + "target": "com.amazonaws.iottwinmaker#ParentEntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity's parent entity.
" + } + }, + "tags": { + "target": "com.amazonaws.iottwinmaker#TagMap", + "traits": { + "smithy.api#documentation": "Metadata that you can use to manage the entity.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateEntityResponse": { + "type": "structure", + "members": { + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the entity.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the entity was created.
", + "smithy.api#required": {} + } + }, + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the entity.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateScene": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#CreateSceneRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#CreateSceneResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConflictException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a scene.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}/scenes", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#CreateSceneRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the scene.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sceneId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the scene.
", + "smithy.api#required": {} + } + }, + "contentLocation": { + "target": "com.amazonaws.iottwinmaker#S3Url", + "traits": { + "smithy.api#documentation": "The relative path that specifies the location of the content definition file.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description for this scene.
" + } + }, + "capabilities": { + "target": "com.amazonaws.iottwinmaker#SceneCapabilities", + "traits": { + "smithy.api#documentation": "A list of capabilities that the scene uses to render itself.
" + } + }, + "tags": { + "target": "com.amazonaws.iottwinmaker#TagMap", + "traits": { + "smithy.api#documentation": "Metadata that you can use to manage the scene.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateSceneResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the scene.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the scene was created.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateWorkspace": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#CreateWorkspaceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#CreateWorkspaceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConflictException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a workplace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#CreateWorkspaceRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the workspace.
" + } + }, + "s3Location": { + "target": "com.amazonaws.iottwinmaker#S3Location", + "traits": { + "smithy.api#documentation": "The ARN of the S3 bucket where resources associated with the workspace are stored.
", + "smithy.api#required": {} + } + }, + "role": { + "target": "com.amazonaws.iottwinmaker#RoleArn", + "traits": { + "smithy.api#documentation": "The ARN of the execution role associated with the workspace.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.iottwinmaker#TagMap", + "traits": { + "smithy.api#documentation": "Metadata that you can use to manage the workspace
" + } + } + } + }, + "com.amazonaws.iottwinmaker#CreateWorkspaceResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the workspace.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the workspace was created.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#DataConnector": { + "type": "structure", + "members": { + "lambda": { + "target": "com.amazonaws.iottwinmaker#LambdaFunction", + "traits": { + "smithy.api#documentation": "The Lambda function associated with this data connector.
" + } + }, + "isNative": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the data connector is native to TwinMaker.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The data connector.
" + } + }, + "com.amazonaws.iottwinmaker#DataType": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.iottwinmaker#Type", + "traits": { + "smithy.api#documentation": "The underlying type of the data type.
", + "smithy.api#required": {} + } + }, + "nestedType": { + "target": "com.amazonaws.iottwinmaker#DataType", + "traits": { + "smithy.api#documentation": "The nested type in the data type.
" + } + }, + "allowedValues": { + "target": "com.amazonaws.iottwinmaker#DataValueList", + "traits": { + "smithy.api#documentation": "The allowed values for this data type.
" + } + }, + "unitOfMeasure": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The unit of measure used in this data type.
" + } + }, + "relationship": { + "target": "com.amazonaws.iottwinmaker#Relationship", + "traits": { + "smithy.api#documentation": "A relationship that associates a component with another component.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that specifies the data type of a property.
" + } + }, + "com.amazonaws.iottwinmaker#DataValue": { + "type": "structure", + "members": { + "booleanValue": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value.
" + } + }, + "doubleValue": { + "target": "com.amazonaws.iottwinmaker#Double", + "traits": { + "smithy.api#documentation": "A double value.
" + } + }, + "integerValue": { + "target": "com.amazonaws.iottwinmaker#Integer", + "traits": { + "smithy.api#documentation": "An integer value.
" + } + }, + "longValue": { + "target": "com.amazonaws.iottwinmaker#Long", + "traits": { + "smithy.api#documentation": "A long value.
" + } + }, + "stringValue": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "A string value.
" + } + }, + "listValue": { + "target": "com.amazonaws.iottwinmaker#DataValueList", + "traits": { + "smithy.api#documentation": "A list of multiple values.
" + } + }, + "mapValue": { + "target": "com.amazonaws.iottwinmaker#DataValueMap", + "traits": { + "smithy.api#documentation": "An object that maps strings to multiple DataValue
objects.
A value that relates a component to another component.
" + } + }, + "expression": { + "target": "com.amazonaws.iottwinmaker#Expression", + "traits": { + "smithy.api#documentation": "An expression that produces the value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that specifies a value for a property.
" + } + }, + "com.amazonaws.iottwinmaker#DataValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#DataValue" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.iottwinmaker#DataValueMap": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#String" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#DataValue" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.iottwinmaker#DeleteComponentType": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#DeleteComponentTypeRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#DeleteComponentTypeResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a component type.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/workspaces/{workspaceId}/component-types/{componentTypeId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#DeleteComponentTypeRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type to delete.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#DeleteComponentTypeResponse": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the component type to be deleted.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#DeleteEntity": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#DeleteEntityRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#DeleteEntityResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes an entity.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/workspaces/{workspaceId}/entities/{entityId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#DeleteEntityRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the entity to delete.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity to delete.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "isRecursive": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the operation deletes child entities.
", + "smithy.api#httpQuery": "isRecursive" + } + } + } + }, + "com.amazonaws.iottwinmaker#DeleteEntityResponse": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the deleted entity.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#DeleteScene": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#DeleteSceneRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#DeleteSceneResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a scene.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/workspaces/{workspaceId}/scenes/{sceneId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#DeleteSceneRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sceneId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the scene to delete.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#DeleteSceneResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.iottwinmaker#DeleteWorkspace": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#DeleteWorkspaceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#DeleteWorkspaceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a workspace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/workspaces/{workspaceId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#DeleteWorkspaceRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace to delete.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#DeleteWorkspaceResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.iottwinmaker#Description": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 512 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.iottwinmaker#Double": { + "type": "double", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.iottwinmaker#EntityId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\\-0-9.:]*[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.iottwinmaker#EntityName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z_0-9-.][a-zA-Z_0-9-. ]*[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.iottwinmaker#EntityPropertyReference": { + "type": "structure", + "members": { + "componentName": { + "target": "com.amazonaws.iottwinmaker#Name", + "traits": { + "smithy.api#documentation": "The name of the component.
" + } + }, + "externalIdProperty": { + "target": "com.amazonaws.iottwinmaker#ExternalIdProperty", + "traits": { + "smithy.api#documentation": "A mapping of external IDs to property names. External IDs uniquely identify properties from external data stores.
" + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
" + } + }, + "propertyName": { + "target": "com.amazonaws.iottwinmaker#Name", + "traits": { + "smithy.api#documentation": "The name of the property.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "An object that uniquely identifies an entity property.
" + } + }, + "com.amazonaws.iottwinmaker#EntitySummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#EntitySummary" + } + }, + "com.amazonaws.iottwinmaker#EntitySummary": { + "type": "structure", + "members": { + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
", + "smithy.api#required": {} + } + }, + "entityName": { + "target": "com.amazonaws.iottwinmaker#EntityName", + "traits": { + "smithy.api#documentation": "The name of the entity.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the entity.
", + "smithy.api#required": {} + } + }, + "parentEntityId": { + "target": "com.amazonaws.iottwinmaker#ParentEntityId", + "traits": { + "smithy.api#documentation": "The ID of the parent entity.
" + } + }, + "status": { + "target": "com.amazonaws.iottwinmaker#Status", + "traits": { + "smithy.api#documentation": "The current status of the entity.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the entity.
" + } + }, + "hasChildEntities": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the entity has child entities or not.
" + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the entity was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The last date and time when the entity was updated.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains information about an entity.
" + } + }, + "com.amazonaws.iottwinmaker#Entries": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#PropertyValueEntry" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.iottwinmaker#ErrorCode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "VALIDATION_ERROR", + "name": "VALIDATION_ERROR" + }, + { + "value": "INTERNAL_FAILURE", + "name": "INTERNAL_FAILURE" + } + ] + } + }, + "com.amazonaws.iottwinmaker#ErrorDetails": { + "type": "structure", + "members": { + "code": { + "target": "com.amazonaws.iottwinmaker#ErrorCode", + "traits": { + "smithy.api#documentation": "The error code.
" + } + }, + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage", + "traits": { + "smithy.api#documentation": "The error message.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The error details.
" + } + }, + "com.amazonaws.iottwinmaker#ErrorEntries": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#BatchPutPropertyErrorEntry" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.iottwinmaker#ErrorMessage": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + } + } + }, + "com.amazonaws.iottwinmaker#Errors": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#BatchPutPropertyError" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.iottwinmaker#ExceptionMessage": { + "type": "string" + }, + "com.amazonaws.iottwinmaker#Expression": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 316 + }, + "smithy.api#pattern": "^(^\\$\\{Parameters\\.[a-zA-z]+([a-zA-z_0-9]*)}$)$" + } + }, + "com.amazonaws.iottwinmaker#ExtendsFrom": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId" + } + }, + "com.amazonaws.iottwinmaker#ExternalIdProperty": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#String" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#String" + } + }, + "com.amazonaws.iottwinmaker#FunctionRequest": { + "type": "structure", + "members": { + "requiredProperties": { + "target": "com.amazonaws.iottwinmaker#RequiredProperties", + "traits": { + "smithy.api#documentation": "The required properties of the function.
" + } + }, + "scope": { + "target": "com.amazonaws.iottwinmaker#Scope", + "traits": { + "smithy.api#documentation": "The scope of the function.
" + } + }, + "implementedBy": { + "target": "com.amazonaws.iottwinmaker#DataConnector", + "traits": { + "smithy.api#documentation": "The data connector.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The function request body.
" + } + }, + "com.amazonaws.iottwinmaker#FunctionResponse": { + "type": "structure", + "members": { + "requiredProperties": { + "target": "com.amazonaws.iottwinmaker#RequiredProperties", + "traits": { + "smithy.api#documentation": "The required properties of the function.
" + } + }, + "scope": { + "target": "com.amazonaws.iottwinmaker#Scope", + "traits": { + "smithy.api#documentation": "The scope of the function.
" + } + }, + "implementedBy": { + "target": "com.amazonaws.iottwinmaker#DataConnector", + "traits": { + "smithy.api#documentation": "The data connector.
" + } + }, + "isInherited": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "Indicates whether this function is inherited.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The function response.
" + } + }, + "com.amazonaws.iottwinmaker#FunctionsRequest": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#FunctionRequest" + } + }, + "com.amazonaws.iottwinmaker#FunctionsResponse": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#FunctionResponse" + } + }, + "com.amazonaws.iottwinmaker#GetComponentType": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#GetComponentTypeRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#GetComponentTypeResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves information about a component type.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/workspaces/{workspaceId}/component-types/{componentTypeId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#GetComponentTypeRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetComponentTypeResponse": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the component type.
", + "smithy.api#required": {} + } + }, + "isSingleton": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether an entity can have more than one component of this\n type.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component type.
" + } + }, + "propertyDefinitions": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionsResponse", + "traits": { + "smithy.api#documentation": "An object that maps strings to the property definitions in the component type. Each string \n in the mapping must be unique to this object.
" + } + }, + "extendsFrom": { + "target": "com.amazonaws.iottwinmaker#ExtendsFrom", + "traits": { + "smithy.api#documentation": "The name of the parent component type that this component type extends.
" + } + }, + "functions": { + "target": "com.amazonaws.iottwinmaker#FunctionsResponse", + "traits": { + "smithy.api#documentation": "An object that maps strings to the functions in the component type. Each string \n in the mapping must be unique to this object.
" + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the component type was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the component was last updated.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the component type.
", + "smithy.api#required": {} + } + }, + "isAbstract": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the component type is abstract.
" + } + }, + "isSchemaInitialized": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the component type has a schema initializer and that the \n schema initializer has run.
" + } + }, + "status": { + "target": "com.amazonaws.iottwinmaker#Status", + "traits": { + "smithy.api#documentation": "The current status of the component type.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#GetEntity": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#GetEntityRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#GetEntityResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves information about an entity.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/workspaces/{workspaceId}/entities/{entityId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#GetEntityRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetEntityResponse": { + "type": "structure", + "members": { + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
", + "smithy.api#required": {} + } + }, + "entityName": { + "target": "com.amazonaws.iottwinmaker#EntityName", + "traits": { + "smithy.api#documentation": "The name of the entity.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the entity.
", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.iottwinmaker#Status", + "traits": { + "smithy.api#documentation": "The current status of the entity.
", + "smithy.api#required": {} + } + }, + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the entity.
" + } + }, + "components": { + "target": "com.amazonaws.iottwinmaker#ComponentsMap", + "traits": { + "smithy.api#documentation": "An object that maps strings to the components in the entity. Each string \n in the mapping must be unique to this object.
" + } + }, + "parentEntityId": { + "target": "com.amazonaws.iottwinmaker#ParentEntityId", + "traits": { + "smithy.api#documentation": "The ID of the parent entity for this entity.
", + "smithy.api#required": {} + } + }, + "hasChildEntities": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the entity has associated child entities.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the entity was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the entity was last updated.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetPropertyValue": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#GetPropertyValueRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#GetPropertyValueResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConnectorFailureException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConnectorTimeoutException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the property values for a component, component type, entity, or workspace.
\nYou must specify a value for either componentName
, componentTypeId
, entityId
, or workspaceId
.
Retrieves information about the history of a time series property value for a component, component type, entity, or workspace.
\nYou must specify a value for workspaceId
. For entity-specific queries, specify values for componentName
and \n entityId
. For cross-entity quries, specify a value for componentTypeId
.
The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
" + } + }, + "componentName": { + "target": "com.amazonaws.iottwinmaker#Name", + "traits": { + "smithy.api#documentation": "The name of the component.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
" + } + }, + "selectedProperties": { + "target": "com.amazonaws.iottwinmaker#SelectedPropertyList", + "traits": { + "smithy.api#documentation": "A list of properties whose value histories the request retrieves.
", + "smithy.api#required": {} + } + }, + "propertyFilters": { + "target": "com.amazonaws.iottwinmaker#PropertyFilters", + "traits": { + "smithy.api#documentation": "A list of objects that filter the property value history request.
" + } + }, + "startDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time of the earliest property value to return.
", + "smithy.api#required": {} + } + }, + "endDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time of the latest property value to return.
", + "smithy.api#required": {} + } + }, + "interpolation": { + "target": "com.amazonaws.iottwinmaker#InterpolationParameters", + "traits": { + "smithy.api#documentation": "An object that specifies the interpolation type and the interval over which to interpolate data.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + }, + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return.
" + } + }, + "orderByTime": { + "target": "com.amazonaws.iottwinmaker#OrderByTime", + "traits": { + "smithy.api#documentation": "The time direction to use in the result order.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#GetPropertyValueHistoryResponse": { + "type": "structure", + "members": { + "propertyValues": { + "target": "com.amazonaws.iottwinmaker#PropertyValueList", + "traits": { + "smithy.api#documentation": "An object that maps strings to the property definitions in the component type. Each string \n in the mapping must be unique to this object.
", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#GetPropertyValueRequest": { + "type": "structure", + "members": { + "componentName": { + "target": "com.amazonaws.iottwinmaker#Name", + "traits": { + "smithy.api#documentation": "The name of the component whose property values the operation returns.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type whose property values the operation returns.
" + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity whose property values the operation returns.
" + } + }, + "selectedProperties": { + "target": "com.amazonaws.iottwinmaker#SelectedPropertyList", + "traits": { + "smithy.api#documentation": "The properties whose values the operation returns.
", + "smithy.api#required": {} + } + }, + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace whose values the operation returns.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetPropertyValueResponse": { + "type": "structure", + "members": { + "propertyValues": { + "target": "com.amazonaws.iottwinmaker#PropertyLatestValueMap", + "traits": { + "smithy.api#documentation": "An object that maps strings to the properties and latest property values in the response. Each string \n in the mapping must be unique to this object.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetScene": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#GetSceneRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#GetSceneResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves information about a scene.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/workspaces/{workspaceId}/scenes/{sceneId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#GetSceneRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the scene.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sceneId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the scene.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetSceneResponse": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the scene.
", + "smithy.api#required": {} + } + }, + "sceneId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the scene.
", + "smithy.api#required": {} + } + }, + "contentLocation": { + "target": "com.amazonaws.iottwinmaker#S3Url", + "traits": { + "smithy.api#documentation": "The relative path that specifies the location of the content definition file.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the scene.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the scene was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the scene was last updated.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the scene.
" + } + }, + "capabilities": { + "target": "com.amazonaws.iottwinmaker#SceneCapabilities", + "traits": { + "smithy.api#documentation": "A list of capabilities that the scene uses to render.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#GetWorkspace": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#GetWorkspaceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#GetWorkspaceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves information about a workspace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "GET", + "uri": "/workspaces/{workspaceId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#GetWorkspaceRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#IdOrArn", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#GetWorkspaceResponse": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the workspace.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the workspace.
" + } + }, + "s3Location": { + "target": "com.amazonaws.iottwinmaker#S3Location", + "traits": { + "smithy.api#documentation": "The ARN of the S3 bucket where resources associated with the workspace are stored.
", + "smithy.api#required": {} + } + }, + "role": { + "target": "com.amazonaws.iottwinmaker#RoleArn", + "traits": { + "smithy.api#documentation": "The ARN of the execution role associated with the workspace.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the workspace was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the workspace was last updated.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#Id": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[a-zA-Z_0-9][a-zA-Z_\\-0-9]*[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.iottwinmaker#IdOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[a-zA-Z][a-zA-Z_\\-0-9]*[a-zA-Z0-9]+$|^arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[\\/a-zA-Z0-9_-]+$" + } + }, + "com.amazonaws.iottwinmaker#Integer": { + "type": "integer", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.iottwinmaker#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "An unexpected error has occurred.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.iottwinmaker#InterpolationParameters": { + "type": "structure", + "members": { + "interpolationType": { + "target": "com.amazonaws.iottwinmaker#InterpolationType", + "traits": { + "smithy.api#documentation": "The interpolation type.
" + } + }, + "intervalInSeconds": { + "target": "com.amazonaws.iottwinmaker#IntervalInSeconds", + "traits": { + "smithy.api#documentation": "The interpolation time interval in seconds.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that specifies how to interpolate data in a list.
" + } + }, + "com.amazonaws.iottwinmaker#InterpolationType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "LINEAR", + "name": "LINEAR" + } + ] + } + }, + "com.amazonaws.iottwinmaker#IntervalInSeconds": { + "type": "long", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.iottwinmaker#LambdaArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:((aws)|(aws-cn)|(aws-us-gov)):lambda:[a-z0-9-]+:[0-9]{12}:function:[\\/a-zA-Z0-9_-]+$" + } + }, + "com.amazonaws.iottwinmaker#LambdaFunction": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.iottwinmaker#LambdaArn", + "traits": { + "smithy.api#documentation": "The ARN of the Lambda function.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The Lambda function.
" + } + }, + "com.amazonaws.iottwinmaker#ListComponentTypes": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#ListComponentTypesRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#ListComponentTypesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all component types in a workspace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}/component-types-list", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.iottwinmaker#ListComponentTypesFilter": { + "type": "union", + "members": { + "extendsFrom": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The component type that the component types in the list extend.
" + } + }, + "namespace": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The namespace to which the component types in the list belong.
" + } + }, + "isAbstract": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the component types in the list are abstract.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that filters items in a list of component types.
" + } + }, + "com.amazonaws.iottwinmaker#ListComponentTypesFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#ListComponentTypesFilter" + } + }, + "com.amazonaws.iottwinmaker#ListComponentTypesRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "filters": { + "target": "com.amazonaws.iottwinmaker#ListComponentTypesFilters", + "traits": { + "smithy.api#documentation": "A list of objects that filter the request.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + }, + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to display.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListComponentTypesResponse": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#required": {} + } + }, + "componentTypeSummaries": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeSummaries", + "traits": { + "smithy.api#documentation": "A list of objects that contain information about the component types.
", + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + }, + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "Specifies the maximum number of results to display.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListEntities": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#ListEntitiesRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#ListEntitiesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all entities in a workspace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}/entities-list", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.iottwinmaker#ListEntitiesFilter": { + "type": "union", + "members": { + "parentEntityId": { + "target": "com.amazonaws.iottwinmaker#ParentEntityId", + "traits": { + "smithy.api#documentation": "The parent of the entities in the list.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type in the entities in the list.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that filters items in a list of entities.
" + } + }, + "com.amazonaws.iottwinmaker#ListEntitiesFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#ListEntitiesFilter" + } + }, + "com.amazonaws.iottwinmaker#ListEntitiesRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "filters": { + "target": "com.amazonaws.iottwinmaker#ListEntitiesFilters", + "traits": { + "smithy.api#documentation": "A list of objects that filter the request.
" + } + }, + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to display.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListEntitiesResponse": { + "type": "structure", + "members": { + "entitySummaries": { + "target": "com.amazonaws.iottwinmaker#EntitySummaries", + "traits": { + "smithy.api#documentation": "A list of objects that contain information about the entities.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListScenes": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#ListScenesRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#ListScenesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all scenes in a workspace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces/{workspaceId}/scenes-list", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.iottwinmaker#ListScenesRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the scenes.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "Specifies the maximum number of results to display.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListScenesResponse": { + "type": "structure", + "members": { + "sceneSummaries": { + "target": "com.amazonaws.iottwinmaker#SceneSummaries", + "traits": { + "smithy.api#documentation": "A list of objects that contain information about the scenes.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all tags associated with a resource.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/tags-list", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "resourceARN": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the resource.
", + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to display.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.iottwinmaker#TagMap", + "traits": { + "smithy.api#documentation": "Metadata that you can use to manage a resource.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListWorkspaces": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#ListWorkspacesRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#ListWorkspacesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves information about workspaces in the current account.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/workspaces-list", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.iottwinmaker#ListWorkspacesRequest": { + "type": "structure", + "members": { + "maxResults": { + "target": "com.amazonaws.iottwinmaker#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to display.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#ListWorkspacesResponse": { + "type": "structure", + "members": { + "workspaceSummaries": { + "target": "com.amazonaws.iottwinmaker#WorkspaceSummaries", + "traits": { + "smithy.api#documentation": "A list of objects that contain information about the workspaces.
" + } + }, + "nextToken": { + "target": "com.amazonaws.iottwinmaker#NextToken", + "traits": { + "smithy.api#documentation": "The string that specifies the next page of results.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#Long": { + "type": "long", + "traits": { + "smithy.api#box": {} + } + }, + "com.amazonaws.iottwinmaker#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.iottwinmaker#Name": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z_\\-0-9]+$" + } + }, + "com.amazonaws.iottwinmaker#NextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 17880 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.iottwinmaker#OrderByTime": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ASCENDING", + "name": "ASCENDING" + }, + { + "value": "DESCENDING", + "name": "DESCENDING" + } + ] + } + }, + "com.amazonaws.iottwinmaker#ParentEntityId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^\\$ROOT|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\\-0-9.:]*[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.iottwinmaker#ParentEntityUpdateRequest": { + "type": "structure", + "members": { + "updateType": { + "target": "com.amazonaws.iottwinmaker#ParentEntityUpdateType", + "traits": { + "smithy.api#documentation": "The type of the update.
", + "smithy.api#required": {} + } + }, + "parentEntityId": { + "target": "com.amazonaws.iottwinmaker#ParentEntityId", + "traits": { + "smithy.api#documentation": "The ID of the parent entity.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The parent entity update request.
" + } + }, + "com.amazonaws.iottwinmaker#ParentEntityUpdateType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "UPDATE", + "name": "UPDATE" + }, + { + "value": "DELETE", + "name": "DELETE" + } + ] + } + }, + "com.amazonaws.iottwinmaker#PropertyDefinitionRequest": { + "type": "structure", + "members": { + "dataType": { + "target": "com.amazonaws.iottwinmaker#DataType", + "traits": { + "smithy.api#documentation": "An object that contains information about the data type.
" + } + }, + "isRequiredInEntity": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property is required.
" + } + }, + "isExternalId": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property ID comes from an external data store.
" + } + }, + "isStoredExternally": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property is stored externally.
" + } + }, + "isTimeSeries": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property consists of time series data.
" + } + }, + "defaultValue": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "An object that contains the default value.
" + } + }, + "configuration": { + "target": "com.amazonaws.iottwinmaker#Configuration", + "traits": { + "smithy.api#documentation": "A mapping that specifies configuration information about the property. Use this field to\n specify information that you read from and write to an external source.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that sets information about a property.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyDefinitionResponse": { + "type": "structure", + "members": { + "dataType": { + "target": "com.amazonaws.iottwinmaker#DataType", + "traits": { + "smithy.api#documentation": "An object that contains information about the data type.
", + "smithy.api#required": {} + } + }, + "isTimeSeries": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property consists of time series data.
", + "smithy.api#required": {} + } + }, + "isRequiredInEntity": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property is required in an entity.
", + "smithy.api#required": {} + } + }, + "isExternalId": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property ID comes from an external data store.
", + "smithy.api#required": {} + } + }, + "isStoredExternally": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property is stored externally.
", + "smithy.api#required": {} + } + }, + "isImported": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property definition is imported from an external data store.
", + "smithy.api#required": {} + } + }, + "isFinal": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property definition can be updated.
", + "smithy.api#required": {} + } + }, + "isInherited": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether the property definition is inherited from a parent entity.
", + "smithy.api#required": {} + } + }, + "defaultValue": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "An object that contains the default value.
" + } + }, + "configuration": { + "target": "com.amazonaws.iottwinmaker#Configuration", + "traits": { + "smithy.api#documentation": "A mapping that specifies configuration information about the property.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains response data from a property definition request.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyDefinitionsRequest": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionRequest" + } + }, + "com.amazonaws.iottwinmaker#PropertyDefinitionsResponse": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionResponse" + } + }, + "com.amazonaws.iottwinmaker#PropertyFilter": { + "type": "structure", + "members": { + "propertyName": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The property name associated with this property filter.
" + } + }, + "operator": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The operator associated with this property filter.
" + } + }, + "value": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "The value associated with this property filter.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that filters items returned by a property request.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#PropertyFilter" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.iottwinmaker#PropertyLatestValue": { + "type": "structure", + "members": { + "propertyReference": { + "target": "com.amazonaws.iottwinmaker#EntityPropertyReference", + "traits": { + "smithy.api#documentation": "An object that specifies information about a property.>
", + "smithy.api#required": {} + } + }, + "propertyValue": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "The value of the property.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The latest value of the property.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyLatestValueMap": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#PropertyLatestValue" + } + }, + "com.amazonaws.iottwinmaker#PropertyRequest": { + "type": "structure", + "members": { + "definition": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionRequest", + "traits": { + "smithy.api#documentation": "An object that specifies information about a property.
" + } + }, + "value": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "The value of the property.
" + } + }, + "updateType": { + "target": "com.amazonaws.iottwinmaker#PropertyUpdateType", + "traits": { + "smithy.api#documentation": "The update type of the update property request.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that sets information about a property.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyRequests": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#PropertyRequest" + } + }, + "com.amazonaws.iottwinmaker#PropertyResponse": { + "type": "structure", + "members": { + "definition": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionResponse", + "traits": { + "smithy.api#documentation": "An object that specifies information about a property.
" + } + }, + "value": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "The value of the property.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains information about a property response.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyResponses": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#Name" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#PropertyResponse" + } + }, + "com.amazonaws.iottwinmaker#PropertyUpdateType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "UPDATE", + "name": "UPDATE" + }, + { + "value": "DELETE", + "name": "DELETE" + } + ] + } + }, + "com.amazonaws.iottwinmaker#PropertyValue": { + "type": "structure", + "members": { + "timestamp": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The timestamp of a value for a time series property.
", + "smithy.api#required": {} + } + }, + "value": { + "target": "com.amazonaws.iottwinmaker#DataValue", + "traits": { + "smithy.api#documentation": "An object that specifies a value for a time series property.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains information about a value for a time series property.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyValueEntry": { + "type": "structure", + "members": { + "entityPropertyReference": { + "target": "com.amazonaws.iottwinmaker#EntityPropertyReference", + "traits": { + "smithy.api#documentation": "An object that contains information about the entity that has the property.
", + "smithy.api#required": {} + } + }, + "propertyValues": { + "target": "com.amazonaws.iottwinmaker#PropertyValues", + "traits": { + "smithy.api#documentation": "A list of objects that specify time series property values.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that specifies information about time series property values.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyValueHistory": { + "type": "structure", + "members": { + "entityPropertyReference": { + "target": "com.amazonaws.iottwinmaker#EntityPropertyReference", + "traits": { + "smithy.api#documentation": "An object that uniquely identifies an entity property.
", + "smithy.api#required": {} + } + }, + "values": { + "target": "com.amazonaws.iottwinmaker#Values", + "traits": { + "smithy.api#documentation": "A list of objects that contain information about the values in the history of a time series property.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The history of values for a time series property.
" + } + }, + "com.amazonaws.iottwinmaker#PropertyValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#PropertyValueHistory" + } + }, + "com.amazonaws.iottwinmaker#PropertyValues": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#PropertyValue" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.iottwinmaker#Relationship": { + "type": "structure", + "members": { + "targetComponentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the target component type associated with this relationship.
" + } + }, + "relationshipType": { + "target": "com.amazonaws.iottwinmaker#String", + "traits": { + "smithy.api#documentation": "The type of the relationship.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that specifies a relationship with another component type.
" + } + }, + "com.amazonaws.iottwinmaker#RelationshipValue": { + "type": "structure", + "members": { + "targetEntityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the target entity associated with this relationship value.
" + } + }, + "targetComponentName": { + "target": "com.amazonaws.iottwinmaker#Name", + "traits": { + "smithy.api#documentation": "The name of the target component associated with the relationship value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A value that associates a component and an entity.
" + } + }, + "com.amazonaws.iottwinmaker#RequiredProperties": { + "type": "set", + "member": { + "target": "com.amazonaws.iottwinmaker#Name" + } + }, + "com.amazonaws.iottwinmaker#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The resource wasn't found.
", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.iottwinmaker#RoleArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:((aws)|(aws-cn)|(aws-us-gov)):iam::[0-9]{12}:role/" + } + }, + "com.amazonaws.iottwinmaker#S3Location": { + "type": "string" + }, + "com.amazonaws.iottwinmaker#S3Url": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[sS]3://[A-Za-z0-9._/-]+$" + } + }, + "com.amazonaws.iottwinmaker#SceneCapabilities": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#SceneCapability" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.iottwinmaker#SceneCapability": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.iottwinmaker#SceneSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#SceneSummary" + } + }, + "com.amazonaws.iottwinmaker#SceneSummary": { + "type": "structure", + "members": { + "sceneId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the scene.
", + "smithy.api#required": {} + } + }, + "contentLocation": { + "target": "com.amazonaws.iottwinmaker#S3Url", + "traits": { + "smithy.api#documentation": "The relative path that specifies the location of the content definition file.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the scene.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the scene was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the scene was last updated.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The scene description.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains information about a scene.
" + } + }, + "com.amazonaws.iottwinmaker#Scope": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ENTITY", + "name": "ENTITY" + }, + { + "value": "WORKSPACE", + "name": "WORKSPACE" + } + ] + } + }, + "com.amazonaws.iottwinmaker#SelectedPropertyList": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#String" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.iottwinmaker#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The service quota was exceeded.
", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.iottwinmaker#State": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CREATING", + "name": "CREATING" + }, + { + "value": "UPDATING", + "name": "UPDATING" + }, + { + "value": "DELETING", + "name": "DELETING" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "ERROR", + "name": "ERROR" + } + ] + } + }, + "com.amazonaws.iottwinmaker#Status": { + "type": "structure", + "members": { + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the entity, component, component type, or workspace.
" + } + }, + "error": { + "target": "com.amazonaws.iottwinmaker#ErrorDetails", + "traits": { + "smithy.api#documentation": "The error message.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that represents the status of an entity, component, component type, or workspace.
" + } + }, + "com.amazonaws.iottwinmaker#String": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.iottwinmaker#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.iottwinmaker#TagKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.iottwinmaker#TagMap": { + "type": "map", + "key": { + "target": "com.amazonaws.iottwinmaker#TagKey" + }, + "value": { + "target": "com.amazonaws.iottwinmaker#TagValue" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.iottwinmaker#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#TagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#TooManyTagsException" + } + ], + "traits": { + "smithy.api#documentation": "Adds tags to a resource.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "POST", + "uri": "/tags", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#TagResourceRequest": { + "type": "structure", + "members": { + "resourceARN": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the resource.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.iottwinmaker#TagMap", + "traits": { + "smithy.api#documentation": "Metadata to add to this resource.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#TagResourceResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.iottwinmaker#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.iottwinmaker#ThrottlingException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "The rate exceeds the limit.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.iottwinmaker#Timestamp": { + "type": "timestamp" + }, + "com.amazonaws.iottwinmaker#TooManyTagsException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "The number of tags exceeds the limit.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.iottwinmaker#TwinMakerArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:((aws)|(aws-cn)|(aws-us-gov)):iottwinmaker:[a-z0-9-]+:[0-9]{12}:[\\/a-zA-Z0-9_\\-\\.:]+$" + } + }, + "com.amazonaws.iottwinmaker#Type": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "RELATIONSHIP", + "name": "RELATIONSHIP" + }, + { + "value": "STRING", + "name": "STRING" + }, + { + "value": "LONG", + "name": "LONG" + }, + { + "value": "BOOLEAN", + "name": "BOOLEAN" + }, + { + "value": "INTEGER", + "name": "INTEGER" + }, + { + "value": "DOUBLE", + "name": "DOUBLE" + }, + { + "value": "LIST", + "name": "LIST" + }, + { + "value": "MAP", + "name": "MAP" + } + ] + } + }, + "com.amazonaws.iottwinmaker#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#UntagResourceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#UntagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Removes tags from a resource.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "DELETE", + "uri": "/tags", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#UntagResourceRequest": { + "type": "structure", + "members": { + "resourceARN": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the resource.
", + "smithy.api#httpQuery": "resourceARN", + "smithy.api#required": {} + } + }, + "tagKeys": { + "target": "com.amazonaws.iottwinmaker#TagKeyList", + "traits": { + "smithy.api#documentation": "A list of tag key names to remove from the resource. You don't specify the value. Both the key and its associated value are removed.
", + "smithy.api#httpQuery": "tagKeys", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#UntagResourceResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.iottwinmaker#UpdateComponentType": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#UpdateComponentTypeRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#UpdateComponentTypeResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates information in a component type.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/workspaces/{workspaceId}/component-types/{componentTypeId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#UpdateComponentTypeRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "isSingleton": { + "target": "com.amazonaws.iottwinmaker#Boolean", + "traits": { + "smithy.api#documentation": "A Boolean value that specifies whether an entity can have more than one component of this\n type.
" + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the component type.
" + } + }, + "propertyDefinitions": { + "target": "com.amazonaws.iottwinmaker#PropertyDefinitionsRequest", + "traits": { + "smithy.api#documentation": "An object that maps strings to the property definitions in the component type. Each string \n in the mapping must be unique to this object.
" + } + }, + "extendsFrom": { + "target": "com.amazonaws.iottwinmaker#ExtendsFrom", + "traits": { + "smithy.api#documentation": "Specifies the component type that this component type extends.
" + } + }, + "functions": { + "target": "com.amazonaws.iottwinmaker#FunctionsRequest", + "traits": { + "smithy.api#documentation": "An object that maps strings to the functions in the component type. Each string \n in the mapping must be unique to this object.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateComponentTypeResponse": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the component type.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the component type.
", + "smithy.api#required": {} + } + }, + "componentTypeId": { + "target": "com.amazonaws.iottwinmaker#ComponentTypeId", + "traits": { + "smithy.api#documentation": "The ID of the component type.
", + "smithy.api#required": {} + } + }, + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the component type.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateEntity": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#UpdateEntityRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#UpdateEntityResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#ConflictException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an entity.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/workspaces/{workspaceId}/entities/{entityId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#UpdateEntityRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the entity.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entityId": { + "target": "com.amazonaws.iottwinmaker#EntityId", + "traits": { + "smithy.api#documentation": "The ID of the entity.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "entityName": { + "target": "com.amazonaws.iottwinmaker#EntityName", + "traits": { + "smithy.api#documentation": "The name of the entity.
" + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the entity.
" + } + }, + "componentUpdates": { + "target": "com.amazonaws.iottwinmaker#ComponentUpdatesMapRequest", + "traits": { + "smithy.api#documentation": "An object that maps strings to the component updates in the request. Each string \n in the mapping must be unique to this object.
" + } + }, + "parentEntityUpdate": { + "target": "com.amazonaws.iottwinmaker#ParentEntityUpdateRequest", + "traits": { + "smithy.api#documentation": "An object that describes the update request for a parent entity.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateEntityResponse": { + "type": "structure", + "members": { + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the entity was last updated.
", + "smithy.api#required": {} + } + }, + "state": { + "target": "com.amazonaws.iottwinmaker#State", + "traits": { + "smithy.api#documentation": "The current state of the entity update.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateScene": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#UpdateSceneRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#UpdateSceneResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates a scene.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/workspaces/{workspaceId}/scenes/{sceneId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#UpdateSceneRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace that contains the scene.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sceneId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the scene.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "contentLocation": { + "target": "com.amazonaws.iottwinmaker#S3Url", + "traits": { + "smithy.api#documentation": "The relative path that specifies the location of the content definition file.
" + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of this scene.
" + } + }, + "capabilities": { + "target": "com.amazonaws.iottwinmaker#SceneCapabilities", + "traits": { + "smithy.api#documentation": "A list of capabilities that the scene uses to render.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateSceneResponse": { + "type": "structure", + "members": { + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the scene was last updated.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateWorkspace": { + "type": "operation", + "input": { + "target": "com.amazonaws.iottwinmaker#UpdateWorkspaceRequest" + }, + "output": { + "target": "com.amazonaws.iottwinmaker#UpdateWorkspaceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.iottwinmaker#AccessDeniedException" + }, + { + "target": "com.amazonaws.iottwinmaker#InternalServerException" + }, + { + "target": "com.amazonaws.iottwinmaker#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.iottwinmaker#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.iottwinmaker#ThrottlingException" + }, + { + "target": "com.amazonaws.iottwinmaker#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates a workspace.
", + "smithy.api#endpoint": { + "hostPrefix": "api." + }, + "smithy.api#http": { + "method": "PUT", + "uri": "/workspaces/{workspaceId}", + "code": 200 + } + } + }, + "com.amazonaws.iottwinmaker#UpdateWorkspaceRequest": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the workspace.
" + } + }, + "role": { + "target": "com.amazonaws.iottwinmaker#RoleArn", + "traits": { + "smithy.api#documentation": "The ARN of the execution role associated with the workspace.
" + } + } + } + }, + "com.amazonaws.iottwinmaker#UpdateWorkspaceResponse": { + "type": "structure", + "members": { + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time of the current update.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.iottwinmaker#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.iottwinmaker#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "Failed
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.iottwinmaker#Value": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z_\\-0-9]+$" + } + }, + "com.amazonaws.iottwinmaker#Values": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#PropertyValue" + } + }, + "com.amazonaws.iottwinmaker#WorkspaceSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.iottwinmaker#WorkspaceSummary" + } + }, + "com.amazonaws.iottwinmaker#WorkspaceSummary": { + "type": "structure", + "members": { + "workspaceId": { + "target": "com.amazonaws.iottwinmaker#Id", + "traits": { + "smithy.api#documentation": "The ID of the workspace.
", + "smithy.api#required": {} + } + }, + "arn": { + "target": "com.amazonaws.iottwinmaker#TwinMakerArn", + "traits": { + "smithy.api#documentation": "The ARN of the workspace.
", + "smithy.api#required": {} + } + }, + "description": { + "target": "com.amazonaws.iottwinmaker#Description", + "traits": { + "smithy.api#documentation": "The description of the workspace.
" + } + }, + "creationDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the workspace was created.
", + "smithy.api#required": {} + } + }, + "updateDateTime": { + "target": "com.amazonaws.iottwinmaker#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the workspace was last updated.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains information about a workspace.
" + } + } + } +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/kafka.2018-11-14.json b/codegen/sdk-codegen/aws-models/kafka.2018-11-14.json index 8a8a9cf8446..106cc3a4951 100644 --- a/codegen/sdk-codegen/aws-models/kafka.2018-11-14.json +++ b/codegen/sdk-codegen/aws-models/kafka.2018-11-14.json @@ -476,6 +476,91 @@ } } }, + "com.amazonaws.kafka#Cluster": { + "type": "structure", + "members": { + "ActiveOperationArn": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) that uniquely identifies a cluster operation.
", + "smithy.api#jsonName": "activeOperationArn" + } + }, + "ClusterType": { + "target": "com.amazonaws.kafka#ClusterType", + "traits": { + "smithy.api#documentation": "Cluster Type.
", + "smithy.api#jsonName": "clusterType" + } + }, + "ClusterArn": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) that uniquely identifies the cluster.
", + "smithy.api#jsonName": "clusterArn" + } + }, + "ClusterName": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The name of the cluster.
", + "smithy.api#jsonName": "clusterName" + } + }, + "CreationTime": { + "target": "com.amazonaws.kafka#__timestampIso8601", + "traits": { + "smithy.api#documentation": "The time when the cluster was created.
", + "smithy.api#jsonName": "creationTime" + } + }, + "CurrentVersion": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The current version of the MSK cluster.
", + "smithy.api#jsonName": "currentVersion" + } + }, + "State": { + "target": "com.amazonaws.kafka#ClusterState", + "traits": { + "smithy.api#documentation": "The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING.
", + "smithy.api#jsonName": "state" + } + }, + "StateInfo": { + "target": "com.amazonaws.kafka#StateInfo", + "traits": { + "smithy.api#documentation": "State Info for the Amazon MSK cluster.
", + "smithy.api#jsonName": "stateInfo" + } + }, + "Tags": { + "target": "com.amazonaws.kafka#__mapOf__string", + "traits": { + "smithy.api#documentation": "Tags attached to the cluster.
", + "smithy.api#jsonName": "tags" + } + }, + "Provisioned": { + "target": "com.amazonaws.kafka#Provisioned", + "traits": { + "smithy.api#documentation": "Information about the provisioned cluster.
", + "smithy.api#jsonName": "provisioned" + } + }, + "Serverless": { + "target": "com.amazonaws.kafka#Serverless", + "traits": { + "smithy.api#documentation": "Information about the serverless cluster.
", + "smithy.api#jsonName": "serverless" + } + } + }, + "traits": { + "smithy.api#documentation": "Returns information about a cluster.
" + } + }, "com.amazonaws.kafka#ClusterInfo": { "type": "structure", "members": { @@ -770,6 +855,22 @@ ] } }, + "com.amazonaws.kafka#ClusterType": { + "type": "string", + "traits": { + "smithy.api#documentation": "The type of cluster.
", + "smithy.api#enum": [ + { + "value": "PROVISIONED", + "name": "PROVISIONED" + }, + { + "value": "SERVERLESS", + "name": "SERVERLESS" + } + ] + } + }, "com.amazonaws.kafka#CompatibleKafkaVersion": { "type": "structure", "members": { @@ -1121,6 +1222,113 @@ } } }, + "com.amazonaws.kafka#CreateClusterV2": { + "type": "operation", + "input": { + "target": "com.amazonaws.kafka#CreateClusterV2Request" + }, + "output": { + "target": "com.amazonaws.kafka#CreateClusterV2Response" + }, + "errors": [ + { + "target": "com.amazonaws.kafka#BadRequestException" + }, + { + "target": "com.amazonaws.kafka#ConflictException" + }, + { + "target": "com.amazonaws.kafka#ForbiddenException" + }, + { + "target": "com.amazonaws.kafka#InternalServerErrorException" + }, + { + "target": "com.amazonaws.kafka#ServiceUnavailableException" + }, + { + "target": "com.amazonaws.kafka#TooManyRequestsException" + }, + { + "target": "com.amazonaws.kafka#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a new MSK cluster.
", + "smithy.api#http": { + "method": "POST", + "uri": "/api/v2/clusters", + "code": 200 + } + } + }, + "com.amazonaws.kafka#CreateClusterV2Request": { + "type": "structure", + "members": { + "ClusterName": { + "target": "com.amazonaws.kafka#__stringMin1Max64", + "traits": { + "smithy.api#documentation": "The name of the cluster.
", + "smithy.api#jsonName": "clusterName", + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.kafka#__mapOf__string", + "traits": { + "smithy.api#documentation": "A map of tags that you want the cluster to have.
", + "smithy.api#jsonName": "tags" + } + }, + "Provisioned": { + "target": "com.amazonaws.kafka#ProvisionedRequest", + "traits": { + "smithy.api#documentation": "Information about the provisioned cluster.
", + "smithy.api#jsonName": "provisioned" + } + }, + "Serverless": { + "target": "com.amazonaws.kafka#ServerlessRequest", + "traits": { + "smithy.api#documentation": "Information about the serverless cluster.
", + "smithy.api#jsonName": "serverless" + } + } + } + }, + "com.amazonaws.kafka#CreateClusterV2Response": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the cluster.
", + "smithy.api#jsonName": "clusterArn" + } + }, + "ClusterName": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The name of the MSK cluster.
", + "smithy.api#jsonName": "clusterName" + } + }, + "State": { + "target": "com.amazonaws.kafka#ClusterState", + "traits": { + "smithy.api#documentation": "The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING.
", + "smithy.api#jsonName": "state" + } + }, + "ClusterType": { + "target": "com.amazonaws.kafka#ClusterType", + "traits": { + "smithy.api#documentation": "The type of the cluster. The possible states are PROVISIONED or SERVERLESS.
", + "smithy.api#jsonName": "clusterType" + } + } + } + }, "com.amazonaws.kafka#CreateConfiguration": { "type": "operation", "input": { @@ -1487,6 +1695,65 @@ } } }, + "com.amazonaws.kafka#DescribeClusterV2": { + "type": "operation", + "input": { + "target": "com.amazonaws.kafka#DescribeClusterV2Request" + }, + "output": { + "target": "com.amazonaws.kafka#DescribeClusterV2Response" + }, + "errors": [ + { + "target": "com.amazonaws.kafka#BadRequestException" + }, + { + "target": "com.amazonaws.kafka#ForbiddenException" + }, + { + "target": "com.amazonaws.kafka#InternalServerErrorException" + }, + { + "target": "com.amazonaws.kafka#NotFoundException" + }, + { + "target": "com.amazonaws.kafka#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
", + "smithy.api#http": { + "method": "GET", + "uri": "/api/v2/clusters/{ClusterArn}", + "code": 200 + } + } + }, + "com.amazonaws.kafka#DescribeClusterV2Request": { + "type": "structure", + "members": { + "ClusterArn": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) that uniquely identifies the cluster.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kafka#DescribeClusterV2Response": { + "type": "structure", + "members": { + "ClusterInfo": { + "target": "com.amazonaws.kafka#Cluster", + "traits": { + "smithy.api#documentation": "The cluster information.
", + "smithy.api#jsonName": "clusterInfo" + } + } + } + }, "com.amazonaws.kafka#DescribeConfiguration": { "type": "operation", "input": { @@ -2116,6 +2383,9 @@ { "target": "com.amazonaws.kafka#CreateCluster" }, + { + "target": "com.amazonaws.kafka#CreateClusterV2" + }, { "target": "com.amazonaws.kafka#CreateConfiguration" }, @@ -2131,6 +2401,9 @@ { "target": "com.amazonaws.kafka#DescribeClusterOperation" }, + { + "target": "com.amazonaws.kafka#DescribeClusterV2" + }, { "target": "com.amazonaws.kafka#DescribeConfiguration" }, @@ -2149,6 +2422,9 @@ { "target": "com.amazonaws.kafka#ListClusters" }, + { + "target": "com.amazonaws.kafka#ListClustersV2" + }, { "target": "com.amazonaws.kafka#ListConfigurationRevisions" }, @@ -2277,12 +2553,94 @@ "com.amazonaws.kafka#ListClusterOperationsRequest": { "type": "structure", "members": { - "ClusterArn": { + "ClusterArn": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) that uniquely identifies the cluster.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "MaxResults": { + "target": "com.amazonaws.kafka#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.
", + "smithy.api#httpQuery": "maxResults" + } + }, + "NextToken": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The paginated results marker. When the result of the operation is truncated, the call returns NextToken in the response. \n To get the next batch, provide this token in your next request.
", + "smithy.api#httpQuery": "nextToken" + } + } + } + }, + "com.amazonaws.kafka#ListClusterOperationsResponse": { + "type": "structure", + "members": { + "ClusterOperationInfoList": { + "target": "com.amazonaws.kafka#__listOfClusterOperationInfo", + "traits": { + "smithy.api#documentation": "An array of cluster operation information objects.
", + "smithy.api#jsonName": "clusterOperationInfoList" + } + }, + "NextToken": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "If the response of ListClusterOperations is truncated, it returns a NextToken in the response. This Nexttoken should be sent in the subsequent request to ListClusterOperations.
", + "smithy.api#jsonName": "nextToken" + } + } + } + }, + "com.amazonaws.kafka#ListClusters": { + "type": "operation", + "input": { + "target": "com.amazonaws.kafka#ListClustersRequest" + }, + "output": { + "target": "com.amazonaws.kafka#ListClustersResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kafka#BadRequestException" + }, + { + "target": "com.amazonaws.kafka#ForbiddenException" + }, + { + "target": "com.amazonaws.kafka#InternalServerErrorException" + }, + { + "target": "com.amazonaws.kafka#UnauthorizedException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a list of all the MSK clusters in the current Region.
", + "smithy.api#http": { + "method": "GET", + "uri": "/v1/clusters", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ClusterInfoList", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.kafka#ListClustersRequest": { + "type": "structure", + "members": { + "ClusterNameFilter": { "target": "com.amazonaws.kafka#__string", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) that uniquely identifies the cluster.
", - "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#documentation": "Specify a prefix of the name of the clusters that you want to list. The service lists all the clusters whose names start with this prefix.
", + "smithy.api#httpQuery": "clusterNameFilter" } }, "MaxResults": { @@ -2301,32 +2659,32 @@ } } }, - "com.amazonaws.kafka#ListClusterOperationsResponse": { + "com.amazonaws.kafka#ListClustersResponse": { "type": "structure", "members": { - "ClusterOperationInfoList": { - "target": "com.amazonaws.kafka#__listOfClusterOperationInfo", + "ClusterInfoList": { + "target": "com.amazonaws.kafka#__listOfClusterInfo", "traits": { - "smithy.api#documentation": "An array of cluster operation information objects.
", - "smithy.api#jsonName": "clusterOperationInfoList" + "smithy.api#documentation": "Information on each of the MSK clusters in the response.
", + "smithy.api#jsonName": "clusterInfoList" } }, "NextToken": { "target": "com.amazonaws.kafka#__string", "traits": { - "smithy.api#documentation": "If the response of ListClusterOperations is truncated, it returns a NextToken in the response. This Nexttoken should be sent in the subsequent request to ListClusterOperations.
", + "smithy.api#documentation": "The paginated results marker. When the result of a ListClusters operation is truncated, the call returns NextToken in the response. \n To get another batch of clusters, provide this token in your next request.
", "smithy.api#jsonName": "nextToken" } } } }, - "com.amazonaws.kafka#ListClusters": { + "com.amazonaws.kafka#ListClustersV2": { "type": "operation", "input": { - "target": "com.amazonaws.kafka#ListClustersRequest" + "target": "com.amazonaws.kafka#ListClustersV2Request" }, "output": { - "target": "com.amazonaws.kafka#ListClustersResponse" + "target": "com.amazonaws.kafka#ListClustersV2Response" }, "errors": [ { @@ -2346,7 +2704,7 @@ "smithy.api#documentation": "Returns a list of all the MSK clusters in the current Region.
", "smithy.api#http": { "method": "GET", - "uri": "/v1/clusters", + "uri": "/api/v2/clusters", "code": 200 }, "smithy.api#paginated": { @@ -2357,16 +2715,23 @@ } } }, - "com.amazonaws.kafka#ListClustersRequest": { + "com.amazonaws.kafka#ListClustersV2Request": { "type": "structure", "members": { "ClusterNameFilter": { "target": "com.amazonaws.kafka#__string", "traits": { - "smithy.api#documentation": "Specify a prefix of the name of the clusters that you want to list. The service lists all the clusters whose names start with this prefix.
", + "smithy.api#documentation": "Specify a prefix of the names of the clusters that you want to list. The service lists all the clusters whose names start with this prefix.
", "smithy.api#httpQuery": "clusterNameFilter" } }, + "ClusterTypeFilter": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "Specify either PROVISIONED or SERVERLESS.
", + "smithy.api#httpQuery": "clusterTypeFilter" + } + }, "MaxResults": { "target": "com.amazonaws.kafka#MaxResults", "traits": { @@ -2383,11 +2748,11 @@ } } }, - "com.amazonaws.kafka#ListClustersResponse": { + "com.amazonaws.kafka#ListClustersV2Response": { "type": "structure", "members": { "ClusterInfoList": { - "target": "com.amazonaws.kafka#__listOfClusterInfo", + "target": "com.amazonaws.kafka#__listOfCluster", "traits": { "smithy.api#documentation": "Information on each of the MSK clusters in the response.
", "smithy.api#jsonName": "clusterInfoList" @@ -3170,6 +3535,160 @@ "smithy.api#documentation": "Prometheus settings.
" } }, + "com.amazonaws.kafka#Provisioned": { + "type": "structure", + "members": { + "BrokerNodeGroupInfo": { + "target": "com.amazonaws.kafka#BrokerNodeGroupInfo", + "traits": { + "smithy.api#documentation": "Information about the brokers.
", + "smithy.api#jsonName": "brokerNodeGroupInfo", + "smithy.api#required": {} + } + }, + "CurrentBrokerSoftwareInfo": { + "target": "com.amazonaws.kafka#BrokerSoftwareInfo", + "traits": { + "smithy.api#documentation": "Information about the Apache Kafka version deployed on the brokers.
", + "smithy.api#jsonName": "currentBrokerSoftwareInfo" + } + }, + "ClientAuthentication": { + "target": "com.amazonaws.kafka#ClientAuthentication", + "traits": { + "smithy.api#documentation": "Includes all client authentication information.
", + "smithy.api#jsonName": "clientAuthentication" + } + }, + "EncryptionInfo": { + "target": "com.amazonaws.kafka#EncryptionInfo", + "traits": { + "smithy.api#documentation": "Includes all encryption-related information.
", + "smithy.api#jsonName": "encryptionInfo" + } + }, + "EnhancedMonitoring": { + "target": "com.amazonaws.kafka#EnhancedMonitoring", + "traits": { + "smithy.api#documentation": "Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
", + "smithy.api#jsonName": "enhancedMonitoring" + } + }, + "OpenMonitoring": { + "target": "com.amazonaws.kafka#OpenMonitoringInfo", + "traits": { + "smithy.api#documentation": "The settings for open monitoring.
", + "smithy.api#jsonName": "openMonitoring" + } + }, + "LoggingInfo": { + "target": "com.amazonaws.kafka#LoggingInfo", + "traits": { + "smithy.api#documentation": "Log delivery information for the cluster.
", + "smithy.api#jsonName": "loggingInfo" + } + }, + "NumberOfBrokerNodes": { + "target": "com.amazonaws.kafka#__integerMin1Max15", + "traits": { + "smithy.api#documentation": "The number of broker nodes in the cluster.
", + "smithy.api#jsonName": "numberOfBrokerNodes", + "smithy.api#required": {} + } + }, + "ZookeeperConnectString": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The connection string to use to connect to the Apache ZooKeeper cluster.
", + "smithy.api#jsonName": "zookeeperConnectString" + } + }, + "ZookeeperConnectStringTls": { + "target": "com.amazonaws.kafka#__string", + "traits": { + "smithy.api#documentation": "The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.
", + "smithy.api#jsonName": "zookeeperConnectStringTls" + } + } + }, + "traits": { + "smithy.api#documentation": "Provisioned cluster.
" + } + }, + "com.amazonaws.kafka#ProvisionedRequest": { + "type": "structure", + "members": { + "BrokerNodeGroupInfo": { + "target": "com.amazonaws.kafka#BrokerNodeGroupInfo", + "traits": { + "smithy.api#documentation": "Information about the brokers.
", + "smithy.api#jsonName": "brokerNodeGroupInfo", + "smithy.api#required": {} + } + }, + "ClientAuthentication": { + "target": "com.amazonaws.kafka#ClientAuthentication", + "traits": { + "smithy.api#documentation": "Includes all client authentication information.
", + "smithy.api#jsonName": "clientAuthentication" + } + }, + "ConfigurationInfo": { + "target": "com.amazonaws.kafka#ConfigurationInfo", + "traits": { + "smithy.api#documentation": "Represents the configuration that you want Amazon MSK to use for the brokers in a cluster.
", + "smithy.api#jsonName": "configurationInfo" + } + }, + "EncryptionInfo": { + "target": "com.amazonaws.kafka#EncryptionInfo", + "traits": { + "smithy.api#documentation": "Includes all encryption-related information.
", + "smithy.api#jsonName": "encryptionInfo" + } + }, + "EnhancedMonitoring": { + "target": "com.amazonaws.kafka#EnhancedMonitoring", + "traits": { + "smithy.api#documentation": "Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
", + "smithy.api#jsonName": "enhancedMonitoring" + } + }, + "OpenMonitoring": { + "target": "com.amazonaws.kafka#OpenMonitoringInfo", + "traits": { + "smithy.api#documentation": "The settings for open monitoring.
", + "smithy.api#jsonName": "openMonitoring" + } + }, + "KafkaVersion": { + "target": "com.amazonaws.kafka#__stringMin1Max128", + "traits": { + "smithy.api#documentation": "The Apache Kafka version that you want for the cluster.
", + "smithy.api#jsonName": "kafkaVersion", + "smithy.api#required": {} + } + }, + "LoggingInfo": { + "target": "com.amazonaws.kafka#LoggingInfo", + "traits": { + "smithy.api#documentation": "Log delivery information for the cluster.
", + "smithy.api#jsonName": "loggingInfo" + } + }, + "NumberOfBrokerNodes": { + "target": "com.amazonaws.kafka#__integerMin1Max15", + "traits": { + "smithy.api#documentation": "The number of broker nodes in the cluster.
", + "smithy.api#jsonName": "numberOfBrokerNodes", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Provisioned cluster request.
" + } + }, "com.amazonaws.kafka#PublicAccess": { "type": "structure", "members": { @@ -3329,6 +3848,82 @@ "smithy.api#documentation": "Details for SASL/SCRAM client authentication.
" } }, + "com.amazonaws.kafka#Serverless": { + "type": "structure", + "members": { + "VpcConfigs": { + "target": "com.amazonaws.kafka#__listOfVpcConfig", + "traits": { + "smithy.api#documentation": "The configuration of the Amazon VPCs for the cluster.
", + "smithy.api#jsonName": "vpcConfigs", + "smithy.api#required": {} + } + }, + "ClientAuthentication": { + "target": "com.amazonaws.kafka#ServerlessClientAuthentication", + "traits": { + "smithy.api#documentation": "Includes all client authentication information.
", + "smithy.api#jsonName": "clientAuthentication" + } + } + }, + "traits": { + "smithy.api#documentation": "Serverless cluster.
" + } + }, + "com.amazonaws.kafka#ServerlessClientAuthentication": { + "type": "structure", + "members": { + "Sasl": { + "target": "com.amazonaws.kafka#ServerlessSasl", + "traits": { + "smithy.api#documentation": "Details for ClientAuthentication using SASL.
", + "smithy.api#jsonName": "sasl" + } + } + }, + "traits": { + "smithy.api#documentation": "Includes all client authentication information.
" + } + }, + "com.amazonaws.kafka#ServerlessRequest": { + "type": "structure", + "members": { + "VpcConfigs": { + "target": "com.amazonaws.kafka#__listOfVpcConfig", + "traits": { + "smithy.api#documentation": "The configuration of the Amazon VPCs for the cluster.
", + "smithy.api#jsonName": "vpcConfigs", + "smithy.api#required": {} + } + }, + "ClientAuthentication": { + "target": "com.amazonaws.kafka#ServerlessClientAuthentication", + "traits": { + "smithy.api#documentation": "Includes all client authentication information.
", + "smithy.api#jsonName": "clientAuthentication" + } + } + }, + "traits": { + "smithy.api#documentation": "Serverless cluster request.
" + } + }, + "com.amazonaws.kafka#ServerlessSasl": { + "type": "structure", + "members": { + "Iam": { + "target": "com.amazonaws.kafka#Iam", + "traits": { + "smithy.api#documentation": "Indicates whether IAM access control is enabled.
", + "smithy.api#jsonName": "iam" + } + } + }, + "traits": { + "smithy.api#documentation": "Details for client authentication using SASL.
" + } + }, "com.amazonaws.kafka#ServiceUnavailableException": { "type": "structure", "members": { @@ -4383,6 +4978,29 @@ } } }, + "com.amazonaws.kafka#VpcConfig": { + "type": "structure", + "members": { + "SubnetIds": { + "target": "com.amazonaws.kafka#__listOf__string", + "traits": { + "smithy.api#documentation": "The IDs of the subnets associated with the cluster.
", + "smithy.api#jsonName": "subnetIds", + "smithy.api#required": {} + } + }, + "SecurityGroupIds": { + "target": "com.amazonaws.kafka#__listOf__string", + "traits": { + "smithy.api#documentation": "The IDs of the security groups associated with the cluster.
", + "smithy.api#jsonName": "securityGroupIds" + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration of the Amazon VPCs for the cluster.
" + } + }, "com.amazonaws.kafka#ZookeeperNodeInfo": { "type": "structure", "members": { @@ -4462,6 +5080,12 @@ "target": "com.amazonaws.kafka#BrokerEBSVolumeInfo" } }, + "com.amazonaws.kafka#__listOfCluster": { + "type": "list", + "member": { + "target": "com.amazonaws.kafka#Cluster" + } + }, "com.amazonaws.kafka#__listOfClusterInfo": { "type": "list", "member": { @@ -4516,6 +5140,12 @@ "target": "com.amazonaws.kafka#UnprocessedScramSecret" } }, + "com.amazonaws.kafka#__listOfVpcConfig": { + "type": "list", + "member": { + "target": "com.amazonaws.kafka#VpcConfig" + } + }, "com.amazonaws.kafka#__listOf__string": { "type": "list", "member": { diff --git a/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json b/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json index dc249e9245c..8e071d9e15f 100644 --- a/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json +++ b/codegen/sdk-codegen/aws-models/kendra.2019-02-03.json @@ -31,8 +31,29 @@ "shapes": { "com.amazonaws.kendra#AWSKendraFrontendService": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "kendra", + "arnNamespace": "kendra", + "cloudFormationName": "Kendra", + "cloudTrailEventSource": "kendra.amazonaws.com", + "endpointPrefix": "kendra" + }, + "aws.auth#sigv4": { + "name": "kendra" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Amazon Kendra is a service for indexing large document sets.
", + "smithy.api#title": "AWSKendraFrontendService" + }, "version": "2019-02-03", "operations": [ + { + "target": "com.amazonaws.kendra#AssociateEntitiesToExperience" + }, + { + "target": "com.amazonaws.kendra#AssociatePersonasToEntities" + }, { "target": "com.amazonaws.kendra#BatchDeleteDocument" }, @@ -48,6 +69,9 @@ { "target": "com.amazonaws.kendra#CreateDataSource" }, + { + "target": "com.amazonaws.kendra#CreateExperience" + }, { "target": "com.amazonaws.kendra#CreateFaq" }, @@ -63,6 +87,9 @@ { "target": "com.amazonaws.kendra#DeleteDataSource" }, + { + "target": "com.amazonaws.kendra#DeleteExperience" + }, { "target": "com.amazonaws.kendra#DeleteFaq" }, @@ -81,6 +108,9 @@ { "target": "com.amazonaws.kendra#DescribeDataSource" }, + { + "target": "com.amazonaws.kendra#DescribeExperience" + }, { "target": "com.amazonaws.kendra#DescribeFaq" }, @@ -99,15 +129,33 @@ { "target": "com.amazonaws.kendra#DescribeThesaurus" }, + { + "target": "com.amazonaws.kendra#DisassociateEntitiesFromExperience" + }, + { + "target": "com.amazonaws.kendra#DisassociatePersonasFromEntities" + }, { "target": "com.amazonaws.kendra#GetQuerySuggestions" }, + { + "target": "com.amazonaws.kendra#GetSnapshots" + }, { "target": "com.amazonaws.kendra#ListDataSources" }, { "target": "com.amazonaws.kendra#ListDataSourceSyncJobs" }, + { + "target": "com.amazonaws.kendra#ListEntityPersonas" + }, + { + "target": "com.amazonaws.kendra#ListExperienceEntities" + }, + { + "target": "com.amazonaws.kendra#ListExperiences" + }, { "target": "com.amazonaws.kendra#ListFaqs" }, @@ -150,6 +198,9 @@ { "target": "com.amazonaws.kendra#UpdateDataSource" }, + { + "target": "com.amazonaws.kendra#UpdateExperience" + }, { "target": "com.amazonaws.kendra#UpdateIndex" }, @@ -162,22 +213,7 @@ { "target": "com.amazonaws.kendra#UpdateThesaurus" } - ], - "traits": { - "aws.api#service": { - "sdkId": "kendra", - "arnNamespace": "kendra", - "cloudFormationName": "Kendra", - "cloudTrailEventSource": "kendra.amazonaws.com", - "endpointPrefix": "kendra" - }, - "aws.auth#sigv4": { - "name": "kendra" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Amazon Kendra is a service for indexing large document sets.
", - "smithy.api#title": "AWSKendraFrontendService" - } + ] }, "com.amazonaws.kendra#AccessControlListConfiguration": { "type": "structure", @@ -290,6 +326,168 @@ } } }, + "com.amazonaws.kendra#AssociateEntitiesToExperience": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#AssociateEntitiesToExperienceRequest" + }, + "output": { + "target": "com.amazonaws.kendra#AssociateEntitiesToExperienceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceAlreadyExistException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Grants users or groups in your Amazon Web Services SSO identity source access \n to your Amazon Kendra experience. You can create an Amazon Kendra experience such as a \n search application. For more information on creating a search application \n experience, see Building \n a search experience with no code.
" + } + }, + "com.amazonaws.kendra#AssociateEntitiesToExperienceFailedEntityList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#FailedEntity" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.kendra#AssociateEntitiesToExperienceRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "EntityList": { + "target": "com.amazonaws.kendra#AssociateEntityList", + "traits": { + "smithy.api#documentation": "Lists users or groups in your Amazon Web Services SSO identity source.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kendra#AssociateEntitiesToExperienceResponse": { + "type": "structure", + "members": { + "FailedEntityList": { + "target": "com.amazonaws.kendra#AssociateEntitiesToExperienceFailedEntityList", + "traits": { + "smithy.api#documentation": "Lists the users or groups in your Amazon Web Services SSO identity source that \n failed to properly configure with your Amazon Kendra experience.
" + } + } + } + }, + "com.amazonaws.kendra#AssociateEntityList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#EntityConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.kendra#AssociatePersonasToEntities": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#AssociatePersonasToEntitiesRequest" + }, + "output": { + "target": "com.amazonaws.kendra#AssociatePersonasToEntitiesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceAlreadyExistException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Defines the specific permissions of users or groups in your Amazon Web Services SSO\n identity source with access to your Amazon Kendra experience. You can create an Amazon Kendra \n experience such as a search application. For more information on creating a \n search application experience, see Building \n a search experience with no code.
" + } + }, + "com.amazonaws.kendra#AssociatePersonasToEntitiesRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "Personas": { + "target": "com.amazonaws.kendra#EntityPersonaConfigurationList", + "traits": { + "smithy.api#documentation": "The personas that define the specific permissions of users or groups in \n your Amazon Web Services SSO identity source. The available personas or access \n roles are Owner
and Viewer
. For more information \n on these personas, see Providing \n access to your search page.
Lists the users or groups in your Amazon Web Services SSO identity source that \n failed to properly configure with your Amazon Kendra experience.
" + } + } + } + }, "com.amazonaws.kendra#AttributeFilter": { "type": "structure", "members": { @@ -355,7 +553,7 @@ } }, "traits": { - "smithy.api#documentation": "Provides filtering the query results based on document\n attributes.
\nWhen you use the AndAllFilters
or\n OrAllFilters
, filters you can use 2 layers under the\n first attribute filter. For example, you can use:
\n
\n
\n
\n
\n
\n
If you use more than 2 layers, you receive a\n ValidationException
exception with the message\n \"AttributeFilter
cannot have a depth of more \n than 2.\"
If you use more than 10 attribute filters in a given list for \n AndAllFilters
or OrAllFilters
, you receive \n a ValidationException
with the message \n \"AttributeFilter
cannot have a length of more than 10\".
Provides filtering the query results based on document\n attributes.
\nWhen you use the AndAllFilters
or\n OrAllFilters
, filters you can use 2 layers under the\n first attribute filter. For example, you can use:
\n
\n
\n
\n
\n
\n
If you use more than 2 layers, you receive a\n ValidationException
exception with the message\n \"AttributeFilter
cannot have a depth of more \n than 2.\"
If you use more than 10 attribute filters in a given list for \n AndAllFilters
or OrAllFilters
, you receive \n a ValidationException
with the message \n \"AttributeFilter
cannot have a length of more than 10\".
Your secret ARN, which you can create in AWS Secrets Manager\n
\nYou use a secret if basic authentication credentials are required to connect \n to a website. The secret stores your credentials of user name and password.
", + "smithy.api#documentation": "Your secret ARN, which you can create in Secrets Manager\n
\nYou use a secret if basic authentication credentials are required to connect \n to a website. The secret stores your credentials of user name and password.
", "smithy.api#required": {} } } @@ -673,6 +871,12 @@ "smithy.api#documentation": "One or more documents to add to the index.
\nDocuments can include custom attributes. For example, \n 'DataSourceId' and 'DataSourceSyncJobId' are custom \n attributes that provide information on the synchronization \n of documents running on a data source. Note, \n 'DataSourceSyncJobId' could be an optional custom attribute \n as Amazon Kendra will use the ID of a running sync job.
\nDocuments have the following file size limits.
\n5 MB total size for inline documents
\n50 MB total size for files from an S3 bucket
\n5 MB extracted text for any file
\nFor more information about file size and transaction per second\n quotas, see Quotas.
", "smithy.api#required": {} } + }, + "CustomDocumentEnrichmentConfiguration": { + "target": "com.amazonaws.kendra#CustomDocumentEnrichmentConfiguration", + "traits": { + "smithy.api#documentation": "Configuration information for altering your document metadata and content during \n the document ingestion process when you use the BatchPutDocument
\n operation.
For more information on how to create, modify and delete document metadata, \n or make other content alterations when you ingest documents into Amazon Kendra, see \n Customizing \n document metadata during the ingestion process.
" + } } } }, @@ -795,7 +999,7 @@ } ], "traits": { - "smithy.api#documentation": "Clears existing query suggestions from an index.
\nThis deletes existing suggestions only, not the queries \n in the query log. After you clear suggestions, Amazon Kendra learns \n new suggestions based on new queries added to the query log \n from the time you cleared suggestions. If you do not see any \n new suggestions, then please allow Amazon Kendra to collect \n enough queries to learn new suggestions.
" + "smithy.api#documentation": "Clears existing query suggestions from an index.
\nThis deletes existing suggestions only, not the queries \n in the query log. After you clear suggestions, Amazon Kendra learns \n new suggestions based on new queries added to the query log \n from the time you cleared suggestions. If you do not see any \n new suggestions, then please allow Amazon Kendra to collect \n enough queries to learn new suggestions.
\n\n ClearQuerySuggestions
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
The Amazon Resource Name (ARN) of an Secrets Managersecret\n that contains the key/value pairs required to connect to your\n Confluence server. The secret must contain a JSON structure with the\n following keys:
\nusername - The user name or email address of a user with\n administrative privileges for the Confluence server.
\npassword - The password associated with the user logging\n in to the Confluence server.
\nThe Amazon Resource Name (ARN) of an Secrets Manager secret\n that contains the key/value pairs required to connect to your\n Confluence server. The secret must contain a JSON structure with the\n following keys:
\nusername - The user name or email address of a user with\n administrative privileges for the Confluence server.
\npassword - The password associated with the user logging\n in to the Confluence server.
\nProvides the information necessary to connect to a\n database.
" } }, + "com.amazonaws.kendra#ContentSourceConfiguration": { + "type": "structure", + "members": { + "DataSourceIds": { + "target": "com.amazonaws.kendra#DataSourceIdList", + "traits": { + "smithy.api#documentation": "The identifier of the data sources you want to use for your Amazon Kendra experience.
" + } + }, + "FaqIds": { + "target": "com.amazonaws.kendra#FaqIdsList", + "traits": { + "smithy.api#documentation": "The identifier of the FAQs that you want to use for your Amazon Kendra experience.
" + } + }, + "DirectPutContent": { + "target": "com.amazonaws.kendra#Boolean", + "traits": { + "smithy.api#documentation": "\n TRUE
to use documents you indexed directly using the\n BatchPutDocument
operation.
Configuration information for your content sources, such as data sources, \n FAQs, and content indexed directly via BatchPutDocument.
" + } + }, "com.amazonaws.kendra#ContentType": { "type": "string", "traits": { @@ -1543,7 +1824,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a data source that you want to use with an Amazon Kendra index.
\nYou specify a name, data source connector type and description for\n your data source. You also specify configuration information for the \n data source connector.
\n\n CreateDataSource
is a synchronous operation. The\n operation returns 200 if the data source was successfully created.\n Otherwise, an exception is raised.
Creates a data source that you want to use with an Amazon Kendra index.
\nYou specify a name, data source connector type and description for\n your data source. You also specify configuration information for the \n data source connector.
\n\n CreateDataSource
is a synchronous operation. The\n operation returns 200 if the data source was successfully created.\n Otherwise, an exception is raised.
Amazon S3 and custom data sources are \n the only supported data sources in the Amazon Web Services GovCloud (US-West) region.
" } }, "com.amazonaws.kendra#CreateDataSourceRequest": { @@ -1612,6 +1893,12 @@ "traits": { "smithy.api#documentation": "The code for a language. This allows you to support a language for all \n documents when creating the data source. English is supported \n by default. For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" } + }, + "CustomDocumentEnrichmentConfiguration": { + "target": "com.amazonaws.kendra#CustomDocumentEnrichmentConfiguration", + "traits": { + "smithy.api#documentation": "Configuration information for altering document metadata and content during the\n document ingestion process when you create a data source.
\nFor more information on how to create, modify and delete document metadata, or make\n other content alterations when you ingest documents into Amazon Kendra, see \n Customizing \n document metadata during the ingestion process.
" + } } } }, @@ -1627,13 +1914,13 @@ } } }, - "com.amazonaws.kendra#CreateFaq": { + "com.amazonaws.kendra#CreateExperience": { "type": "operation", "input": { - "target": "com.amazonaws.kendra#CreateFaqRequest" + "target": "com.amazonaws.kendra#CreateExperienceRequest" }, "output": { - "target": "com.amazonaws.kendra#CreateFaqResponse" + "target": "com.amazonaws.kendra#CreateExperienceResponse" }, "errors": [ { @@ -1659,40 +1946,131 @@ } ], "traits": { - "smithy.api#documentation": "Creates an new set of frequently asked question (FAQ) questions and answers.
" + "smithy.api#documentation": "Creates an Amazon Kendra experience such as a search application. For more information \n on creating a search application experience, see Building a \n search experience with no code.
" } }, - "com.amazonaws.kendra#CreateFaqRequest": { + "com.amazonaws.kendra#CreateExperienceRequest": { "type": "structure", "members": { - "IndexId": { - "target": "com.amazonaws.kendra#IndexId", + "Name": { + "target": "com.amazonaws.kendra#ExperienceName", "traits": { - "smithy.api#documentation": "The identifier of the index that contains the FAQ.
", + "smithy.api#documentation": "A name for your Amazon Kendra experience.
", "smithy.api#required": {} } }, - "Name": { - "target": "com.amazonaws.kendra#FaqName", + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The name that should be associated with the FAQ.
", + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", "smithy.api#required": {} } }, - "Description": { - "target": "com.amazonaws.kendra#Description", + "RoleArn": { + "target": "com.amazonaws.kendra#RoleArn", "traits": { - "smithy.api#documentation": "A description of the FAQ.
" + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a role with permission to access Query
\n operations, QuerySuggestions
operations, SubmitFeedback
\n operations, and Amazon Web Services SSO that stores your user and group information. \n For more information, see IAM roles for Amazon Kendra.
The S3 location of the FAQ input data.
", - "smithy.api#required": {} + "smithy.api#documentation": "Provides the configuration information for your Amazon Kendra experience. This includes\n ContentSourceConfiguration
, which specifies the data source IDs \n and/or FAQ IDs, and UserIdentityConfiguration
, which specifies the \n user or group information to grant access to your Amazon Kendra experience.
A description for your Amazon Kendra experience.
" + } + }, + "ClientToken": { + "target": "com.amazonaws.kendra#ClientTokenName", + "traits": { + "smithy.api#documentation": "A token that you provide to identify the request to create your Amazon Kendra experience.\n Multiple calls to the CreateExperience
operation with the same client \n token creates only one Amazon Kendra experience.
The identifier for your created Amazon Kendra experience.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kendra#CreateFaq": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#CreateFaqRequest" + }, + "output": { + "target": "com.amazonaws.kendra#CreateFaqResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#ConflictException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates an new set of frequently asked question (FAQ) questions and answers.
" + } + }, + "com.amazonaws.kendra#CreateFaqRequest": { + "type": "structure", + "members": { + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index that contains the FAQ.
", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.kendra#FaqName", + "traits": { + "smithy.api#documentation": "The name that should be associated with the FAQ.
", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.kendra#Description", + "traits": { + "smithy.api#documentation": "A description of the FAQ.
" + } + }, + "S3Path": { + "target": "com.amazonaws.kendra#S3Path", + "traits": { + "smithy.api#documentation": "The S3 location of the FAQ input data.
", + "smithy.api#required": {} + } + }, + "RoleArn": { "target": "com.amazonaws.kendra#RoleArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that\n contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
", @@ -1835,7 +2213,7 @@ "UserGroupResolutionConfiguration": { "target": "com.amazonaws.kendra#UserGroupResolutionConfiguration", "traits": { - "smithy.api#documentation": "Enables fetching access levels of groups and users from an AWS Single Sign-On \n identity source. To configure this, see \n UserGroupResolutionConfiguration.
" + "smithy.api#documentation": "Enables fetching access levels of groups and users from an Amazon Web Services Single Sign On \n identity source. To configure this, see \n UserGroupResolutionConfiguration.
" } } } @@ -1883,7 +2261,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a block list to exlcude certain queries from suggestions.
\nAny query that contains words or phrases specified in the block \n list is blocked or filtered out from being shown as a suggestion.
\nYou need to provide the file location of your block list text file \n in your S3 bucket. In your text file, enter each block word or phrase \n on a separate line.
\nFor information on the current quota limits for block lists, see \n Quotas \n for Amazon Kendra.
" + "smithy.api#documentation": "Creates a block list to exlcude certain queries from suggestions.
\nAny query that contains words or phrases specified in the block \n list is blocked or filtered out from being shown as a suggestion.
\nYou need to provide the file location of your block list text file \n in your S3 bucket. In your text file, enter each block word or phrase \n on a separate line.
\nFor information on the current quota limits for block lists, see \n Quotas \n for Amazon Kendra.
\n\n CreateQuerySuggestionsBlockList
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions \n to access thesaurus file specified in SourceS3Path
.\n
An IAM role that gives Amazon Kendra permissions \n to access thesaurus file specified in SourceS3Path
.\n
Configuration information to alter document attributes or metadata fields and \n content when ingesting documents into Amazon Kendra.
" + } + }, + "PreExtractionHookConfiguration": { + "target": "com.amazonaws.kendra#HookConfiguration", + "traits": { + "smithy.api#documentation": "Configuration information for invoking a Lambda function in Lambda \n on the original or raw documents before extracting their metadata and text. You can \n use a Lambda function to apply advanced logic for creating, modifying, or deleting\n document metadata and content. For more information, see Advanced \n data manipulation.
" + } + }, + "PostExtractionHookConfiguration": { + "target": "com.amazonaws.kendra#HookConfiguration", + "traits": { + "smithy.api#documentation": "Configuration information for invoking a Lambda function in Lambda \n on the structured documents with their metadata and text extracted. You can use a \n Lambda function to apply advanced logic for creating, modifying, or deleting document\n metadata and content. For more information, see Advanced \n data manipulation.
" + } + }, + "RoleArn": { + "target": "com.amazonaws.kendra#RoleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a role with permission to run \n PreExtractionHookConfiguration
and \n PostExtractionHookConfiguration
for altering document metadata \n and content during the document ingestion process. For more information, \n see IAM roles for\n Amazon Kendra.
Provides the configuration information for altering document metadata and content\n during the document ingestion process.
\nFor more information, see Customizing document metadata\n during the ingestion process.
" + } + }, "com.amazonaws.kendra#DataSourceConfiguration": { "type": "structure", "members": { @@ -2109,7 +2519,7 @@ } }, "traits": { - "smithy.api#documentation": "Configuration information for a Amazon Kendra data source.
" + "smithy.api#documentation": "Configuration information for an Amazon Kendra data source.
" } }, "com.amazonaws.kendra#DataSourceDateFieldFormat": { @@ -2176,6 +2586,18 @@ "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" } }, + "com.amazonaws.kendra#DataSourceIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#DataSourceId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, "com.amazonaws.kendra#DataSourceInclusionsExclusionsStrings": { "type": "list", "member": { @@ -2713,6 +3135,61 @@ } } }, + "com.amazonaws.kendra#DeleteExperience": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#DeleteExperienceRequest" + }, + "output": { + "target": "com.amazonaws.kendra#DeleteExperienceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#ConflictException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes your Amazon Kendra experience such as a search application. For more information on\n creating a search application experience, see Building a search\n experience with no code.
" + } + }, + "com.amazonaws.kendra#DeleteExperienceRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience you want to delete.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience you want to delete.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kendra#DeleteExperienceResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.kendra#DeleteFaq": { "type": "operation", "input": { @@ -2828,7 +3305,7 @@ } ], "traits": { - "smithy.api#documentation": "Deletes a group so that all users and sub groups that belong to the group can \n no longer access documents only available to that group.
\nFor example, after deleting the group \"Summer Interns\", all interns who \n belonged to that group no longer see intern-only documents in their search \n results.
\nIf you want to delete or replace users or sub groups of a group, you need to \n use the PutPrincipalMapping
operation. For example, if a user in \n the group \"Engineering\" leaves the engineering team and another user takes \n their place, you provide an updated list of users or sub groups that belong \n to the \"Engineering\" group when calling PutPrincipalMapping
. You \n can update your internal list of users or sub groups and input this list \n when calling PutPrincipalMapping
.
Deletes a group so that all users and sub groups that belong to the group can \n no longer access documents only available to that group.
\nFor example, after deleting the group \"Summer Interns\", all interns who \n belonged to that group no longer see intern-only documents in their search \n results.
\nIf you want to delete or replace users or sub groups of a group, you need to \n use the PutPrincipalMapping
operation. For example, if a user in \n the group \"Engineering\" leaves the engineering team and another user takes \n their place, you provide an updated list of users or sub groups that belong \n to the \"Engineering\" group when calling PutPrincipalMapping
. You \n can update your internal list of users or sub groups and input this list \n when calling PutPrincipalMapping
.
\n DeletePrincipalMapping
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Deletes a block list used for query suggestions for an index.
\nA deleted block list might not take effect right away. Amazon Kendra \n needs to refresh the entire suggestions list to add back the \n queries that were previously blocked.
" + "smithy.api#documentation": "Deletes a block list used for query suggestions for an index.
\nA deleted block list might not take effect right away. Amazon Kendra \n needs to refresh the entire suggestions list to add back the \n queries that were previously blocked.
\n\n DeleteQuerySuggestionsBlockList
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
The code for a language. This shows a supported language for all \n documents in the data source. English is supported by \n default. For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" } + }, + "CustomDocumentEnrichmentConfiguration": { + "target": "com.amazonaws.kendra#CustomDocumentEnrichmentConfiguration", + "traits": { + "smithy.api#documentation": "Configuration information for altering document metadata and content during the\n document ingestion process when you describe a data source.
\nFor more information on how to create, modify and delete document metadata, or make\n other content alterations when you ingest documents into Amazon Kendra, see \n Customizing \n document metadata during the ingestion process.
" + } } } }, - "com.amazonaws.kendra#DescribeFaq": { + "com.amazonaws.kendra#DescribeExperience": { "type": "operation", "input": { - "target": "com.amazonaws.kendra#DescribeFaqRequest" + "target": "com.amazonaws.kendra#DescribeExperienceRequest" }, "output": { - "target": "com.amazonaws.kendra#DescribeFaqResponse" + "target": "com.amazonaws.kendra#DescribeExperienceResponse" }, "errors": [ { @@ -3115,109 +3598,106 @@ } ], "traits": { - "smithy.api#documentation": "Gets information about an FAQ list.
" + "smithy.api#documentation": "Gets information about your Amazon Kendra experience such as a search application. \n For more information on creating a search application experience, \n see Building \n a search experience with no code.
" } }, - "com.amazonaws.kendra#DescribeFaqRequest": { + "com.amazonaws.kendra#DescribeExperienceRequest": { "type": "structure", "members": { "Id": { - "target": "com.amazonaws.kendra#FaqId", + "target": "com.amazonaws.kendra#ExperienceId", "traits": { - "smithy.api#documentation": "The unique identifier of the FAQ.
", + "smithy.api#documentation": "The identifier of your Amazon Kendra experience you want to get information on.
", "smithy.api#required": {} } }, "IndexId": { "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The identifier of the index that contains the FAQ.
", + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience you want to get \n information on.
", "smithy.api#required": {} } } } }, - "com.amazonaws.kendra#DescribeFaqResponse": { + "com.amazonaws.kendra#DescribeExperienceResponse": { "type": "structure", "members": { "Id": { - "target": "com.amazonaws.kendra#FaqId", + "target": "com.amazonaws.kendra#ExperienceId", "traits": { - "smithy.api#documentation": "The identifier of the FAQ.
" + "smithy.api#documentation": "Shows the identifier of your Amazon Kendra experience.
" } }, "IndexId": { "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The identifier of the index that contains the FAQ.
" + "smithy.api#documentation": "Shows the identifier of the index for your Amazon Kendra experience.
" } }, "Name": { - "target": "com.amazonaws.kendra#FaqName", + "target": "com.amazonaws.kendra#ExperienceName", "traits": { - "smithy.api#documentation": "The name that you gave the FAQ when it was created.
" + "smithy.api#documentation": "Shows the name of your Amazon Kendra experience.
" } }, - "Description": { - "target": "com.amazonaws.kendra#Description", + "Endpoints": { + "target": "com.amazonaws.kendra#ExperienceEndpoints", "traits": { - "smithy.api#documentation": "The description of the FAQ that you provided when it was created.
" + "smithy.api#documentation": "Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully\n hosted by Amazon Web Services.
" + } + }, + "Configuration": { + "target": "com.amazonaws.kendra#ExperienceConfiguration", + "traits": { + "smithy.api#documentation": "Shows the configuration information for your Amazon Kendra experience. This includes\n ContentSourceConfiguration
, which specifies the data source IDs \n and/or FAQ IDs, and UserIdentityConfiguration
, which specifies the \n user or group information to grant access to your Amazon Kendra experience.
The date and time that the FAQ was created.
" + "smithy.api#documentation": "Shows the date-time your Amazon Kendra experience was created.
" } }, "UpdatedAt": { "target": "com.amazonaws.kendra#Timestamp", "traits": { - "smithy.api#documentation": "The date and time that the FAQ was last updated.
" + "smithy.api#documentation": "Shows the date-time your Amazon Kendra experience was last updated.
" } }, - "S3Path": { - "target": "com.amazonaws.kendra#S3Path" + "Description": { + "target": "com.amazonaws.kendra#Description", + "traits": { + "smithy.api#documentation": "Shows the description for your Amazon Kendra experience.
" + } }, "Status": { - "target": "com.amazonaws.kendra#FaqStatus", + "target": "com.amazonaws.kendra#ExperienceStatus", "traits": { - "smithy.api#documentation": "The status of the FAQ. It is ready to use when the status is\n ACTIVE
.
The current processing status of your Amazon Kendra experience. When the status \n is ACTIVE
, your Amazon Kendra experience is ready to use. When the \n status is FAILED
, the ErrorMessage
field contains \n the reason that this failed.
The Amazon Resource Name (ARN) of the role that provides access to the S3 bucket\n containing the input files for the FAQ.
" + "smithy.api#documentation": "Shows the Amazon Resource Name (ARN) of a role with permission to access \n Query
operations, QuerySuggestions
operations, \n SubmitFeedback
operations, and Amazon Web Services SSO that stores \n your user and group information.
If the Status
field is FAILED
, the ErrorMessage
\n field contains the reason why the FAQ failed.
The file format used by the input files for the FAQ.
" - } - }, - "LanguageCode": { - "target": "com.amazonaws.kendra#LanguageCode", - "traits": { - "smithy.api#documentation": "The code for a language. This shows a supported language \n for the FAQ document. English is supported by default. \n For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" + "smithy.api#documentation": "The reason your Amazon Kendra experience could not properly process.
" } } } }, - "com.amazonaws.kendra#DescribeIndex": { + "com.amazonaws.kendra#DescribeFaq": { "type": "operation", "input": { - "target": "com.amazonaws.kendra#DescribeIndexRequest" + "target": "com.amazonaws.kendra#DescribeFaqRequest" }, "output": { - "target": "com.amazonaws.kendra#DescribeIndexResponse" + "target": "com.amazonaws.kendra#DescribeFaqResponse" }, "errors": [ { @@ -3237,49 +3717,171 @@ } ], "traits": { - "smithy.api#documentation": "Describes an existing Amazon Kendra index
" + "smithy.api#documentation": "Gets information about an FAQ list.
" } }, - "com.amazonaws.kendra#DescribeIndexRequest": { + "com.amazonaws.kendra#DescribeFaqRequest": { "type": "structure", "members": { "Id": { + "target": "com.amazonaws.kendra#FaqId", + "traits": { + "smithy.api#documentation": "The unique identifier of the FAQ.
", + "smithy.api#required": {} + } + }, + "IndexId": { "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The name of the index to describe.
", + "smithy.api#documentation": "The identifier of the index that contains the FAQ.
", "smithy.api#required": {} } } } }, - "com.amazonaws.kendra#DescribeIndexResponse": { + "com.amazonaws.kendra#DescribeFaqResponse": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.kendra#IndexName", + "Id": { + "target": "com.amazonaws.kendra#FaqId", "traits": { - "smithy.api#documentation": "The name of the index.
" + "smithy.api#documentation": "The identifier of the FAQ.
" } }, - "Id": { + "IndexId": { "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The name of the index.
" + "smithy.api#documentation": "The identifier of the index that contains the FAQ.
" } }, - "Edition": { - "target": "com.amazonaws.kendra#IndexEdition", + "Name": { + "target": "com.amazonaws.kendra#FaqName", "traits": { - "smithy.api#documentation": "The Amazon Kendra edition used for the index. You decide the edition\n when you create the index.
" + "smithy.api#documentation": "The name that you gave the FAQ when it was created.
" } }, - "RoleArn": { - "target": "com.amazonaws.kendra#RoleArn", + "Description": { + "target": "com.amazonaws.kendra#Description", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra\n permission to write to your Amazon Cloudwatch logs.
" + "smithy.api#documentation": "The description of the FAQ that you provided when it was created.
" } }, - "ServerSideEncryptionConfiguration": { + "CreatedAt": { + "target": "com.amazonaws.kendra#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time that the FAQ was created.
" + } + }, + "UpdatedAt": { + "target": "com.amazonaws.kendra#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time that the FAQ was last updated.
" + } + }, + "S3Path": { + "target": "com.amazonaws.kendra#S3Path" + }, + "Status": { + "target": "com.amazonaws.kendra#FaqStatus", + "traits": { + "smithy.api#documentation": "The status of the FAQ. It is ready to use when the status is\n ACTIVE
.
The Amazon Resource Name (ARN) of the role that provides access to the S3 bucket\n containing the input files for the FAQ.
" + } + }, + "ErrorMessage": { + "target": "com.amazonaws.kendra#ErrorMessage", + "traits": { + "smithy.api#documentation": "If the Status
field is FAILED
, the ErrorMessage
\n field contains the reason why the FAQ failed.
The file format used by the input files for the FAQ.
" + } + }, + "LanguageCode": { + "target": "com.amazonaws.kendra#LanguageCode", + "traits": { + "smithy.api#documentation": "The code for a language. This shows a supported language \n for the FAQ document. English is supported by default. \n For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" + } + } + } + }, + "com.amazonaws.kendra#DescribeIndex": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#DescribeIndexRequest" + }, + "output": { + "target": "com.amazonaws.kendra#DescribeIndexResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Describes an existing Amazon Kendra index
" + } + }, + "com.amazonaws.kendra#DescribeIndexRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The name of the index to describe.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kendra#DescribeIndexResponse": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.kendra#IndexName", + "traits": { + "smithy.api#documentation": "The name of the index.
" + } + }, + "Id": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The name of the index.
" + } + }, + "Edition": { + "target": "com.amazonaws.kendra#IndexEdition", + "traits": { + "smithy.api#documentation": "The Amazon Kendra edition used for the index. You decide the edition\n when you create the index.
" + } + }, + "RoleArn": { + "target": "com.amazonaws.kendra#RoleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra\n permission to write to your Amazon Cloudwatch logs.
" + } + }, + "ServerSideEncryptionConfiguration": { "target": "com.amazonaws.kendra#ServerSideEncryptionConfiguration", "traits": { "smithy.api#documentation": "The identifier of the KMScustomer master key (CMK) used to\n encrypt your data. Amazon Kendra doesn't support asymmetric CMKs.
" @@ -3348,7 +3950,7 @@ "UserGroupResolutionConfiguration": { "target": "com.amazonaws.kendra#UserGroupResolutionConfiguration", "traits": { - "smithy.api#documentation": "Shows whether you have enabled the configuration for fetching access \n levels of groups and users from an AWS Single Sign-On identity source.
" + "smithy.api#documentation": "Shows whether you have enabled the configuration for fetching access \n levels of groups and users from an Amazon Web Services Single Sign On identity source.
" } } } @@ -3379,7 +3981,7 @@ } ], "traits": { - "smithy.api#documentation": "Describes the processing of PUT
and DELETE
actions \n for mapping users to their groups. This includes information on the status of \n actions currently processing or yet to be processed, when actions were last updated, \n when actions were received by Amazon Kendra, the latest action that should process \n and apply after other actions, and useful error messages if an action could \n not be processed.
Describes the processing of PUT
and DELETE
actions \n for mapping users to their groups. This includes information on the status of \n actions currently processing or yet to be processed, when actions were last updated, \n when actions were received by Amazon Kendra, the latest action that should process \n and apply after other actions, and useful error messages if an action could \n not be processed.
\n DescribePrincipalMapping
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Describes a block list used for query suggestions for an index.
\nThis is used to check the current settings that are applied to a \n block list.
" + "smithy.api#documentation": "Describes a block list used for query suggestions for an index.
\nThis is used to check the current settings that are applied to a \n block list.
\n\n DescribeQuerySuggestionsBlockList
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Describes the settings of query suggestions for an index.
\nThis is used to check the current settings applied \n to query suggestions.
" + "smithy.api#documentation": "Describes the settings of query suggestions for an index.
\nThis is used to check the current settings applied \n to query suggestions.
\n\n DescribeQuerySuggestionsConfig
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
An AWS Identity and Access Management (IAM) role that gives Amazon Kendra permissions \n to access thesaurus file specified in SourceS3Path
.\n
An IAM role that gives Amazon Kendra permissions \n to access thesaurus file specified in SourceS3Path
.\n
Prevents users or groups in your Amazon Web Services SSO identity source\n from accessing your Amazon Kendra experience. You can create an Amazon Kendra experience \n such as a search application. For more information on creating a search \n application experience, see Building \n a search experience with no code.
" + } + }, + "com.amazonaws.kendra#DisassociateEntitiesFromExperienceRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "EntityList": { + "target": "com.amazonaws.kendra#DisassociateEntityList", + "traits": { + "smithy.api#documentation": "Lists users or groups in your Amazon Web Services SSO identity source.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kendra#DisassociateEntitiesFromExperienceResponse": { + "type": "structure", + "members": { + "FailedEntityList": { + "target": "com.amazonaws.kendra#FailedEntityList", + "traits": { + "smithy.api#documentation": "Lists the users or groups in your Amazon Web Services SSO identity source that \n failed to properly remove access to your Amazon Kendra experience.
" + } + } + } + }, + "com.amazonaws.kendra#DisassociateEntityList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#EntityConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 40 + } + } + }, + "com.amazonaws.kendra#DisassociatePersonasFromEntities": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#DisassociatePersonasFromEntitiesRequest" + }, + "output": { + "target": "com.amazonaws.kendra#DisassociatePersonasFromEntitiesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Removes the specific permissions of users or groups in your Amazon Web Services SSO \n identity source with access to your Amazon Kendra experience. You can create an Amazon Kendra \n experience such as a search application. For more information on creating a \n search application experience, see Building a \n search experience with no code.
" + } + }, + "com.amazonaws.kendra#DisassociatePersonasFromEntitiesRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "EntityIds": { + "target": "com.amazonaws.kendra#EntityIdsList", + "traits": { + "smithy.api#documentation": "The identifiers of users or groups in your Amazon Web Services SSO identity \n source. For example, user IDs could be user emails.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kendra#DisassociatePersonasFromEntitiesResponse": { + "type": "structure", + "members": { + "FailedEntityList": { + "target": "com.amazonaws.kendra#FailedEntityList", + "traits": { + "smithy.api#documentation": "Lists the users or groups in your Amazon Web Services SSO identity source that \n failed to properly remove access to your Amazon Kendra experience.
" + } + } + } + }, "com.amazonaws.kendra#Document": { "type": "structure", "members": { @@ -3875,6 +4621,34 @@ "smithy.api#documentation": "A custom attribute value assigned to a document.
" } }, + "com.amazonaws.kendra#DocumentAttributeCondition": { + "type": "structure", + "members": { + "ConditionDocumentAttributeKey": { + "target": "com.amazonaws.kendra#DocumentAttributeKey", + "traits": { + "smithy.api#documentation": "The identifier of the document attribute used for the condition.
\nFor example, 'Source_URI' could be an identifier for the attribute or metadata \n field that contains source URIs associated with the documents.
\nAmazon Kendra currently does not support _document_body
as an attribute \n key used for the condition.
The condition operator.
\nFor example, you can use 'Contains' to partially match a string.
", + "smithy.api#required": {} + } + }, + "ConditionOnValue": { + "target": "com.amazonaws.kendra#DocumentAttributeValue", + "traits": { + "smithy.api#documentation": "The value used by the operator.
\nFor example, you can specify the value 'financial' for strings in the 'Source_URI'\n field that partially match or contain this value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The condition used for the target document attribute or metadata field when \n ingesting documents into Amazon Kendra. You use this with DocumentAttributeTarget \n to apply the condition.
\nFor example, you can create the 'Department' target field and have it prefill \n department names associated with the documents based on information in the \n 'Source_URI' field. Set the condition that if the 'Source_URI' field contains \n 'financial' in its URI value, then prefill the target field 'Department' with \n the target value 'Finance' for the document.
\nAmazon Kendra cannot create a target field if it has not already been created as an \n index field. After you create your index field, you can create a document metadata \n field using DocumentAttributeTarget
. Amazon Kendra then will map your newly \n created metadata field to your index field.
A string, such as \"department\".
" + "smithy.api#documentation": "The identifier of the target document attribute or metadata field.
\nFor example, 'Department' could be an identifier for the target attribute or \n metadata field that includes the department names associated with the documents.
" } }, - "StringListValue": { - "target": "com.amazonaws.kendra#DocumentAttributeStringListValue", + "TargetDocumentAttributeValueDeletion": { + "target": "com.amazonaws.kendra#Boolean", "traits": { - "smithy.api#documentation": "A list of strings.
" + "smithy.api#documentation": "\n TRUE
to delete the existing target value for your specified target \n attribute key. You cannot create a target value and set this to TRUE
. \n To create a target value (TargetDocumentAttributeValue
), set this to \n FALSE
.
The target value you want to create for the target attribute.
\nFor example, 'Finance' could be the target value for the target attribute key\n 'Department'.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The target document attribute or metadata field you want to alter when ingesting\n documents into Amazon Kendra.
\nFor example, you can delete customer identification numbers associated with the\n documents, stored in the document metadata field called 'Customer_ID'. You set the\n target key as 'Customer_ID' and the deletion flag to TRUE
. This\n removes all customer ID values in the field 'Customer_ID'. This would scrub \n personally identifiable information from each document's metadata.
Amazon Kendra cannot create a target field if it has not already been created as an \n index field. After you create your index field, you can create a document metadata \n field using DocumentAttributeTarget
. Amazon Kendra then will map your newly \n created metadata field to your index field.
You can also use this with DocumentAttributeCondition.
" + } + }, + "com.amazonaws.kendra#DocumentAttributeValue": { + "type": "structure", + "members": { + "StringValue": { + "target": "com.amazonaws.kendra#DocumentAttributeStringValue", + "traits": { + "smithy.api#documentation": "A string, such as \"department\".
" + } + }, + "StringListValue": { + "target": "com.amazonaws.kendra#DocumentAttributeStringListValue", + "traits": { + "smithy.api#documentation": "A list of strings.
" } }, "LongValue": { @@ -4220,6 +5020,158 @@ "smithy.api#pattern": "^[0-9]+[s]$" } }, + "com.amazonaws.kendra#Endpoint": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^\\P{C}*$" + } + }, + "com.amazonaws.kendra#EndpointType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "HOME", + "name": "HOME" + } + ] + } + }, + "com.amazonaws.kendra#EntityConfiguration": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.kendra#EntityId", + "traits": { + "smithy.api#documentation": "The identifier of a user or group in your Amazon Web Services SSO identity \n source. For example, a user ID could be an email.
", + "smithy.api#required": {} + } + }, + "EntityType": { + "target": "com.amazonaws.kendra#EntityType", + "traits": { + "smithy.api#documentation": "Specifies whether you are configuring a User
or a\n Group
.
Provides the configuration information of users or groups in \n your Amazon Web Services SSO identity source to grant access your Amazon Kendra \n experience.
" + } + }, + "com.amazonaws.kendra#EntityDisplayData": { + "type": "structure", + "members": { + "UserName": { + "target": "com.amazonaws.kendra#NameType", + "traits": { + "smithy.api#documentation": "The name of the user.
" + } + }, + "GroupName": { + "target": "com.amazonaws.kendra#NameType", + "traits": { + "smithy.api#documentation": "The name of the group.
" + } + }, + "IdentifiedUserName": { + "target": "com.amazonaws.kendra#NameType", + "traits": { + "smithy.api#documentation": "The user name of the user.
" + } + }, + "FirstName": { + "target": "com.amazonaws.kendra#NameType", + "traits": { + "smithy.api#documentation": "The first name of the user.
" + } + }, + "LastName": { + "target": "com.amazonaws.kendra#NameType", + "traits": { + "smithy.api#documentation": "The last name of the user.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about the user entity.
" + } + }, + "com.amazonaws.kendra#EntityId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 47 + }, + "smithy.api#pattern": "^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$" + } + }, + "com.amazonaws.kendra#EntityIdsList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#EntityId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.kendra#EntityPersonaConfiguration": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.kendra#EntityId", + "traits": { + "smithy.api#documentation": "The identifier of a user or group in your Amazon Web Services SSO identity \n source. For example, a user ID could be an email.
", + "smithy.api#required": {} + } + }, + "Persona": { + "target": "com.amazonaws.kendra#Persona", + "traits": { + "smithy.api#documentation": "The persona that defines the specific permissions of the user or group \n in your Amazon Web Services SSO identity source. The available personas or \n access roles are Owner
and Viewer
. For more \n information on these personas, see Providing \n access to your search page.
Provides the configuration information of users or groups in your \n Amazon Web Services SSO identity source for access to your Amazon Kendra experience. \n Specific permissions are defined for each user or group once they are \n granted access to your Amazon Kendra experience.
" + } + }, + "com.amazonaws.kendra#EntityPersonaConfigurationList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#EntityPersonaConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.kendra#EntityType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "USER", + "name": "USER" + }, + { + "value": "GROUP", + "name": "GROUP" + } + ] + } + }, "com.amazonaws.kendra#ErrorCode": { "type": "string", "traits": { @@ -4281,123 +5233,111 @@ } } }, - "com.amazonaws.kendra#Facet": { + "com.amazonaws.kendra#ExperienceConfiguration": { "type": "structure", "members": { - "DocumentAttributeKey": { - "target": "com.amazonaws.kendra#DocumentAttributeKey", + "ContentSourceConfiguration": { + "target": "com.amazonaws.kendra#ContentSourceConfiguration", "traits": { - "smithy.api#documentation": "The unique key for the document attribute.
" + "smithy.api#documentation": "The identifiers of your data sources and FAQs. Or, you can specify \n that you want to use documents indexed via the BatchPutDocument
\n operation. This is the content you want to use for your Amazon Kendra experience.
The Amazon Web Services SSO field name that contains the identifiers of your users, \n such as their emails.
" } } }, "traits": { - "smithy.api#documentation": "Information about a document attribute
" + "smithy.api#documentation": "Specifies the configuration information for your Amazon Kendra experience. This includes \n the data source IDs and/or FAQ IDs, and user or group information to grant access \n to your Amazon Kendra experience.
" } }, - "com.amazonaws.kendra#FacetList": { + "com.amazonaws.kendra#ExperienceEndpoint": { + "type": "structure", + "members": { + "EndpointType": { + "target": "com.amazonaws.kendra#EndpointType", + "traits": { + "smithy.api#documentation": "The type of endpoint for your Amazon Kendra experience. The type currently available \n is HOME
, which is a unique and fully hosted URL to the home page \n of your Amazon Kendra experience.
The endpoint of your Amazon Kendra experience.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Provides the configuration information of the endpoint for your Amazon Kendra\n experience.
" + } + }, + "com.amazonaws.kendra#ExperienceEndpoints": { "type": "list", "member": { - "target": "com.amazonaws.kendra#Facet" + "target": "com.amazonaws.kendra#ExperienceEndpoint" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2 + } } }, - "com.amazonaws.kendra#FacetResult": { + "com.amazonaws.kendra#ExperienceEntitiesSummary": { "type": "structure", "members": { - "DocumentAttributeKey": { - "target": "com.amazonaws.kendra#DocumentAttributeKey", + "EntityId": { + "target": "com.amazonaws.kendra#EntityId", "traits": { - "smithy.api#documentation": "The key for the facet values. This is the same as the\n DocumentAttributeKey
provided in the query.
The identifier of a user or group in your Amazon Web Services SSO identity source. \n For example, a user ID could be an email.
" } }, - "DocumentAttributeValueType": { - "target": "com.amazonaws.kendra#DocumentAttributeValueType", + "EntityType": { + "target": "com.amazonaws.kendra#EntityType", "traits": { - "smithy.api#documentation": "The data type of the facet value. This is the same as the type\n defined for the index field when it was created.
" + "smithy.api#documentation": "Shows the type as User
or Group
.
An array of key/value pairs, where the key is the value of the\n attribute and the count is the number of documents that share the key\n value.
" + "smithy.api#documentation": "Information about the user entity.
" } } }, "traits": { - "smithy.api#documentation": "The facet values for the documents in the response.
" + "smithy.api#documentation": "Summary information for users or groups in your Amazon Web Services SSO identity\n source with granted access to your Amazon Kendra experience. You can create an Amazon Kendra \n experience such as a search application. For more information on creating a \n search application experience, see Building \n a search experience with no code.
" } }, - "com.amazonaws.kendra#FacetResultList": { + "com.amazonaws.kendra#ExperienceEntitiesSummaryList": { "type": "list", "member": { - "target": "com.amazonaws.kendra#FacetResult" - } - }, - "com.amazonaws.kendra#FailureReason": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2048 - }, - "smithy.api#pattern": "^\\P{C}*$" - } - }, - "com.amazonaws.kendra#FaqFileFormat": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "CSV", - "name": "CSV" - }, - { - "value": "CSV_WITH_HEADER", - "name": "CSV_WITH_HEADER" - }, - { - "value": "JSON", - "name": "JSON" - } - ] + "target": "com.amazonaws.kendra#ExperienceEntitiesSummary" } }, - "com.amazonaws.kendra#FaqId": { + "com.amazonaws.kendra#ExperienceId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, - "max": 100 + "max": 36 }, "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" } }, - "com.amazonaws.kendra#FaqName": { + "com.amazonaws.kendra#ExperienceName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, - "max": 100 + "max": 1000 }, "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" } }, - "com.amazonaws.kendra#FaqStatistics": { - "type": "structure", - "members": { - "IndexedQuestionAnswersCount": { - "target": "com.amazonaws.kendra#IndexedQuestionAnswersCount", - "traits": { - "smithy.api#documentation": "The total number of FAQ questions and answers contained in the\n index.
", - "smithy.api#required": {} - } - } - }, - "traits": { - "smithy.api#documentation": "Provides statistical information about the FAQ questions and\n answers contained in an index.
" - } - }, - "com.amazonaws.kendra#FaqStatus": { + "com.amazonaws.kendra#ExperienceStatus": { "type": "string", "traits": { "smithy.api#enum": [ @@ -4405,10 +5345,6 @@ "value": "CREATING", "name": "CREATING" }, - { - "value": "UPDATING", - "name": "UPDATING" - }, { "value": "ACTIVE", "name": "ACTIVE" @@ -4424,64 +5360,295 @@ ] } }, - "com.amazonaws.kendra#FaqSummary": { + "com.amazonaws.kendra#ExperiencesSummary": { "type": "structure", "members": { - "Id": { - "target": "com.amazonaws.kendra#FaqId", - "traits": { - "smithy.api#documentation": "The unique identifier of the FAQ.
" - } - }, "Name": { - "target": "com.amazonaws.kendra#FaqName", + "target": "com.amazonaws.kendra#ExperienceName", "traits": { - "smithy.api#documentation": "The name that you assigned the FAQ when you created or updated the\n FAQ.
" + "smithy.api#documentation": "The name of your Amazon Kendra experience.
" } }, - "Status": { - "target": "com.amazonaws.kendra#FaqStatus", + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", "traits": { - "smithy.api#documentation": "The current status of the FAQ. When the status is\n ACTIVE
the FAQ is ready for use.
The identifier of your Amazon Kendra experience.
" } }, "CreatedAt": { "target": "com.amazonaws.kendra#Timestamp", "traits": { - "smithy.api#documentation": "The UNIX datetime that the FAQ was added to the index.
" - } - }, - "UpdatedAt": { - "target": "com.amazonaws.kendra#Timestamp", - "traits": { - "smithy.api#documentation": "The UNIX datetime that the FAQ was last updated.
" + "smithy.api#documentation": "The date-time your Amazon Kendra experience was created.
" } }, - "FileFormat": { - "target": "com.amazonaws.kendra#FaqFileFormat", + "Status": { + "target": "com.amazonaws.kendra#ExperienceStatus", "traits": { - "smithy.api#documentation": "The file type used to create the FAQ.
" + "smithy.api#documentation": "The processing status of your Amazon Kendra experience.
" } }, - "LanguageCode": { - "target": "com.amazonaws.kendra#LanguageCode", + "Endpoints": { + "target": "com.amazonaws.kendra#ExperienceEndpoints", "traits": { - "smithy.api#documentation": "The code for a language. This shows a supported language for the FAQ document \n as part of the summary information for FAQs. English is supported by default. \n For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" + "smithy.api#documentation": "The endpoint URLs for your Amazon Kendra experiences. The URLs are unique \n and fully hosted by Amazon Web Services.
" } } }, "traits": { - "smithy.api#documentation": "Provides information about a frequently asked questions and answer\n contained in an index.
" + "smithy.api#documentation": "Summary information for your Amazon Kendra experience. You can create an Amazon Kendra \n experience such as a search application. For more information on creating \n a search application experience, see Building \n a search experience with no code.
" } }, - "com.amazonaws.kendra#FaqSummaryItems": { + "com.amazonaws.kendra#ExperiencesSummaryList": { "type": "list", "member": { - "target": "com.amazonaws.kendra#FaqSummary" + "target": "com.amazonaws.kendra#ExperiencesSummary" } }, - "com.amazonaws.kendra#FeedbackToken": { - "type": "string", + "com.amazonaws.kendra#Facet": { + "type": "structure", + "members": { + "DocumentAttributeKey": { + "target": "com.amazonaws.kendra#DocumentAttributeKey", + "traits": { + "smithy.api#documentation": "The unique key for the document attribute.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about a document attribute
" + } + }, + "com.amazonaws.kendra#FacetList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#Facet" + } + }, + "com.amazonaws.kendra#FacetResult": { + "type": "structure", + "members": { + "DocumentAttributeKey": { + "target": "com.amazonaws.kendra#DocumentAttributeKey", + "traits": { + "smithy.api#documentation": "The key for the facet values. This is the same as the\n DocumentAttributeKey
provided in the query.
The data type of the facet value. This is the same as the type\n defined for the index field when it was created.
" + } + }, + "DocumentAttributeValueCountPairs": { + "target": "com.amazonaws.kendra#DocumentAttributeValueCountPairList", + "traits": { + "smithy.api#documentation": "An array of key/value pairs, where the key is the value of the\n attribute and the count is the number of documents that share the key\n value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The facet values for the documents in the response.
" + } + }, + "com.amazonaws.kendra#FacetResultList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#FacetResult" + } + }, + "com.amazonaws.kendra#FailedEntity": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.kendra#EntityId", + "traits": { + "smithy.api#documentation": "The identifier of the user or group in your Amazon Web Services SSO identity \n source. For example, a user ID could be an email.
" + } + }, + "ErrorMessage": { + "target": "com.amazonaws.kendra#ErrorMessage", + "traits": { + "smithy.api#documentation": "The reason the user or group in your Amazon Web Services SSO identity source \n failed to properly configure with your Amazon Kendra experience.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Information on the users or groups in your Amazon Web Services SSO identity \n source that failed to properly configure with your Amazon Kendra experience.
" + } + }, + "com.amazonaws.kendra#FailedEntityList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#FailedEntity" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.kendra#FailureReason": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^\\P{C}*$" + } + }, + "com.amazonaws.kendra#FaqFileFormat": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CSV", + "name": "CSV" + }, + { + "value": "CSV_WITH_HEADER", + "name": "CSV_WITH_HEADER" + }, + { + "value": "JSON", + "name": "JSON" + } + ] + } + }, + "com.amazonaws.kendra#FaqId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" + } + }, + "com.amazonaws.kendra#FaqIdsList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#FaqId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.kendra#FaqName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" + } + }, + "com.amazonaws.kendra#FaqStatistics": { + "type": "structure", + "members": { + "IndexedQuestionAnswersCount": { + "target": "com.amazonaws.kendra#IndexedQuestionAnswersCount", + "traits": { + "smithy.api#documentation": "The total number of FAQ questions and answers contained in the\n index.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Provides statistical information about the FAQ questions and\n answers contained in an index.
" + } + }, + "com.amazonaws.kendra#FaqStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "CREATING", + "name": "CREATING" + }, + { + "value": "UPDATING", + "name": "UPDATING" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "DELETING", + "name": "DELETING" + }, + { + "value": "FAILED", + "name": "FAILED" + } + ] + } + }, + "com.amazonaws.kendra#FaqSummary": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#FaqId", + "traits": { + "smithy.api#documentation": "The unique identifier of the FAQ.
" + } + }, + "Name": { + "target": "com.amazonaws.kendra#FaqName", + "traits": { + "smithy.api#documentation": "The name that you assigned the FAQ when you created or updated the\n FAQ.
" + } + }, + "Status": { + "target": "com.amazonaws.kendra#FaqStatus", + "traits": { + "smithy.api#documentation": "The current status of the FAQ. When the status is\n ACTIVE
the FAQ is ready for use.
The UNIX datetime that the FAQ was added to the index.
" + } + }, + "UpdatedAt": { + "target": "com.amazonaws.kendra#Timestamp", + "traits": { + "smithy.api#documentation": "The UNIX datetime that the FAQ was last updated.
" + } + }, + "FileFormat": { + "target": "com.amazonaws.kendra#FaqFileFormat", + "traits": { + "smithy.api#documentation": "The file type used to create the FAQ.
" + } + }, + "LanguageCode": { + "target": "com.amazonaws.kendra#LanguageCode", + "traits": { + "smithy.api#documentation": "The code for a language. This shows a supported language for the FAQ document \n as part of the summary information for FAQs. English is supported by default. \n For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Provides information about a frequently asked questions and answer\n contained in an index.
" + } + }, + "com.amazonaws.kendra#FaqSummaryItems": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#FaqSummary" + } + }, + "com.amazonaws.kendra#FeedbackToken": { + "type": "string", "traits": { "smithy.api#length": { "min": 1, @@ -4522,7 +5689,7 @@ } ], "traits": { - "smithy.api#documentation": "Fetches the queries that are suggested to your users.
" + "smithy.api#documentation": "Fetches the queries that are suggested to your users.
\n\n GetQuerySuggestions
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Retrieves search metrics data. The data provides a snapshot of how\n your users interact with your search application and how effective\n the application is.
" + } + }, + "com.amazonaws.kendra#GetSnapshotsRequest": { + "type": "structure", + "members": { + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index to get search metrics data.
", + "smithy.api#required": {} + } + }, + "Interval": { + "target": "com.amazonaws.kendra#Interval", + "traits": { + "smithy.api#documentation": "The time interval or time window to get search metrics data. \n The time interval uses the time zone of your index. \n You can view data in the following time windows:
\n\n THIS_WEEK
: The current week, starting on \n the Sunday and ending on the day before the current date.
\n ONE_WEEK_AGO
: The previous week, starting on \n the Sunday and ending on the following Saturday.
\n TWO_WEEKS_AGO
: The week before the previous week, \n starting on the Sunday and ending on the following Saturday.
\n THIS_MONTH
: The current month, starting on the \n first day of the month and ending on the day before the current date.
\n ONE_MONTH_AGO
: The previous month, starting on the \n first day of the month and ending on the last day of the month.
\n TWO_MONTHS_AGO
: The month before the previous month, \n starting on the first day of the month and ending on last day of the month.
The metric you want to retrieve. You\n can specify only one metric per call.
\nFor more information about the metrics you can view, see \n Gaining \n insights with search analytics.
", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the previous response was incomplete (because there\n is more data to retrieve), Amazon Kendra returns a pagination token in \n the response. You can use this pagination token to\n retrieve the next set of search metrics data.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.kendra#Integer", + "traits": { + "smithy.api#documentation": "The maximum number of returned data for the metric.
" + } + } + } + }, + "com.amazonaws.kendra#GetSnapshotsResponse": { + "type": "structure", + "members": { + "SnapShotTimeFilter": { + "target": "com.amazonaws.kendra#TimeRange", + "traits": { + "smithy.api#documentation": "The date-time for the beginning and end of the time window \n for the search metrics data.
" + } + }, + "SnapshotsDataHeader": { + "target": "com.amazonaws.kendra#SnapshotsDataHeaderFields", + "traits": { + "smithy.api#documentation": "The column headers for the search metrics data.
" + } + }, + "SnapshotsData": { + "target": "com.amazonaws.kendra#SnapshotsDataRecords", + "traits": { + "smithy.api#documentation": "The search metrics data. The data returned depends on the \n metric type you requested.
" + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this\n token, which you can use in a later request to retrieve the \n next set of search metrics data.
" + } + } + } + }, "com.amazonaws.kendra#GoogleDriveConfiguration": { "type": "structure", "members": { @@ -4829,6 +6089,34 @@ ] } }, + "com.amazonaws.kendra#HookConfiguration": { + "type": "structure", + "members": { + "InvocationCondition": { + "target": "com.amazonaws.kendra#DocumentAttributeCondition", + "traits": { + "smithy.api#documentation": "The condition used for when a Lambda function should be invoked.
\nFor example, you can specify a condition that if there are empty date-time\n values, then Amazon Kendra should invoke a function that inserts the current date-time.
" + } + }, + "LambdaArn": { + "target": "com.amazonaws.kendra#LambdaArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a role with permission to run a Lambda function\n during ingestion. For more information, see IAM roles for Amazon Kendra.
", + "smithy.api#required": {} + } + }, + "S3Bucket": { + "target": "com.amazonaws.kendra#S3BucketName", + "traits": { + "smithy.api#documentation": "Stores the original, raw documents or the structured, parsed\n documents before and after altering them. For more information, \n see Data \n contracts for Lambda functions.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Provides the configuration information for invoking a Lambda function in \n Lambda to alter document metadata and content when ingesting \n documents into Amazon Kendra. You can configure your Lambda function using \n PreExtractionHookConfiguration \n if you want to apply advanced alterations on the original or raw documents. \n If you want to apply advanced alterations on the Amazon Kendra structured documents, \n you must configure your Lambda function using PostExtractionHookConfiguration. \n You can only invoke one Lambda function. However, this function can invoke other \n functions it requires.
\nFor more information, see Customizing document metadata\n during the ingestion process.
" + } + }, "com.amazonaws.kendra#Host": { "type": "string", "traits": { @@ -4839,6 +6127,16 @@ "smithy.api#pattern": "^([^\\s]*)$" } }, + "com.amazonaws.kendra#IdentityAttributeName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1000 + }, + "smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$" + } + }, "com.amazonaws.kendra#Importance": { "type": "integer", "traits": { @@ -5024,13 +6322,95 @@ } } }, + "com.amazonaws.kendra#InlineCustomDocumentEnrichmentConfiguration": { + "type": "structure", + "members": { + "Condition": { + "target": "com.amazonaws.kendra#DocumentAttributeCondition", + "traits": { + "smithy.api#documentation": "Configuration of the condition used for the target document attribute or metadata\n field when ingesting documents into Amazon Kendra.
" + } + }, + "Target": { + "target": "com.amazonaws.kendra#DocumentAttributeTarget", + "traits": { + "smithy.api#documentation": "Configuration of the target document attribute or metadata field when ingesting\n documents into Amazon Kendra. You can also include a value.
" + } + }, + "DocumentContentDeletion": { + "target": "com.amazonaws.kendra#Boolean", + "traits": { + "smithy.api#documentation": "\n TRUE
to delete content if the condition used for the target \n attribute is met.
Provides the configuration information for applying basic logic to alter document\n metadata and content when ingesting documents into Amazon Kendra. To apply advanced \n logic, to go beyond what you can do with basic logic, see HookConfiguration.
\nFor more information, see Customizing document metadata\n during the ingestion process.
" + } + }, + "com.amazonaws.kendra#InlineCustomDocumentEnrichmentConfigurationList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#InlineCustomDocumentEnrichmentConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 100 + } + } + }, "com.amazonaws.kendra#Integer": { "type": "integer", "traits": { "smithy.api#box": {} } }, - "com.amazonaws.kendra#InternalServerException": { + "com.amazonaws.kendra#InternalServerException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.kendra#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.kendra#Interval": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "THIS_MONTH", + "name": "THIS_MONTH" + }, + { + "value": "THIS_WEEK", + "name": "THIS_WEEK" + }, + { + "value": "ONE_WEEK_AGO", + "name": "ONE_WEEK_AGO" + }, + { + "value": "TWO_WEEKS_AGO", + "name": "TWO_WEEKS_AGO" + }, + { + "value": "ONE_MONTH_AGO", + "name": "ONE_MONTH_AGO" + }, + { + "value": "TWO_MONTHS_AGO", + "name": "TWO_MONTHS_AGO" + } + ] + } + }, + "com.amazonaws.kendra#InvalidRequestException": { "type": "structure", "members": { "Message": { @@ -5038,9 +6418,9 @@ } }, "traits": { - "smithy.api#documentation": "", - "smithy.api#error": "server", - "smithy.api#httpError": 500 + "smithy.api#documentation": "The input to the request is not valid.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 } }, "com.amazonaws.kendra#Issuer": { @@ -5138,45 +6518,306 @@ "value": "SECRET_MANAGER", "name": "SECRET_MANAGER" } - ] - } - }, - "com.amazonaws.kendra#KmsKeyId": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 2048 + ] + } + }, + "com.amazonaws.kendra#KmsKeyId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.kendra#LambdaArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^/arn:aws[a-zA-Z-]*:lambda:[a-z]+-[a-z]+-[0-9]:[0-9]{12}:function:[a-zA-Z0-9-_]+(\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?(:[a-zA-Z0-9-_]+)?/$" + } + }, + "com.amazonaws.kendra#LanguageCode": { + "type": "string", + "traits": { + "smithy.api#documentation": "The code for a language. The default language is English. \n For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
", + "smithy.api#length": { + "min": 2, + "max": 10 + }, + "smithy.api#pattern": "^[a-zA-Z-]*$" + } + }, + "com.amazonaws.kendra#ListDataSourceSyncJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#ListDataSourceSyncJobsRequest" + }, + "output": { + "target": "com.amazonaws.kendra#ListDataSourceSyncJobsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#ConflictException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets statistics about synchronizing Amazon Kendra with a data\n source.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.kendra#ListDataSourceSyncJobsRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#DataSourceId", + "traits": { + "smithy.api#documentation": "The identifier of the data source.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index that contains the data source.
", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the previous response was incomplete (because there is more data to retrieve), \n Amazon Kendra returns a pagination token in the response. You can use this pagination token \n to retrieve the next set of jobs.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.kendra#MaxResultsIntegerForListDataSourceSyncJobsRequest", + "traits": { + "smithy.api#documentation": "The maximum number of synchronization jobs to return in the response.\n If there are fewer results in the list, this response contains only the\n actual results.
" + } + }, + "StartTimeFilter": { + "target": "com.amazonaws.kendra#TimeRange", + "traits": { + "smithy.api#documentation": "When specified, the synchronization jobs returned in the list are\n limited to jobs between the specified dates.
" + } + }, + "StatusFilter": { + "target": "com.amazonaws.kendra#DataSourceSyncJobStatus", + "traits": { + "smithy.api#documentation": "When specified, only returns synchronization jobs with the\n Status
field equal to the specified status.
A history of synchronization jobs for the data source.
" + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token that you \n can use in the subsequent request to retrieve the next set of jobs.
" + } + } + } + }, + "com.amazonaws.kendra#ListDataSources": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#ListDataSourcesRequest" + }, + "output": { + "target": "com.amazonaws.kendra#ListDataSourcesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists the data sources that you have created.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.kendra#ListDataSourcesRequest": { + "type": "structure", + "members": { + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index that contains the data source.
", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the previous response was incomplete (because there is more data to\n retrieve), Amazon Kendra returns a pagination token in the response. You\n can use this pagination token to retrieve the next set of data sources\n (DataSourceSummaryItems
).
The maximum number of data sources to return.
" + } + } + } + }, + "com.amazonaws.kendra#ListDataSourcesResponse": { + "type": "structure", + "members": { + "SummaryItems": { + "target": "com.amazonaws.kendra#DataSourceSummaryList", + "traits": { + "smithy.api#documentation": "An array of summary information for one or more data sources.
" + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token that you\n can use in the subsequent request to retrieve the next set of data\n sources.
" + } + } + } + }, + "com.amazonaws.kendra#ListEntityPersonas": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#ListEntityPersonasRequest" + }, + "output": { + "target": "com.amazonaws.kendra#ListEntityPersonasResponse" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists specific permissions of users and groups with access to your \n Amazon Kendra experience.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.kendra#ListEntityPersonasRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the previous response was incomplete (because there is more data to retrieve),\n Amazon Kendra returns a pagination token in the response. You can use this pagination \n token to retrieve the next set of users or groups.
" + } }, - "smithy.api#sensitive": {} + "MaxResults": { + "target": "com.amazonaws.kendra#MaxResultsIntegerForListEntityPersonasRequest", + "traits": { + "smithy.api#documentation": "The maximum number of returned users or groups.
" + } + } } }, - "com.amazonaws.kendra#LanguageCode": { - "type": "string", - "traits": { - "smithy.api#documentation": "The code for a language. The default language is English. \n For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
", - "smithy.api#length": { - "min": 2, - "max": 10 + "com.amazonaws.kendra#ListEntityPersonasResponse": { + "type": "structure", + "members": { + "SummaryItems": { + "target": "com.amazonaws.kendra#PersonasSummaryList", + "traits": { + "smithy.api#documentation": "An array of summary information for one or more users or groups.
" + } }, - "smithy.api#pattern": "^[a-zA-Z-]*$" + "NextToken": { + "target": "com.amazonaws.kendra#NextToken", + "traits": { + "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token, which you can use in \n a later request to retrieve the next set of users or groups.
" + } + } } }, - "com.amazonaws.kendra#ListDataSourceSyncJobs": { + "com.amazonaws.kendra#ListExperienceEntities": { "type": "operation", "input": { - "target": "com.amazonaws.kendra#ListDataSourceSyncJobsRequest" + "target": "com.amazonaws.kendra#ListExperienceEntitiesRequest" }, "output": { - "target": "com.amazonaws.kendra#ListDataSourceSyncJobsResponse" + "target": "com.amazonaws.kendra#ListExperienceEntitiesResponse" }, "errors": [ { "target": "com.amazonaws.kendra#AccessDeniedException" }, - { - "target": "com.amazonaws.kendra#ConflictException" - }, { "target": "com.amazonaws.kendra#InternalServerException" }, @@ -5191,81 +6832,62 @@ } ], "traits": { - "smithy.api#documentation": "Gets statistics about synchronizing Amazon Kendra with a data\n source.
", + "smithy.api#documentation": "Lists users or groups in your Amazon Web Services SSO identity source that are \n granted access to your Amazon Kendra experience. You can create an Amazon Kendra experience \n such as a search application. For more information on creating a search \n application experience, see Building \n a search experience with no code.
", "smithy.api#paginated": { "inputToken": "NextToken", - "outputToken": "NextToken", - "pageSize": "MaxResults" + "outputToken": "NextToken" } } }, - "com.amazonaws.kendra#ListDataSourceSyncJobsRequest": { + "com.amazonaws.kendra#ListExperienceEntitiesRequest": { "type": "structure", "members": { "Id": { - "target": "com.amazonaws.kendra#DataSourceId", + "target": "com.amazonaws.kendra#ExperienceId", "traits": { - "smithy.api#documentation": "The identifier of the data source.
", + "smithy.api#documentation": "The identifier of your Amazon Kendra experience.
", "smithy.api#required": {} } }, "IndexId": { "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The identifier of the index that contains the data source.
", + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.kendra#NextToken", "traits": { - "smithy.api#documentation": "If the previous response was incomplete (because there is more data to retrieve), \n Amazon Kendra returns a pagination token in the response. You can use this pagination token \n to retrieve the next set of jobs.
" - } - }, - "MaxResults": { - "target": "com.amazonaws.kendra#MaxResultsIntegerForListDataSourceSyncJobsRequest", - "traits": { - "smithy.api#documentation": "The maximum number of synchronization jobs to return in the response.\n If there are fewer results in the list, this response contains only the\n actual results.
" - } - }, - "StartTimeFilter": { - "target": "com.amazonaws.kendra#TimeRange", - "traits": { - "smithy.api#documentation": "When specified, the synchronization jobs returned in the list are\n limited to jobs between the specified dates.
" - } - }, - "StatusFilter": { - "target": "com.amazonaws.kendra#DataSourceSyncJobStatus", - "traits": { - "smithy.api#documentation": "When specified, only returns synchronization jobs with the\n Status
field equal to the specified status.
If the previous response was incomplete (because there is more data to retrieve),\n Amazon Kendra returns a pagination token in the response. You can use this pagination \n token to retrieve the next set of users or groups.
" } } } }, - "com.amazonaws.kendra#ListDataSourceSyncJobsResponse": { + "com.amazonaws.kendra#ListExperienceEntitiesResponse": { "type": "structure", "members": { - "History": { - "target": "com.amazonaws.kendra#DataSourceSyncJobHistoryList", + "SummaryItems": { + "target": "com.amazonaws.kendra#ExperienceEntitiesSummaryList", "traits": { - "smithy.api#documentation": "A history of synchronization jobs for the data source.
" + "smithy.api#documentation": "An array of summary information for one or more users or groups.
" } }, "NextToken": { "target": "com.amazonaws.kendra#NextToken", "traits": { - "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token that you \n can use in the subsequent request to retrieve the next set of jobs.
" + "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token, which you can use in \n a later request to retrieve the next set of users or groups.
" } } } }, - "com.amazonaws.kendra#ListDataSources": { + "com.amazonaws.kendra#ListExperiences": { "type": "operation", "input": { - "target": "com.amazonaws.kendra#ListDataSourcesRequest" + "target": "com.amazonaws.kendra#ListExperiencesRequest" }, "output": { - "target": "com.amazonaws.kendra#ListDataSourcesResponse" + "target": "com.amazonaws.kendra#ListExperiencesResponse" }, "errors": [ { @@ -5285,7 +6907,7 @@ } ], "traits": { - "smithy.api#documentation": "Lists the data sources that you have created.
", + "smithy.api#documentation": "Lists one or more Amazon Kendra experiences. You can create an Amazon Kendra experience such \n as a search application. For more information on creating a search application \n experience, see Building a \n search experience with no code.
", "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -5293,43 +6915,43 @@ } } }, - "com.amazonaws.kendra#ListDataSourcesRequest": { + "com.amazonaws.kendra#ListExperiencesRequest": { "type": "structure", "members": { "IndexId": { "target": "com.amazonaws.kendra#IndexId", "traits": { - "smithy.api#documentation": "The identifier of the index that contains the data source.
", + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience.
", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.kendra#NextToken", "traits": { - "smithy.api#documentation": "If the previous response was incomplete (because there is more data to\n retrieve), Amazon Kendra returns a pagination token in the response. You\n can use this pagination token to retrieve the next set of data sources\n (DataSourceSummaryItems
).
If the previous response was incomplete (because there is more data\n to retrieve), Amazon Kendra returns a pagination token in the response. You can use this\n pagination token to retrieve the next set of Amazon Kendra experiences.
" } }, "MaxResults": { - "target": "com.amazonaws.kendra#MaxResultsIntegerForListDataSourcesRequest", + "target": "com.amazonaws.kendra#MaxResultsIntegerForListExperiencesRequest", "traits": { - "smithy.api#documentation": "The maximum number of data sources to return.
" + "smithy.api#documentation": "The maximum number of returned Amazon Kendra experiences.
" } } } }, - "com.amazonaws.kendra#ListDataSourcesResponse": { + "com.amazonaws.kendra#ListExperiencesResponse": { "type": "structure", "members": { "SummaryItems": { - "target": "com.amazonaws.kendra#DataSourceSummaryList", + "target": "com.amazonaws.kendra#ExperiencesSummaryList", "traits": { - "smithy.api#documentation": "An array of summary information for one or more data sources.
" + "smithy.api#documentation": "An array of summary information for one or more Amazon Kendra experiences.
" } }, "NextToken": { "target": "com.amazonaws.kendra#NextToken", "traits": { - "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token that you\n can use in the subsequent request to retrieve the next set of data\n sources.
" + "smithy.api#documentation": "If the response is truncated, Amazon Kendra returns this token, which you can use \n in a later request to retrieve the next set of Amazon Kendra experiences.
" } } } @@ -5433,7 +7055,7 @@ } ], "traits": { - "smithy.api#documentation": "Provides a list of groups that are mapped to users before a \n given ordering or timestamp identifier.
" + "smithy.api#documentation": "Provides a list of groups that are mapped to users before a \n given ordering or timestamp identifier.
\n\n ListGroupsOlderThanOrderingId
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Lists the block lists used for query suggestions for an index.
\nFor information on the current quota limits for block lists, see \n Quotas \n for Amazon Kendra.
" + "smithy.api#documentation": "Lists the block lists used for query suggestions for an index.
\nFor information on the current quota limits for block lists, see \n Quotas \n for Amazon Kendra.
\n\n ListQuerySuggestionsBlockLists
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
The identifier of a user or group in your Amazon Web Services SSO identity source. \n For example, a user ID could be an email.
" + } + }, + "Persona": { + "target": "com.amazonaws.kendra#Persona", + "traits": { + "smithy.api#documentation": "The persona that defines the specific permissions of the user or group in \n your Amazon Web Services SSO identity source. The available personas or access \n roles are Owner
and Viewer
. For more information on \n these personas, see Providing \n access to your search page.
The date-time the summary information was created.
" + } + }, + "UpdatedAt": { + "target": "com.amazonaws.kendra#Timestamp", + "traits": { + "smithy.api#documentation": "The date-time the summary information was last updated.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Summary information for users or groups in your Amazon Web Services SSO identity \n source. This applies to users and groups with specific permissions that define \n their level of access to your Amazon Kendra experience. You can create an Amazon Kendra experience \n such as a search application. For more information on creating a search application \n experience, see Building a \n search experience with no code.
" + } + }, + "com.amazonaws.kendra#PersonasSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#PersonasSummary" + } + }, "com.amazonaws.kendra#Port": { "type": "integer", "traits": { @@ -6238,7 +7975,7 @@ "Credentials": { "target": "com.amazonaws.kendra#SecretArn", "traits": { - "smithy.api#documentation": "Your secret ARN, which you can create in AWS Secrets Manager\n
\nThe credentials are optional. You use a secret if web proxy credentials \n are required to connect to a website host. Amazon Kendra currently support basic \n authentication to connect to a web proxy server. The secret stores your \n credentials.
" + "smithy.api#documentation": "Your secret ARN, which you can create in Secrets Manager\n
\nThe credentials are optional. You use a secret if web proxy credentials \n are required to connect to a website host. Amazon Kendra currently support basic \n authentication to connect to a web proxy server. The secret stores your \n credentials.
" } } }, @@ -6275,7 +8012,7 @@ } ], "traits": { - "smithy.api#documentation": "Maps users to their groups so that you only need to provide \n the user ID when you issue the query.
\nYou can also map sub groups to groups. \n For example, the group \"Company Intellectual Property Teams\" includes \n sub groups \"Research\" and \"Engineering\". These sub groups include their\n own list of users or people who work in these teams. Only users who work \n in research and engineering, and therefore belong in the intellectual \n property group, can see top-secret company documents in their search \n results.
\nYou map users to their groups when you want to filter search results \n for different users based on their group’s access to documents. For more \n information on filtering search results for different users, see \n Filtering \n on user context.
\nIf more than five PUT
actions for a group are currently \n processing, a validation exception is thrown.
Maps users to their groups so that you only need to provide \n the user ID when you issue the query.
\nYou can also map sub groups to groups. \n For example, the group \"Company Intellectual Property Teams\" includes \n sub groups \"Research\" and \"Engineering\". These sub groups include their\n own list of users or people who work in these teams. Only users who work \n in research and engineering, and therefore belong in the intellectual \n property group, can see top-secret company documents in their search \n results.
\nYou map users to their groups when you want to filter search results \n for different users based on their group’s access to documents. For more \n information on filtering search results for different users, see \n Filtering \n on user context.
\nIf more than five PUT
actions for a group are currently \n processing, a validation exception is thrown.
\n PutPrincipalMapping
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Provides the configuration information of the seed or starting point URLs to crawl.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use the Amazon Kendra web \n crawler to index your own webpages, or webpages that you have authorization \n to index.\n
" + "smithy.api#documentation": "Provides the configuration information of the seed or starting point URLs to crawl.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use Amazon Kendra Web \n Crawler to index your own webpages, or webpages that you have authorization \n to index.\n
" } }, "com.amazonaws.kendra#SeedUrlList": { @@ -7608,7 +9345,7 @@ "AuthenticationType": { "target": "com.amazonaws.kendra#ServiceNowAuthenticationType", "traits": { - "smithy.api#documentation": "Determines the type of authentication used to connect to the\n ServiceNow instance. If you choose HTTP_BASIC
, Amazon Kendra is\n authenticated using the user name and password provided in the AWS\n Secrets Manager secret in the SecretArn
field. When you\n choose OAUTH2
, Amazon Kendra is authenticated using the OAuth\n token and secret provided in the Secrets Manager secret, and the\n user name and password are used to determine which information Amazon Kendra\n has access to.
When you use OAUTH2
authentication, you must generate\n a token and a client secret using the ServiceNow console. For more\n information, see Using a\n ServiceNow data source.
Determines the type of authentication used to connect to the\n ServiceNow instance. If you choose HTTP_BASIC
, Amazon Kendra is\n authenticated using the user name and password provided in the \n Secrets Manager secret in the SecretArn
field. When you\n choose OAUTH2
, Amazon Kendra is authenticated using the OAuth\n token and secret provided in the Secrets Manager secret, and the\n user name and password are used to determine which information Amazon Kendra\n has access to.
When you use OAUTH2
authentication, you must generate\n a token and a client secret using the ServiceNow console. For more\n information, see Using a\n ServiceNow data source.
The Amazon Resource Name (ARN) of credentials stored in \n Secrets Manager. The credentials should be a user/password pair. \n If you use SharePoint Server, you also need to provide the sever \n domain name as part of the credentials. For\n more information, see Using a\n Microsoft SharePoint Data Source. For more information\n about Secrets Manager, see What Is \n Secrets Manager in the Secrets Manager\n user guide.
", + "smithy.api#documentation": "The Amazon Resource Name (ARN) of credentials stored in \n Secrets Manager. The credentials should be a user/password pair. \n If you use SharePoint Server, you also need to provide the sever \n domain name as part of the credentials. For\n more information, see Using a\n Microsoft SharePoint Data Source. For more information\n about Secrets Manager see What Is \n Secrets Manager in the Secrets Manager\n user guide.
", "smithy.api#required": {} } }, @@ -7885,7 +9622,7 @@ } }, "traits": { - "smithy.api#documentation": "Provides the configuration information of the sitemap URLs to crawl.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use the Amazon Kendra web \n crawler to index your own webpages, or webpages that you have authorization \n to index.\n
" + "smithy.api#documentation": "Provides the configuration information of the sitemap URLs to crawl.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use Amazon Kendra Web \n Crawler to index your own webpages, or webpages that you have authorization \n to index.\n
" } }, "com.amazonaws.kendra#SiteMapsList": { @@ -7900,6 +9637,24 @@ } } }, + "com.amazonaws.kendra#SnapshotsDataHeaderFields": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#String" + } + }, + "com.amazonaws.kendra#SnapshotsDataRecord": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#String" + } + }, + "com.amazonaws.kendra#SnapshotsDataRecords": { + "type": "list", + "member": { + "target": "com.amazonaws.kendra#SnapshotsDataRecord" + } + }, "com.amazonaws.kendra#SortOrder": { "type": "string", "traits": { @@ -8137,7 +9892,7 @@ } ], "traits": { - "smithy.api#documentation": "Enables you to provide feedback to Amazon Kendra to improve the\n performance of your index.
" + "smithy.api#documentation": "Enables you to provide feedback to Amazon Kendra to improve the\n performance of your index.
\n\n SubmitFeedback
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Configuration information for an Amazon Kendra data source.
" + } }, "Description": { "target": "com.amazonaws.kendra#Description", @@ -8737,6 +10495,84 @@ "traits": { "smithy.api#documentation": "The code for a language. This allows you to support a language for all \n documents when updating the data source. English is supported \n by default. For more information on supported languages, including their codes, \n see Adding \n documents in languages other than English.
" } + }, + "CustomDocumentEnrichmentConfiguration": { + "target": "com.amazonaws.kendra#CustomDocumentEnrichmentConfiguration", + "traits": { + "smithy.api#documentation": "Configuration information for altering document metadata and content during the\n document ingestion process when you update a data source.
\nFor more information on how to create, modify and delete document metadata, or make\n other content alterations when you ingest documents into Amazon Kendra, see \n Customizing \n document metadata during the ingestion process.
" + } + } + } + }, + "com.amazonaws.kendra#UpdateExperience": { + "type": "operation", + "input": { + "target": "com.amazonaws.kendra#UpdateExperienceRequest" + }, + "errors": [ + { + "target": "com.amazonaws.kendra#AccessDeniedException" + }, + { + "target": "com.amazonaws.kendra#ConflictException" + }, + { + "target": "com.amazonaws.kendra#InternalServerException" + }, + { + "target": "com.amazonaws.kendra#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kendra#ThrottlingException" + }, + { + "target": "com.amazonaws.kendra#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates your Amazon Kendra experience such as a search application. For more information on\n creating a search application experience, see Building a \n search experience with no code.
" + } + }, + "com.amazonaws.kendra#UpdateExperienceRequest": { + "type": "structure", + "members": { + "Id": { + "target": "com.amazonaws.kendra#ExperienceId", + "traits": { + "smithy.api#documentation": "The identifier of your Amazon Kendra experience you want to update.
", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.kendra#ExperienceName", + "traits": { + "smithy.api#documentation": "The name of your Amazon Kendra experience you want to update.
" + } + }, + "IndexId": { + "target": "com.amazonaws.kendra#IndexId", + "traits": { + "smithy.api#documentation": "The identifier of the index for your Amazon Kendra experience you want to update.
", + "smithy.api#required": {} + } + }, + "RoleArn": { + "target": "com.amazonaws.kendra#RoleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a role with permission to access Query
\n operations, QuerySuggestions
operations, SubmitFeedback
\n operations, and Amazon Web Services SSO that stores your user and group information. \n For more information, see IAM roles for Amazon Kendra.
Provides the user configuration information. This includes the Amazon Web Services SSO\n field name that contains the identifiers of your users, such as their emails.
" + } + }, + "Description": { + "target": "com.amazonaws.kendra#Description", + "traits": { + "smithy.api#documentation": "The description of your Amazon Kendra experience you want to update.
" + } } } }, @@ -8827,7 +10663,7 @@ "UserGroupResolutionConfiguration": { "target": "com.amazonaws.kendra#UserGroupResolutionConfiguration", "traits": { - "smithy.api#documentation": "Enables fetching access levels of groups and users from an AWS Single Sign-On \n identity source. To configure this, see \n UserGroupResolutionConfiguration.
" + "smithy.api#documentation": "Enables fetching access levels of groups and users from an Amazon Web Services Single Sign On \n identity source. To configure this, see \n UserGroupResolutionConfiguration.
" } } } @@ -8858,7 +10694,7 @@ } ], "traits": { - "smithy.api#documentation": "Updates a block list used for query suggestions for an index.
\nUpdates to a block list might not take effect right away. Amazon Kendra \n needs to refresh the entire suggestions list to apply any updates to the \n block list. Other changes not related to the block list apply immediately.
\nIf a block list is updating, then you need to wait for the first update to \n finish before submitting another update.
\nAmazon Kendra supports partial updates, so you only need to provide the fields \n you want to update.
" + "smithy.api#documentation": "Updates a block list used for query suggestions for an index.
\nUpdates to a block list might not take effect right away. Amazon Kendra \n needs to refresh the entire suggestions list to apply any updates to the \n block list. Other changes not related to the block list apply immediately.
\nIf a block list is updating, then you need to wait for the first update to \n finish before submitting another update.
\nAmazon Kendra supports partial updates, so you only need to provide the fields \n you want to update.
\n\n UpdateQuerySuggestionsBlockList
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Updates the settings of query suggestions for an index.
\nAmazon Kendra supports partial updates, so you only need to provide \n the fields you want to update.
\nIf an update is currently processing (i.e. 'happening'), you \n need to wait for the update to finish before making another update.
\nUpdates to query suggestions settings might not take effect right away. \n The time for your updated settings to take effect depends on the updates \n made and the number of search queries in your index.
\nYou can still enable/disable query suggestions at any time.
" + "smithy.api#documentation": "Updates the settings of query suggestions for an index.
\nAmazon Kendra supports partial updates, so you only need to provide \n the fields you want to update.
\nIf an update is currently processing (i.e. 'happening'), you \n need to wait for the update to finish before making another update.
\nUpdates to query suggestions settings might not take effect right away. \n The time for your updated settings to take effect depends on the updates \n made and the number of search queries in your index.
\nYou can still enable/disable query suggestions at any time.
\n\n UpdateQuerySuggestionsConfig
is currently not supported in the \n Amazon Web Services GovCloud (US-West) region.
Provides the configuration information of the URLs to crawl.
\nYou can only crawl websites that use the secure communication protocol, \n Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when \n crawling a website, it could be that the website is blocked from crawling.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use the Amazon Kendra web \n crawler to index your own webpages, or webpages that you have authorization to \n index.\n
" + "smithy.api#documentation": "Provides the configuration information of the URLs to crawl.
\nYou can only crawl websites that use the secure communication protocol, \n Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when \n crawling a website, it could be that the website is blocked from crawling.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use Amazon Kendra Web \n Crawler to index your own webpages, or webpages that you have authorization to \n index.\n
" } }, "com.amazonaws.kendra#UserAccount": { @@ -9137,13 +10973,13 @@ "UserGroupResolutionMode": { "target": "com.amazonaws.kendra#UserGroupResolutionMode", "traits": { - "smithy.api#documentation": "The identity store provider (mode) you want to use to fetch access levels of groups and\n users. AWS Single Sign-On is currently the only available mode. Your users and groups\n must\n exist in an AWS SSO identity source in order to use this mode.
", + "smithy.api#documentation": "The identity store provider (mode) you want to use to fetch access levels of groups and\n users. Amazon Web Services Single Sign On is currently the only available mode. Your users and groups\n must\n exist in an Amazon Web Services SSO identity source in order to use this mode.
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "Provides the configuration information to fetch access levels \n of groups and users from an AWS Single Sign-On identity \n source. This is useful for setting up user context filtering, where \n Amazon Kendra filters search results for different users based on their \n group's access to documents. You can also map your users to their \n groups for user context filtering using the \n PutPrincipalMapping \n operation.
\nTo set up an AWS SSO identity source in the console to use with \n Amazon Kendra, see Getting started \n with an AWS SSO identity source. You must also grant the required \n permissions to use AWS SSO with Amazon Kendra. For more information, see \n IAM roles for \n AWS Single Sign-On.
" + "smithy.api#documentation": "Provides the configuration information to fetch access levels \n of groups and users from an Amazon Web Services Single Sign On identity \n source. This is useful for setting up user context filtering, where \n Amazon Kendra filters search results for different users based on their \n group's access to documents. You can also map your users to their \n groups for user context filtering using the \n PutPrincipalMapping \n operation.
\nTo set up an Amazon Web Services SSO identity source in the console to use with \n Amazon Kendra, see Getting started \n with an Amazon Web Services SSO identity source. You must also grant the required \n permissions to use Amazon Web Services SSO with Amazon Kendra. For more information, see \n IAM roles for \n Amazon Web Services SSO.
" } }, "com.amazonaws.kendra#UserGroupResolutionMode": { @@ -9171,6 +11007,20 @@ "smithy.api#pattern": "^\\P{C}*$" } }, + "com.amazonaws.kendra#UserIdentityConfiguration": { + "type": "structure", + "members": { + "IdentityAttributeName": { + "target": "com.amazonaws.kendra#IdentityAttributeName", + "traits": { + "smithy.api#documentation": "The Amazon Web Services SSO field name that contains the identifiers of your users, \n such as their emails. This is used for user context filtering \n and for granting access to your Amazon Kendra experience. You must set up Amazon Web Services SSO \n with Amazon Kendra. You must include your users and groups in your Access Control List when \n you ingest documents into your index. For more information, see \n Getting \n started with an Amazon Web Services SSO identity source.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Configuration information for the identifiers of your users.
" + } + }, "com.amazonaws.kendra#UserNameAttributeField": { "type": "string", "traits": { @@ -9270,7 +11120,7 @@ "Urls": { "target": "com.amazonaws.kendra#Urls", "traits": { - "smithy.api#documentation": "Specifies the seed or starting point URLs of the \n websites or the sitemap URLs of the websites you want to crawl.
\nYou can include website subdomains. You can list up to 100 seed \n URLs and up to three sitemap URLs.
\nYou can only crawl websites that use the secure communication protocol, \n Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when \n crawling a website, it could be that the website is blocked from crawling.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use the Amazon Kendra \n web crawler to index your own webpages, or webpages that you have \n authorization to index.\n
", + "smithy.api#documentation": "Specifies the seed or starting point URLs of the \n websites or the sitemap URLs of the websites you want to crawl.
\nYou can include website subdomains. You can list up to 100 seed \n URLs and up to three sitemap URLs.
\nYou can only crawl websites that use the secure communication protocol, \n Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when \n crawling a website, it could be that the website is blocked from crawling.
\n\n When selecting websites to index, you must adhere to \n the Amazon Acceptable Use Policy \n and all other Amazon terms. Remember that you must only use Amazon Kendra \n Web Crawler to index your own webpages, or webpages that you have \n authorization to index.\n
", "smithy.api#required": {} } }, @@ -9313,18 +11163,18 @@ "ProxyConfiguration": { "target": "com.amazonaws.kendra#ProxyConfiguration", "traits": { - "smithy.api#documentation": "Provides configuration information required to connect to your internal \n websites via a web proxy.
\nYou must provide the website host name and port number. For example, the \n host name of https://a.example.com/page1.html is \"a.example.com\" and the \n port is 443, the standard port for HTTPS.
\nWeb proxy credentials are optional and you can use them to connect to a \n web proxy server that requires basic authentication. To store web proxy \n credentials, you use a secret in AWS Secrets Manager.
" + "smithy.api#documentation": "Provides configuration information required to connect to your internal \n websites via a web proxy.
\nYou must provide the website host name and port number. For example, the \n host name of https://a.example.com/page1.html is \"a.example.com\" and the \n port is 443, the standard port for HTTPS.
\nWeb proxy credentials are optional and you can use them to connect to a \n web proxy server that requires basic authentication. To store web proxy \n credentials, you use a secret in Secrets Manager.
" } }, "AuthenticationConfiguration": { "target": "com.amazonaws.kendra#AuthenticationConfiguration", "traits": { - "smithy.api#documentation": "Provides configuration information required to connect to websites using \n authentication.
\nYou can connect to websites using basic authentication of user name and password.
\nYou must provide the website host name and port number. For example, the host name \n of https://a.example.com/page1.html is \"a.example.com\" and the port is 443, the \n standard port for HTTPS. You use a secret in AWS Secrets Manager to store \n your authentication credentials.
" + "smithy.api#documentation": "Provides configuration information required to connect to websites using \n authentication.
\nYou can connect to websites using basic authentication of user name and password.
\nYou must provide the website host name and port number. For example, the host name \n of https://a.example.com/page1.html is \"a.example.com\" and the port is 443, the \n standard port for HTTPS. You use a secret in Secrets Manager to store \n your authentication credentials.
" } } }, "traits": { - "smithy.api#documentation": "Provides the configuration information required for Amazon Kendra \n web crawler.
" + "smithy.api#documentation": "Provides the configuration information required for Amazon Kendra \n Web Crawler.
" } }, "com.amazonaws.kendra#WebCrawlerMode": { @@ -9352,7 +11202,7 @@ "OrganizationId": { "target": "com.amazonaws.kendra#OrganizationId", "traits": { - "smithy.api#documentation": "The identifier of the directory corresponding to your \n Amazon WorkDocs site repository.
\nYou can find the organization ID in the \n AWS Directory Service by going to \n Active Directory, then \n Directories. Your Amazon WorkDocs site directory has an \n ID, which is the organization ID. You can also set up a new Amazon WorkDocs \n directory in the AWS Directory Service console and enable a Amazon WorkDocs site \n for the directory in the Amazon WorkDocs console.
", + "smithy.api#documentation": "The identifier of the directory corresponding to your \n Amazon WorkDocs site repository.
\nYou can find the organization ID in the \n Directory Service by going to \n Active Directory, then \n Directories. Your Amazon WorkDocs site directory has an \n ID, which is the organization ID. You can also set up a new Amazon WorkDocs \n directory in the Directory Service console and enable a Amazon WorkDocs site \n for the directory in the Amazon WorkDocs console.
", "smithy.api#required": {} } }, diff --git a/codegen/sdk-codegen/aws-models/kinesis.2013-12-02.json b/codegen/sdk-codegen/aws-models/kinesis.2013-12-02.json index 87fdb75ea2d..519a8f2fab8 100644 --- a/codegen/sdk-codegen/aws-models/kinesis.2013-12-02.json +++ b/codegen/sdk-codegen/aws-models/kinesis.2013-12-02.json @@ -49,7 +49,7 @@ } ], "traits": { - "smithy.api#documentation": "Adds or updates tags for the specified Kinesis data stream. Each time you invoke\n this operation, you can specify up to 10 tags. If you want to add more than 10 tags to\n your stream, you can invoke this operation multiple times. In total, each stream can\n have up to 50 tags.
\nIf tags have already been assigned to the stream, AddTagsToStream
\n overwrites any existing tags that correspond to the specified tag keys.
\n AddTagsToStream has a limit of five transactions per second per\n account.
" + "smithy.api#documentation": "Adds or updates tags for the specified Kinesis data stream. You can assign up to 50\n tags to a data stream.
\nIf tags have already been assigned to the stream, AddTagsToStream
\n overwrites any existing tags that correspond to the specified tag keys.
\n AddTagsToStream has a limit of five transactions per second per\n account.
" } }, "com.amazonaws.kinesis#AddTagsToStreamInput": { @@ -86,12 +86,14 @@ "ShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { + "smithy.api#documentation": "The shard ID of the existing child shard of the current shard.
", "smithy.api#required": {} } }, "ParentShards": { "target": "com.amazonaws.kinesis#ShardIdList", "traits": { + "smithy.api#documentation": "The current shard that is the parent of the existing child shard.
", "smithy.api#required": {} } }, @@ -101,6 +103,9 @@ "smithy.api#required": {} } } + }, + "traits": { + "smithy.api#documentation": "Output parameter of the GetRecords API. The existing child shard of the current\n shard.
" } }, "com.amazonaws.kinesis#ChildShardList": { @@ -152,7 +157,7 @@ "min": 1, "max": 2048 }, - "smithy.api#pattern": "^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+" + "smithy.api#pattern": "^(arn):aws.*:kinesis:.*:\\d{12}:.*stream\\/[a-zA-Z0-9_.-]+\\/consumer\\/[a-zA-Z0-9_.-]+:[0-9]+$" } }, "com.amazonaws.kinesis#ConsumerCountObject": { @@ -221,7 +226,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_.-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_.-]+$" } }, "com.amazonaws.kinesis#ConsumerStatus": { @@ -260,7 +265,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a Kinesis data stream. A stream captures and transports data records that\n are continuously emitted from different data sources or producers.\n Scale-out within a stream is explicitly supported by means of shards, which are uniquely\n identified groups of data records in a stream.
\nYou specify and control the number of shards that a stream is composed of. Each\n shard can support reads up to five transactions per second, up to a maximum data read\n total of 2 MiB per second. Each shard can support writes up to 1,000 records per second,\n up to a maximum data write total of 1 MiB per second. If the amount of data input\n increases or decreases, you can add or remove shards.
\nThe stream name identifies the stream. The name is scoped to the AWS account used\n by the application. It is also scoped by AWS Region. That is, two streams in two\n different accounts can have the same name, and two streams in the same account, but in\n two different Regions, can have the same name.
\n\n CreateStream
is an asynchronous operation. Upon receiving a\n CreateStream
request, Kinesis Data Streams immediately returns and sets\n the stream status to CREATING
. After the stream is created, Kinesis Data\n Streams sets the stream status to ACTIVE
. You should perform read and write\n operations only on an ACTIVE
stream.
You receive a LimitExceededException
when making a\n CreateStream
request when you try to do one of the following:
Have more than five streams in the CREATING
state at any point\n in time.
Create more shards than are authorized for your account.
\nFor the default shard limit for an AWS account, see Amazon Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide. To increase this limit, contact AWS\n Support.
\nYou can use DescribeStream
to check the stream status, which is\n returned in StreamStatus
.
\n CreateStream has a limit of five transactions per second per\n account.
" + "smithy.api#documentation": "Creates a Kinesis data stream. A stream captures and transports data records that are\n continuously emitted from different data sources or producers.\n Scale-out within a stream is explicitly supported by means of shards, which are uniquely\n identified groups of data records in a stream.
\nYou specify and control the number of shards that a stream is composed of. Each shard\n can support reads up to five transactions per second, up to a maximum data read total of\n 2 MiB per second. Each shard can support writes up to 1,000 records per second, up to a\n maximum data write total of 1 MiB per second. If the amount of data input increases or\n decreases, you can add or remove shards.
\nThe stream name identifies the stream. The name is scoped to the Amazon Web Services\n account used by the application. It is also scoped by Amazon Web Services Region. That\n is, two streams in two different accounts can have the same name, and two streams in the\n same account, but in two different Regions, can have the same name.
\n\n CreateStream
is an asynchronous operation. Upon receiving a\n CreateStream
request, Kinesis Data Streams immediately returns and sets\n the stream status to CREATING
. After the stream is created, Kinesis Data\n Streams sets the stream status to ACTIVE
. You should perform read and write\n operations only on an ACTIVE
stream.
You receive a LimitExceededException
when making a\n CreateStream
request when you try to do one of the following:
Have more than five streams in the CREATING
state at any point in\n time.
Create more shards than are authorized for your account.
\nFor the default shard limit for an Amazon Web Services account, see Amazon\n Kinesis Data Streams Limits in the Amazon Kinesis Data Streams\n Developer Guide. To increase this limit, contact Amazon Web Services\n Support.
\nYou can use DescribeStreamSummary to check the stream status, which\n is returned in StreamStatus
.
\n CreateStream has a limit of five transactions per second per\n account.
" } }, "com.amazonaws.kinesis#CreateStreamInput": { @@ -269,15 +274,20 @@ "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { - "smithy.api#documentation": "A name to identify the stream. The stream name is scoped to the AWS account used by\n the application that creates the stream. It is also scoped by AWS Region. That is, two\n streams in two different AWS accounts can have the same name. Two streams in the same\n AWS account but in two different Regions can also have the same name.
", + "smithy.api#documentation": "A name to identify the stream. The stream name is scoped to the Amazon Web Services\n account used by the application that creates the stream. It is also scoped by Amazon Web Services Region. That is, two streams in two different Amazon Web Services accounts\n can have the same name. Two streams in the same Amazon Web Services account but in two\n different Regions can also have the same name.
", "smithy.api#required": {} } }, "ShardCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { - "smithy.api#documentation": "The number of shards that the stream will use. The throughput of the stream is a\n function of the number of shards; more shards are required for greater provisioned\n throughput.
", - "smithy.api#required": {} + "smithy.api#documentation": "The number of shards that the stream will use. The throughput of the stream is a\n function of the number of shards; more shards are required for greater provisioned\n throughput.
" + } + }, + "StreamModeDetails": { + "target": "com.amazonaws.kinesis#StreamModeDetails", + "traits": { + "smithy.api#documentation": "Indicates the capacity mode of the data stream. Currently, in Kinesis Data Streams,\n you can choose between an on-demand capacity mode and a\n provisioned capacity mode for your data\n streams.
" } } }, @@ -314,7 +324,7 @@ } ], "traits": { - "smithy.api#documentation": "Decreases the Kinesis data stream's retention period, which is the length of time\n data records are accessible after they are added to the stream. The minimum value of a\n stream's retention period is 24 hours.
\nThis operation may result in lost data. For example, if the stream's retention\n period is 48 hours and is decreased to 24 hours, any data already in the stream that is\n older than 24 hours is inaccessible.
" + "smithy.api#documentation": "Decreases the Kinesis data stream's retention period, which is the length of time data\n records are accessible after they are added to the stream. The minimum value of a\n stream's retention period is 24 hours.
\nThis operation may result in lost data. For example, if the stream's retention period\n is 48 hours and is decreased to 24 hours, any data already in the stream that is older\n than 24 hours is inaccessible.
" } }, "com.amazonaws.kinesis#DecreaseStreamRetentionPeriodInput": { @@ -356,7 +366,7 @@ } ], "traits": { - "smithy.api#documentation": "Deletes a Kinesis data stream and all its shards and data. You must shut down any\n applications that are operating on the stream before you delete the stream. If an\n application attempts to operate on a deleted stream, it receives the exception\n ResourceNotFoundException
.
If the stream is in the ACTIVE
state, you can delete it. After a\n DeleteStream
request, the specified stream is in the\n DELETING
state until Kinesis Data Streams completes the\n deletion.
\n Note: Kinesis Data Streams might continue to accept\n data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the\n DELETING
state until the stream deletion is complete.
When you delete a stream, any shards in that stream are also deleted, and any tags\n are dissociated from the stream.
\nYou can use the DescribeStream operation to check the state of\n the stream, which is returned in StreamStatus
.
\n DeleteStream has a limit of five transactions per second per\n account.
" + "smithy.api#documentation": "Deletes a Kinesis data stream and all its shards and data. You must shut down any\n applications that are operating on the stream before you delete the stream. If an\n application attempts to operate on a deleted stream, it receives the exception\n ResourceNotFoundException
.
If the stream is in the ACTIVE
state, you can delete it. After a\n DeleteStream
request, the specified stream is in the\n DELETING
state until Kinesis Data Streams completes the\n deletion.
\n Note: Kinesis Data Streams might continue to accept\n data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the\n DELETING
state until the stream deletion is complete.
When you delete a stream, any shards in that stream are also deleted, and any tags are\n dissociated from the stream.
\nYou can use the DescribeStreamSummary operation to check the state\n of the stream, which is returned in StreamStatus
.
\n DeleteStream has a limit of five transactions per second per\n account.
" } }, "com.amazonaws.kinesis#DeleteStreamInput": { @@ -406,7 +416,7 @@ "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { - "smithy.api#documentation": "The ARN of the Kinesis data stream that the consumer is registered with. For more\n information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "smithy.api#documentation": "The ARN of the Kinesis data stream that the consumer is registered with. For more\n information, see Amazon Resource Names (ARNs) and Amazon Web Services Service\n Namespaces.
" } }, "ConsumerName": { @@ -460,6 +470,20 @@ "smithy.api#documentation": "The number of open shards.
", "smithy.api#required": {} } + }, + "OnDemandStreamCount": { + "target": "com.amazonaws.kinesis#OnDemandStreamCountObject", + "traits": { + "smithy.api#documentation": "Indicates the number of data streams with the on-demand capacity mode.
", + "smithy.api#required": {} + } + }, + "OnDemandStreamCountLimit": { + "target": "com.amazonaws.kinesis#OnDemandStreamCountLimitObject", + "traits": { + "smithy.api#documentation": "The maximum number of data streams with the on-demand capacity mode.
", + "smithy.api#required": {} + } } } }, @@ -480,7 +504,7 @@ } ], "traits": { - "smithy.api#documentation": "Describes the specified Kinesis data stream.
\n\nThe information returned includes the stream name, Amazon Resource Name (ARN),\n creation time, enhanced metric configuration, and shard map. The shard map is an array\n of shard objects. For each shard object, there is the hash key and sequence number\n ranges that the shard spans, and the IDs of any earlier shards that played in a role in\n creating the shard. Every record ingested in the stream is identified by a sequence\n number, which is assigned when the record is put into the stream.
\n\nYou can limit the number of shards returned by each call. For more information, see\n Retrieving\n Shards from a Stream in the Amazon Kinesis Data Streams Developer\n Guide.
\nThere are no guarantees about the chronological order shards returned. To process\n shards in chronological order, use the ID of the parent shard to track the lineage to\n the oldest shard.
\nThis operation has a limit of 10 transactions per second per account.
", + "smithy.api#documentation": "Describes the specified Kinesis data stream.
\nThis API has been revised. It's highly recommended that you use the DescribeStreamSummary API to get a summarized description of the\n specified Kinesis data stream and the ListShards API to list the\n shards in a specified data stream and obtain information about each shard.
\nThe information returned includes the stream name, Amazon Resource Name (ARN),\n creation time, enhanced metric configuration, and shard map. The shard map is an array\n of shard objects. For each shard object, there is the hash key and sequence number\n ranges that the shard spans, and the IDs of any earlier shards that played in a role in\n creating the shard. Every record ingested in the stream is identified by a sequence\n number, which is assigned when the record is put into the stream.
\n\nYou can limit the number of shards returned by each call. For more information, see\n Retrieving\n Shards from a Stream in the Amazon Kinesis Data Streams Developer\n Guide.
\nThere are no guarantees about the chronological order shards returned. To process\n shards in chronological order, use the ID of the parent shard to track the lineage to\n the oldest shard.
\nThis operation has a limit of 10 transactions per second per account.
", "smithy.waiters#waitable": { "StreamExists": { "acceptors": [ @@ -540,7 +564,7 @@ "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { - "smithy.api#documentation": "The ARN of the Kinesis data stream that the consumer is registered with. For more\n information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
" + "smithy.api#documentation": "The ARN of the Kinesis data stream that the consumer is registered with. For more\n information, see Amazon Resource Names (ARNs) and Amazon Web Services Service\n Namespaces.
" } }, "ConsumerName": { @@ -582,13 +606,13 @@ "Limit": { "target": "com.amazonaws.kinesis#DescribeStreamInputLimit", "traits": { - "smithy.api#documentation": "The maximum number of shards to return in a single call. The default value is 100.\n If you specify a value greater than 100, at most 100 shards are returned.
" + "smithy.api#documentation": "The maximum number of shards to return in a single call. The default value is 100. If\n you specify a value greater than 100, at most 100 results are returned.
" } }, "ExclusiveStartShardId": { "target": "com.amazonaws.kinesis#ShardId", "traits": { - "smithy.api#documentation": "The shard ID of the shard to start with.
" + "smithy.api#documentation": "The shard ID of the shard to start with.
\nSpecify this parameter to indicate that you want to describe the stream starting with\n the shard whose ID immediately follows ExclusiveStartShardId
.
If you don't specify this parameter, the default behavior for\n DescribeStream
is to describe the stream starting with the first shard\n in the stream.
The current status of the stream, the stream Amazon Resource Name (ARN), an array\n of shard objects that comprise the stream, and whether there are more shards\n available.
", + "smithy.api#documentation": "The current status of the stream, the stream Amazon Resource Name (ARN), an array of\n shard objects that comprise the stream, and whether there are more shards\n available.
", "smithy.api#required": {} } } @@ -638,7 +662,7 @@ } ], "traits": { - "smithy.api#documentation": "Provides a summarized description of the specified Kinesis data stream without the\n shard list.
\nThe information returned includes the stream name, Amazon Resource Name (ARN),\n status, record retention period, approximate creation time, monitoring, encryption\n details, and open shard count.
\n\n DescribeStreamSummary has a limit of 20 transactions per second\n per account.
" + "smithy.api#documentation": "Provides a summarized description of the specified Kinesis data stream without the\n shard list.
\nThe information returned includes the stream name, Amazon Resource Name (ARN), status,\n record retention period, approximate creation time, monitoring, encryption details, and\n open shard count.
\n\n DescribeStreamSummary has a limit of 20 transactions per second per\n account.
" } }, "com.amazonaws.kinesis#DescribeStreamSummaryInput": { @@ -697,14 +721,14 @@ "StreamName": { "target": "com.amazonaws.kinesis#StreamName", "traits": { - "smithy.api#documentation": "The name of the Kinesis data stream for which to disable enhanced\n monitoring.
", + "smithy.api#documentation": "The name of the Kinesis data stream for which to disable enhanced monitoring.
", "smithy.api#required": {} } }, "ShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { - "smithy.api#documentation": "List of shard-level metrics to disable.
\nThe following are the valid shard-level metrics. The value \"ALL
\"\n disables every metric.
\n IncomingBytes
\n
\n IncomingRecords
\n
\n OutgoingBytes
\n
\n OutgoingRecords
\n
\n WriteProvisionedThroughputExceeded
\n
\n ReadProvisionedThroughputExceeded
\n
\n IteratorAgeMilliseconds
\n
\n ALL
\n
For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.
", + "smithy.api#documentation": "List of shard-level metrics to disable.
\nThe following are the valid shard-level metrics. The value \"ALL
\" disables\n every metric.
\n IncomingBytes
\n
\n IncomingRecords
\n
\n OutgoingBytes
\n
\n OutgoingRecords
\n
\n WriteProvisionedThroughputExceeded
\n
\n ReadProvisionedThroughputExceeded
\n
\n IteratorAgeMilliseconds
\n
\n ALL
\n
For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.
", "smithy.api#required": {} } } @@ -752,7 +776,7 @@ "ShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { - "smithy.api#documentation": "List of shard-level metrics to enable.
\nThe following are the valid shard-level metrics. The value \"ALL
\"\n enables every metric.
\n IncomingBytes
\n
\n IncomingRecords
\n
\n OutgoingBytes
\n
\n OutgoingRecords
\n
\n WriteProvisionedThroughputExceeded
\n
\n ReadProvisionedThroughputExceeded
\n
\n IteratorAgeMilliseconds
\n
\n ALL
\n
For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.
", + "smithy.api#documentation": "List of shard-level metrics to enable.
\nThe following are the valid shard-level metrics. The value \"ALL
\" enables\n every metric.
\n IncomingBytes
\n
\n IncomingRecords
\n
\n OutgoingBytes
\n
\n OutgoingRecords
\n
\n WriteProvisionedThroughputExceeded
\n
\n ReadProvisionedThroughputExceeded
\n
\n IteratorAgeMilliseconds
\n
\n ALL
\n
For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.
", "smithy.api#required": {} } } @@ -782,7 +806,7 @@ "ShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { - "smithy.api#documentation": "List of shard-level metrics.
\nThe following are the valid shard-level metrics. The value \"ALL
\"\n enhances every metric.
\n IncomingBytes
\n
\n IncomingRecords
\n
\n OutgoingBytes
\n
\n OutgoingRecords
\n
\n WriteProvisionedThroughputExceeded
\n
\n ReadProvisionedThroughputExceeded
\n
\n IteratorAgeMilliseconds
\n
\n ALL
\n
For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.
" + "smithy.api#documentation": "List of shard-level metrics.
\nThe following are the valid shard-level metrics. The value \"ALL
\" enhances\n every metric.
\n IncomingBytes
\n
\n IncomingRecords
\n
\n OutgoingBytes
\n
\n OutgoingRecords
\n
\n WriteProvisionedThroughputExceeded
\n
\n ReadProvisionedThroughputExceeded
\n
\n IteratorAgeMilliseconds
\n
\n ALL
\n
For more information, see Monitoring the Amazon\n Kinesis Data Streams Service with Amazon CloudWatch in the Amazon\n Kinesis Data Streams Developer Guide.
" } } }, @@ -808,13 +832,13 @@ "CurrentShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { - "smithy.api#documentation": "Represents the current state of the metrics that are in the enhanced state before\n the operation.
" + "smithy.api#documentation": "Represents the current state of the metrics that are in the enhanced state before the\n operation.
" } }, "DesiredShardLevelMetrics": { "target": "com.amazonaws.kinesis#MetricsNameList", "traits": { - "smithy.api#documentation": "Represents the list of all the metrics that would be in the enhanced state after\n the operation.
" + "smithy.api#documentation": "Represents the list of all the metrics that would be in the enhanced state after the\n operation.
" } } }, @@ -896,7 +920,7 @@ } ], "traits": { - "smithy.api#documentation": "Gets data records from a Kinesis data stream's shard.
\nSpecify a shard iterator using the ShardIterator
parameter. The shard\n iterator specifies the position in the shard from which you want to start reading data\n records sequentially. If there are no records available in the portion of the shard that\n the iterator points to, GetRecords returns an empty list. It might\n take multiple calls to get to a portion of the shard that contains records.
You can scale by provisioning multiple shards per stream while considering service\n limits (for more information, see Amazon Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide). Your application should have one thread per shard, each reading\n continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the\n shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in\n NextShardIterator
. Specify the shard iterator returned in\n NextShardIterator
in subsequent calls to GetRecords.\n If the shard has been closed, the shard iterator can't return more data and GetRecords returns null
in NextShardIterator
.\n You can terminate the loop when the shard is closed, or when the shard iterator reaches\n the record with the sequence number or other attribute that marks it as the last record\n to process.
Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB\n per second. You can ensure that your calls don't exceed the maximum supported size or\n throughput by using the Limit
parameter to specify the maximum number of\n records that GetRecords can return. Consider your average record size\n when determining this limit. The maximum number of records that can be returned per call\n is 10,000.
The size of the data returned by GetRecords varies depending on\n the utilization of the shard. The maximum size of data that GetRecords\n can return is 10 MiB. If a call returns this amount of data, subsequent calls made\n within the next 5 seconds throw ProvisionedThroughputExceededException
. If\n there is insufficient provisioned throughput on the stream, subsequent calls made within\n the next 1 second throw ProvisionedThroughputExceededException
. GetRecords doesn't return any data when it throws an exception. For this\n reason, we recommend that you wait 1 second between calls to GetRecords. However, it's possible that the application will get exceptions for longer than 1\n second.
To detect whether the application is falling behind in processing, you can use the\n MillisBehindLatest
response attribute. You can also monitor the stream\n using CloudWatch metrics and other mechanisms (see Monitoring in the Amazon\n Kinesis Data Streams Developer Guide).
Each Amazon Kinesis record includes a value,\n ApproximateArrivalTimestamp
, that is set when a stream successfully\n receives and stores a record. This is commonly referred to as a server-side time stamp,\n whereas a client-side time stamp is set when a data producer creates or sends the record\n to a stream (a data producer is any data source putting data records into a stream, for\n example with PutRecords). The time stamp has millisecond precision.\n There are no guarantees about the time stamp accuracy, or that the time stamp is always\n increasing. For example, records in a shard or across a stream might have time stamps\n that are out of order.
This operation has a limit of five transactions per second per shard.
" + "smithy.api#documentation": "Gets data records from a Kinesis data stream's shard.
\nSpecify a shard iterator using the ShardIterator
parameter. The shard\n iterator specifies the position in the shard from which you want to start reading data\n records sequentially. If there are no records available in the portion of the shard that\n the iterator points to, GetRecords returns an empty list. It might\n take multiple calls to get to a portion of the shard that contains records.
You can scale by provisioning multiple shards per stream while considering service\n limits (for more information, see Amazon Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide). Your application should have one thread per shard, each reading\n continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the\n shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in\n NextShardIterator
. Specify the shard iterator returned in\n NextShardIterator
in subsequent calls to GetRecords.\n If the shard has been closed, the shard iterator can't return more data and GetRecords returns null
in NextShardIterator
.\n You can terminate the loop when the shard is closed, or when the shard iterator reaches\n the record with the sequence number or other attribute that marks it as the last record\n to process.
Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB per\n second. You can ensure that your calls don't exceed the maximum supported size or\n throughput by using the Limit
parameter to specify the maximum number of\n records that GetRecords can return. Consider your average record size\n when determining this limit. The maximum number of records that can be returned per call\n is 10,000.
The size of the data returned by GetRecords varies depending on the\n utilization of the shard. It is recommended that consumer applications retrieve records\n via the GetRecords
command using the 5 TPS limit to remain caught up.\n Retrieving records less frequently can lead to consumer applications falling behind. The\n maximum size of data that GetRecords can return is 10 MiB. If a call\n returns this amount of data, subsequent calls made within the next 5 seconds throw\n ProvisionedThroughputExceededException
. If there is insufficient\n provisioned throughput on the stream, subsequent calls made within the next 1 second\n throw ProvisionedThroughputExceededException
. GetRecords\n doesn't return any data when it throws an exception. For this reason, we recommend that\n you wait 1 second between calls to GetRecords. However, it's possible\n that the application will get exceptions for longer than 1 second.
To detect whether the application is falling behind in processing, you can use the\n MillisBehindLatest
response attribute. You can also monitor the stream\n using CloudWatch metrics and other mechanisms (see Monitoring in the Amazon\n Kinesis Data Streams Developer Guide).
Each Amazon Kinesis record includes a value, ApproximateArrivalTimestamp
,\n that is set when a stream successfully receives and stores a record. This is commonly\n referred to as a server-side time stamp, whereas a client-side time stamp is set when a\n data producer creates or sends the record to a stream (a data producer is any data\n source putting data records into a stream, for example with PutRecords). The time stamp has millisecond precision. There are no guarantees about the time\n stamp accuracy, or that the time stamp is always increasing. For example, records in a\n shard or across a stream might have time stamps that are out of order.
This operation has a limit of five transactions per second per shard.
" } }, "com.amazonaws.kinesis#GetRecordsInput": { @@ -943,17 +967,20 @@ "NextShardIterator": { "target": "com.amazonaws.kinesis#ShardIterator", "traits": { - "smithy.api#documentation": "The next position in the shard from which to start sequentially reading data\n records. If set to null
, the shard has been closed and the requested\n iterator does not return any more data.
The next position in the shard from which to start sequentially reading data records.\n If set to null
, the shard has been closed and the requested iterator does\n not return any more data.
The number of milliseconds the GetRecords response is from the\n tip of the stream, indicating how far behind current time the consumer is. A value of\n zero indicates that record processing is caught up, and there are no new records to\n process at this moment.
" + "smithy.api#documentation": "The number of milliseconds the GetRecords response is from the tip\n of the stream, indicating how far behind current time the consumer is. A value of zero\n indicates that record processing is caught up, and there are no new records to process\n at this moment.
" } }, "ChildShards": { - "target": "com.amazonaws.kinesis#ChildShardList" + "target": "com.amazonaws.kinesis#ChildShardList", + "traits": { + "smithy.api#documentation": "The list of the current shard's child shards, returned in the GetRecords
\n API's response only when the end of the current shard is reached.
Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it\n is returned to the requester.
\nA shard iterator specifies the shard position from which to start reading data\n records sequentially. The position is specified using the sequence number of a data\n record in a shard. A sequence number is the identifier associated with every record\n ingested in the stream, and is assigned when a record is put into the stream. Each\n stream has one or more shards.
\nYou must specify the shard iterator type. For example, you can set the\n ShardIteratorType
parameter to read exactly from the position denoted\n by a specific sequence number by using the AT_SEQUENCE_NUMBER
shard\n iterator type. Alternatively, the parameter can read right after the sequence number by\n using the AFTER_SEQUENCE_NUMBER
shard iterator type, using sequence numbers\n returned by earlier calls to PutRecord, PutRecords,\n GetRecords, or DescribeStream. In the request,\n you can specify the shard iterator type AT_TIMESTAMP
to read records from\n an arbitrary point in time, TRIM_HORIZON
to cause\n ShardIterator
to point to the last untrimmed record in the shard in the\n system (the oldest data record in the shard), or LATEST
so that you always\n read the most recent data in the shard.
When you read repeatedly from a stream, use a GetShardIterator\n request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator
. A new shard\n iterator is returned by every GetRecords request in\n NextShardIterator
, which you use in the ShardIterator
\n parameter of the next GetRecords request.
If a GetShardIterator request is made too often, you receive a\n ProvisionedThroughputExceededException
. For more information about\n throughput limits, see GetRecords, and Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide.
If the shard is closed, GetShardIterator returns a valid iterator\n for the last sequence number of the shard. A shard can be closed as a result of using\n SplitShard or MergeShards.
\n\n GetShardIterator has a limit of five transactions per second per\n account per open shard.
" + "smithy.api#documentation": "Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it is\n returned to the requester.
\nA shard iterator specifies the shard position from which to start reading data records\n sequentially. The position is specified using the sequence number of a data record in a\n shard. A sequence number is the identifier associated with every record ingested in the\n stream, and is assigned when a record is put into the stream. Each stream has one or\n more shards.
\nYou must specify the shard iterator type. For example, you can set the\n ShardIteratorType
parameter to read exactly from the position denoted\n by a specific sequence number by using the AT_SEQUENCE_NUMBER
shard\n iterator type. Alternatively, the parameter can read right after the sequence number by\n using the AFTER_SEQUENCE_NUMBER
shard iterator type, using sequence numbers\n returned by earlier calls to PutRecord, PutRecords,\n GetRecords, or DescribeStream. In the request,\n you can specify the shard iterator type AT_TIMESTAMP
to read records from\n an arbitrary point in time, TRIM_HORIZON
to cause\n ShardIterator
to point to the last untrimmed record in the shard in the\n system (the oldest data record in the shard), or LATEST
so that you always\n read the most recent data in the shard.
When you read repeatedly from a stream, use a GetShardIterator\n request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator
. A new shard\n iterator is returned by every GetRecords request in\n NextShardIterator
, which you use in the ShardIterator
\n parameter of the next GetRecords request.
If a GetShardIterator request is made too often, you receive a\n ProvisionedThroughputExceededException
. For more information about\n throughput limits, see GetRecords, and Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide.
If the shard is closed, GetShardIterator returns a valid iterator\n for the last sequence number of the shard. A shard can be closed as a result of using\n SplitShard or MergeShards.
\n\n GetShardIterator has a limit of five transactions per second per\n account per open shard.
" } }, "com.amazonaws.kinesis#GetShardIteratorInput": { @@ -1003,14 +1030,14 @@ "ShardIteratorType": { "target": "com.amazonaws.kinesis#ShardIteratorType", "traits": { - "smithy.api#documentation": "Determines how the shard iterator is used to start reading data records from the\n shard.
\nThe following are the valid Amazon Kinesis shard iterator types:
\nAT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific\n sequence number, provided in the value\n StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a\n specific sequence number, provided in the value\n StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time\n stamp, provided in the value Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in\n the system, which is the oldest data record in the shard.
\nLATEST - Start reading just after the most recent record in the shard, so\n that you always read the most recent data in the shard.
\nDetermines how the shard iterator is used to start reading data records from the\n shard.
\nThe following are the valid Amazon Kinesis shard iterator types:
\nAT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific\n sequence number, provided in the value\n StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a\n specific sequence number, provided in the value\n StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time\n stamp, provided in the value Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the\n system, which is the oldest data record in the shard.
\nLATEST - Start reading just after the most recent record in the shard, so that\n you always read the most recent data in the shard.
\nThe sequence number of the data record in the shard from which to start reading.\n Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
" + "smithy.api#documentation": "The sequence number of the data record in the shard from which to start reading. Used\n with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
" } }, "Timestamp": { @@ -1041,7 +1068,7 @@ "com.amazonaws.kinesis#HashKey": { "type": "string", "traits": { - "smithy.api#pattern": "0|([1-9]\\d{0,38})" + "smithy.api#pattern": "^0|([1-9]\\d{0,38})$" } }, "com.amazonaws.kinesis#HashKeyRange": { @@ -1086,7 +1113,7 @@ } ], "traits": { - "smithy.api#documentation": "Increases the Kinesis data stream's retention period, which is the length of time\n data records are accessible after they are added to the stream. The maximum value of a\n stream's retention period is 168 hours (7 days).
\nIf you choose a longer stream retention period, this operation increases the time\n period during which records that have not yet expired are accessible. However, it does\n not make previous, expired data (older than the stream's previous retention period)\n accessible after the operation has been called. For example, if a stream's retention\n period is set to 24 hours and is increased to 168 hours, any data that is older than 24\n hours remains inaccessible to consumer applications.
" + "smithy.api#documentation": "Increases the Kinesis data stream's retention period, which is the length of time data\n records are accessible after they are added to the stream. The maximum value of a\n stream's retention period is 8760 hours (365 days).
\nIf you choose a longer stream retention period, this operation increases the time\n period during which records that have not yet expired are accessible. However, it does\n not make previous, expired data (older than the stream's previous retention period)\n accessible after the operation has been called. For example, if a stream's retention\n period is set to 24 hours and is increased to 168 hours, any data that is older than 24\n hours remains inaccessible to consumer applications.
" } }, "com.amazonaws.kinesis#IncreaseStreamRetentionPeriodInput": { @@ -1179,7 +1206,7 @@ } }, "traits": { - "smithy.api#documentation": "The request was rejected because the state of the specified resource isn't valid\n for this request. For more information, see How Key State Affects Use of a\n Customer Master Key in the AWS Key Management Service Developer\n Guide.
", + "smithy.api#documentation": "The request was rejected because the state of the specified resource isn't valid for\n this request. For more information, see How Key State Affects Use of a\n Customer Master Key in the Amazon Web Services Key Management\n Service Developer Guide.
", "smithy.api#error": "client" } }, @@ -1209,7 +1236,7 @@ } }, "traits": { - "smithy.api#documentation": "The AWS access key ID needs a subscription for the service.
", + "smithy.api#documentation": "The Amazon Web Services access key ID needs a subscription for the service.
", "smithy.api#error": "client" } }, @@ -1224,7 +1251,7 @@ } }, "traits": { - "smithy.api#documentation": "The request was denied due to request throttling. For more information about\n throttling, see Limits in\n the AWS Key Management Service Developer Guide.
", + "smithy.api#documentation": "The request was denied due to request throttling. For more information about\n throttling, see Limits in\n the Amazon Web Services Key Management Service Developer\n Guide.
", "smithy.api#error": "client" } }, @@ -1239,6 +1266,24 @@ }, "com.amazonaws.kinesis#Kinesis_20131202": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Kinesis", + "arnNamespace": "kinesis", + "cloudFormationName": "Kinesis", + "cloudTrailEventSource": "kinesis.amazonaws.com", + "endpointPrefix": "kinesis" + }, + "aws.auth#sigv4": { + "name": "kinesis" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Amazon Kinesis Data Streams is a managed service that scales elastically for real-time\n processing of streaming big data.
", + "smithy.api#title": "Amazon Kinesis", + "smithy.api#xmlNamespace": { + "uri": "http://kinesis.amazonaws.com/doc/2013-12-02" + } + }, "version": "2013-12-02", "operations": [ { @@ -1324,26 +1369,11 @@ }, { "target": "com.amazonaws.kinesis#UpdateShardCount" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "Kinesis", - "arnNamespace": "kinesis", - "cloudFormationName": "Kinesis", - "cloudTrailEventSource": "kinesis.amazonaws.com", - "endpointPrefix": "kinesis" - }, - "aws.auth#sigv4": { - "name": "kinesis" }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Amazon Kinesis Data Streams is a managed service that scales elastically for\n real-time processing of streaming big data.
", - "smithy.api#title": "Amazon Kinesis", - "smithy.api#xmlNamespace": { - "uri": "http://kinesis.amazonaws.com/doc/2013-12-02" + { + "target": "com.amazonaws.kinesis#UpdateStreamMode" } - } + ] }, "com.amazonaws.kinesis#LimitExceededException": { "type": "structure", @@ -1356,7 +1386,7 @@ } }, "traits": { - "smithy.api#documentation": "The requested resource exceeds the maximum number allowed, or the number of\n concurrent stream requests exceeds the maximum number allowed.
", + "smithy.api#documentation": "The requested resource exceeds the maximum number allowed, or the number of concurrent\n stream requests exceeds the maximum number allowed.
", "smithy.api#error": "client" } }, @@ -1386,7 +1416,7 @@ } ], "traits": { - "smithy.api#documentation": "Lists the shards in a stream and provides information about each shard. This\n operation has a limit of 100 transactions per second per data stream.
\nThis API is a new operation that is used by the Amazon Kinesis Client Library\n (KCL). If you have a fine-grained IAM policy that only allows specific operations,\n you must update your policy to allow calls to this API. For more information, see\n Controlling Access to Amazon Kinesis Data Streams Resources Using\n IAM.
\nLists the shards in a stream and provides information about each shard. This operation\n has a limit of 1000 transactions per second per data stream.
\nThis action does not list expired shards. For information about expired shards, see\n Data Routing, Data Persistence, and Shard State after a Reshard.
\nThis API is a new operation that is used by the Amazon Kinesis Client Library\n (KCL). If you have a fine-grained IAM policy that only allows specific operations,\n you must update your policy to allow calls to this API. For more information, see\n Controlling Access to Amazon Kinesis Data Streams Resources Using\n IAM.
\nWhen the number of shards in the data stream is greater than the default value for\n the MaxResults
parameter, or if you explicitly specify a value for\n MaxResults
that is less than the number of shards in the data stream,\n the response includes a pagination token named NextToken
. You can specify\n this NextToken
value in a subsequent call to ListShards
to\n list the next set of shards.
Don't specify StreamName
or StreamCreationTimestamp
if\n you specify NextToken
because the latter unambiguously identifies the\n stream.
You can optionally specify a value for the MaxResults
parameter when\n you specify NextToken
. If you specify a MaxResults
value that\n is less than the number of shards that the operation returns if you don't specify\n MaxResults
, the response will contain a new NextToken
\n value. You can use the new NextToken
value in a subsequent call to the\n ListShards
operation.
Tokens expire after 300 seconds. When you obtain a value for\n NextToken
in the response to a call to ListShards
, you\n have 300 seconds to use that value. If you specify an expired token in a call to\n ListShards
, you get\n ExpiredNextTokenException
.
When the number of shards in the data stream is greater than the default value for the\n MaxResults
parameter, or if you explicitly specify a value for\n MaxResults
that is less than the number of shards in the data stream,\n the response includes a pagination token named NextToken
. You can specify\n this NextToken
value in a subsequent call to ListShards
to\n list the next set of shards.
Don't specify StreamName
or StreamCreationTimestamp
if you\n specify NextToken
because the latter unambiguously identifies the\n stream.
You can optionally specify a value for the MaxResults
parameter when you\n specify NextToken
. If you specify a MaxResults
value that is\n less than the number of shards that the operation returns if you don't specify\n MaxResults
, the response will contain a new NextToken
\n value. You can use the new NextToken
value in a subsequent call to the\n ListShards
operation.
Tokens expire after 300 seconds. When you obtain a value for\n NextToken
in the response to a call to ListShards
, you\n have 300 seconds to use that value. If you specify an expired token in a call to\n ListShards
, you get ExpiredNextTokenException
.
Specify this parameter to indicate that you want to list the shards starting with\n the shard whose ID immediately follows ExclusiveStartShardId
.
If you don't specify this parameter, the default behavior is for\n ListShards
to list the shards starting with the first one in the\n stream.
You cannot specify this parameter if you specify NextToken
.
Specify this parameter to indicate that you want to list the shards starting with the\n shard whose ID immediately follows ExclusiveStartShardId
.
If you don't specify this parameter, the default behavior is for\n ListShards
to list the shards starting with the first one in the\n stream.
You cannot specify this parameter if you specify NextToken
.
The maximum number of shards to return in a single call to ListShards
.\n The minimum value you can specify for this parameter is 1, and the maximum is 10,000,\n which is also the default.
When the number of shards to be listed is greater than the value of\n MaxResults
, the response contains a NextToken
value that\n you can use in a subsequent call to ListShards
to list the next set of\n shards.
The maximum number of shards to return in a single call to ListShards
.\n The maximum number of shards to return in a single call. The default value is 1000. If\n you specify a value greater than 1000, at most 1000 results are returned.
When the number of shards to be listed is greater than the value of\n MaxResults
, the response contains a NextToken
value that\n you can use in a subsequent call to ListShards
to list the next set of\n shards.
Specify this input parameter to distinguish data streams that have the same name.\n For example, if you create a data stream and then delete it, and you later create\n another data stream with the same name, you can use this input parameter to specify\n which of the two streams you want to list the shards for.
\nYou cannot specify this parameter if you specify the NextToken
\n parameter.
Specify this input parameter to distinguish data streams that have the same name. For\n example, if you create a data stream and then delete it, and you later create another\n data stream with the same name, you can use this input parameter to specify which of the\n two streams you want to list the shards for.
\nYou cannot specify this parameter if you specify the NextToken
\n parameter.
Enables you to filter out the response of the ListShards
API. You can\n only specify one filter at a time.
If you use the ShardFilter
parameter when invoking the ListShards API,\n the Type
is the required property and must be specified. If you specify the\n AT_TRIM_HORIZON
, FROM_TRIM_HORIZON
, or\n AT_LATEST
types, you do not need to specify either the\n ShardId
or the Timestamp
optional properties.
If you specify the AFTER_SHARD_ID
type, you must also provide the value\n for the optional ShardId
property. The ShardId
property is\n identical in fuctionality to the ExclusiveStartShardId
parameter of the\n ListShards
API. When ShardId
property is specified, the\n response includes the shards starting with the shard whose ID immediately follows the\n ShardId
that you provided.
If you specify the AT_TIMESTAMP
or FROM_TIMESTAMP_ID
type,\n you must also provide the value for the optional Timestamp
property. If you\n specify the AT_TIMESTAMP type, then all shards that were open at the provided timestamp\n are returned. If you specify the FROM_TIMESTAMP type, then all shards starting from the\n provided timestamp to TIP are returned.
When the number of shards in the data stream is greater than the default value for\n the MaxResults
parameter, or if you explicitly specify a value for\n MaxResults
that is less than the number of shards in the data stream,\n the response includes a pagination token named NextToken
. You can specify\n this NextToken
value in a subsequent call to ListShards
to\n list the next set of shards. For more information about the use of this pagination token\n when calling the ListShards
operation, see ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for\n NextToken
in the response to a call to ListShards
, you\n have 300 seconds to use that value. If you specify an expired token in a call to\n ListShards
, you get\n ExpiredNextTokenException
.
When the number of shards in the data stream is greater than the default value for the\n MaxResults
parameter, or if you explicitly specify a value for\n MaxResults
that is less than the number of shards in the data stream,\n the response includes a pagination token named NextToken
. You can specify\n this NextToken
value in a subsequent call to ListShards
to\n list the next set of shards. For more information about the use of this pagination token\n when calling the ListShards
operation, see ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for\n NextToken
in the response to a call to ListShards
, you\n have 300 seconds to use that value. If you specify an expired token in a call to\n ListShards
, you get ExpiredNextTokenException
.
The ARN of the Kinesis data stream for which you want to list the registered\n consumers. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
", + "smithy.api#documentation": "The ARN of the Kinesis data stream for which you want to list the registered\n consumers. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service\n Namespaces.
", "smithy.api#required": {} } }, @@ -1507,7 +1540,7 @@ "MaxResults": { "target": "com.amazonaws.kinesis#ListStreamConsumersInputLimit", "traits": { - "smithy.api#documentation": "The maximum number of consumers that you want a single call of\n ListStreamConsumers
to return.
The maximum number of consumers that you want a single call of\n ListStreamConsumers
to return. The default value is 100. If you specify\n a value greater than 100, at most 100 results are returned.
Lists your Kinesis data streams.
\nThe number of streams may be too large to return from a single call to\n ListStreams
. You can limit the number of returned streams using the\n Limit
parameter. If you do not specify a value for the\n Limit
parameter, Kinesis Data Streams uses the default limit, which is\n currently 10.
You can detect if there are more streams available to list by using the\n HasMoreStreams
flag from the returned output. If there are more streams\n available, you can request more streams by using the name of the last stream returned by\n the ListStreams
request in the ExclusiveStartStreamName
\n parameter in a subsequent request to ListStreams
. The group of stream names\n returned by the subsequent request is then added to the list. You can continue this\n process until all the stream names have been collected in the list.
\n ListStreams has a limit of five transactions per second per\n account.
" + "smithy.api#documentation": "Lists your Kinesis data streams.
\nThe number of streams may be too large to return from a single call to\n ListStreams
. You can limit the number of returned streams using the\n Limit
parameter. If you do not specify a value for the\n Limit
parameter, Kinesis Data Streams uses the default limit, which is\n currently 100.
You can detect if there are more streams available to list by using the\n HasMoreStreams
flag from the returned output. If there are more streams\n available, you can request more streams by using the name of the last stream returned by\n the ListStreams
request in the ExclusiveStartStreamName
\n parameter in a subsequent request to ListStreams
. The group of stream names\n returned by the subsequent request is then added to the list. You can continue this\n process until all the stream names have been collected in the list.
\n ListStreams has a limit of five transactions per second per\n account.
" } }, "com.amazonaws.kinesis#ListStreamsInput": { @@ -1568,7 +1601,7 @@ "Limit": { "target": "com.amazonaws.kinesis#ListStreamsInputLimit", "traits": { - "smithy.api#documentation": "The maximum number of streams to list.
" + "smithy.api#documentation": "The maximum number of streams to list. The default value is 100. If you specify a\n value greater than 100, at most 100 results are returned.
" } }, "ExclusiveStartStreamName": { @@ -1598,7 +1631,7 @@ "StreamNames": { "target": "com.amazonaws.kinesis#StreamNameList", "traits": { - "smithy.api#documentation": "The names of the streams that are associated with the AWS account making the\n ListStreams
request.
The names of the streams that are associated with the Amazon Web Services account\n making the ListStreams
request.
The key to use as the starting point for the list of tags. If this parameter is\n set, ListTagsForStream
gets all tags that occur after\n ExclusiveStartTagKey
.
The key to use as the starting point for the list of tags. If this parameter is set,\n ListTagsForStream
gets all tags that occur after\n ExclusiveStartTagKey
.
If set to true
, more tags are available. To request additional tags,\n set ExclusiveStartTagKey
to the key of the last tag returned.
If set to true
, more tags are available. To request additional tags, set\n ExclusiveStartTagKey
to the key of the last tag returned.
Merges two adjacent shards in a Kinesis data stream and combines them into a single\n shard to reduce the stream's capacity to ingest and transport data. Two shards are\n considered adjacent if the union of the hash key ranges for the two shards form a\n contiguous set with no gaps. For example, if you have two shards, one with a hash key\n range of 276...381 and the other with a hash key range of 382...454, then you could\n merge these two shards into a single shard that would have a hash key range of\n 276...454. After the merge, the single child shard receives data for all hash key values\n covered by the two parent shards.
\n\n MergeShards
is called when there is a need to reduce the overall capacity\n of a stream because of excess capacity that is not being used. You must specify the\n shard to be merged and the adjacent shard for a stream. For more information about\n merging shards, see Merge Two\n Shards in the Amazon Kinesis Data Streams Developer\n Guide.
If the stream is in the ACTIVE
state, you can call\n MergeShards
. If a stream is in the CREATING
,\n UPDATING
, or DELETING
state, MergeShards
\n returns a ResourceInUseException
. If the specified stream does not exist,\n MergeShards
returns a ResourceNotFoundException
.
You can use DescribeStream to check the state of the stream,\n which is returned in StreamStatus
.
\n MergeShards
is an asynchronous operation. Upon receiving a\n MergeShards
request, Amazon Kinesis Data Streams immediately returns a\n response and sets the StreamStatus
to UPDATING
. After the\n operation is completed, Kinesis Data Streams sets the StreamStatus
to\n ACTIVE
. Read and write operations continue to work while the stream is\n in the UPDATING
state.
You use DescribeStream to determine the shard IDs that are\n specified in the MergeShards
request.
If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards
,\n or SplitShard, you receive a LimitExceededException
.
\n MergeShards
has a limit of five transactions per second per\n account.
Merges two adjacent shards in a Kinesis data stream and combines them into a single\n shard to reduce the stream's capacity to ingest and transport data. Two shards are\n considered adjacent if the union of the hash key ranges for the two shards form a\n contiguous set with no gaps. For example, if you have two shards, one with a hash key\n range of 276...381 and the other with a hash key range of 382...454, then you could\n merge these two shards into a single shard that would have a hash key range of\n 276...454. After the merge, the single child shard receives data for all hash key values\n covered by the two parent shards.
\n\n MergeShards
is called when there is a need to reduce the overall capacity\n of a stream because of excess capacity that is not being used. You must specify the\n shard to be merged and the adjacent shard for a stream. For more information about\n merging shards, see Merge Two\n Shards in the Amazon Kinesis Data Streams Developer\n Guide.
If the stream is in the ACTIVE
state, you can call\n MergeShards
. If a stream is in the CREATING
,\n UPDATING
, or DELETING
state, MergeShards
\n returns a ResourceInUseException
. If the specified stream does not exist,\n MergeShards
returns a ResourceNotFoundException
.
You can use DescribeStreamSummary to check the state of the stream,\n which is returned in StreamStatus
.
\n MergeShards
is an asynchronous operation. Upon receiving a\n MergeShards
request, Amazon Kinesis Data Streams immediately returns a\n response and sets the StreamStatus
to UPDATING
. After the\n operation is completed, Kinesis Data Streams sets the StreamStatus
to\n ACTIVE
. Read and write operations continue to work while the stream is\n in the UPDATING
state.
You use DescribeStreamSummary and the ListShards\n APIs to determine the shard IDs that are specified in the MergeShards
\n request.
If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards
,\n or SplitShard, you receive a LimitExceededException
.
\n MergeShards
has a limit of five transactions per second per account.
The shard ID of the shard to combine with the adjacent shard for the\n merge.
", + "smithy.api#documentation": "The shard ID of the shard to combine with the adjacent shard for the merge.
", "smithy.api#required": {} } }, @@ -1817,6 +1853,26 @@ } } }, + "com.amazonaws.kinesis#OnDemandStreamCountLimitObject": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 1000000 + } + } + }, + "com.amazonaws.kinesis#OnDemandStreamCountObject": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 1000000 + } + } + }, "com.amazonaws.kinesis#PartitionKey": { "type": "string", "traits": { @@ -1846,7 +1902,7 @@ } }, "traits": { - "smithy.api#documentation": "The request rate for the stream is too high, or the requested data is too large for\n the available throughput. Reduce the frequency or size of your requests. For more\n information, see Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide, and Error Retries and\n Exponential Backoff in AWS in the AWS General\n Reference.
", + "smithy.api#documentation": "The request rate for the stream is too high, or the requested data is too large for\n the available throughput. Reduce the frequency or size of your requests. For more\n information, see Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide, and Error Retries and\n Exponential Backoff in Amazon Web Services in the Amazon Web Services General Reference.
", "smithy.api#error": "client" } }, @@ -1888,7 +1944,7 @@ } ], "traits": { - "smithy.api#documentation": "Writes a single data record into an Amazon Kinesis data stream. Call\n PutRecord
to send data into the stream for real-time ingestion and\n subsequent processing, one record at a time. Each shard can support writes up to 1,000\n records per second, up to a maximum data write total of 1 MiB per second.
You must specify the name of the stream that captures, stores, and transports the\n data; a partition key; and the data blob itself.
\nThe data blob can be any type of data; for example, a segment from a log file,\n geographic/location data, website clickstream data, and so on.
\nThe partition key is used by Kinesis Data Streams to distribute data across shards.\n Kinesis Data Streams segregates the data records that belong to a stream into multiple\n shards, using the partition key associated with each data record to determine the shard\n to which a given data record belongs.
\nPartition keys are Unicode strings, with a maximum length limit of 256 characters\n for each key. An MD5 hash function is used to map partition keys to 128-bit integer\n values and to map associated data records to shards using the hash key ranges of the\n shards. You can override hashing the partition key to determine the shard by explicitly\n specifying a hash value using the ExplicitHashKey
parameter. For more\n information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.
\n PutRecord
returns the shard ID of where the data record was placed and the\n sequence number that was assigned to the data record.
Sequence numbers increase over time and are specific to a shard within a stream,\n not across all shards within a stream. To guarantee strictly increasing ordering, write\n serially to a shard and use the SequenceNumberForOrdering
parameter. For\n more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.
After you write a record to a stream, you cannot modify that record or its order\n within the stream.
\nIf a PutRecord
request cannot be processed because of insufficient\n provisioned throughput on the shard involved in the request, PutRecord
\n throws ProvisionedThroughputExceededException
.
By default, data records are accessible for 24 hours from the time that they are\n added to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.
" + "smithy.api#documentation": "Writes a single data record into an Amazon Kinesis data stream. Call\n PutRecord
to send data into the stream for real-time ingestion and\n subsequent processing, one record at a time. Each shard can support writes up to 1,000\n records per second, up to a maximum data write total of 1 MiB per second.
You must specify the name of the stream that captures, stores, and transports the\n data; a partition key; and the data blob itself.
\nThe data blob can be any type of data; for example, a segment from a log file,\n geographic/location data, website clickstream data, and so on.
\nThe partition key is used by Kinesis Data Streams to distribute data across shards.\n Kinesis Data Streams segregates the data records that belong to a stream into multiple\n shards, using the partition key associated with each data record to determine the shard\n to which a given data record belongs.
\nPartition keys are Unicode strings, with a maximum length limit of 256 characters for\n each key. An MD5 hash function is used to map partition keys to 128-bit integer values\n and to map associated data records to shards using the hash key ranges of the shards.\n You can override hashing the partition key to determine the shard by explicitly\n specifying a hash value using the ExplicitHashKey
parameter. For more\n information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.
\n PutRecord
returns the shard ID of where the data record was placed and the\n sequence number that was assigned to the data record.
Sequence numbers increase over time and are specific to a shard within a stream, not\n across all shards within a stream. To guarantee strictly increasing ordering, write\n serially to a shard and use the SequenceNumberForOrdering
parameter. For\n more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.
After you write a record to a stream, you cannot modify that record or its order\n within the stream.
\nIf a PutRecord
request cannot be processed because of insufficient\n provisioned throughput on the shard involved in the request, PutRecord
\n throws ProvisionedThroughputExceededException
.
By default, data records are accessible for 24 hours from the time that they are added\n to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.
" } }, "com.amazonaws.kinesis#PutRecordInput": { @@ -1918,13 +1974,13 @@ "ExplicitHashKey": { "target": "com.amazonaws.kinesis#HashKey", "traits": { - "smithy.api#documentation": "The hash value used to explicitly determine the shard the data record is assigned\n to by overriding the partition key hash.
" + "smithy.api#documentation": "The hash value used to explicitly determine the shard the data record is assigned to\n by overriding the partition key hash.
" } }, "SequenceNumberForOrdering": { "target": "com.amazonaws.kinesis#SequenceNumber", "traits": { - "smithy.api#documentation": "Guarantees strictly increasing sequence numbers, for puts from the same client and\n to the same partition key. Usage: set the SequenceNumberForOrdering
of\n record n to the sequence number of record n-1\n (as returned in the result when putting record n-1). If this\n parameter is not set, records are coarsely ordered based on arrival time.
Guarantees strictly increasing sequence numbers, for puts from the same client and to\n the same partition key. Usage: set the SequenceNumberForOrdering
of record\n n to the sequence number of record n-1 (as\n returned in the result when putting record n-1). If this parameter\n is not set, records are coarsely ordered based on arrival time.
The sequence number identifier that was assigned to the put data record. The\n sequence number for the record is unique across all records in the stream. A sequence\n number is the identifier associated with every record put into the stream.
", + "smithy.api#documentation": "The sequence number identifier that was assigned to the put data record. The sequence\n number for the record is unique across all records in the stream. A sequence number is\n the identifier associated with every record put into the stream.
", "smithy.api#required": {} } }, "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { - "smithy.api#documentation": "The encryption type to use on the record. This parameter can be one of the\n following values:
\n\n NONE
: Do not encrypt the records in the stream.
\n KMS
: Use server-side encryption on the records in the stream\n using a customer-managed AWS KMS key.
The encryption type to use on the record. This parameter can be one of the following\n values:
\n\n NONE
: Do not encrypt the records in the stream.
\n KMS
: Use server-side encryption on the records in the stream\n using a customer-managed Amazon Web Services KMS key.
Writes multiple data records into a Kinesis data stream in a single call (also\n referred to as a PutRecords
request). Use this operation to send data into\n the stream for data ingestion and processing.
Each PutRecords
request can support up to 500 records. Each record in\n the request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,\n including partition keys. Each shard can support writes up to 1,000 records per second,\n up to a maximum data write total of 1 MiB per second.
You must specify the name of the stream that captures, stores, and transports the\n data; and an array of request Records
, with each record in the array\n requiring a partition key and data blob. The record size limit applies to the total size\n of the partition key and data blob.
The data blob can be any type of data; for example, a segment from a log file,\n geographic/location data, website clickstream data, and so on.
\nThe partition key is used by Kinesis Data Streams as input to a hash function that\n maps the partition key and associated data to a specific shard. An MD5 hash function is\n used to map partition keys to 128-bit integer values and to map associated data records\n to shards. As a result of this hashing mechanism, all data records with the same\n partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.
\nEach record in the Records
array may include an optional parameter,\n ExplicitHashKey
, which overrides the partition key to shard mapping.\n This parameter allows a data producer to determine explicitly the shard where the record\n is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis\n Data Streams Developer Guide.
The PutRecords
response includes an array of response\n Records
. Each record in the response array directly correlates with a\n record in the request array using natural ordering, from the top to the bottom of the\n request and response. The response Records
array always includes the same\n number of records as the request array.
The response Records
array includes both successfully and\n unsuccessfully processed records. Kinesis Data Streams attempts to process all records\n in each PutRecords
request. A single record failure does not stop the\n processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering\n of records. If you need to read records in the same order they are written to the\n stream, use PutRecord instead of PutRecords
, and write to\n the same shard.
A successfully processed record includes ShardId
and\n SequenceNumber
values. The ShardId
parameter identifies\n the shard in the stream where the record is stored. The SequenceNumber
\n parameter is an identifier assigned to the put record, unique to all records in the\n stream.
An unsuccessfully processed record includes ErrorCode
and\n ErrorMessage
values. ErrorCode
reflects the type of error\n and can be one of the following values:\n ProvisionedThroughputExceededException
or InternalFailure
.\n ErrorMessage
provides more detailed information about the\n ProvisionedThroughputExceededException
exception including the account\n ID, stream name, and shard ID of the record that was throttled. For more information\n about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis\n Data Streams Developer Guide.
After you write a record to a stream, you cannot modify that record or its order\n within the stream.
\nBy default, data records are accessible for 24 hours from the time that they are\n added to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.
" + "smithy.api#documentation": "Writes multiple data records into a Kinesis data stream in a single call (also\n referred to as a PutRecords
request). Use this operation to send data into\n the stream for data ingestion and processing.
Each PutRecords
request can support up to 500 records. Each record in the\n request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,\n including partition keys. Each shard can support writes up to 1,000 records per second,\n up to a maximum data write total of 1 MiB per second.
You must specify the name of the stream that captures, stores, and transports the\n data; and an array of request Records
, with each record in the array\n requiring a partition key and data blob. The record size limit applies to the total size\n of the partition key and data blob.
The data blob can be any type of data; for example, a segment from a log file,\n geographic/location data, website clickstream data, and so on.
\nThe partition key is used by Kinesis Data Streams as input to a hash function that\n maps the partition key and associated data to a specific shard. An MD5 hash function is\n used to map partition keys to 128-bit integer values and to map associated data records\n to shards. As a result of this hashing mechanism, all data records with the same\n partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams\n Developer Guide.
\nEach record in the Records
array may include an optional parameter,\n ExplicitHashKey
, which overrides the partition key to shard mapping.\n This parameter allows a data producer to determine explicitly the shard where the record\n is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis\n Data Streams Developer Guide.
The PutRecords
response includes an array of response\n Records
. Each record in the response array directly correlates with a\n record in the request array using natural ordering, from the top to the bottom of the\n request and response. The response Records
array always includes the same\n number of records as the request array.
The response Records
array includes both successfully and unsuccessfully\n processed records. Kinesis Data Streams attempts to process all records in each\n PutRecords
request. A single record failure does not stop the\n processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering\n of records. If you need to read records in the same order they are written to the\n stream, use PutRecord instead of PutRecords
, and write to\n the same shard.
A successfully processed record includes ShardId
and\n SequenceNumber
values. The ShardId
parameter identifies\n the shard in the stream where the record is stored. The SequenceNumber
\n parameter is an identifier assigned to the put record, unique to all records in the\n stream.
An unsuccessfully processed record includes ErrorCode
and\n ErrorMessage
values. ErrorCode
reflects the type of error\n and can be one of the following values:\n ProvisionedThroughputExceededException
or InternalFailure
.\n ErrorMessage
provides more detailed information about the\n ProvisionedThroughputExceededException
exception including the account\n ID, stream name, and shard ID of the record that was throttled. For more information\n about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis\n Data Streams Developer Guide.
After you write a record to a stream, you cannot modify that record or its order\n within the stream.
\nBy default, data records are accessible for 24 hours from the time that they are added\n to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.
" } }, "com.amazonaws.kinesis#PutRecordsInput": { @@ -2035,14 +2091,14 @@ "Records": { "target": "com.amazonaws.kinesis#PutRecordsResultEntryList", "traits": { - "smithy.api#documentation": "An array of successfully and unsuccessfully processed record results, correlated\n with the request by natural ordering. A record that is successfully added to a stream\n includes SequenceNumber
and ShardId
in the result. A record\n that fails to be added to a stream includes ErrorCode
and\n ErrorMessage
in the result.
An array of successfully and unsuccessfully processed record results. A record that is\n successfully added to a stream includes SequenceNumber
and\n ShardId
in the result. A record that fails to be added to a stream\n includes ErrorCode
and ErrorMessage
in the result.
The encryption type used on the records. This parameter can be one of the following\n values:
\n\n NONE
: Do not encrypt the records.
\n KMS
: Use server-side encryption on the records using a\n customer-managed AWS KMS key.
The encryption type used on the records. This parameter can be one of the following\n values:
\n\n NONE
: Do not encrypt the records.
\n KMS
: Use server-side encryption on the records using a\n customer-managed Amazon Web Services KMS key.
The hash value used to determine explicitly the shard that the data record is\n assigned to by overriding the partition key hash.
" + "smithy.api#documentation": "The hash value used to determine explicitly the shard that the data record is assigned\n to by overriding the partition key hash.
" } }, "PartitionKey": { @@ -2108,18 +2164,18 @@ "ErrorCode": { "target": "com.amazonaws.kinesis#ErrorCode", "traits": { - "smithy.api#documentation": "The error code for an individual record result. ErrorCodes
can be\n either ProvisionedThroughputExceededException
or\n InternalFailure
.
The error code for an individual record result. ErrorCodes
can be either\n ProvisionedThroughputExceededException
or\n InternalFailure
.
The error message for an individual record result. An ErrorCode
value\n of ProvisionedThroughputExceededException
has an error message that\n includes the account ID, stream name, and shard ID. An ErrorCode
value of\n InternalFailure
has the error message \"Internal Service\n Failure\"
.
The error message for an individual record result. An ErrorCode
value of\n ProvisionedThroughputExceededException
has an error message that\n includes the account ID, stream name, and shard ID. An ErrorCode
value of\n InternalFailure
has the error message \"Internal Service\n Failure\"
.
Represents the result of an individual record from a PutRecords
\n request. A record that is successfully added to a stream includes\n SequenceNumber
and ShardId
in the result. A record that\n fails to be added to the stream includes ErrorCode
and\n ErrorMessage
in the result.
Represents the result of an individual record from a PutRecords
request.\n A record that is successfully added to a stream includes SequenceNumber
and\n ShardId
in the result. A record that fails to be added to the stream\n includes ErrorCode
and ErrorMessage
in the result.
The encryption type used on the record. This parameter can be one of the following\n values:
\n\n NONE
: Do not encrypt the records in the stream.
\n KMS
: Use server-side encryption on the records in the stream\n using a customer-managed AWS KMS key.
The encryption type used on the record. This parameter can be one of the following\n values:
\n\n NONE
: Do not encrypt the records in the stream.
\n KMS
: Use server-side encryption on the records in the stream\n using a customer-managed Amazon Web Services KMS key.
The unit of data of the Kinesis data stream, which is composed of a sequence\n number, a partition key, and a data blob.
" + "smithy.api#documentation": "The unit of data of the Kinesis data stream, which is composed of a sequence number, a\n partition key, and a data blob.
" } }, "com.amazonaws.kinesis#RecordList": { @@ -2213,7 +2269,7 @@ "StreamARN": { "target": "com.amazonaws.kinesis#StreamARN", "traits": { - "smithy.api#documentation": "The ARN of the Kinesis data stream that you want to register the consumer with. For\n more info, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
", + "smithy.api#documentation": "The ARN of the Kinesis data stream that you want to register the consumer with. For\n more info, see Amazon Resource Names (ARNs) and Amazon Web Services Service\n Namespaces.
", "smithy.api#required": {} } }, @@ -2333,7 +2389,7 @@ "com.amazonaws.kinesis#SequenceNumber": { "type": "string", "traits": { - "smithy.api#pattern": "0|([1-9]\\d{0,128})" + "smithy.api#pattern": "^0|([1-9]\\d{0,128})$" } }, "com.amazonaws.kinesis#SequenceNumberRange": { @@ -2414,15 +2470,25 @@ "Type": { "target": "com.amazonaws.kinesis#ShardFilterType", "traits": { + "smithy.api#documentation": "The shard type specified in the ShardFilter
parameter. This is a required\n property of the ShardFilter
parameter.
You can specify the following valid values:
\n\n AFTER_SHARD_ID
- the response includes all the shards, starting\n with the shard whose ID immediately follows the ShardId
that you\n provided.
\n AT_TRIM_HORIZON
- the response includes all the shards that were\n open at TRIM_HORIZON
.
\n FROM_TRIM_HORIZON
- (default), the response includes all the\n shards within the retention period of the data stream (trim to tip).
\n AT_LATEST
- the response includes only the currently open shards\n of the data stream.
\n AT_TIMESTAMP
- the response includes all shards whose start\n timestamp is less than or equal to the given timestamp and end timestamp is\n greater than or equal to the given timestamp or still open.
\n FROM_TIMESTAMP
- the response incldues all closed shards whose\n end timestamp is greater than or equal to the given timestamp and also all open\n shards. Corrected to TRIM_HORIZON
of the data stream if\n FROM_TIMESTAMP
is less than the TRIM_HORIZON
\n value.
The exclusive start shardID
speified in the ShardFilter
\n parameter. This property can only be used if the AFTER_SHARD_ID
shard type\n is specified.
The timestamps specified in the ShardFilter
parameter. A timestamp is a\n Unix epoch date with precision in milliseconds. For example,\n 2016-04-04T19:58:46.480-00:00 or 1459799926.480. This property can only be used if\n FROM_TIMESTAMP
or AT_TIMESTAMP
shard types are\n specified.
The request parameter used to filter out the response of the ListShards
\n API.
Splits a shard into two new shards in the Kinesis data stream, to increase the\n stream's capacity to ingest and transport data. SplitShard
is called when\n there is a need to increase the overall capacity of a stream because of an expected\n increase in the volume of data records being ingested.
You can also use SplitShard
when a shard appears to be approaching its\n maximum utilization; for example, the producers sending data into the specific shard are\n suddenly sending more than previously anticipated. You can also call\n SplitShard
to increase stream capacity, so that more Kinesis Data\n Streams applications can simultaneously read data from the stream for real-time\n processing.
You must specify the shard to be split and the new hash key, which is the position\n in the shard where the shard gets split in two. In many cases, the new hash key might be\n the average of the beginning and ending hash key, but it can be any hash key value in\n the range being mapped into the shard. For more information, see Split a\n Shard in the Amazon Kinesis Data Streams Developer\n Guide.
\nYou can use DescribeStream to determine the shard ID and hash key\n values for the ShardToSplit
and NewStartingHashKey
parameters\n that are specified in the SplitShard
request.
\n SplitShard
is an asynchronous operation. Upon receiving a\n SplitShard
request, Kinesis Data Streams immediately returns a response\n and sets the stream status to UPDATING
. After the operation is completed,\n Kinesis Data Streams sets the stream status to ACTIVE
. Read and write\n operations continue to work while the stream is in the UPDATING
state.
You can use DescribeStream
to check the status of the stream, which is\n returned in StreamStatus
. If the stream is in the ACTIVE
\n state, you can call SplitShard
. If a stream is in CREATING
or\n UPDATING
or DELETING
states, DescribeStream
\n returns a ResourceInUseException
.
If the specified stream does not exist, DescribeStream
returns a\n ResourceNotFoundException
. If you try to create more shards than are\n authorized for your account, you receive a LimitExceededException
.
For the default shard limit for an AWS account, see Kinesis Data Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide. To increase this limit, contact AWS\n Support.
\nIf you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a\n LimitExceededException
.
\n SplitShard
has a limit of five transactions per second per\n account.
Splits a shard into two new shards in the Kinesis data stream, to increase the\n stream's capacity to ingest and transport data. SplitShard
is called when\n there is a need to increase the overall capacity of a stream because of an expected\n increase in the volume of data records being ingested.
You can also use SplitShard
when a shard appears to be approaching its\n maximum utilization; for example, the producers sending data into the specific shard are\n suddenly sending more than previously anticipated. You can also call\n SplitShard
to increase stream capacity, so that more Kinesis Data\n Streams applications can simultaneously read data from the stream for real-time\n processing.
You must specify the shard to be split and the new hash key, which is the position in\n the shard where the shard gets split in two. In many cases, the new hash key might be\n the average of the beginning and ending hash key, but it can be any hash key value in\n the range being mapped into the shard. For more information, see Split a\n Shard in the Amazon Kinesis Data Streams Developer\n Guide.
\nYou can use DescribeStreamSummary and the ListShards APIs to determine the shard ID and hash key values for the ShardToSplit
\n and NewStartingHashKey
parameters that are specified in the\n SplitShard
request.
\n SplitShard
is an asynchronous operation. Upon receiving a\n SplitShard
request, Kinesis Data Streams immediately returns a response\n and sets the stream status to UPDATING
. After the operation is completed,\n Kinesis Data Streams sets the stream status to ACTIVE
. Read and write\n operations continue to work while the stream is in the UPDATING
state.
You can use DescribeStreamSummary to check the status of the stream,\n which is returned in StreamStatus
. If the stream is in the\n ACTIVE
state, you can call SplitShard
.\n
If the specified stream does not exist, DescribeStreamSummary\n returns a ResourceNotFoundException
. If you try to create more shards than\n are authorized for your account, you receive a LimitExceededException
.
For the default shard limit for an Amazon Web Services account, see Kinesis\n Data Streams Limits in the Amazon Kinesis Data Streams Developer\n Guide. To increase this limit, contact Amazon Web Services\n Support.
\nIf you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a\n LimitExceededException
.
\n SplitShard
has a limit of five transactions per second per account.
A hash key value for the starting hash key of one of the child shards created by\n the split. The hash key range for a given shard constitutes a set of ordered contiguous\n positive integers. The value for NewStartingHashKey
must be in the range of\n hash keys being mapped into the shard. The NewStartingHashKey
hash key\n value and all higher hash key values in hash key range are distributed to one of the\n child shards. All the lower hash key values in the range are distributed to the other\n child shard.
A hash key value for the starting hash key of one of the child shards created by the\n split. The hash key range for a given shard constitutes a set of ordered contiguous\n positive integers. The value for NewStartingHashKey
must be in the range of\n hash keys being mapped into the shard. The NewStartingHashKey
hash key\n value and all higher hash key values in hash key range are distributed to one of the\n child shards. All the lower hash key values in the range are distributed to the other\n child shard.
Enables or updates server-side encryption using an AWS KMS key for a specified\n stream.
\nStarting encryption is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING
. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE
. Updating or applying encryption\n normally takes a few seconds to complete, but it can take minutes. You can continue to\n read and write data to your stream while its status is UPDATING
. Once the\n status of the stream is ACTIVE
, encryption begins for records written to\n the stream.
API Limits: You can successfully apply a new AWS KMS key for server-side encryption\n 25 times in a rolling 24-hour period.
\nNote: It can take up to 5 seconds after the stream is in an ACTIVE
\n status before all records written to the stream are encrypted. After you enable\n encryption, you can verify that encryption is applied by inspecting the API response\n from PutRecord
or PutRecords
.
Enables or updates server-side encryption using an Amazon Web Services KMS key for a\n specified stream.
\nStarting encryption is an asynchronous operation. Upon receiving the request, Kinesis\n Data Streams returns immediately and sets the status of the stream to\n UPDATING
. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE
. Updating or applying encryption\n normally takes a few seconds to complete, but it can take minutes. You can continue to\n read and write data to your stream while its status is UPDATING
. Once the\n status of the stream is ACTIVE
, encryption begins for records written to\n the stream.
API Limits: You can successfully apply a new Amazon Web Services KMS key for\n server-side encryption 25 times in a rolling 24-hour period.
\nNote: It can take up to 5 seconds after the stream is in an ACTIVE
status\n before all records written to the stream are encrypted. After you enable encryption, you\n can verify that encryption is applied by inspecting the API response from\n PutRecord
or PutRecords
.
The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either\n an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key\n owned by Kinesis Data Streams by specifying the alias\n aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example:\n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption.\n This value can be a globally unique identifier, a fully specified Amazon Resource Name\n (ARN) to either an alias or a key, or an alias name prefixed by \"alias/\".You can also\n use a master key owned by Kinesis Data Streams by specifying the alias\n aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example:\n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
The starting position in the data stream from which to start streaming.
" } }, "com.amazonaws.kinesis#StopStreamEncryption": { @@ -2680,7 +2749,7 @@ } ], "traits": { - "smithy.api#documentation": "Disables server-side encryption for a specified stream.
\nStopping encryption is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING
. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE
. Stopping encryption normally takes a\n few seconds to complete, but it can take minutes. You can continue to read and write\n data to your stream while its status is UPDATING
. Once the status of the\n stream is ACTIVE
, records written to the stream are no longer encrypted by\n Kinesis Data Streams.
API Limits: You can successfully disable server-side encryption 25 times in a\n rolling 24-hour period.
\nNote: It can take up to 5 seconds after the stream is in an ACTIVE
\n status before all records written to the stream are no longer subject to encryption.\n After you disabled encryption, you can verify that encryption is not applied by\n inspecting the API response from PutRecord
or\n PutRecords
.
Disables server-side encryption for a specified stream.
\nStopping encryption is an asynchronous operation. Upon receiving the request, Kinesis\n Data Streams returns immediately and sets the status of the stream to\n UPDATING
. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE
. Stopping encryption normally takes a\n few seconds to complete, but it can take minutes. You can continue to read and write\n data to your stream while its status is UPDATING
. Once the status of the\n stream is ACTIVE
, records written to the stream are no longer encrypted by\n Kinesis Data Streams.
API Limits: You can successfully disable server-side encryption 25 times in a rolling\n 24-hour period.
\nNote: It can take up to 5 seconds after the stream is in an ACTIVE
status\n before all records written to the stream are no longer subject to encryption. After you\n disabled encryption, you can verify that encryption is not applied by inspecting the API\n response from PutRecord
or PutRecords
.
The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either\n an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key\n owned by Kinesis Data Streams by specifying the alias\n aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example:\n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption.\n This value can be a globally unique identifier, a fully specified Amazon Resource Name\n (ARN) to either an alias or a key, or an alias name prefixed by \"alias/\".You can also\n use a master key owned by Kinesis Data Streams by specifying the alias\n aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example:\n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
Specifies the capacity mode to which you want to set your data stream. Currently, in\n Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
" + } + }, "Shards": { "target": "com.amazonaws.kinesis#ShardList", "traits": { @@ -2781,13 +2856,13 @@ "EncryptionType": { "target": "com.amazonaws.kinesis#EncryptionType", "traits": { - "smithy.api#documentation": "The server-side encryption type used on the stream. This parameter can be one of\n the following values:
\n\n NONE
: Do not encrypt the records in the stream.
\n KMS
: Use server-side encryption on the records in the stream\n using a customer-managed AWS KMS key.
The server-side encryption type used on the stream. This parameter can be one of the\n following values:
\n\n NONE
: Do not encrypt the records in the stream.
\n KMS
: Use server-side encryption on the records in the stream\n using a customer-managed Amazon Web Services KMS key.
The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified ARN to either an alias or a key, or\n an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data\n Streams by specifying the alias aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example:\n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption.\n This value can be a globally unique identifier, a fully specified ARN to either an alias\n or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by\n Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example:\n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
Specifies the capacity mode to which you want to set your data stream. Currently, in\n Kinesis Data Streams, you can choose between an on-demand ycapacity mode and a provisioned capacity mode for your data streams.
" + } + }, "RetentionPeriodHours": { "target": "com.amazonaws.kinesis#RetentionPeriodHours", "traits": { @@ -2849,7 +2930,7 @@ "KeyId": { "target": "com.amazonaws.kinesis#KeyId", "traits": { - "smithy.api#documentation": "The GUID for the customer-managed AWS KMS key to use for encryption. This value can\n be a globally unique identifier, a fully specified ARN to either an alias or a key, or\n an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data\n Streams by specifying the alias aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example: \n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption.\n This value can be a globally unique identifier, a fully specified ARN to either an alias\n or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by\n Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example:\n arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
\n
Alias ARN example: \n arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
\n
Globally unique key ID example:\n 12345678-1234-1234-1234-123456789012
\n
Alias name example: alias/MyAliasName
\n
Master key owned by Kinesis Data Streams:\n alias/aws/kinesis
\n
Represents the output for DescribeStreamSummary\n
" } }, + "com.amazonaws.kinesis#StreamMode": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PROVISIONED", + "name": "PROVISIONED" + }, + { + "value": "ON_DEMAND", + "name": "ON_DEMAND" + } + ] + } + }, + "com.amazonaws.kinesis#StreamModeDetails": { + "type": "structure", + "members": { + "StreamMode": { + "target": "com.amazonaws.kinesis#StreamMode", + "traits": { + "smithy.api#documentation": "Specifies the capacity mode to which you want to set your data stream. Currently, in\n Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the capacity mode to which you want to set your data stream. Currently, in\n Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
" + } + }, "com.amazonaws.kinesis#StreamName": { "type": "string", "traits": { @@ -2877,7 +2988,7 @@ "min": 1, "max": 128 }, - "smithy.api#pattern": "[a-zA-Z0-9_.-]+" + "smithy.api#pattern": "^[a-zA-Z0-9_.-]+$" } }, "com.amazonaws.kinesis#StreamNameList": { @@ -2932,7 +3043,7 @@ } ], "traits": { - "smithy.api#documentation": "This operation establishes an HTTP/2 connection between the consumer you specify in\n the ConsumerARN
parameter and the shard you specify in the\n ShardId
parameter. After the connection is successfully established,\n Kinesis Data Streams pushes records from the shard to the consumer over this connection.\n Before you call this operation, call RegisterStreamConsumer to\n register the consumer with Kinesis Data Streams.
When the SubscribeToShard
call succeeds, your consumer starts receiving\n events of type SubscribeToShardEvent over the HTTP/2 connection for up\n to 5 minutes, after which time you need to call SubscribeToShard
again to\n renew the subscription if you want to continue to receive records.
You can make one call to SubscribeToShard
per second per registered\n consumer per shard. For example, if you have a 4000 shard stream and two registered\n stream consumers, you can make one SubscribeToShard
request per second for\n each combination of shard and registered consumer, allowing you to subscribe both\n consumers to all 4000 shards in one second.
If you call SubscribeToShard
again with the same ConsumerARN
\n and ShardId
within 5 seconds of a successful call, you'll get a\n ResourceInUseException
. If you call SubscribeToShard
5\n seconds or more after a successful call, the first connection will expire and the second\n call will take over the subscription.
For an example of how to use this operations, see Enhanced Fan-Out\n Using the Kinesis Data Streams API.
" + "smithy.api#documentation": "This operation establishes an HTTP/2 connection between the consumer you specify in\n the ConsumerARN
parameter and the shard you specify in the\n ShardId
parameter. After the connection is successfully established,\n Kinesis Data Streams pushes records from the shard to the consumer over this connection.\n Before you call this operation, call RegisterStreamConsumer to\n register the consumer with Kinesis Data Streams.
When the SubscribeToShard
call succeeds, your consumer starts receiving\n events of type SubscribeToShardEvent over the HTTP/2 connection for up\n to 5 minutes, after which time you need to call SubscribeToShard
again to\n renew the subscription if you want to continue to receive records.
You can make one call to SubscribeToShard
per second per registered\n consumer per shard. For example, if you have a 4000 shard stream and two registered\n stream consumers, you can make one SubscribeToShard
request per second for\n each combination of shard and registered consumer, allowing you to subscribe both\n consumers to all 4000 shards in one second.
If you call SubscribeToShard
again with the same ConsumerARN
\n and ShardId
within 5 seconds of a successful call, you'll get a\n ResourceInUseException
. If you call SubscribeToShard
5\n seconds or more after a successful call, the second call takes over the subscription and\n the previous connection expires or fails with a\n ResourceInUseException
.
For an example of how to use this operations, see Enhanced Fan-Out\n Using the Kinesis Data Streams API.
" } }, "com.amazonaws.kinesis#SubscribeToShardEvent": { @@ -2960,7 +3071,10 @@ } }, "ChildShards": { - "target": "com.amazonaws.kinesis#ChildShardList" + "target": "com.amazonaws.kinesis#ChildShardList", + "traits": { + "smithy.api#documentation": "The list of the child shards of the current shard, returned only at the end of the\n current shard.
" + } } }, "traits": { @@ -3032,7 +3146,7 @@ "StartingPosition": { "target": "com.amazonaws.kinesis#StartingPosition", "traits": { - "smithy.api#documentation": "", + "smithy.api#documentation": "The starting position in the data stream from which to start streaming.
", "smithy.api#required": {} } } @@ -3063,7 +3177,7 @@ "Value": { "target": "com.amazonaws.kinesis#TagValue", "traits": { - "smithy.api#documentation": "An optional string, typically used to describe or define the tag. Maximum length:\n 256 characters. Valid characters: Unicode letters, digits, white space, _ . / = + - %\n @
" + "smithy.api#documentation": "An optional string, typically used to describe or define the tag. Maximum length: 256\n characters. Valid characters: Unicode letters, digits, white space, _ . / = + - %\n @
" } } }, @@ -3151,10 +3265,13 @@ }, { "target": "com.amazonaws.kinesis#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.kinesis#ValidationException" } ], "traits": { - "smithy.api#documentation": "Updates the shard count of the specified stream to the specified number of\n shards.
\nUpdating the shard count is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING
. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE
. Depending on the size of the stream,\n the scaling action could take a few minutes to complete. You can continue to read and\n write data to your stream while its status is UPDATING
.
To update the shard count, Kinesis Data Streams performs splits or merges on\n individual shards. This can cause short-lived shards to be created, in addition to the\n final shards. These short-lived shards count towards your total shard limit for your\n account in the Region.
\nWhen using this operation, we recommend that you specify a target shard count that\n is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your\n shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling\n action might take longer to complete.
\nThis operation has the following default limits. By default, you cannot do the\n following:
\nScale more than ten times per rolling 24-hour period per stream
\nScale up to more than double your current shard count for a\n stream
\nScale down below half your current shard count for a stream
\nScale up to more than 500 shards in a stream
\nScale a stream with more than 500 shards down unless the result is less\n than 500 shards
\nScale up to more than the shard limit for your account
\nFor the default limits for an AWS account, see Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide. To request an\n increase in the call rate limit, the shard limit for this API, or your overall shard\n limit, use the limits form.
" + "smithy.api#documentation": "Updates the shard count of the specified stream to the specified number of\n shards.
\nUpdating the shard count is an asynchronous operation. Upon receiving the request,\n Kinesis Data Streams returns immediately and sets the status of the stream to\n UPDATING
. After the update is complete, Kinesis Data Streams sets the\n status of the stream back to ACTIVE
. Depending on the size of the stream,\n the scaling action could take a few minutes to complete. You can continue to read and\n write data to your stream while its status is UPDATING
.
To update the shard count, Kinesis Data Streams performs splits or merges on\n individual shards. This can cause short-lived shards to be created, in addition to the\n final shards. These short-lived shards count towards your total shard limit for your\n account in the Region.
\nWhen using this operation, we recommend that you specify a target shard count that is\n a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your\n shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling\n action might take longer to complete.
\nThis operation has the following default limits. By default, you cannot do the\n following:
\nScale more than ten times per rolling 24-hour period per stream
\nScale up to more than double your current shard count for a stream
\nScale down below half your current shard count for a stream
\nScale up to more than 10000 shards in a stream
\nScale a stream with more than 10000 shards down unless the result is less than\n 10000 shards
\nScale up to more than the shard limit for your account
\nFor the default limits for an Amazon Web Services account, see Streams\n Limits in the Amazon Kinesis Data Streams Developer\n Guide. To request an increase in the call rate limit, the shard limit for\n this API, or your overall shard limit, use the limits form.
" } }, "com.amazonaws.kinesis#UpdateShardCountInput": { @@ -3170,7 +3287,7 @@ "TargetShardCount": { "target": "com.amazonaws.kinesis#PositiveIntegerObject", "traits": { - "smithy.api#documentation": "The new number of shards. This value has the following default limits. By default,\n you cannot do the following:
\nSet this value to more than double your current shard count for a\n stream.
\nSet this value below half your current shard count for a stream.
\nSet this value to more than 500 shards in a stream (the default limit for\n shard count per stream is 500 per account per region), unless you request a\n limit increase.
\nScale a stream with more than 500 shards down unless you set this value to\n less than 500 shards.
\nThe new number of shards. This value has the following default limits. By default, you\n cannot do the following:
\nSet this value to more than double your current shard count for a\n stream.
\nSet this value below half your current shard count for a stream.
\nSet this value to more than 10000 shards in a stream (the default limit for\n shard count per stream is 10000 per account per region), unless you request a\n limit increase.
\nScale a stream with more than 10000 shards down unless you set this value to\n less than 10000 shards.
\nUpdates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you\n can choose between an on-demand capacity mode and a\n provisioned capacity mode for your data stream.\n
" + } + }, + "com.amazonaws.kinesis#UpdateStreamModeInput": { + "type": "structure", + "members": { + "StreamARN": { + "target": "com.amazonaws.kinesis#StreamARN", + "traits": { + "smithy.api#documentation": "Specifies the ARN of the data stream whose capacity mode you want to update.
", + "smithy.api#required": {} + } + }, + "StreamModeDetails": { + "target": "com.amazonaws.kinesis#StreamModeDetails", + "traits": { + "smithy.api#documentation": "Specifies the capacity mode to which you want to set your data stream. Currently, in\n Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.kinesis#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.kinesis#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "\n \n
", + "smithy.api#error": "client" + } } } } diff --git a/codegen/sdk-codegen/aws-models/lakeformation.2017-03-31.json b/codegen/sdk-codegen/aws-models/lakeformation.2017-03-31.json index 35f1a1610b4..e1563a317bb 100644 --- a/codegen/sdk-codegen/aws-models/lakeformation.2017-03-31.json +++ b/codegen/sdk-codegen/aws-models/lakeformation.2017-03-31.json @@ -31,6 +31,21 @@ "shapes": { "com.amazonaws.lakeformation#AWSLakeFormation": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "LakeFormation", + "arnNamespace": "lakeformation", + "cloudFormationName": "LakeFormation", + "cloudTrailEventSource": "lakeformation.amazonaws.com", + "endpointPrefix": "lakeformation" + }, + "aws.auth#sigv4": { + "name": "lakeformation" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "Defines the public endpoint for the Lake Formation service.
", + "smithy.api#title": "AWS Lake Formation" + }, "version": "2017-03-31", "operations": [ { @@ -42,18 +57,39 @@ { "target": "com.amazonaws.lakeformation#BatchRevokePermissions" }, + { + "target": "com.amazonaws.lakeformation#CancelTransaction" + }, + { + "target": "com.amazonaws.lakeformation#CommitTransaction" + }, + { + "target": "com.amazonaws.lakeformation#CreateDataCellsFilter" + }, { "target": "com.amazonaws.lakeformation#CreateLFTag" }, + { + "target": "com.amazonaws.lakeformation#DeleteDataCellsFilter" + }, { "target": "com.amazonaws.lakeformation#DeleteLFTag" }, + { + "target": "com.amazonaws.lakeformation#DeleteObjectsOnCancel" + }, { "target": "com.amazonaws.lakeformation#DeregisterResource" }, { "target": "com.amazonaws.lakeformation#DescribeResource" }, + { + "target": "com.amazonaws.lakeformation#DescribeTransaction" + }, + { + "target": "com.amazonaws.lakeformation#ExtendTransaction" + }, { "target": "com.amazonaws.lakeformation#GetDataLakeSettings" }, @@ -63,12 +99,30 @@ { "target": "com.amazonaws.lakeformation#GetLFTag" }, + { + "target": "com.amazonaws.lakeformation#GetQueryState" + }, + { + "target": "com.amazonaws.lakeformation#GetQueryStatistics" + }, { "target": "com.amazonaws.lakeformation#GetResourceLFTags" }, + { + "target": "com.amazonaws.lakeformation#GetTableObjects" + }, + { + "target": "com.amazonaws.lakeformation#GetWorkUnitResults" + }, + { + "target": "com.amazonaws.lakeformation#GetWorkUnits" + }, { "target": "com.amazonaws.lakeformation#GrantPermissions" }, + { + "target": "com.amazonaws.lakeformation#ListDataCellsFilter" + }, { "target": "com.amazonaws.lakeformation#ListLFTags" }, @@ -78,6 +132,12 @@ { "target": "com.amazonaws.lakeformation#ListResources" }, + { + "target": "com.amazonaws.lakeformation#ListTableStorageOptimizers" + }, + { + "target": "com.amazonaws.lakeformation#ListTransactions" + }, { "target": "com.amazonaws.lakeformation#PutDataLakeSettings" }, @@ -96,28 +156,25 @@ { "target": "com.amazonaws.lakeformation#SearchTablesByLFTags" }, + { + "target": "com.amazonaws.lakeformation#StartQueryPlanning" + }, + { + "target": "com.amazonaws.lakeformation#StartTransaction" + }, { "target": "com.amazonaws.lakeformation#UpdateLFTag" }, { "target": "com.amazonaws.lakeformation#UpdateResource" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "LakeFormation", - "arnNamespace": "lakeformation", - "cloudFormationName": "LakeFormation", - "cloudTrailEventSource": "lakeformation.amazonaws.com", - "endpointPrefix": "lakeformation" }, - "aws.auth#sigv4": { - "name": "lakeformation" + { + "target": "com.amazonaws.lakeformation#UpdateTableObjects" }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Defines the public endpoint for the AWS Lake Formation service.
", - "smithy.api#title": "AWS Lake Formation" - } + { + "target": "com.amazonaws.lakeformation#UpdateTableStorageOptimizer" + } + ] }, "com.amazonaws.lakeformation#AccessDeniedException": { "type": "structure", @@ -131,7 +188,8 @@ }, "traits": { "smithy.api#documentation": "Access to a resource was denied.
", - "smithy.api#error": "client" + "smithy.api#error": "client", + "smithy.api#httpError": 403 } }, "com.amazonaws.lakeformation#AddLFTagsToResource": { @@ -163,7 +221,12 @@ } ], "traits": { - "smithy.api#documentation": "Attaches one or more tags to an existing resource.
" + "smithy.api#documentation": "Attaches one or more LF-tags to an existing resource.
", + "smithy.api#http": { + "method": "POST", + "uri": "/AddLFTagsToResource", + "code": 200 + } } }, "com.amazonaws.lakeformation#AddLFTagsToResourceRequest": { @@ -172,20 +235,20 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Resource": { "target": "com.amazonaws.lakeformation#Resource", "traits": { - "smithy.api#documentation": "The resource to which to attach a tag.
", + "smithy.api#documentation": "The database, table, or column resource to which to attach an LF-tag.
", "smithy.api#required": {} } }, "LFTags": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "The tags to attach to the resource.
", + "smithy.api#documentation": "The LF-tags to attach to the resource.
", "smithy.api#required": {} } } @@ -202,6 +265,48 @@ } } }, + "com.amazonaws.lakeformation#AddObjectInput": { + "type": "structure", + "members": { + "Uri": { + "target": "com.amazonaws.lakeformation#URI", + "traits": { + "smithy.api#documentation": "The Amazon S3 location of the object.
", + "smithy.api#required": {} + } + }, + "ETag": { + "target": "com.amazonaws.lakeformation#ETagString", + "traits": { + "smithy.api#documentation": "The Amazon S3 ETag of the object. Returned by GetTableObjects
for validation and used to identify changes to the underlying data.
The size of the Amazon S3 object in bytes.
", + "smithy.api#required": {} + } + }, + "PartitionValues": { + "target": "com.amazonaws.lakeformation#PartitionValuesList", + "traits": { + "smithy.api#documentation": "A list of partition values for the object. A value must be specified for each partition key associated with the table.
\n\tThe supported data types are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss\"), string and decimal.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A new object to add to the governed table.
" + } + }, + "com.amazonaws.lakeformation#AllRowsWildcard": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "A structure that you pass to indicate you want all rows in a filter.
" + } + }, "com.amazonaws.lakeformation#AlreadyExistsException": { "type": "structure", "members": { @@ -234,7 +339,12 @@ } ], "traits": { - "smithy.api#documentation": "Batch operation to grant permissions to the principal.
" + "smithy.api#documentation": "Batch operation to grant permissions to the principal.
", + "smithy.api#http": { + "method": "POST", + "uri": "/BatchGrantPermissions", + "code": 200 + } } }, "com.amazonaws.lakeformation#BatchGrantPermissionsRequest": { @@ -243,7 +353,7 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Entries": { @@ -354,7 +464,12 @@ } ], "traits": { - "smithy.api#documentation": "Batch operation to revoke permissions from the principal.
" + "smithy.api#documentation": "Batch operation to revoke permissions from the principal.
", + "smithy.api#http": { + "method": "POST", + "uri": "/BatchRevokePermissions", + "code": 200 + } } }, "com.amazonaws.lakeformation#BatchRevokePermissionsRequest": { @@ -363,7 +478,7 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Entries": { @@ -392,6 +507,62 @@ "smithy.api#box": {} } }, + "com.amazonaws.lakeformation#CancelTransaction": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#CancelTransactionRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#CancelTransactionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommitInProgressException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommittedException" + } + ], + "traits": { + "smithy.api#documentation": "Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.
", + "smithy.api#http": { + "method": "POST", + "uri": "/CancelTransaction", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#CancelTransactionRequest": { + "type": "structure", + "members": { + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction to cancel.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#CancelTransactionResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.lakeformation#CatalogIdString": { "type": "string", "traits": { @@ -399,7 +570,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" } }, "com.amazonaws.lakeformation#CatalogResource": { @@ -421,12 +592,12 @@ "LFTags": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "The tags attached to a column resource.
" + "smithy.api#documentation": "The LF-tags attached to a column resource.
" } } }, "traits": { - "smithy.api#documentation": "A structure containing the name of a column resource and the tags attached to it.
" + "smithy.api#documentation": "A structure containing the name of a column resource and the LF-tags attached to it.
" } }, "com.amazonaws.lakeformation#ColumnLFTagsList": { @@ -455,6 +626,66 @@ "smithy.api#documentation": "A wildcard object, consisting of an optional list of excluded column names or indexes.
" } }, + "com.amazonaws.lakeformation#CommitTransaction": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#CommitTransactionRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#CommitTransactionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCanceledException" + } + ], + "traits": { + "smithy.api#documentation": "Attempts to commit the specified transaction. Returns an exception if the transaction was previously aborted. This API action is idempotent if called multiple times for the same transaction.
", + "smithy.api#http": { + "method": "POST", + "uri": "/CommitTransaction", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#CommitTransactionRequest": { + "type": "structure", + "members": { + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction to commit.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#CommitTransactionResponse": { + "type": "structure", + "members": { + "TransactionStatus": { + "target": "com.amazonaws.lakeformation#TransactionStatus", + "traits": { + "smithy.api#documentation": "The status of the transaction.
" + } + } + } + }, "com.amazonaws.lakeformation#ComparisonOperator": { "type": "string", "traits": { @@ -521,6 +752,62 @@ "smithy.api#error": "client" } }, + "com.amazonaws.lakeformation#CreateDataCellsFilter": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#CreateDataCellsFilterRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#CreateDataCellsFilterResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#AlreadyExistsException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#ResourceNumberLimitExceededException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a data cell filter to allow one to grant access to certain columns on certain rows.
", + "smithy.api#http": { + "method": "POST", + "uri": "/CreateDataCellsFilter", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#CreateDataCellsFilterRequest": { + "type": "structure", + "members": { + "TableData": { + "target": "com.amazonaws.lakeformation#DataCellsFilter", + "traits": { + "smithy.api#documentation": "A DataCellsFilter
structure containing information about the data cells filter.
Creates a tag with the specified name and values.
" + "smithy.api#documentation": "Creates an LF-tag with the specified name and values.
", + "smithy.api#http": { + "method": "POST", + "uri": "/CreateLFTag", + "code": 200 + } } }, "com.amazonaws.lakeformation#CreateLFTagRequest": { @@ -559,13 +851,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag.
", + "smithy.api#documentation": "The key-name for the LF-tag.
", "smithy.api#required": {} } }, @@ -582,13 +874,105 @@ "type": "structure", "members": {} }, - "com.amazonaws.lakeformation#DataLakePrincipal": { + "com.amazonaws.lakeformation#DataCellsFilter": { "type": "structure", "members": { - "DataLakePrincipalIdentifier": { - "target": "com.amazonaws.lakeformation#DataLakePrincipalString", + "TableCatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The ID of the catalog to which the table belongs.
", + "smithy.api#required": {} + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "A database in the Glue Data Catalog.
", + "smithy.api#required": {} + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "A table in the database.
", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name given by the user to the data filter cell.
", + "smithy.api#required": {} + } + }, + "RowFilter": { + "target": "com.amazonaws.lakeformation#RowFilter", + "traits": { + "smithy.api#documentation": "A PartiQL predicate.
" + } + }, + "ColumnNames": { + "target": "com.amazonaws.lakeformation#ColumnNames", + "traits": { + "smithy.api#documentation": "A list of column names.
" + } + }, + "ColumnWildcard": { + "target": "com.amazonaws.lakeformation#ColumnWildcard", "traits": { - "smithy.api#documentation": "An identifier for the AWS Lake Formation principal.
" + "smithy.api#documentation": "A wildcard with exclusions.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure that describes certain columns on certain rows.
" + } + }, + "com.amazonaws.lakeformation#DataCellsFilterList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#DataCellsFilter" + } + }, + "com.amazonaws.lakeformation#DataCellsFilterResource": { + "type": "structure", + "members": { + "TableCatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The ID of the catalog to which the table belongs.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "A database in the Glue Data Catalog.
" + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name of the table.
" + } + }, + "Name": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name of the data cells filter.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure for a data cells filter resource.
" + } + }, + "com.amazonaws.lakeformation#DataLakePrincipal": { + "type": "structure", + "members": { + "DataLakePrincipalIdentifier": { + "target": "com.amazonaws.lakeformation#DataLakePrincipalString", + "traits": { + "smithy.api#documentation": "An identifier for the Lake Formation principal.
" } } }, @@ -662,30 +1046,30 @@ "DataLakeAdmins": { "target": "com.amazonaws.lakeformation#DataLakePrincipalList", "traits": { - "smithy.api#documentation": "A list of AWS Lake Formation principals. Supported principals are IAM users or IAM roles.
" + "smithy.api#documentation": "A list of Lake Formation principals. Supported principals are IAM users or IAM roles.
" } }, "CreateDatabaseDefaultPermissions": { "target": "com.amazonaws.lakeformation#PrincipalPermissionsList", "traits": { - "smithy.api#documentation": "A structure representing a list of up to three principal permissions entries for default create database permissions.
" + "smithy.api#documentation": "Specifies whether access control on newly created database is managed by Lake Formation permissions or exclusively by IAM permissions. You can override this default setting when you create a database.
\n\t \nA null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting \"Use only IAM access control,\" and is for backward compatibility with the Glue permission model implemented by IAM permissions.
\n\t\n\tThe only permitted values are an empty array or an array that contains a single JSON object that grants ALL to IAM_ALLOWED_PRINCIPALS.
\n\nFor more information, see Changing the Default Security Settings for Your Data Lake.
" } }, "CreateTableDefaultPermissions": { "target": "com.amazonaws.lakeformation#PrincipalPermissionsList", "traits": { - "smithy.api#documentation": "A structure representing a list of up to three principal permissions entries for default create table permissions.
" + "smithy.api#documentation": "Specifies whether access control on newly created table is managed by Lake Formation permissions or exclusively by IAM permissions.
\n\t \nA null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting \"Use only IAM access control,\" and is for backward compatibility with the Glue permission model implemented by IAM permissions.
\n\t\n\tThe only permitted values are an empty array or an array that contains a single JSON object that grants ALL to IAM_ALLOWED_PRINCIPALS.
\n \nFor more information, see Changing the Default Security Settings for Your Data Lake.
" } }, "TrustedResourceOwners": { "target": "com.amazonaws.lakeformation#TrustedResourceOwners", "traits": { - "smithy.api#documentation": "A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's AWS CloudTrail log.
\n\t\n\tYou may want to specify this property when you are in a high-trust boundary, such as the same team or company.
" + "smithy.api#documentation": "A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's CloudTrail log.
\n\t\n\tYou may want to specify this property when you are in a high-trust boundary, such as the same team or company.
" } } }, "traits": { - "smithy.api#documentation": "A structure representing a list of AWS Lake Formation principals designated as data lake administrators and lists of principal permission entries for default create database and default create table permissions.
" + "smithy.api#documentation": "A structure representing a list of Lake Formation principals designated as data lake administrators and lists of principal permission entries for default create database and default create table permissions.
" } }, "com.amazonaws.lakeformation#DataLocationResource": { @@ -694,7 +1078,7 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog where the location is registered with AWS Lake Formation. By default, it is the account ID of the caller.
" + "smithy.api#documentation": "The identifier for the Data Catalog where the location is registered with Lake Formation. By default, it is the account ID of the caller.
" } }, "ResourceArn": { @@ -736,6 +1120,79 @@ "smithy.api#documentation": "A structure for the database object.
" } }, + "com.amazonaws.lakeformation#DateTime": { + "type": "timestamp", + "traits": { + "smithy.api#timestampFormat": "date-time" + } + }, + "com.amazonaws.lakeformation#DeleteDataCellsFilter": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#DeleteDataCellsFilterRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#DeleteDataCellsFilterResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a data cell filter.
", + "smithy.api#http": { + "method": "POST", + "uri": "/DeleteDataCellsFilter", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#DeleteDataCellsFilterRequest": { + "type": "structure", + "members": { + "TableCatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The ID of the catalog to which the table belongs.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "A database in the Glue Data Catalog.
" + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "A table in the database.
" + } + }, + "Name": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name given by the user to the data filter cell.
" + } + } + } + }, + "com.amazonaws.lakeformation#DeleteDataCellsFilterResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.lakeformation#DeleteLFTag": { "type": "operation", "input": { @@ -762,7 +1219,12 @@ } ], "traits": { - "smithy.api#documentation": "Deletes the specified tag key name. If the attribute key does not exist or the tag does not exist, then the operation will not do anything. If the attribute key exists, then the operation checks if any resources are tagged with this attribute key, if yes, the API throws a 400 Exception with the message \"Delete not allowed\" as the tag key is still attached with resources. You can consider untagging resources with this tag key.
" + "smithy.api#documentation": "Deletes the specified LF-tag key name. If the attribute key does not exist or the LF-tag does not exist, then the operation will not do anything. If the attribute key exists, then the operation checks if any resources are tagged with this attribute key, if yes, the API throws a 400 Exception with the message \"Delete not allowed\" as the LF-tag key is still attached with resources. You can consider untagging resources with this LF-tag key.
", + "smithy.api#http": { + "method": "POST", + "uri": "/DeleteLFTag", + "code": 200 + } } }, "com.amazonaws.lakeformation#DeleteLFTagRequest": { @@ -771,13 +1233,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag to delete.
", + "smithy.api#documentation": "The key-name for the LF-tag to delete.
", "smithy.api#required": {} } } @@ -787,6 +1249,119 @@ "type": "structure", "members": {} }, + "com.amazonaws.lakeformation#DeleteObjectInput": { + "type": "structure", + "members": { + "Uri": { + "target": "com.amazonaws.lakeformation#URI", + "traits": { + "smithy.api#documentation": "The Amazon S3 location of the object to delete.
", + "smithy.api#required": {} + } + }, + "ETag": { + "target": "com.amazonaws.lakeformation#ETagString", + "traits": { + "smithy.api#documentation": "The Amazon S3 ETag of the object. Returned by GetTableObjects
for validation and used to identify changes to the underlying data.
A list of partition values for the object. A value must be specified for each partition key associated with the governed table.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object to delete from the governed table.
" + } + }, + "com.amazonaws.lakeformation#DeleteObjectsOnCancel": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#DeleteObjectsOnCancelRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#DeleteObjectsOnCancelResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#ResourceNotReadyException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCanceledException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommittedException" + } + ], + "traits": { + "smithy.api#documentation": "For a specific governed table, provides a list of Amazon S3 objects that will be written during the current transaction and that can be automatically deleted\n if the transaction is canceled. Without this call, no Amazon S3 objects are automatically deleted when a transaction cancels.\n
\n\n The Glue ETL library function write_dynamic_frame.from_catalog()
includes an option to automatically \n call DeleteObjectsOnCancel
before writes. For more information, see \n Rolling Back Amazon S3 Writes.\n
The Glue data catalog that contains the governed table. Defaults to the current account ID.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The database that contains the governed table.
", + "smithy.api#required": {} + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name of the governed table.
", + "smithy.api#required": {} + } + }, + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "ID of the transaction that the writes occur in.
", + "smithy.api#required": {} + } + }, + "Objects": { + "target": "com.amazonaws.lakeformation#VirtualObjectList", + "traits": { + "smithy.api#documentation": "A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#DeleteObjectsOnCancelResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.lakeformation#DeregisterResource": { "type": "operation", "input": { @@ -810,7 +1385,12 @@ } ], "traits": { - "smithy.api#documentation": "Deregisters the resource as managed by the Data Catalog.
\n\t\nWhen you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.
" + "smithy.api#documentation": "Deregisters the resource as managed by the Data Catalog.
\n\t\nWhen you deregister a path, Lake Formation removes the path from the inline policy attached to your service-linked role.
", + "smithy.api#http": { + "method": "POST", + "uri": "/DeregisterResource", + "code": 200 + } } }, "com.amazonaws.lakeformation#DeregisterResourceRequest": { @@ -852,7 +1432,12 @@ } ], "traits": { - "smithy.api#documentation": "Retrieves the current data access role for the given resource registered in AWS Lake Formation.
" + "smithy.api#documentation": "Retrieves the current data access role for the given resource registered in Lake Formation.
", + "smithy.api#http": { + "method": "POST", + "uri": "/DescribeResource", + "code": 200 + } } }, "com.amazonaws.lakeformation#DescribeResourceRequest": { @@ -873,7 +1458,61 @@ "ResourceInfo": { "target": "com.amazonaws.lakeformation#ResourceInfo", "traits": { - "smithy.api#documentation": "A structure containing information about an AWS Lake Formation resource.
" + "smithy.api#documentation": "A structure containing information about an Lake Formation resource.
" + } + } + } + }, + "com.amazonaws.lakeformation#DescribeTransaction": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#DescribeTransactionRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#DescribeTransactionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + } + ], + "traits": { + "smithy.api#documentation": "Returns the details of a single transaction.
", + "smithy.api#http": { + "method": "POST", + "uri": "/DescribeTransaction", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#DescribeTransactionRequest": { + "type": "structure", + "members": { + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction for which to return status.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#DescribeTransactionResponse": { + "type": "structure", + "members": { + "TransactionDescription": { + "target": "com.amazonaws.lakeformation#TransactionDescription", + "traits": { + "smithy.api#documentation": "Returns a TransactionDescription
object containing information about the transaction.
A resource share ARN for a catalog resource shared through AWS Resource Access Manager (AWS RAM).
" + "smithy.api#documentation": "A resource share ARN for a catalog resource shared through RAM.
" } } }, "traits": { - "smithy.api#documentation": "A structure containing the additional details to be returned in the AdditionalDetails
attribute of PrincipalResourcePermissions
.
If a catalog resource is shared through AWS Resource Access Manager (AWS RAM), then there will exist a corresponding RAM resource share ARN.
" + "smithy.api#documentation": "A structure containing the additional details to be returned in the AdditionalDetails
attribute of PrincipalResourcePermissions
.
If a catalog resource is shared through Resource Access Manager (RAM), then there will exist a corresponding RAM resource share ARN.
" + } + }, + "com.amazonaws.lakeformation#ETagString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[\\p{L}\\p{N}\\p{P}]*$" } }, "com.amazonaws.lakeformation#EntityNotFoundException": { @@ -937,6 +1586,51 @@ "smithy.api#documentation": "Contains details about an error.
" } }, + "com.amazonaws.lakeformation#ErrorMessageString": { + "type": "string" + }, + "com.amazonaws.lakeformation#ExecutionStatistics": { + "type": "structure", + "members": { + "AverageExecutionTimeMillis": { + "target": "com.amazonaws.lakeformation#NumberOfMilliseconds", + "traits": { + "smithy.api#documentation": "The average time the request took to be executed.
" + } + }, + "DataScannedBytes": { + "target": "com.amazonaws.lakeformation#NumberOfBytes", + "traits": { + "smithy.api#documentation": "The amount of data that was scanned in bytes.
" + } + }, + "WorkUnitsExecutedCount": { + "target": "com.amazonaws.lakeformation#NumberOfItems", + "traits": { + "smithy.api#documentation": "The number of work units executed.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Statistics related to the processing of a query statement.
" + } + }, + "com.amazonaws.lakeformation#ExpiredException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error where the query request expired.
", + "smithy.api#error": "client", + "smithy.api#httpError": 410 + } + }, "com.amazonaws.lakeformation#Expression": { "type": "list", "member": { @@ -949,10 +1643,65 @@ } } }, - "com.amazonaws.lakeformation#FieldNameString": { - "type": "string", - "traits": { - "smithy.api#enum": [ + "com.amazonaws.lakeformation#ExtendTransaction": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#ExtendTransactionRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#ExtendTransactionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCanceledException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommitInProgressException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommittedException" + } + ], + "traits": { + "smithy.api#documentation": "Indicates to the service that the specified transaction is still active and should not be treated as idle and aborted.
\n\t\n\tWrite transactions that remain idle for a long period are automatically aborted unless explicitly extended.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ExtendTransaction", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#ExtendTransactionRequest": { + "type": "structure", + "members": { + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction to extend.
" + } + } + } + }, + "com.amazonaws.lakeformation#ExtendTransactionResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.lakeformation#FieldNameString": { + "type": "string", + "traits": { + "smithy.api#enum": [ { "value": "RESOURCE_ARN", "name": "RESOURCE_ARN" @@ -1026,7 +1775,12 @@ } ], "traits": { - "smithy.api#documentation": "Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.
" + "smithy.api#documentation": "Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.
", + "smithy.api#http": { + "method": "POST", + "uri": "/GetDataLakeSettings", + "code": 200 + } } }, "com.amazonaws.lakeformation#GetDataLakeSettingsRequest": { @@ -1035,7 +1789,7 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } } } @@ -1046,7 +1800,7 @@ "DataLakeSettings": { "target": "com.amazonaws.lakeformation#DataLakeSettings", "traits": { - "smithy.api#documentation": "A structure representing a list of AWS Lake Formation principals designated as data lake administrators.
" + "smithy.api#documentation": "A structure representing a list of Lake Formation principals designated as data lake administrators.
" } } } @@ -1075,6 +1829,11 @@ ], "traits": { "smithy.api#documentation": "Returns the Lake Formation permissions for a specified table or database resource located\n at a path in Amazon S3. GetEffectivePermissionsForPath
will not return databases and tables if the catalog is encrypted.
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "ResourceArn": { @@ -1155,7 +1914,12 @@ } ], "traits": { - "smithy.api#documentation": "Returns a tag definition.
" + "smithy.api#documentation": "Returns an LF-tag definition.
", + "smithy.api#http": { + "method": "POST", + "uri": "/GetLFTag", + "code": 200 + } } }, "com.amazonaws.lakeformation#GetLFTagRequest": { @@ -1164,13 +1928,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag.
", + "smithy.api#documentation": "The key-name for the LF-tag.
", "smithy.api#required": {} } } @@ -1182,13 +1946,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag.
" + "smithy.api#documentation": "The key-name for the LF-tag.
" } }, "TagValues": { @@ -1199,6 +1963,163 @@ } } }, + "com.amazonaws.lakeformation#GetQueryState": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#GetQueryStateRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#GetQueryStateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + } + ], + "traits": { + "smithy.api#documentation": "Returns the state of a query previously submitted. Clients are expected to poll GetQueryState
to monitor the current state of the planning before retrieving the work units. A query state is only visible to the principal that made the initial call to StartQueryPlanning
.
The ID of the plan query operation.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#GetQueryStateRequestQueryIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + } + } + }, + "com.amazonaws.lakeformation#GetQueryStateResponse": { + "type": "structure", + "members": { + "Error": { + "target": "com.amazonaws.lakeformation#ErrorMessageString", + "traits": { + "smithy.api#documentation": "An error message when the operation fails.
" + } + }, + "State": { + "target": "com.amazonaws.lakeformation#QueryStateString", + "traits": { + "smithy.api#documentation": "The state of a query previously submitted. The possible states are:
\n\t\n\tPENDING: the query is pending.
\nWORKUNITS_AVAILABLE: some work units are ready for retrieval and execution.
\nFINISHED: the query planning finished successfully, and all work units are ready for retrieval and execution.
\nERROR: an error occurred with the query, such as an invalid query ID or a backend error.
\nA structure for the output.
" + } + }, + "com.amazonaws.lakeformation#GetQueryStatistics": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#GetQueryStatisticsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#GetQueryStatisticsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#ExpiredException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#StatisticsNotReadyYetException" + }, + { + "target": "com.amazonaws.lakeformation#ThrottledException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves statistics on the planning and execution of a query.
", + "smithy.api#endpoint": { + "hostPrefix": "query-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/GetQueryStatistics", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#GetQueryStatisticsRequest": { + "type": "structure", + "members": { + "QueryId": { + "target": "com.amazonaws.lakeformation#GetQueryStatisticsRequestQueryIdString", + "traits": { + "smithy.api#documentation": "The ID of the plan query operation.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#GetQueryStatisticsRequestQueryIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + } + } + }, + "com.amazonaws.lakeformation#GetQueryStatisticsResponse": { + "type": "structure", + "members": { + "ExecutionStatistics": { + "target": "com.amazonaws.lakeformation#ExecutionStatistics", + "traits": { + "smithy.api#documentation": "An ExecutionStatistics
structure containing execution statistics.
A PlanningStatistics
structure containing query planning statistics.
The time that the query was submitted.
" + } + } + } + }, "com.amazonaws.lakeformation#GetResourceLFTags": { "type": "operation", "input": { @@ -1228,7 +2149,12 @@ } ], "traits": { - "smithy.api#documentation": "Returns the tags applied to a resource.
" + "smithy.api#documentation": "Returns the LF-tags applied to a resource.
", + "smithy.api#http": { + "method": "POST", + "uri": "/GetResourceLFTags", + "code": 200 + } } }, "com.amazonaws.lakeformation#GetResourceLFTagsRequest": { @@ -1237,20 +2163,20 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Resource": { "target": "com.amazonaws.lakeformation#Resource", "traits": { - "smithy.api#documentation": "The resource for which you want to return tags.
", + "smithy.api#documentation": "The database, table, or column resource for which you want to return LF-tags.
", "smithy.api#required": {} } }, "ShowAssignedLFTags": { "target": "com.amazonaws.lakeformation#BooleanNullable", "traits": { - "smithy.api#documentation": "Indicates whether to show the assigned tags.
" + "smithy.api#documentation": "Indicates whether to show the assigned LF-tags.
" } } } @@ -1261,131 +2187,452 @@ "LFTagOnDatabase": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "A list of tags applied to a database resource.
" + "smithy.api#documentation": "A list of LF-tags applied to a database resource.
" } }, "LFTagsOnTable": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "A list of tags applied to a table resource.
" + "smithy.api#documentation": "A list of LF-tags applied to a table resource.
" } }, "LFTagsOnColumns": { "target": "com.amazonaws.lakeformation#ColumnLFTagsList", "traits": { - "smithy.api#documentation": "A list of tags applied to a column resource.
" - } - } - } - }, - "com.amazonaws.lakeformation#GlueEncryptionException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.lakeformation#MessageString", - "traits": { - "smithy.api#documentation": "A message describing the problem.
" + "smithy.api#documentation": "A list of LF-tags applied to a column resource.
" } } - }, - "traits": { - "smithy.api#documentation": "An encryption operation failed.
", - "smithy.api#error": "client" } }, - "com.amazonaws.lakeformation#GrantPermissions": { + "com.amazonaws.lakeformation#GetTableObjects": { "type": "operation", "input": { - "target": "com.amazonaws.lakeformation#GrantPermissionsRequest" + "target": "com.amazonaws.lakeformation#GetTableObjectsRequest" }, "output": { - "target": "com.amazonaws.lakeformation#GrantPermissionsResponse" + "target": "com.amazonaws.lakeformation#GetTableObjectsResponse" }, "errors": [ { - "target": "com.amazonaws.lakeformation#ConcurrentModificationException" + "target": "com.amazonaws.lakeformation#EntityNotFoundException" }, { - "target": "com.amazonaws.lakeformation#EntityNotFoundException" + "target": "com.amazonaws.lakeformation#InternalServiceException" }, { "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#ResourceNotReadyException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCanceledException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommittedException" } ], "traits": { - "smithy.api#documentation": "Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
\n\tFor information about permissions, see Security and Access Control to Metadata and Data.
" + "smithy.api#documentation": "Returns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.
", + "smithy.api#http": { + "method": "POST", + "uri": "/GetTableObjects", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } } }, - "com.amazonaws.lakeformation#GrantPermissionsRequest": { + "com.amazonaws.lakeformation#GetTableObjectsRequest": { "type": "structure", "members": { "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The catalog containing the governed table. Defaults to the caller’s account.
" } }, - "Principal": { - "target": "com.amazonaws.lakeformation#DataLakePrincipal", + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", "traits": { - "smithy.api#documentation": "The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.
\n\tNote that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted.
", + "smithy.api#documentation": "The database containing the governed table.
", "smithy.api#required": {} } }, - "Resource": { - "target": "com.amazonaws.lakeformation#Resource", + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", "traits": { - "smithy.api#documentation": "The resource to which permissions are to be granted. Resources in AWS Lake Formation are the Data Catalog, databases, and tables.
", + "smithy.api#documentation": "The governed table for which to retrieve objects.
", "smithy.api#required": {} } }, - "Permissions": { - "target": "com.amazonaws.lakeformation#PermissionList", + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", "traits": { - "smithy.api#documentation": "The permissions granted to the principal on the resource. AWS Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. AWS Lake Formation requires that each principal be authorized to perform a specific task on AWS Lake Formation resources.
", - "smithy.api#required": {} + "smithy.api#documentation": "The transaction ID at which to read the governed table contents. If this transaction has aborted, an error is returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with QueryAsOfTime
.
Indicates a list of the granted permissions that the principal may pass to other users. These permissions may only be a subset of the permissions granted in the Privileges
.
The time as of when to read the governed table contents. If not set, the most recent transaction commit time is used. Cannot be specified along with TransactionId
.
A predicate to filter the objects returned based on the partition keys defined in the governed table.
\n\tThe comparison operators supported are: =, >, <, >=, <=
\nThe logical operators supported are: AND
\nThe data types supported are integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd HH:mm:ss\"), string and decimal.
\nSpecifies how many values to return in a page.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#TokenString", + "traits": { + "smithy.api#documentation": "A continuation token if this is not the first call to retrieve these objects.
" } } } }, - "com.amazonaws.lakeformation#GrantPermissionsResponse": { + "com.amazonaws.lakeformation#GetTableObjectsResponse": { "type": "structure", - "members": {} - }, - "com.amazonaws.lakeformation#IAMRoleArn": { - "type": "string", - "traits": { - "smithy.api#pattern": "arn:aws:iam::[0-9]*:role/.*" + "members": { + "Objects": { + "target": "com.amazonaws.lakeformation#PartitionedTableObjectsList", + "traits": { + "smithy.api#documentation": "A list of objects organized by partition keys.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#TokenString", + "traits": { + "smithy.api#documentation": "A continuation token indicating whether additional data is available.
" + } + } } }, - "com.amazonaws.lakeformation#Identifier": { - "type": "string", + "com.amazonaws.lakeformation#GetWorkUnitResults": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#GetWorkUnitResultsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#GetWorkUnitResultsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#ExpiredException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#ThrottledException" + } + ], "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 + "smithy.api#documentation": "Returns the work units resulting from the query. Work units can be executed in any order and in parallel.
", + "smithy.api#endpoint": { + "hostPrefix": "data-" + }, + "smithy.api#http": { + "method": "POST", + "uri": "/GetWorkUnitResults", + "code": 200 } } }, - "com.amazonaws.lakeformation#InternalServiceException": { + "com.amazonaws.lakeformation#GetWorkUnitResultsRequest": { "type": "structure", "members": { - "Message": { - "target": "com.amazonaws.lakeformation#MessageString", + "QueryId": { + "target": "com.amazonaws.lakeformation#GetWorkUnitResultsRequestQueryIdString", "traits": { - "smithy.api#documentation": "A message describing the problem.
" + "smithy.api#documentation": "The ID of the plan query operation for which to get results.
", + "smithy.api#required": {} + } + }, + "WorkUnitId": { + "target": "com.amazonaws.lakeformation#GetWorkUnitResultsRequestWorkUnitIdLong", + "traits": { + "smithy.api#documentation": "The work unit ID for which to get results. Value generated by enumerating WorkUnitIdMin
to WorkUnitIdMax
(inclusive) from the WorkUnitRange
in the output of GetWorkUnits
.
A work token used to query the execution service. Token output from GetWorkUnits
.
Rows returned from the GetWorkUnitResults
operation as a stream of Apache Arrow v1.0 messages.
A structure for the output.
" + } + }, + "com.amazonaws.lakeformation#GetWorkUnits": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#GetWorkUnitsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#GetWorkUnitsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#ExpiredException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#WorkUnitsNotReadyYetException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves the work units generated by the StartQueryPlanning
operation.
A continuation token, if this is a continuation call.
" + } + }, + "PageSize": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "The size of each page to get in the Amazon Web Services service call. This does not affect the number of items returned in the command's output. Setting a smaller page size results in more calls to the Amazon Web Services service, retrieving fewer items in each call. This can help prevent the Amazon Web Services service calls from timing out.
" + } + }, + "QueryId": { + "target": "com.amazonaws.lakeformation#GetWorkUnitsRequestQueryIdString", + "traits": { + "smithy.api#documentation": "The ID of the plan query operation.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#GetWorkUnitsRequestQueryIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 36, + "max": 36 + } + } + }, + "com.amazonaws.lakeformation#GetWorkUnitsResponse": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.lakeformation#Token", + "traits": { + "smithy.api#documentation": "A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
" + } + }, + "QueryId": { + "target": "com.amazonaws.lakeformation#QueryIdString", + "traits": { + "smithy.api#documentation": "The ID of the plan query operation.
", + "smithy.api#required": {} + } + }, + "WorkUnitRanges": { + "target": "com.amazonaws.lakeformation#WorkUnitRangeList", + "traits": { + "smithy.api#documentation": "A WorkUnitRangeList
object that specifies the valid range of work unit IDs for querying the execution service.
A structure for the output.
" + } + }, + "com.amazonaws.lakeformation#GlueEncryptionException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the problem.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An encryption operation failed.
", + "smithy.api#error": "client" + } + }, + "com.amazonaws.lakeformation#GrantPermissions": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#GrantPermissionsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#GrantPermissionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + } + ], + "traits": { + "smithy.api#documentation": "Grants permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
\n\tFor information about permissions, see Security and Access Control to Metadata and Data.
", + "smithy.api#http": { + "method": "POST", + "uri": "/GrantPermissions", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#GrantPermissionsRequest": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" + } + }, + "Principal": { + "target": "com.amazonaws.lakeformation#DataLakePrincipal", + "traits": { + "smithy.api#documentation": "The principal to be granted the permissions on the resource. Supported principals are IAM users or IAM roles, and they are defined by their principal type and their ARN.
\n\tNote that if you define a resource with a particular ARN, then later delete, and recreate a resource with that same ARN, the resource maintains the permissions already granted.
", + "smithy.api#required": {} + } + }, + "Resource": { + "target": "com.amazonaws.lakeformation#Resource", + "traits": { + "smithy.api#documentation": "The resource to which permissions are to be granted. Resources in Lake Formation are the Data Catalog, databases, and tables.
", + "smithy.api#required": {} + } + }, + "Permissions": { + "target": "com.amazonaws.lakeformation#PermissionList", + "traits": { + "smithy.api#documentation": "The permissions granted to the principal on the resource. Lake Formation defines privileges to grant and revoke access to metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3. Lake Formation requires that each principal be authorized to perform a specific task on Lake Formation resources.
", + "smithy.api#required": {} + } + }, + "PermissionsWithGrantOption": { + "target": "com.amazonaws.lakeformation#PermissionList", + "traits": { + "smithy.api#documentation": "Indicates a list of the granted permissions that the principal may pass to other users. These permissions may only be a subset of the permissions granted in the Privileges
.
A message describing the problem.
" } } }, "traits": { "smithy.api#documentation": "An internal service error occurred.
", - "smithy.api#error": "server" + "smithy.api#error": "server", + "smithy.api#httpError": 500 } }, "com.amazonaws.lakeformation#InvalidInputException": { @@ -1400,7 +2647,8 @@ }, "traits": { "smithy.api#documentation": "The input provided was not valid.
", - "smithy.api#error": "client" + "smithy.api#error": "client", + "smithy.api#httpError": 400 } }, "com.amazonaws.lakeformation#LFTag": { @@ -1409,7 +2657,7 @@ "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag.
", + "smithy.api#documentation": "The key-name for the LF-tag.
", "smithy.api#required": {} } }, @@ -1422,7 +2670,7 @@ } }, "traits": { - "smithy.api#documentation": "A structure that allows an admin to grant user permissions on certain conditions. For example, granting a role access to all columns not tagged 'PII' of tables tagged 'Prod'.
" + "smithy.api#documentation": "A structure that allows an admin to grant user permissions on certain conditions. For example, granting a role access to all columns that do not have the LF-tag 'PII' in tables that have the LF-tag 'Prod'.
" } }, "com.amazonaws.lakeformation#LFTagError": { @@ -1431,13 +2679,13 @@ "LFTag": { "target": "com.amazonaws.lakeformation#LFTagPair", "traits": { - "smithy.api#documentation": "The key-name of the tag.
" + "smithy.api#documentation": "The key-name of the LF-tag.
" } }, "Error": { "target": "com.amazonaws.lakeformation#ErrorDetail", "traits": { - "smithy.api#documentation": "An error that occurred with the attachment or detachment of the tag.
" + "smithy.api#documentation": "An error that occurred with the attachment or detachment of the LF-tag.
" } } }, @@ -1467,13 +2715,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#NameString", "traits": { - "smithy.api#documentation": "The key-name for the tag.
", + "smithy.api#documentation": "The key-name for the LF-tag.
", "smithy.api#required": {} } }, @@ -1486,7 +2734,7 @@ } }, "traits": { - "smithy.api#documentation": "A structure containing a tag key and values for a resource.
" + "smithy.api#documentation": "A structure containing an LF-tag key and values for a resource.
" } }, "com.amazonaws.lakeformation#LFTagPair": { @@ -1495,13 +2743,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag.
", + "smithy.api#documentation": "The key-name for the LF-tag.
", "smithy.api#required": {} } }, @@ -1514,7 +2762,7 @@ } }, "traits": { - "smithy.api#documentation": "A structure containing a tag key-value pair.
" + "smithy.api#documentation": "A structure containing an LF-tag key-value pair.
" } }, "com.amazonaws.lakeformation#LFTagPolicyResource": { @@ -1523,26 +2771,26 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "ResourceType": { "target": "com.amazonaws.lakeformation#ResourceType", "traits": { - "smithy.api#documentation": "The resource type for which the tag policy applies.
", + "smithy.api#documentation": "The resource type for which the LF-tag policy applies.
", "smithy.api#required": {} } }, "Expression": { "target": "com.amazonaws.lakeformation#Expression", "traits": { - "smithy.api#documentation": "A list of tag conditions that apply to the resource's tag policy.
", + "smithy.api#documentation": "A list of LF-tag conditions that apply to the resource's LF-tag policy.
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "A structure containing a list of tag conditions that apply to a resource's tag policy.
" + "smithy.api#documentation": "A structure containing a list of LF-tag conditions that apply to a resource's LF-tag policy.
" } }, "com.amazonaws.lakeformation#LFTagValue": { @@ -1570,17 +2818,17 @@ "com.amazonaws.lakeformation#LastModifiedTimestamp": { "type": "timestamp" }, - "com.amazonaws.lakeformation#ListLFTags": { + "com.amazonaws.lakeformation#ListDataCellsFilter": { "type": "operation", "input": { - "target": "com.amazonaws.lakeformation#ListLFTagsRequest" + "target": "com.amazonaws.lakeformation#ListDataCellsFilterRequest" }, "output": { - "target": "com.amazonaws.lakeformation#ListLFTagsResponse" + "target": "com.amazonaws.lakeformation#ListDataCellsFilterResponse" }, "errors": [ { - "target": "com.amazonaws.lakeformation#EntityNotFoundException" + "target": "com.amazonaws.lakeformation#AccessDeniedException" }, { "target": "com.amazonaws.lakeformation#InternalServiceException" @@ -1593,64 +2841,75 @@ } ], "traits": { - "smithy.api#documentation": "Lists tags that the requester has permission to view.
" + "smithy.api#documentation": "Lists all the data cell filters on a table.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListDataCellsFilter", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "DataCellsFilters", + "pageSize": "MaxResults" + } } }, - "com.amazonaws.lakeformation#ListLFTagsRequest": { + "com.amazonaws.lakeformation#ListDataCellsFilterRequest": { "type": "structure", "members": { - "CatalogId": { - "target": "com.amazonaws.lakeformation#CatalogIdString", + "Table": { + "target": "com.amazonaws.lakeformation#TableResource", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "A table in the Glue Data Catalog.
" } }, - "ResourceShareType": { - "target": "com.amazonaws.lakeformation#ResourceShareType", + "NextToken": { + "target": "com.amazonaws.lakeformation#Token", "traits": { - "smithy.api#documentation": "If resource share type is ALL
, returns both in-account tags and shared tags that the requester has permission to view. If resource share type is FOREIGN
, returns all share tags that the requester can view. If no resource share type is passed, lists tags in the given catalog ID that the requester has permission to view.
A continuation token, if this is a continuation call.
" } }, "MaxResults": { "target": "com.amazonaws.lakeformation#PageSize", "traits": { - "smithy.api#documentation": "The maximum number of results to return.
" - } - }, - "NextToken": { - "target": "com.amazonaws.lakeformation#Token", - "traits": { - "smithy.api#documentation": "A continuation token, if this is not the first call to retrieve this list.
" + "smithy.api#documentation": "The maximum size of the response.
" } } } }, - "com.amazonaws.lakeformation#ListLFTagsResponse": { + "com.amazonaws.lakeformation#ListDataCellsFilterResponse": { "type": "structure", "members": { - "LFTags": { - "target": "com.amazonaws.lakeformation#LFTagsList", + "DataCellsFilters": { + "target": "com.amazonaws.lakeformation#DataCellsFilterList", "traits": { - "smithy.api#documentation": "A list of tags that the requested has permission to view.
" + "smithy.api#documentation": "A list of DataCellFilter
structures.
A continuation token, present if the current list segment is not the last.
" + "smithy.api#documentation": "A continuation token, if not all requested data cell filters have been returned.
" } } } }, - "com.amazonaws.lakeformation#ListPermissions": { + "com.amazonaws.lakeformation#ListLFTags": { "type": "operation", "input": { - "target": "com.amazonaws.lakeformation#ListPermissionsRequest" + "target": "com.amazonaws.lakeformation#ListLFTagsRequest" }, "output": { - "target": "com.amazonaws.lakeformation#ListPermissionsResponse" + "target": "com.amazonaws.lakeformation#ListLFTagsResponse" }, "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, { "target": "com.amazonaws.lakeformation#InternalServiceException" }, @@ -1662,32 +2921,117 @@ } ], "traits": { - "smithy.api#documentation": "Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.
\n\tThis operation returns only those permissions that have been explicitly granted.
\n\tFor information about permissions, see Security and Access Control to Metadata and Data.
", + "smithy.api#documentation": "Lists LF-tags that the requester has permission to view.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListLFTags", + "code": 200 + }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", + "items": "LFTags", "pageSize": "MaxResults" } } }, - "com.amazonaws.lakeformation#ListPermissionsRequest": { + "com.amazonaws.lakeformation#ListLFTagsRequest": { "type": "structure", "members": { "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, - "Principal": { - "target": "com.amazonaws.lakeformation#DataLakePrincipal", + "ResourceShareType": { + "target": "com.amazonaws.lakeformation#ResourceShareType", "traits": { - "smithy.api#documentation": "Specifies a principal to filter the permissions returned.
" + "smithy.api#documentation": "If resource share type is ALL
, returns both in-account LF-tags and shared LF-tags that the requester has permission to view. If resource share type is FOREIGN
, returns all share LF-tags that the requester can view. If no resource share type is passed, lists LF-tags in the given catalog ID that the requester has permission to view.
The maximum number of results to return.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#Token", + "traits": { + "smithy.api#documentation": "A continuation token, if this is not the first call to retrieve this list.
" + } + } + } + }, + "com.amazonaws.lakeformation#ListLFTagsResponse": { + "type": "structure", + "members": { + "LFTags": { + "target": "com.amazonaws.lakeformation#LFTagsList", + "traits": { + "smithy.api#documentation": "A list of LF-tags that the requested has permission to view.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#Token", + "traits": { + "smithy.api#documentation": "A continuation token, present if the current list segment is not the last.
" + } + } + } + }, + "com.amazonaws.lakeformation#ListPermissions": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#ListPermissionsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#ListPermissionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.
\n\tThis operation returns only those permissions that have been explicitly granted.
\n\tFor information about permissions, see Security and Access Control to Metadata and Data.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListPermissions", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.lakeformation#ListPermissionsRequest": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" + } + }, + "Principal": { + "target": "com.amazonaws.lakeformation#DataLakePrincipal", + "traits": { + "smithy.api#documentation": "Specifies a principal to filter the permissions returned.
" + } + }, + "ResourceType": { + "target": "com.amazonaws.lakeformation#DataLakeResourceType", + "traits": { "smithy.api#documentation": "Specifies a resource type to filter the permissions returned.
" } }, @@ -1708,6 +3052,12 @@ "traits": { "smithy.api#documentation": "The maximum number of results to return.
" } + }, + "IncludeRelated": { + "target": "com.amazonaws.lakeformation#TrueFalseString", + "traits": { + "smithy.api#documentation": "Indicates that related permissions should be included in the results.
" + } } } }, @@ -1749,6 +3099,11 @@ ], "traits": { "smithy.api#documentation": "Lists the resources registered to be managed by the Data Catalog.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListResources", + "code": 200 + }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", @@ -1796,6 +3151,181 @@ } } }, + "com.amazonaws.lakeformation#ListTableStorageOptimizers": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#ListTableStorageOptimizersRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#ListTableStorageOptimizersResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + } + ], + "traits": { + "smithy.api#documentation": "Returns the configuration of all storage optimizers associated with a specified table.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListTableStorageOptimizers", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.lakeformation#ListTableStorageOptimizersRequest": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The Catalog ID of the table.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "Name of the database where the table is present.
", + "smithy.api#required": {} + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "Name of the table.
", + "smithy.api#required": {} + } + }, + "StorageOptimizerType": { + "target": "com.amazonaws.lakeformation#OptimizerType", + "traits": { + "smithy.api#documentation": "The specific type of storage optimizers to list. The supported value is compaction
.
The number of storage optimizers to return on each call.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#Token", + "traits": { + "smithy.api#documentation": "A continuation token, if this is a continuation call.
" + } + } + } + }, + "com.amazonaws.lakeformation#ListTableStorageOptimizersResponse": { + "type": "structure", + "members": { + "StorageOptimizerList": { + "target": "com.amazonaws.lakeformation#StorageOptimizerList", + "traits": { + "smithy.api#documentation": "A list of the storage optimizers associated with a table.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#Token", + "traits": { + "smithy.api#documentation": "A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
" + } + } + } + }, + "com.amazonaws.lakeformation#ListTransactions": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#ListTransactionsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#ListTransactionsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + } + ], + "traits": { + "smithy.api#documentation": "Returns metadata about transactions and their status. To prevent the response from growing indefinitely, only uncommitted transactions and those available for time-travel queries are returned.
\n\tThis operation can help you identify uncommitted transactions or to get information about transactions.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListTransactions", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.lakeformation#ListTransactionsRequest": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The catalog for which to list transactions. Defaults to the account ID of the caller.
" + } + }, + "StatusFilter": { + "target": "com.amazonaws.lakeformation#TransactionStatusFilter", + "traits": { + "smithy.api#documentation": " A filter indicating the status of transactions to return. Options are ALL | COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is ALL
.
The maximum number of transactions to return in a single call.
" + } + }, + "NextToken": { + "target": "com.amazonaws.lakeformation#TokenString", + "traits": { + "smithy.api#documentation": "A continuation token if this is not the first call to retrieve transactions.
" + } + } + } + }, + "com.amazonaws.lakeformation#ListTransactionsResponse": { + "type": "structure", + "members": { + "Transactions": { + "target": "com.amazonaws.lakeformation#TransactionDescriptionList", + "traits": { + "smithy.api#documentation": "A list of transactions. The record for each transaction is a TransactionDescription
object.
A continuation token indicating whether additional data is available.
" + } + } + } + }, "com.amazonaws.lakeformation#MessageString": { "type": "string" }, @@ -1806,7 +3336,7 @@ "min": 1, "max": 255 }, - "smithy.api#pattern": "[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" } }, "com.amazonaws.lakeformation#NullableBoolean": { @@ -1815,6 +3345,18 @@ "smithy.api#box": {} } }, + "com.amazonaws.lakeformation#NumberOfBytes": { + "type": "long" + }, + "com.amazonaws.lakeformation#NumberOfItems": { + "type": "long" + }, + "com.amazonaws.lakeformation#NumberOfMilliseconds": { + "type": "long" + }, + "com.amazonaws.lakeformation#ObjectSize": { + "type": "long" + }, "com.amazonaws.lakeformation#OperationTimeoutException": { "type": "structure", "members": { @@ -1830,6 +3372,25 @@ "smithy.api#error": "client" } }, + "com.amazonaws.lakeformation#OptimizerType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "COMPACTION", + "name": "COMPACTION" + }, + { + "value": "GARBAGE_COLLECTION", + "name": "GARBAGE_COLLECTION" + }, + { + "value": "ALL", + "name": "GENERIC" + } + ] + } + }, "com.amazonaws.lakeformation#PageSize": { "type": "integer", "traits": { @@ -1840,25 +3401,72 @@ } } }, - "com.amazonaws.lakeformation#Permission": { + "com.amazonaws.lakeformation#PartitionObjects": { + "type": "structure", + "members": { + "PartitionValues": { + "target": "com.amazonaws.lakeformation#PartitionValuesList", + "traits": { + "smithy.api#documentation": "A list of partition values.
" + } + }, + "Objects": { + "target": "com.amazonaws.lakeformation#TableObjectList", + "traits": { + "smithy.api#documentation": "A list of table objects
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure containing a list of partition values and table objects.
" + } + }, + "com.amazonaws.lakeformation#PartitionValueString": { "type": "string", "traits": { - "smithy.api#enum": [ - { - "value": "ALL", - "name": "ALL" - }, - { - "value": "SELECT", - "name": "SELECT" - }, - { - "value": "ALTER", - "name": "ALTER" - }, - { - "value": "DROP", - "name": "DROP" + "smithy.api#length": { + "min": 0, + "max": 1024 + } + } + }, + "com.amazonaws.lakeformation#PartitionValuesList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#PartitionValueString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, + "com.amazonaws.lakeformation#PartitionedTableObjectsList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#PartitionObjects" + } + }, + "com.amazonaws.lakeformation#Permission": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ALL", + "name": "ALL" + }, + { + "value": "SELECT", + "name": "SELECT" + }, + { + "value": "ALTER", + "name": "ALTER" + }, + { + "value": "DROP", + "name": "DROP" }, { "value": "DELETE", @@ -1913,6 +3521,48 @@ "target": "com.amazonaws.lakeformation#Permission" } }, + "com.amazonaws.lakeformation#PlanningStatistics": { + "type": "structure", + "members": { + "EstimatedDataToScanBytes": { + "target": "com.amazonaws.lakeformation#NumberOfBytes", + "traits": { + "smithy.api#documentation": "An estimate of the data that was scanned in bytes.
" + } + }, + "PlanningTimeMillis": { + "target": "com.amazonaws.lakeformation#NumberOfMilliseconds", + "traits": { + "smithy.api#documentation": "The time that it took to process the request.
" + } + }, + "QueueTimeMillis": { + "target": "com.amazonaws.lakeformation#NumberOfMilliseconds", + "traits": { + "smithy.api#documentation": "The time the request was in queue to be processed.
" + } + }, + "WorkUnitsGeneratedCount": { + "target": "com.amazonaws.lakeformation#NumberOfItems", + "traits": { + "smithy.api#documentation": "The number of work units generated.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Statistics related to the processing of a query statement.
" + } + }, + "com.amazonaws.lakeformation#PredicateString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + } + }, "com.amazonaws.lakeformation#PrincipalPermissions": { "type": "structure", "members": { @@ -2000,7 +3650,12 @@ } ], "traits": { - "smithy.api#documentation": "Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions.
\n\t\n\tThis API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.
" + "smithy.api#documentation": "Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions.
\n\t\n\tThis API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.
", + "smithy.api#http": { + "method": "POST", + "uri": "/PutDataLakeSettings", + "code": 200 + } } }, "com.amazonaws.lakeformation#PutDataLakeSettingsRequest": { @@ -2009,13 +3664,13 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "DataLakeSettings": { "target": "com.amazonaws.lakeformation#DataLakeSettings", "traits": { - "smithy.api#documentation": "A structure representing a list of AWS Lake Formation principals designated as data lake administrators.
", + "smithy.api#documentation": "A structure representing a list of Lake Formation principals designated as data lake administrators.
", "smithy.api#required": {} } } @@ -2025,6 +3680,93 @@ "type": "structure", "members": {} }, + "com.amazonaws.lakeformation#QueryIdString": { + "type": "string" + }, + "com.amazonaws.lakeformation#QueryParameterMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.lakeformation#QueryPlanningContext": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The ID of the Data Catalog where the partition in question resides. If none is provided, the Amazon Web Services account ID is used by default.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#QueryPlanningContextDatabaseNameString", + "traits": { + "smithy.api#documentation": "The database containing the table.
", + "smithy.api#required": {} + } + }, + "QueryAsOfTime": { + "target": "com.amazonaws.lakeformation#Timestamp", + "traits": { + "smithy.api#documentation": "The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with TransactionId
.
A map consisting of key-value pairs.
" + } + }, + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction ID at which to read the table contents. If this transaction is not committed, the read will be treated as part of that transaction and will see its writes. If this transaction has aborted, an error will be returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with QueryAsOfTime
.
A structure containing information about the query plan.
" + } + }, + "com.amazonaws.lakeformation#QueryPlanningContextDatabaseNameString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + }, + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" + } + }, + "com.amazonaws.lakeformation#QueryStateString": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "WORKUNITS_AVAILABLE", + "name": "WORKUNITS_AVAILABLE" + }, + { + "value": "ERROR", + "name": "ERROR" + }, + { + "value": "FINISHED", + "name": "FINISHED" + }, + { + "value": "EXPIRED", + "name": "EXPIRED" + } + ] + } + }, "com.amazonaws.lakeformation#RAMResourceShareArn": { "type": "string" }, @@ -2037,9 +3779,15 @@ "target": "com.amazonaws.lakeformation#RegisterResourceResponse" }, "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, { "target": "com.amazonaws.lakeformation#AlreadyExistsException" }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, { "target": "com.amazonaws.lakeformation#InternalServiceException" }, @@ -2048,10 +3796,18 @@ }, { "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#ResourceNumberLimitExceededException" } ], "traits": { - "smithy.api#documentation": "Registers the resource as managed by the Data Catalog.
\n\t\n\tTo add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.
\n\nThe following request registers a new location and gives AWS Lake Formation permission to use the service-linked role to access that location.
\n\n\n ResourceArn = arn:aws:s3:::my-bucket\nUseServiceLinkedRole = true
\n
If UseServiceLinkedRole
is not set to true, you must provide or set the RoleArn
:
\n arn:aws:iam::12345:role/my-data-access-role
\n
Registers the resource as managed by the Data Catalog.
\n\t\nTo add or update data, Lake Formation needs read/write access to the chosen Amazon S3 path. Choose a role that you know has permission to do this, or choose the AWSServiceRoleForLakeFormationDataAccess service-linked role. When you register the first Amazon S3 path, the service-linked role and a new inline policy are created on your behalf. Lake Formation adds the first path to the inline policy and attaches it to the service-linked role. When you register subsequent paths, Lake Formation adds the path to the existing policy.
\n\nThe following request registers a new location and gives Lake Formation permission to use the service-linked role to access that location.
\n\n\n ResourceArn = arn:aws:s3:::my-bucket\nUseServiceLinkedRole = true
\n
If UseServiceLinkedRole
is not set to true, you must provide or set the RoleArn
:
\n arn:aws:iam::12345:role/my-data-access-role
\n
Designates an AWS Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.
\n \nFor more information, see Using Service-Linked Roles for Lake Formation.
" + "smithy.api#documentation": "Designates an Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.
\n \nFor more information, see Using Service-Linked Roles for Lake Formation.
" } }, "RoleArn": { @@ -2114,7 +3870,12 @@ } ], "traits": { - "smithy.api#documentation": "Removes a tag from the resource. Only database, table, or tableWithColumns resource are allowed. To tag columns, use the column inclusion list in tableWithColumns
to specify column input.
Removes an LF-tag from the resource. Only database, table, or tableWithColumns resource are allowed. To tag columns, use the column inclusion list in tableWithColumns
to specify column input.
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Resource": { "target": "com.amazonaws.lakeformation#Resource", "traits": { - "smithy.api#documentation": "The resource where you want to remove a tag.
", + "smithy.api#documentation": "The database, table, or column resource where you want to remove an LF-tag.
", "smithy.api#required": {} } }, "LFTags": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "The tags to be removed from the resource.
", + "smithy.api#documentation": "The LF-tags to be removed from the resource.
", "smithy.api#required": {} } } @@ -2159,7 +3920,7 @@ "Catalog": { "target": "com.amazonaws.lakeformation#CatalogResource", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Database": { @@ -2186,16 +3947,22 @@ "smithy.api#documentation": "The location of an Amazon S3 path where permissions are granted or revoked.
" } }, + "DataCellsFilter": { + "target": "com.amazonaws.lakeformation#DataCellsFilterResource", + "traits": { + "smithy.api#documentation": "A data cell filter.
" + } + }, "LFTag": { "target": "com.amazonaws.lakeformation#LFTagKeyResource", "traits": { - "smithy.api#documentation": "The tag key and values attached to a resource.
" + "smithy.api#documentation": "The LF-tag key and values attached to a resource.
" } }, "LFTagPolicy": { "target": "com.amazonaws.lakeformation#LFTagPolicyResource", "traits": { - "smithy.api#documentation": "A list of tag conditions that define a resource's tag policy.
" + "smithy.api#documentation": "A list of LF-tag conditions that define a resource's LF-tag policy.
" } } }, @@ -2229,7 +3996,7 @@ } }, "traits": { - "smithy.api#documentation": "A structure containing information about an AWS Lake Formation resource.
" + "smithy.api#documentation": "A structure containing information about an Lake Formation resource.
" } }, "com.amazonaws.lakeformation#ResourceInfoList": { @@ -2238,6 +4005,22 @@ "target": "com.amazonaws.lakeformation#ResourceInfo" } }, + "com.amazonaws.lakeformation#ResourceNotReadyException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error related to a resource which is not ready for a transaction.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.lakeformation#ResourceNumberLimitExceededException": { "type": "structure", "members": { @@ -2289,6 +4072,15 @@ ] } }, + "com.amazonaws.lakeformation#Result": { + "type": "string" + }, + "com.amazonaws.lakeformation#ResultStream": { + "type": "blob", + "traits": { + "smithy.api#streaming": {} + } + }, "com.amazonaws.lakeformation#RevokePermissions": { "type": "operation", "input": { @@ -2309,7 +4101,12 @@ } ], "traits": { - "smithy.api#documentation": "Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
" + "smithy.api#documentation": "Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
", + "smithy.api#http": { + "method": "POST", + "uri": "/RevokePermissions", + "code": 200 + } } }, "com.amazonaws.lakeformation#RevokePermissionsRequest": { @@ -2318,7 +4115,7 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Principal": { @@ -2354,6 +4151,26 @@ "type": "structure", "members": {} }, + "com.amazonaws.lakeformation#RowFilter": { + "type": "structure", + "members": { + "FilterExpression": { + "target": "com.amazonaws.lakeformation#PredicateString", + "traits": { + "smithy.api#documentation": "A filter expression.
" + } + }, + "AllRowsWildcard": { + "target": "com.amazonaws.lakeformation#AllRowsWildcard", + "traits": { + "smithy.api#documentation": "A wildcard for all rows.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A PartiQL predicate.
" + } + }, "com.amazonaws.lakeformation#SearchDatabasesByLFTags": { "type": "operation", "input": { @@ -2383,7 +4200,18 @@ } ], "traits": { - "smithy.api#documentation": "This operation allows a search on DATABASE
resources by TagCondition
. This operation is used by admins who want to grant user permissions on certain TagConditions
. Before making a grant, the admin can use SearchDatabasesByTags
to find all resources where the given TagConditions
are valid to verify whether the returned resources can be shared.
This operation allows a search on DATABASE
resources by TagCondition
. This operation is used by admins who want to grant user permissions on certain TagConditions
. Before making a grant, the admin can use SearchDatabasesByTags
to find all resources where the given TagConditions
are valid to verify whether the returned resources can be shared.
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Expression": { @@ -2428,7 +4256,7 @@ "DatabaseList": { "target": "com.amazonaws.lakeformation#DatabaseLFTagsList", "traits": { - "smithy.api#documentation": "A list of databases that meet the tag conditions.
" + "smithy.api#documentation": "A list of databases that meet the LF-tag conditions.
" } } } @@ -2462,7 +4290,18 @@ } ], "traits": { - "smithy.api#documentation": "This operation allows a search on TABLE
resources by LFTag
s. This will be used by admins who want to grant user permissions on certain LFTags. Before making a grant, the admin can use SearchTablesByLFTags
to find all resources where the given LFTag
s are valid to verify whether the returned resources can be shared.
This operation allows a search on TABLE
resources by LFTag
s. This will be used by admins who want to grant user permissions on certain LF-tags. Before making a grant, the admin can use SearchTablesByLFTags
to find all resources where the given LFTag
s are valid to verify whether the returned resources can be shared.
The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "Expression": { @@ -2507,78 +4346,327 @@ "TableList": { "target": "com.amazonaws.lakeformation#TableLFTagsList", "traits": { - "smithy.api#documentation": "A list of tables that meet the tag conditions.
" + "smithy.api#documentation": "A list of tables that meet the LF-tag conditions.
" } } } }, - "com.amazonaws.lakeformation#StringValue": { - "type": "string" - }, - "com.amazonaws.lakeformation#StringValueList": { - "type": "list", - "member": { - "target": "com.amazonaws.lakeformation#StringValue" - } - }, - "com.amazonaws.lakeformation#TableLFTagsList": { - "type": "list", - "member": { - "target": "com.amazonaws.lakeformation#TaggedTable" + "com.amazonaws.lakeformation#StartQueryPlanning": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#StartQueryPlanningRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#StartQueryPlanningResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#AccessDeniedException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#ThrottledException" + } + ], + "traits": { + "smithy.api#documentation": "Submits a request to process a query statement.
\n\t\n\tThis operation generates work units that can be retrieved with the GetWorkUnits
operation as soon as the query state is WORKUNITS_AVAILABLE or FINISHED.
The identifier for the Data Catalog. By default, it is the account ID of the caller.
" - } - }, - "DatabaseName": { - "target": "com.amazonaws.lakeformation#NameString", - "traits": { - "smithy.api#documentation": "The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
", + "smithy.api#documentation": "A structure containing information about the query plan.
", "smithy.api#required": {} } }, - "Name": { - "target": "com.amazonaws.lakeformation#NameString", + "QueryString": { + "target": "com.amazonaws.lakeformation#SyntheticStartQueryPlanningRequestQueryString", "traits": { - "smithy.api#documentation": "The name of the table.
" + "smithy.api#documentation": "A PartiQL query statement used as an input to the planner service.
", + "smithy.api#required": {} } - }, - "TableWildcard": { - "target": "com.amazonaws.lakeformation#TableWildcard", + } + } + }, + "com.amazonaws.lakeformation#StartQueryPlanningResponse": { + "type": "structure", + "members": { + "QueryId": { + "target": "com.amazonaws.lakeformation#QueryIdString", "traits": { - "smithy.api#documentation": "A wildcard object representing every table under a database.
\n\nAt least one of TableResource$Name
or TableResource$TableWildcard
is required.
The ID of the plan query operation can be used to fetch the actual work unit descriptors that are produced as the result of the operation. The ID is also used to get the query state and as an input to the Execute
operation.
A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
" + "smithy.api#documentation": "A structure for the output.
" } }, - "com.amazonaws.lakeformation#TableWildcard": { - "type": "structure", - "members": {}, + "com.amazonaws.lakeformation#StartTransaction": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#StartTransactionRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#StartTransactionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + } + ], "traits": { - "smithy.api#documentation": "A wildcard object representing every table under a database.
" + "smithy.api#documentation": "Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.
", + "smithy.api#http": { + "method": "POST", + "uri": "/StartTransaction", + "code": 200 + } } }, - "com.amazonaws.lakeformation#TableWithColumnsResource": { + "com.amazonaws.lakeformation#StartTransactionRequest": { "type": "structure", "members": { - "CatalogId": { - "target": "com.amazonaws.lakeformation#CatalogIdString", + "TransactionType": { + "target": "com.amazonaws.lakeformation#TransactionType", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, it is the account ID of the caller.
" + "smithy.api#documentation": "Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed.
" } - }, - "DatabaseName": { - "target": "com.amazonaws.lakeformation#NameString", - "traits": { + } + } + }, + "com.amazonaws.lakeformation#StartTransactionResponse": { + "type": "structure", + "members": { + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "An opaque identifier for the transaction.
" + } + } + } + }, + "com.amazonaws.lakeformation#StatisticsNotReadyYetException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error related to statistics not being ready.
", + "smithy.api#error": "client", + "smithy.api#httpError": 420 + } + }, + "com.amazonaws.lakeformation#StorageOptimizer": { + "type": "structure", + "members": { + "StorageOptimizerType": { + "target": "com.amazonaws.lakeformation#OptimizerType", + "traits": { + "smithy.api#documentation": "The specific type of storage optimizer. The supported value is compaction
.
A map of the storage optimizer configuration. Currently contains only one key-value pair: is_enabled
indicates true or false for acceleration.
A message that contains information about any error (if present).
\n\t\n\tWhen an acceleration result has an enabled status, the error message is empty.
\n\tWhen an acceleration result has a disabled status, the message describes an error or simply indicates \"disabled by the user\".
" + } + }, + "Warnings": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message that contains information about any warnings (if present).
" + } + }, + "LastRunDetails": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "When an acceleration result has an enabled status, contains the details of the last job run.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure describing the configuration and details of a storage optimizer.
" + } + }, + "com.amazonaws.lakeformation#StorageOptimizerConfig": { + "type": "map", + "key": { + "target": "com.amazonaws.lakeformation#StorageOptimizerConfigKey" + }, + "value": { + "target": "com.amazonaws.lakeformation#StorageOptimizerConfigValue" + } + }, + "com.amazonaws.lakeformation#StorageOptimizerConfigKey": { + "type": "string" + }, + "com.amazonaws.lakeformation#StorageOptimizerConfigMap": { + "type": "map", + "key": { + "target": "com.amazonaws.lakeformation#OptimizerType" + }, + "value": { + "target": "com.amazonaws.lakeformation#StorageOptimizerConfig" + } + }, + "com.amazonaws.lakeformation#StorageOptimizerConfigValue": { + "type": "string" + }, + "com.amazonaws.lakeformation#StorageOptimizerList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#StorageOptimizer" + } + }, + "com.amazonaws.lakeformation#StringValue": { + "type": "string" + }, + "com.amazonaws.lakeformation#StringValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#StringValue" + } + }, + "com.amazonaws.lakeformation#SyntheticGetWorkUnitResultsRequestWorkUnitTokenString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.lakeformation#SyntheticStartQueryPlanningRequestQueryString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.lakeformation#TableLFTagsList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#TaggedTable" + } + }, + "com.amazonaws.lakeformation#TableObject": { + "type": "structure", + "members": { + "Uri": { + "target": "com.amazonaws.lakeformation#URI", + "traits": { + "smithy.api#documentation": "The Amazon S3 location of the object.
" + } + }, + "ETag": { + "target": "com.amazonaws.lakeformation#ETagString", + "traits": { + "smithy.api#documentation": "The Amazon S3 ETag of the object. Returned by GetTableObjects
for validation and used to identify changes to the underlying data.
The size of the Amazon S3 object in bytes.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the details of a governed table.
" + } + }, + "com.amazonaws.lakeformation#TableObjectList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#TableObject" + } + }, + "com.amazonaws.lakeformation#TableResource": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The identifier for the Data Catalog. By default, it is the account ID of the caller.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name of the database for the table. Unique to a Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
", + "smithy.api#required": {} + } + }, + "Name": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The name of the table.
" + } + }, + "TableWildcard": { + "target": "com.amazonaws.lakeformation#TableWildcard", + "traits": { + "smithy.api#documentation": "A wildcard object representing every table under a database.
\n\nAt least one of TableResource$Name
or TableResource$TableWildcard
is required.
A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
" + } + }, + "com.amazonaws.lakeformation#TableWildcard": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "A wildcard object representing every table under a database.
" + } + }, + "com.amazonaws.lakeformation#TableWithColumnsResource": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The identifier for the Data Catalog. By default, it is the account ID of the caller.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { "smithy.api#documentation": "The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
", "smithy.api#required": {} } @@ -2625,18 +4713,18 @@ "Database": { "target": "com.amazonaws.lakeformation#DatabaseResource", "traits": { - "smithy.api#documentation": "A database that has tags attached to it.
" + "smithy.api#documentation": "A database that has LF-tags attached to it.
" } }, "LFTags": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "A list of tags attached to the database.
" + "smithy.api#documentation": "A list of LF-tags attached to the database.
" } } }, "traits": { - "smithy.api#documentation": "A structure describing a database resource with tags.
" + "smithy.api#documentation": "A structure describing a database resource with LF-tags.
" } }, "com.amazonaws.lakeformation#TaggedTable": { @@ -2645,41 +4733,253 @@ "Table": { "target": "com.amazonaws.lakeformation#TableResource", "traits": { - "smithy.api#documentation": "A table that has tags attached to it.
" + "smithy.api#documentation": "A table that has LF-tags attached to it.
" } }, "LFTagOnDatabase": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "A list of tags attached to the database where the table resides.
" + "smithy.api#documentation": "A list of LF-tags attached to the database where the table resides.
" } }, "LFTagsOnTable": { "target": "com.amazonaws.lakeformation#LFTagsList", "traits": { - "smithy.api#documentation": "A list of tags attached to the table.
" + "smithy.api#documentation": "A list of LF-tags attached to the table.
" } }, "LFTagsOnColumns": { "target": "com.amazonaws.lakeformation#ColumnLFTagsList", "traits": { - "smithy.api#documentation": "A list of tags attached to columns in the table.
" + "smithy.api#documentation": "A list of LF-tags attached to columns in the table.
" } } }, "traits": { - "smithy.api#documentation": "A structure describing a table resource with tags.
" + "smithy.api#documentation": "A structure describing a table resource with LF-tags.
" } }, + "com.amazonaws.lakeformation#ThrottledException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error where the query request was throttled.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429, + "smithy.api#retryable": { + "throttling": true + } + } + }, + "com.amazonaws.lakeformation#Timestamp": { + "type": "timestamp" + }, "com.amazonaws.lakeformation#Token": { "type": "string" }, + "com.amazonaws.lakeformation#TokenString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 4096 + } + } + }, + "com.amazonaws.lakeformation#TransactionCanceledException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error related to a transaction that was cancelled.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.lakeformation#TransactionCommitInProgressException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error related to a transaction commit that was in progress.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.lakeformation#TransactionCommittedException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error where the specified transaction has already been committed and cannot be used for UpdateTableObjects
.
The ID of the transaction.
" + } + }, + "TransactionStatus": { + "target": "com.amazonaws.lakeformation#TransactionStatus", + "traits": { + "smithy.api#documentation": "A status of ACTIVE, COMMITTED, or ABORTED.
" + } + }, + "TransactionStartTime": { + "target": "com.amazonaws.lakeformation#Timestamp", + "traits": { + "smithy.api#documentation": "The time when the transaction started.
" + } + }, + "TransactionEndTime": { + "target": "com.amazonaws.lakeformation#Timestamp", + "traits": { + "smithy.api#documentation": "The time when the transaction committed or aborted, if it is not currently active.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure that contains information about a transaction.
" + } + }, + "com.amazonaws.lakeformation#TransactionDescriptionList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#TransactionDescription" + } + }, + "com.amazonaws.lakeformation#TransactionIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[\\p{L}\\p{N}\\p{P}]*$" + } + }, + "com.amazonaws.lakeformation#TransactionStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "COMMITTED", + "name": "COMMITTED" + }, + { + "value": "ABORTED", + "name": "ABORTED" + }, + { + "value": "COMMIT_IN_PROGRESS", + "name": "COMMIT_IN_PROGRESS" + } + ] + } + }, + "com.amazonaws.lakeformation#TransactionStatusFilter": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ALL", + "name": "ALL" + }, + { + "value": "COMPLETED", + "name": "COMPLETED" + }, + { + "value": "ACTIVE", + "name": "ACTIVE" + }, + { + "value": "COMMITTED", + "name": "COMMITTED" + }, + { + "value": "ABORTED", + "name": "ABORTED" + } + ] + } + }, + "com.amazonaws.lakeformation#TransactionType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "READ_AND_WRITE", + "name": "READ_AND_WRITE" + }, + { + "value": "READ_ONLY", + "name": "READ_ONLY" + } + ] + } + }, + "com.amazonaws.lakeformation#TrueFalseString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + }, + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" + } + }, "com.amazonaws.lakeformation#TrustedResourceOwners": { "type": "list", "member": { "target": "com.amazonaws.lakeformation#CatalogIdString" } }, + "com.amazonaws.lakeformation#URI": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + }, + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + } + }, "com.amazonaws.lakeformation#UpdateLFTag": { "type": "operation", "input": { @@ -2709,7 +5009,12 @@ } ], "traits": { - "smithy.api#documentation": "Updates the list of possible values for the specified tag key. If the tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - \"Update not allowed\". Untag the attribute before deleting the tag key's value.
" + "smithy.api#documentation": "Updates the list of possible values for the specified LF-tag key. If the LF-tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - \"Update not allowed\". Untag the attribute before deleting the LF-tag key's value.
", + "smithy.api#http": { + "method": "POST", + "uri": "/UpdateLFTag", + "code": 200 + } } }, "com.amazonaws.lakeformation#UpdateLFTagRequest": { @@ -2718,26 +5023,26 @@ "CatalogId": { "target": "com.amazonaws.lakeformation#CatalogIdString", "traits": { - "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
" + "smithy.api#documentation": "The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
" } }, "TagKey": { "target": "com.amazonaws.lakeformation#LFTagKey", "traits": { - "smithy.api#documentation": "The key-name for the tag for which to add or delete values.
", + "smithy.api#documentation": "The key-name for the LF-tag for which to add or delete values.
", "smithy.api#required": {} } }, "TagValuesToDelete": { "target": "com.amazonaws.lakeformation#TagValueList", "traits": { - "smithy.api#documentation": "A list of tag values to delete from the tag.
" + "smithy.api#documentation": "A list of LF-tag values to delete from the LF-tag.
" } }, "TagValuesToAdd": { "target": "com.amazonaws.lakeformation#TagValueList", "traits": { - "smithy.api#documentation": "A list of tag values to add from the tag.
" + "smithy.api#documentation": "A list of LF-tag values to add from the LF-tag.
" } } } @@ -2769,7 +5074,12 @@ } ], "traits": { - "smithy.api#documentation": "Updates the data access role used for vending access to the given (registered) resource in AWS Lake Formation.
" + "smithy.api#documentation": "Updates the data access role used for vending access to the given (registered) resource in Lake Formation.
", + "smithy.api#http": { + "method": "POST", + "uri": "/UpdateResource", + "code": 200 + } } }, "com.amazonaws.lakeformation#UpdateResourceRequest": { @@ -2778,7 +5088,7 @@ "RoleArn": { "target": "com.amazonaws.lakeformation#IAMRoleArn", "traits": { - "smithy.api#documentation": "The new role to use for the given resource registered in AWS Lake Formation.
", + "smithy.api#documentation": "The new role to use for the given resource registered in Lake Formation.
", "smithy.api#required": {} } }, @@ -2794,6 +5104,291 @@ "com.amazonaws.lakeformation#UpdateResourceResponse": { "type": "structure", "members": {} + }, + "com.amazonaws.lakeformation#UpdateTableObjects": { + "type": "operation", + "input": { + "target": "com.amazonaws.lakeformation#UpdateTableObjectsRequest" + }, + "output": { + "target": "com.amazonaws.lakeformation#UpdateTableObjectsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lakeformation#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.lakeformation#EntityNotFoundException" + }, + { + "target": "com.amazonaws.lakeformation#InternalServiceException" + }, + { + "target": "com.amazonaws.lakeformation#InvalidInputException" + }, + { + "target": "com.amazonaws.lakeformation#OperationTimeoutException" + }, + { + "target": "com.amazonaws.lakeformation#ResourceNotReadyException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCanceledException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommitInProgressException" + }, + { + "target": "com.amazonaws.lakeformation#TransactionCommittedException" + } + ], + "traits": { + "smithy.api#documentation": "Updates the manifest of Amazon S3 objects that make up the specified governed table.
", + "smithy.api#http": { + "method": "POST", + "uri": "/UpdateTableObjects", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#UpdateTableObjectsRequest": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The catalog containing the governed table to update. Defaults to the caller’s account ID.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The database containing the governed table to update.
", + "smithy.api#required": {} + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "The governed table to update.
", + "smithy.api#required": {} + } + }, + "TransactionId": { + "target": "com.amazonaws.lakeformation#TransactionIdString", + "traits": { + "smithy.api#documentation": "The transaction at which to do the write.
", + "smithy.api#required": {} + } + }, + "WriteOperations": { + "target": "com.amazonaws.lakeformation#WriteOperationList", + "traits": { + "smithy.api#documentation": "A list of WriteOperation
objects that define an object to add to or delete from the manifest for a governed table.
Updates the configuration of the storage optimizers for a table.
", + "smithy.api#http": { + "method": "POST", + "uri": "/UpdateTableStorageOptimizer", + "code": 200 + } + } + }, + "com.amazonaws.lakeformation#UpdateTableStorageOptimizerRequest": { + "type": "structure", + "members": { + "CatalogId": { + "target": "com.amazonaws.lakeformation#CatalogIdString", + "traits": { + "smithy.api#documentation": "The Catalog ID of the table.
" + } + }, + "DatabaseName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "Name of the database where the table is present.
", + "smithy.api#required": {} + } + }, + "TableName": { + "target": "com.amazonaws.lakeformation#NameString", + "traits": { + "smithy.api#documentation": "Name of the table for which to enable the storage optimizer.
", + "smithy.api#required": {} + } + }, + "StorageOptimizerConfig": { + "target": "com.amazonaws.lakeformation#StorageOptimizerConfigMap", + "traits": { + "smithy.api#documentation": "Name of the table for which to enable the storage optimizer.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lakeformation#UpdateTableStorageOptimizerResponse": { + "type": "structure", + "members": { + "Result": { + "target": "com.amazonaws.lakeformation#Result", + "traits": { + "smithy.api#documentation": "A response indicating the success of failure of the operation.
" + } + } + } + }, + "com.amazonaws.lakeformation#VirtualObject": { + "type": "structure", + "members": { + "Uri": { + "target": "com.amazonaws.lakeformation#URI", + "traits": { + "smithy.api#documentation": "The path to the Amazon S3 object. Must start with s3://
", + "smithy.api#required": {} + } + }, + "ETag": { + "target": "com.amazonaws.lakeformation#ETagString", + "traits": { + "smithy.api#documentation": "The ETag of the Amazon S3 object.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that defines an Amazon S3 object to be deleted if a transaction cancels, provided that \n VirtualPut
was called before writing the object.
Defines the maximum work unit ID in the range. The maximum value is inclusive.
", + "smithy.api#required": {} + } + }, + "WorkUnitIdMin": { + "target": "com.amazonaws.lakeformation#WorkUnitIdLong", + "traits": { + "smithy.api#documentation": "Defines the minimum work unit ID in the range.
", + "smithy.api#required": {} + } + }, + "WorkUnitToken": { + "target": "com.amazonaws.lakeformation#WorkUnitTokenString", + "traits": { + "smithy.api#documentation": "A work token used to query the execution service.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the valid range of work unit IDs for querying the execution service.
" + } + }, + "com.amazonaws.lakeformation#WorkUnitRangeList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#WorkUnitRange" + } + }, + "com.amazonaws.lakeformation#WorkUnitTokenString": { + "type": "string" + }, + "com.amazonaws.lakeformation#WorkUnitsNotReadyYetException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.lakeformation#MessageString", + "traits": { + "smithy.api#documentation": "A message describing the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details about an error related to work units not being ready.
", + "smithy.api#error": "client", + "smithy.api#httpError": 420 + } + }, + "com.amazonaws.lakeformation#WriteOperation": { + "type": "structure", + "members": { + "AddObject": { + "target": "com.amazonaws.lakeformation#AddObjectInput", + "traits": { + "smithy.api#documentation": "A new object to add to the governed table.
" + } + }, + "DeleteObject": { + "target": "com.amazonaws.lakeformation#DeleteObjectInput", + "traits": { + "smithy.api#documentation": "An object to delete from the governed table.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines an object to add to or delete from a governed table.
" + } + }, + "com.amazonaws.lakeformation#WriteOperationList": { + "type": "list", + "member": { + "target": "com.amazonaws.lakeformation#WriteOperation" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } } } } diff --git a/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json b/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json index 14d15cb43f9..b4dd730e102 100644 --- a/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json +++ b/codegen/sdk-codegen/aws-models/lexmodelsv2.2020-08-07.json @@ -192,6 +192,75 @@ } } }, + "com.amazonaws.lexmodelsv2#AssociatedTranscript": { + "type": "structure", + "members": { + "transcript": { + "target": "com.amazonaws.lexmodelsv2#Transcript", + "traits": { + "smithy.api#documentation": "The content of the transcript that meets the search filter criteria.\n For the JSON format of the transcript, see Output transcript\n format.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object containing information that associates the recommended\n intent/slot type with a conversation.
" + } + }, + "com.amazonaws.lexmodelsv2#AssociatedTranscriptFilter": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.lexmodelsv2#AssociatedTranscriptFilterName", + "traits": { + "smithy.api#documentation": "The name of the field to use for filtering. The allowed names are\n IntentId and SlotTypeId.
", + "smithy.api#required": {} + } + }, + "values": { + "target": "com.amazonaws.lexmodelsv2#FilterValues", + "traits": { + "smithy.api#documentation": "The values to use to filter the transcript.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Filters to search for the associated transcript.
" + } + }, + "com.amazonaws.lexmodelsv2#AssociatedTranscriptFilterName": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "IntentId", + "name": "IntentId" + }, + { + "value": "SlotTypeId", + "name": "SlotTypeId" + } + ] + } + }, + "com.amazonaws.lexmodelsv2#AssociatedTranscriptFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#AssociatedTranscriptFilter" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1 + } + } + }, + "com.amazonaws.lexmodelsv2#AssociatedTranscriptList": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#AssociatedTranscript" + } + }, "com.amazonaws.lexmodelsv2#AttachmentTitle": { "type": "string", "traits": { @@ -785,6 +854,10 @@ { "value": "Importing", "name": "Importing" + }, + { + "value": "Processing", + "name": "Processing" } ] } @@ -839,6 +912,127 @@ "target": "com.amazonaws.lexmodelsv2#BotLocaleSummary" } }, + "com.amazonaws.lexmodelsv2#BotRecommendationResultStatistics": { + "type": "structure", + "members": { + "intents": { + "target": "com.amazonaws.lexmodelsv2#IntentStatistics", + "traits": { + "smithy.api#documentation": "Statistical information about about the intents associated with the\n bot recommendation results.
" + } + }, + "slotTypes": { + "target": "com.amazonaws.lexmodelsv2#SlotTypeStatistics", + "traits": { + "smithy.api#documentation": "Statistical information about the slot types associated with the bot\n recommendation results.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A statistical summary of the bot recommendation results.
" + } + }, + "com.amazonaws.lexmodelsv2#BotRecommendationResults": { + "type": "structure", + "members": { + "botLocaleExportUrl": { + "target": "com.amazonaws.lexmodelsv2#PresignedS3Url", + "traits": { + "smithy.api#documentation": "The presigned URL link of the recommended bot definition.
" + } + }, + "associatedTranscriptsUrl": { + "target": "com.amazonaws.lexmodelsv2#PresignedS3Url", + "traits": { + "smithy.api#documentation": "The presigned url link of the associated transcript.
" + } + }, + "statistics": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationResultStatistics", + "traits": { + "smithy.api#documentation": "The statistical summary of the bot recommendation results.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object representing the URL of the bot definition, the URL of\n the associated transcript and a statistical summary of the bot\n recommendation results.
" + } + }, + "com.amazonaws.lexmodelsv2#BotRecommendationStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Processing", + "name": "Processing" + }, + { + "value": "Deleting", + "name": "Deleting" + }, + { + "value": "Deleted", + "name": "Deleted" + }, + { + "value": "Downloading", + "name": "Downloading" + }, + { + "value": "Updating", + "name": "Updating" + }, + { + "value": "Available", + "name": "Available" + }, + { + "value": "Failed", + "name": "Failed" + } + ] + } + }, + "com.amazonaws.lexmodelsv2#BotRecommendationSummary": { + "type": "structure", + "members": { + "botRecommendationStatus": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationStatus", + "traits": { + "smithy.api#documentation": "The status of the bot recommendation.
\nIf the status is Failed, then the reasons for the failure are listed\n in the failureReasons field.
", + "smithy.api#required": {} + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot recommendation to be\n updated.
", + "smithy.api#required": {} + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp of the date and time that the bot recommendation was\n created.
" + } + }, + "lastUpdatedDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp of the date and time that the bot recommendation was\n last updated.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A summary of the bot recommendation.
" + } + }, + "com.amazonaws.lexmodelsv2#BotRecommendationSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationSummary" + } + }, "com.amazonaws.lexmodelsv2#BotSortAttribute": { "type": "string", "traits": { @@ -1547,6 +1741,12 @@ "smithy.api#documentation": "Configures conversation logging that saves audio, text, and metadata\n for the conversations with your users.
" } }, + "com.amazonaws.lexmodelsv2#Count": { + "type": "integer", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.lexmodelsv2#CreateBot": { "type": "operation", "input": { @@ -3068,6 +3268,28 @@ "smithy.api#documentation": "By default, data stored by Amazon Lex is encrypted. The\n DataPrivacy
structure provides settings that determine\n how Amazon Lex handles special cases of securing the data for your bot.\n
A timestamp indicating the start date for the date range\n filter.
", + "smithy.api#required": {} + } + }, + "endDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp indicating the end date for the date range\n filter.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The object used for specifying the data range that the customer\n wants Amazon Lex to read through in the input transcripts.
" + } + }, "com.amazonaws.lexmodelsv2#DeleteBot": { "type": "operation", "input": { @@ -4539,88 +4761,227 @@ } } }, - "com.amazonaws.lexmodelsv2#DescribeBotRequest": { + "com.amazonaws.lexmodelsv2#DescribeBotRecommendation": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#DescribeBotRecommendationRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#DescribeBotRecommendationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Provides metadata information about a bot recommendation. This\n information will enable you to get a description on the request inputs,\n to download associated transcripts after processing is complete, and to\n download intents and slot-types generated by the bot\n recommendation.
", + "smithy.api#http": { + "method": "GET", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}", + "code": 200 + } + } + }, + "com.amazonaws.lexmodelsv2#DescribeBotRecommendationRequest": { "type": "structure", "members": { "botId": { "target": "com.amazonaws.lexmodelsv2#Id", "traits": { - "smithy.api#documentation": "The unique identifier of the bot to describe.
", + "smithy.api#documentation": "The unique identifier of the bot associated with the bot\n recommendation.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot associated with the bot\n recommendation.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n to describe. The string must match one of the supported locales. For\n more information, see Supported languages.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The identifier of the bot recommendation to describe.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, - "com.amazonaws.lexmodelsv2#DescribeBotResponse": { + "com.amazonaws.lexmodelsv2#DescribeBotRecommendationResponse": { "type": "structure", "members": { "botId": { "target": "com.amazonaws.lexmodelsv2#Id", "traits": { - "smithy.api#documentation": "The unique identifier of the bot.
" - } - }, - "botName": { - "target": "com.amazonaws.lexmodelsv2#Name", - "traits": { - "smithy.api#documentation": "The name of the bot.
" + "smithy.api#documentation": "The identifier of the bot associated with the bot\n recommendation.
" } }, - "description": { - "target": "com.amazonaws.lexmodelsv2#Description", + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", "traits": { - "smithy.api#documentation": "The description of the bot.
" + "smithy.api#documentation": "The version of the bot associated with the bot\n recommendation.
" } }, - "roleArn": { - "target": "com.amazonaws.lexmodelsv2#RoleArn", + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM role that has permission to\n access the bot.
" + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n to describe.
" } }, - "dataPrivacy": { - "target": "com.amazonaws.lexmodelsv2#DataPrivacy", + "botRecommendationStatus": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationStatus", "traits": { - "smithy.api#documentation": "Settings for managing data privacy of the bot and its conversations\n with users.
" + "smithy.api#documentation": "The status of the bot recommendation. If the status is Failed, then\n the reasons for the failure are listed in the failureReasons field.\n
" } }, - "idleSessionTTLInSeconds": { - "target": "com.amazonaws.lexmodelsv2#SessionTTL", + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", "traits": { - "smithy.api#documentation": "The maximum time in seconds that Amazon Lex retains the data gathered in\n a conversation.
" + "smithy.api#documentation": "The identifier of the bot recommendation being described.
" } }, - "botStatus": { - "target": "com.amazonaws.lexmodelsv2#BotStatus", + "failureReasons": { + "target": "com.amazonaws.lexmodelsv2#FailureReasons", "traits": { - "smithy.api#documentation": "The current status of the bot. When the status is\n Available
the bot is ready to be used in conversations\n with users.
If botRecommendationStatus is Failed, Amazon Lex explains why.
" } }, "creationDateTime": { "target": "com.amazonaws.lexmodelsv2#Timestamp", "traits": { - "smithy.api#documentation": "A timestamp of the date and time that the bot was created.
" + "smithy.api#documentation": "The date and time that the bot recommendation was created.
" } }, "lastUpdatedDateTime": { "target": "com.amazonaws.lexmodelsv2#Timestamp", "traits": { - "smithy.api#documentation": "A timestamp of the date and time that the bot was last\n updated.
" + "smithy.api#documentation": "The date and time that the bot recommendation was last\n updated.
" + } + }, + "transcriptSourceSetting": { + "target": "com.amazonaws.lexmodelsv2#TranscriptSourceSetting", + "traits": { + "smithy.api#documentation": "The object representing the Amazon S3 bucket containing the transcript,\n as well as the associated metadata.
" + } + }, + "encryptionSetting": { + "target": "com.amazonaws.lexmodelsv2#EncryptionSetting", + "traits": { + "smithy.api#documentation": "The object representing the passwords that were used to encrypt the\n data related to the bot recommendation results, as well as the KMS key\n ARN used to encrypt the associated metadata.
" + } + }, + "botRecommendationResults": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationResults", + "traits": { + "smithy.api#documentation": "The object representing the URL of the bot definition, the URL of\n the associated transcript and a statistical summary of the bot\n recommendation results.
" } } } }, - "com.amazonaws.lexmodelsv2#DescribeBotVersion": { - "type": "operation", - "input": { - "target": "com.amazonaws.lexmodelsv2#DescribeBotVersionRequest" - }, - "output": { - "target": "com.amazonaws.lexmodelsv2#DescribeBotVersionResponse" - }, - "errors": [ - { + "com.amazonaws.lexmodelsv2#DescribeBotRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot to describe.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lexmodelsv2#DescribeBotResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot.
" + } + }, + "botName": { + "target": "com.amazonaws.lexmodelsv2#Name", + "traits": { + "smithy.api#documentation": "The name of the bot.
" + } + }, + "description": { + "target": "com.amazonaws.lexmodelsv2#Description", + "traits": { + "smithy.api#documentation": "The description of the bot.
" + } + }, + "roleArn": { + "target": "com.amazonaws.lexmodelsv2#RoleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM role that has permission to\n access the bot.
" + } + }, + "dataPrivacy": { + "target": "com.amazonaws.lexmodelsv2#DataPrivacy", + "traits": { + "smithy.api#documentation": "Settings for managing data privacy of the bot and its conversations\n with users.
" + } + }, + "idleSessionTTLInSeconds": { + "target": "com.amazonaws.lexmodelsv2#SessionTTL", + "traits": { + "smithy.api#documentation": "The maximum time in seconds that Amazon Lex retains the data gathered in\n a conversation.
" + } + }, + "botStatus": { + "target": "com.amazonaws.lexmodelsv2#BotStatus", + "traits": { + "smithy.api#documentation": "The current status of the bot. When the status is\n Available
the bot is ready to be used in conversations\n with users.
A timestamp of the date and time that the bot was created.
" + } + }, + "lastUpdatedDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp of the date and time that the bot was last\n updated.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#DescribeBotVersion": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#DescribeBotVersionRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#DescribeBotVersionResponse" + }, + "errors": [ + { "target": "com.amazonaws.lexmodelsv2#InternalServerException" }, { @@ -5652,6 +6013,32 @@ ] } }, + "com.amazonaws.lexmodelsv2#EncryptionSetting": { + "type": "structure", + "members": { + "kmsKeyArn": { + "target": "com.amazonaws.lexmodelsv2#KmsKeyArn", + "traits": { + "smithy.api#documentation": "The KMS key ARN used to encrypt the metadata associated with the bot\n recommendation.
" + } + }, + "botLocaleExportPassword": { + "target": "com.amazonaws.lexmodelsv2#FilePassword", + "traits": { + "smithy.api#documentation": "The password used to encrypt the recommended bot recommendation\n file.
" + } + }, + "associatedTranscriptsPassword": { + "target": "com.amazonaws.lexmodelsv2#FilePassword", + "traits": { + "smithy.api#documentation": "The password used to encrypt the associated transcript file.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object representing the passwords that were used to encrypt the\n data related to the bot recommendation, as well as the KMS key ARN used\n to encrypt the associated metadata.
" + } + }, "com.amazonaws.lexmodelsv2#ExceptionMessage": { "type": "string" }, @@ -5857,6 +6244,16 @@ "target": "com.amazonaws.lexmodelsv2#FailureReason" } }, + "com.amazonaws.lexmodelsv2#FilePassword": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.lexmodelsv2#FilterValue": { "type": "string", "traits": { @@ -6487,6 +6884,20 @@ "smithy.api#documentation": "Specifies attributes for sorting a list of intents.
" } }, + "com.amazonaws.lexmodelsv2#IntentStatistics": { + "type": "structure", + "members": { + "discoveredIntentCount": { + "target": "com.amazonaws.lexmodelsv2#Count", + "traits": { + "smithy.api#documentation": "The number of recommended intents associated with the bot\n recommendation.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object that contains the statistical summary of recommended\n intents associated with the bot recommendation.
" + } + }, "com.amazonaws.lexmodelsv2#IntentSummary": { "type": "structure", "members": { @@ -6735,6 +7146,9 @@ { "target": "com.amazonaws.lexmodelsv2#DescribeBotLocale" }, + { + "target": "com.amazonaws.lexmodelsv2#DescribeBotRecommendation" + }, { "target": "com.amazonaws.lexmodelsv2#DescribeBotVersion" }, @@ -6765,6 +7179,9 @@ { "target": "com.amazonaws.lexmodelsv2#ListBotLocales" }, + { + "target": "com.amazonaws.lexmodelsv2#ListBotRecommendations" + }, { "target": "com.amazonaws.lexmodelsv2#ListBots" }, @@ -6786,6 +7203,9 @@ { "target": "com.amazonaws.lexmodelsv2#ListIntents" }, + { + "target": "com.amazonaws.lexmodelsv2#ListRecommendedIntents" + }, { "target": "com.amazonaws.lexmodelsv2#ListSlots" }, @@ -6795,6 +7215,12 @@ { "target": "com.amazonaws.lexmodelsv2#ListTagsForResource" }, + { + "target": "com.amazonaws.lexmodelsv2#SearchAssociatedTranscripts" + }, + { + "target": "com.amazonaws.lexmodelsv2#StartBotRecommendation" + }, { "target": "com.amazonaws.lexmodelsv2#StartImport" }, @@ -6813,6 +7239,9 @@ { "target": "com.amazonaws.lexmodelsv2#UpdateBotLocale" }, + { + "target": "com.amazonaws.lexmodelsv2#UpdateBotRecommendation" + }, { "target": "com.amazonaws.lexmodelsv2#UpdateExport" }, @@ -6830,6 +7259,20 @@ } ] }, + "com.amazonaws.lexmodelsv2#LexTranscriptFilter": { + "type": "structure", + "members": { + "dateRangeFilter": { + "target": "com.amazonaws.lexmodelsv2#DateRangeFilter", + "traits": { + "smithy.api#documentation": "The object that contains a date range filter that will be applied to\n the transcript. Specify this object if you want Amazon Lex to only read the\n files that are within the date range.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object that contains transcript filter details that are\n associated with a bot recommendation.
" + } + }, "com.amazonaws.lexmodelsv2#ListAggregatedUtterances": { "type": "operation", "input": { @@ -7188,6 +7631,118 @@ } } }, + "com.amazonaws.lexmodelsv2#ListBotRecommendations": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#ListBotRecommendationsRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#ListBotRecommendationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Get a list of bot recommendations that meet the specified\n criteria.
", + "smithy.api#http": { + "method": "POST", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.lexmodelsv2#ListBotRecommendationsRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot that contains the bot\n recommendation list.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot that contains the bot recommendation\n list.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n list.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.lexmodelsv2#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of bot recommendations to return in each page of\n results. If there are fewer results than the max page size, only the\n actual number of results are returned.
" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "If the response from the ListBotRecommendation operation contains\n more results than specified in the maxResults parameter, a token is\n returned in the response. Use that token in the nextToken parameter to\n return the next page of results.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#ListBotRecommendationsResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot that contains the bot\n recommendation list.
" + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot that contains the bot recommendation\n list.
" + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n list.
" + } + }, + "botRecommendationSummaries": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationSummaryList", + "traits": { + "smithy.api#documentation": "Summary information for the bot recommendations that meet the filter\n specified in this request. The length of the list is specified in the\n maxResults parameter of the request. If there are more bot\n recommendations available, the nextToken field contains a token to get\n the next page of results.
" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "A token that indicates whether there are more results to return in a\n response to the ListBotRecommendations operation. If the nextToken\n field is present, you send the contents as the nextToken parameter of a\n ListBotRecommendations operation request to get the next page of\n results.
" + } + } + } + }, "com.amazonaws.lexmodelsv2#ListBotVersions": { "type": "operation", "input": { @@ -7870,18 +8425,21 @@ } } }, - "com.amazonaws.lexmodelsv2#ListSlotTypes": { + "com.amazonaws.lexmodelsv2#ListRecommendedIntents": { "type": "operation", "input": { - "target": "com.amazonaws.lexmodelsv2#ListSlotTypesRequest" + "target": "com.amazonaws.lexmodelsv2#ListRecommendedIntentsRequest" }, "output": { - "target": "com.amazonaws.lexmodelsv2#ListSlotTypesResponse" + "target": "com.amazonaws.lexmodelsv2#ListRecommendedIntentsResponse" }, "errors": [ { "target": "com.amazonaws.lexmodelsv2#InternalServerException" }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, { "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" }, @@ -7893,10 +8451,10 @@ } ], "traits": { - "smithy.api#documentation": "Gets a list of slot types that match the specified criteria.
", + "smithy.api#documentation": "Gets a list of recommended intents provided by the bot\n recommendation that you can use in your bot.
", "smithy.api#http": { "method": "POST", - "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents", "code": 200 }, "smithy.api#paginated": { @@ -7906,21 +8464,21 @@ } } }, - "com.amazonaws.lexmodelsv2#ListSlotTypesRequest": { + "com.amazonaws.lexmodelsv2#ListRecommendedIntentsRequest": { "type": "structure", "members": { "botId": { "target": "com.amazonaws.lexmodelsv2#Id", "traits": { - "smithy.api#documentation": "The unique identifier of the bot that contains the slot\n types.
", + "smithy.api#documentation": "The unique identifier of the bot associated with the recommended\n intents.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "botVersion": { - "target": "com.amazonaws.lexmodelsv2#BotVersion", + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", "traits": { - "smithy.api#documentation": "The version of the bot that contains the slot type.
", + "smithy.api#documentation": "The version of the bot that contains the recommended intents.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -7928,21 +8486,147 @@ "localeId": { "target": "com.amazonaws.lexmodelsv2#LocaleId", "traits": { - "smithy.api#documentation": "The identifier of the language and locale of the slot types to list.\n The string must match one of the supported locales. For more\n information, see Supported languages.
", + "smithy.api#documentation": "The identifier of the language and locale of the recommended\n intents.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, - "sortBy": { - "target": "com.amazonaws.lexmodelsv2#SlotTypeSortBy", + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", "traits": { - "smithy.api#documentation": "Determines the sort order for the response from the\n ListSlotTypes
operation. You can choose to sort by the\n slot type name or last updated date in either ascending or descending\n order.
The identifier of the bot recommendation that contains the\n recommended intents.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} } }, - "filters": { - "target": "com.amazonaws.lexmodelsv2#SlotTypeFilters", + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", "traits": { - "smithy.api#documentation": "Provides the specification of a filter used to limit the slot types\n in the response to only those that match the filter specification. You\n can only specify one filter and only one string to filter on.
" + "smithy.api#documentation": "If the response from the ListRecommendedIntents operation contains\n more results than specified in the maxResults parameter, a token is\n returned in the response. Use that token in the nextToken parameter to\n return the next page of results.
" + } + }, + "maxResults": { + "target": "com.amazonaws.lexmodelsv2#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of bot recommendations to return in each page of\n results. If there are fewer results than the max page size, only the\n actual number of results are returned.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#ListRecommendedIntentsResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot associated with the recommended\n intent.
" + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot that contains the intent.
" + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the intents to list.\n The string must match one of the supported locales. For more\n information, see Supported languages.
" + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The identifier of the bot recommendation that contains the\n recommended intent.
" + } + }, + "summaryList": { + "target": "com.amazonaws.lexmodelsv2#RecommendedIntentSummaryList", + "traits": { + "smithy.api#documentation": "Summary information for the intents that meet the filter criteria\n specified in the request. The length of the list is specified in the\n maxResults parameter of the request. If there are more intents\n available, the nextToken field contains a token to get the next page of\n results.
" + } + }, + "nextToken": { + "target": "com.amazonaws.lexmodelsv2#NextToken", + "traits": { + "smithy.api#documentation": "A token that indicates whether there are more results to return in a\n response to the ListRecommendedIntents operation. If the nextToken\n field is present, you send the contents as the nextToken parameter of a\n ListRecommendedIntents operation request to get the next page of\n results.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#ListSlotTypes": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#ListSlotTypesRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#ListSlotTypesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets a list of slot types that match the specified criteria.
", + "smithy.api#http": { + "method": "POST", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + } + } + }, + "com.amazonaws.lexmodelsv2#ListSlotTypesRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot that contains the slot\n types.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#BotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot that contains the slot type.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the slot types to list.\n The string must match one of the supported locales. For more\n information, see Supported languages.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "sortBy": { + "target": "com.amazonaws.lexmodelsv2#SlotTypeSortBy", + "traits": { + "smithy.api#documentation": "Determines the sort order for the response from the\n ListSlotTypes
operation. You can choose to sort by the\n slot type name or last updated date in either ascending or descending\n order.
Provides the specification of a filter used to limit the slot types\n in the response to only those that match the filter specification. You\n can only specify one filter and only one string to filter on.
" } }, "maxResults": { @@ -8223,6 +8907,10 @@ { "value": "FailOnConflict", "name": "FailOnConflict" + }, + { + "value": "Append", + "name": "Append" } ] } @@ -8334,6 +9022,16 @@ "smithy.api#pattern": "^([0-9a-zA-Z][_-]?)+$" } }, + "com.amazonaws.lexmodelsv2#NextIndex": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0, + "max": 10000000 + } + } + }, "com.amazonaws.lexmodelsv2#NextToken": { "type": "string" }, @@ -8377,6 +9075,27 @@ ] } }, + "com.amazonaws.lexmodelsv2#ObjectPrefix": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + }, + "smithy.api#pattern": "^[\\/]?+[a-zA-Z0-9!_.*'()-]+(\\/[a-zA-Z0-9!_.*'()-]+)*$" + } + }, + "com.amazonaws.lexmodelsv2#ObjectPrefixes": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#ObjectPrefix" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2 + } + } + }, "com.amazonaws.lexmodelsv2#Operation": { "type": "string", "traits": { @@ -8434,6 +9153,20 @@ } } }, + "com.amazonaws.lexmodelsv2#PathFormat": { + "type": "structure", + "members": { + "objectPrefixes": { + "target": "com.amazonaws.lexmodelsv2#ObjectPrefixes", + "traits": { + "smithy.api#documentation": "A list of Amazon S3 prefixes that points to sub-folders in the Amazon S3\n bucket. Specify this list if you only want Lex to read the files under\n this set of sub-folders.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object that contains a path format that will be applied when\n Amazon Lex reads the transcript file in the bucket you provide. Specify this\n object if you only want Lex to read a subset of files in your Amazon S3\n bucket.
" + } + }, "com.amazonaws.lexmodelsv2#PlainTextMessage": { "type": "structure", "members": { @@ -8598,6 +9331,38 @@ } } }, + "com.amazonaws.lexmodelsv2#RecommendedIntentSummary": { + "type": "structure", + "members": { + "intentId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of a recommended intent associated with the\n bot recommendation.
" + } + }, + "intentName": { + "target": "com.amazonaws.lexmodelsv2#Name", + "traits": { + "smithy.api#documentation": "The name of a recommended intent associated with the bot\n recommendation.
" + } + }, + "sampleUtterancesCount": { + "target": "com.amazonaws.lexmodelsv2#SampleUtterancesCount", + "traits": { + "smithy.api#documentation": "The count of sample utterances of a recommended intent that is\n associated with a bot recommendation.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that contains a summary of a recommended intent.
" + } + }, + "com.amazonaws.lexmodelsv2#RecommendedIntentSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.lexmodelsv2#RecommendedIntentSummary" + } + }, "com.amazonaws.lexmodelsv2#RegexPattern": { "type": "string", "traits": { @@ -8730,6 +9495,56 @@ "smithy.api#documentation": "Specifies an Amazon S3 bucket for logging audio conversations
" } }, + "com.amazonaws.lexmodelsv2#S3BucketName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 63 + }, + "smithy.api#pattern": "^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$" + } + }, + "com.amazonaws.lexmodelsv2#S3BucketTranscriptSource": { + "type": "structure", + "members": { + "s3BucketName": { + "target": "com.amazonaws.lexmodelsv2#S3BucketName", + "traits": { + "smithy.api#documentation": "The name of the bucket containing the transcript and the associated\n metadata.
", + "smithy.api#required": {} + } + }, + "pathFormat": { + "target": "com.amazonaws.lexmodelsv2#PathFormat", + "traits": { + "smithy.api#documentation": "The object that contains a path format that will be applied when\n Amazon Lex reads the transcript file in the bucket you provide. Specify this\n object if you only want Lex to read a subset of files in your Amazon S3\n bucket.
" + } + }, + "transcriptFormat": { + "target": "com.amazonaws.lexmodelsv2#TranscriptFormat", + "traits": { + "smithy.api#documentation": "The format of the transcript content. Currently, Genie only supports\n the Amazon Lex transcript format.
", + "smithy.api#required": {} + } + }, + "transcriptFilter": { + "target": "com.amazonaws.lexmodelsv2#TranscriptFilter", + "traits": { + "smithy.api#documentation": "The object that contains the filter which will be applied when Amazon Lex\n reads through the Amazon S3 bucket. Specify this object if you want Amazon Lex to\n read only a subset of the Amazon S3 bucket based on the filter you\n provide.
" + } + }, + "kmsKeyArn": { + "target": "com.amazonaws.lexmodelsv2#KmsKeyArn", + "traits": { + "smithy.api#documentation": "The ARN of the KMS key that customer use to encrypt their Amazon S3\n bucket. Only use this field if your bucket is encrypted using a\n customer managed KMS key.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object representing the Amazon S3 bucket containing the transcript,\n as well as the associated metadata.
" + } + }, "com.amazonaws.lexmodelsv2#SSMLMessage": { "type": "structure", "members": { @@ -8769,6 +9584,12 @@ "smithy.api#documentation": "A sample utterance that invokes an intent or respond to a slot\n elicitation prompt.
" } }, + "com.amazonaws.lexmodelsv2#SampleUtterancesCount": { + "type": "integer", + "traits": { + "smithy.api#box": {} + } + }, "com.amazonaws.lexmodelsv2#SampleUtterancesList": { "type": "list", "member": { @@ -8790,6 +9611,164 @@ "smithy.api#documentation": "Defines one of the values for a slot type.
" } }, + "com.amazonaws.lexmodelsv2#SearchAssociatedTranscripts": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#SearchAssociatedTranscriptsRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#SearchAssociatedTranscriptsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Search for associated transcripts that meet the specified\n criteria.
", + "smithy.api#http": { + "method": "POST", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts", + "code": 200 + } + } + }, + "com.amazonaws.lexmodelsv2#SearchAssociatedTranscriptsRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot associated with the transcripts\n that you are searching.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#BotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot containing the transcripts that you are\n searching.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the transcripts to\n search. The string must match one of the supported locales. For more\n information, see Supported languages\n
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot recommendation associated with the\n transcripts to search.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "searchOrder": { + "target": "com.amazonaws.lexmodelsv2#SearchOrder", + "traits": { + "smithy.api#documentation": "How SearchResults are ordered. Valid values are Ascending or\n Descending. The default is Descending.
" + } + }, + "filters": { + "target": "com.amazonaws.lexmodelsv2#AssociatedTranscriptFilters", + "traits": { + "smithy.api#documentation": "A list of filter objects.
", + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.lexmodelsv2#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of bot recommendations to return in each page of\n results. If there are fewer results than the max page size, only the\n actual number of results are returned.
" + } + }, + "nextIndex": { + "target": "com.amazonaws.lexmodelsv2#NextIndex", + "traits": { + "smithy.api#documentation": "If the response from the SearchAssociatedTranscriptsRequest\n operation contains more results than specified in the maxResults\n parameter, an index is returned in the response. Use that index in the\n nextIndex parameter to return the next page of results.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#SearchAssociatedTranscriptsResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot associated with the transcripts\n that you are searching.
" + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#BotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot containing the transcripts that you are\n searching.
" + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the transcripts to\n search. The string must match one of the supported locales. For more\n information, see Supported languages\n
" + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot recommendation associated with the\n transcripts to search.
" + } + }, + "nextIndex": { + "target": "com.amazonaws.lexmodelsv2#NextIndex", + "traits": { + "smithy.api#documentation": "A index that indicates whether there are more results to return in a\n response to the SearchAssociatedTranscripts operation. If the nextIndex\n field is present, you send the contents as the nextIndex parameter of a\n SearchAssociatedTranscriptsRequest operation to get the next page of\n results.
" + } + }, + "associatedTranscripts": { + "target": "com.amazonaws.lexmodelsv2#AssociatedTranscriptList", + "traits": { + "smithy.api#documentation": "The object that contains the associated transcript that meet the\n criteria you specified.
" + } + }, + "totalResults": { + "target": "com.amazonaws.lexmodelsv2#MaxResults", + "traits": { + "smithy.api#documentation": "The total number of transcripts returned by the search.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#SearchOrder": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Ascending", + "name": "Ascending" + }, + { + "value": "Descending", + "name": "Descending" + } + ] + } + }, "com.amazonaws.lexmodelsv2#SentimentAnalysisSettings": { "type": "structure", "members": { @@ -9203,13 +10182,27 @@ "order": { "target": "com.amazonaws.lexmodelsv2#SortOrder", "traits": { - "smithy.api#documentation": "The order to sort the list. You can say ascending or\n descending.
", - "smithy.api#required": {} + "smithy.api#documentation": "The order to sort the list. You can say ascending or\n descending.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies attributes for sorting a list of slot types.
" + } + }, + "com.amazonaws.lexmodelsv2#SlotTypeStatistics": { + "type": "structure", + "members": { + "discoveredSlotTypeCount": { + "target": "com.amazonaws.lexmodelsv2#Count", + "traits": { + "smithy.api#documentation": "The number of recommended slot types associated with the bot\n recommendation.
" } } }, "traits": { - "smithy.api#documentation": "Specifies attributes for sorting a list of slot types.
" + "smithy.api#documentation": "The object that contains the statistical summary of the recommended\n slot type associated with the bot recommendation.
" } }, "com.amazonaws.lexmodelsv2#SlotTypeSummary": { @@ -9390,6 +10383,141 @@ ] } }, + "com.amazonaws.lexmodelsv2#StartBotRecommendation": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#StartBotRecommendationRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#StartBotRecommendationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#ConflictException" + }, + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#PreconditionFailedException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Use this to provide your transcript data, and to start the bot\n recommendation process.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations", + "code": 202 + } + } + }, + "com.amazonaws.lexmodelsv2#StartBotRecommendationRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot containing the bot\n recommendation.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot containing the bot recommendation.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n to start. The string must match one of the supported locales. For more\n information, see Supported languages\n
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "transcriptSourceSetting": { + "target": "com.amazonaws.lexmodelsv2#TranscriptSourceSetting", + "traits": { + "smithy.api#documentation": "The object representing the Amazon S3 bucket containing the transcript,\n as well as the associated metadata.
", + "smithy.api#required": {} + } + }, + "encryptionSetting": { + "target": "com.amazonaws.lexmodelsv2#EncryptionSetting", + "traits": { + "smithy.api#documentation": "The object representing the passwords that will be used to encrypt\n the data related to the bot recommendation results, as well as the KMS\n key ARN used to encrypt the associated metadata.
" + } + } + } + }, + "com.amazonaws.lexmodelsv2#StartBotRecommendationResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot containing the bot\n recommendation.
" + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot containing the bot recommendation.
" + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n to start. The string must match one of the supported locales. For more\n information, see Supported languages\n
" + } + }, + "botRecommendationStatus": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationStatus", + "traits": { + "smithy.api#documentation": "The status of the bot recommendation.
\nIf the status is Failed, then the reasons for the failure are listed\n in the failureReasons field.
" + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The identifier of the bot recommendation that you have\n created.
" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp of the date and time that the bot recommendation was\n created.
" + } + }, + "transcriptSourceSetting": { + "target": "com.amazonaws.lexmodelsv2#TranscriptSourceSetting", + "traits": { + "smithy.api#documentation": "The object representing the Amazon S3 bucket containing the transcript,\n as well as the associated metadata.
" + } + }, + "encryptionSetting": { + "target": "com.amazonaws.lexmodelsv2#EncryptionSetting", + "traits": { + "smithy.api#documentation": "The object representing the passwords that were used to encrypt the\n data related to the bot recommendation results, as well as the KMS key\n ARN used to encrypt the associated metadata.
" + } + } + } + }, "com.amazonaws.lexmodelsv2#StartImport": { "type": "operation", "input": { @@ -9759,6 +10887,55 @@ "com.amazonaws.lexmodelsv2#Timestamp": { "type": "timestamp" }, + "com.amazonaws.lexmodelsv2#Transcript": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 6000000 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.lexmodelsv2#TranscriptFilter": { + "type": "structure", + "members": { + "lexTranscriptFilter": { + "target": "com.amazonaws.lexmodelsv2#LexTranscriptFilter", + "traits": { + "smithy.api#documentation": "The object representing the filter that Amazon Lex will use to select the\n appropriate transcript when the transcript format is the Amazon Lex\n format.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object representing the filter that Amazon Lex will use to select the\n appropriate transcript.
" + } + }, + "com.amazonaws.lexmodelsv2#TranscriptFormat": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Lex", + "name": "Lex" + } + ] + } + }, + "com.amazonaws.lexmodelsv2#TranscriptSourceSetting": { + "type": "structure", + "members": { + "s3BucketTranscriptSource": { + "target": "com.amazonaws.lexmodelsv2#S3BucketTranscriptSource", + "traits": { + "smithy.api#documentation": "Indicates the setting of the Amazon S3 bucket where the transcript is\n stored.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Indicates the setting of the location where the transcript is\n stored.
" + } + }, "com.amazonaws.lexmodelsv2#UntagResource": { "type": "operation", "input": { @@ -10168,6 +11345,149 @@ } } }, + "com.amazonaws.lexmodelsv2#UpdateBotRecommendation": { + "type": "operation", + "input": { + "target": "com.amazonaws.lexmodelsv2#UpdateBotRecommendationRequest" + }, + "output": { + "target": "com.amazonaws.lexmodelsv2#UpdateBotRecommendationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.lexmodelsv2#ConflictException" + }, + { + "target": "com.amazonaws.lexmodelsv2#InternalServerException" + }, + { + "target": "com.amazonaws.lexmodelsv2#PreconditionFailedException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ThrottlingException" + }, + { + "target": "com.amazonaws.lexmodelsv2#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing bot recommendation request.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}", + "code": 202 + } + } + }, + "com.amazonaws.lexmodelsv2#UpdateBotRecommendationRequest": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot containing the bot recommendation\n to be updated.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot containing the bot recommendation to be\n updated.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n to update. The string must match one of the supported locales. For more\n information, see Supported languages\n
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot recommendation to be\n updated.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "encryptionSetting": { + "target": "com.amazonaws.lexmodelsv2#EncryptionSetting", + "traits": { + "smithy.api#documentation": "The object representing the passwords that will be used to encrypt\n the data related to the bot recommendation results, as well as the KMS\n key ARN used to encrypt the associated metadata.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.lexmodelsv2#UpdateBotRecommendationResponse": { + "type": "structure", + "members": { + "botId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot containing the bot recommendation\n that has been updated.
" + } + }, + "botVersion": { + "target": "com.amazonaws.lexmodelsv2#DraftBotVersion", + "traits": { + "smithy.api#documentation": "The version of the bot containing the bot recommendation that has\n been updated.
" + } + }, + "localeId": { + "target": "com.amazonaws.lexmodelsv2#LocaleId", + "traits": { + "smithy.api#documentation": "The identifier of the language and locale of the bot recommendation\n to update. The string must match one of the supported locales. For more\n information, see Supported languages\n
" + } + }, + "botRecommendationStatus": { + "target": "com.amazonaws.lexmodelsv2#BotRecommendationStatus", + "traits": { + "smithy.api#documentation": "The status of the bot recommendation.
\nIf the status is Failed, then the reasons for the failure are listed\n in the failureReasons field.
" + } + }, + "botRecommendationId": { + "target": "com.amazonaws.lexmodelsv2#Id", + "traits": { + "smithy.api#documentation": "The unique identifier of the bot recommendation to be\n updated.
" + } + }, + "creationDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp of the date and time that the bot recommendation was\n created.
" + } + }, + "lastUpdatedDateTime": { + "target": "com.amazonaws.lexmodelsv2#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp of the date and time that the bot recommendation was\n last updated.
" + } + }, + "transcriptSourceSetting": { + "target": "com.amazonaws.lexmodelsv2#TranscriptSourceSetting", + "traits": { + "smithy.api#documentation": "The object representing the Amazon S3 bucket containing the transcript,\n as well as the associated metadata.
" + } + }, + "encryptionSetting": { + "target": "com.amazonaws.lexmodelsv2#EncryptionSetting", + "traits": { + "smithy.api#documentation": "The object representing the passwords that were used to encrypt the\n data related to the bot recommendation results, as well as the KMS key\n ARN used to encrypt the associated metadata.
" + } + } + } + }, "com.amazonaws.lexmodelsv2#UpdateBotRequest": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/outposts.2019-12-03.json b/codegen/sdk-codegen/aws-models/outposts.2019-12-03.json index a2cf3d87529..4f9d5897a92 100644 --- a/codegen/sdk-codegen/aws-models/outposts.2019-12-03.json +++ b/codegen/sdk-codegen/aws-models/outposts.2019-12-03.json @@ -599,6 +599,12 @@ "traits": { "smithy.api#documentation": "The tags to apply to the Outpost.
" } + }, + "SupportedHardwareType": { + "target": "com.amazonaws.outposts#SupportedHardwareType", + "traits": { + "smithy.api#documentation": "\n The type of hardware for this Outpost.\n
" + } } } }, @@ -2125,6 +2131,12 @@ }, "SiteArn": { "target": "com.amazonaws.outposts#SiteArn" + }, + "SupportedHardwareType": { + "target": "com.amazonaws.outposts#SupportedHardwareType", + "traits": { + "smithy.api#documentation": "\n The hardware type. \n
" + } } }, "traits": { @@ -2640,6 +2652,21 @@ "smithy.api#pattern": "^[\\S \\n]+$" } }, + "com.amazonaws.outposts#SupportedHardwareType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "RACK", + "name": "RACK" + }, + { + "value": "SERVER", + "name": "SERVER" + } + ] + } + }, "com.amazonaws.outposts#SupportedStorageEnum": { "type": "string", "traits": { diff --git a/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json b/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json index deb79d12959..9c47eb8e247 100644 --- a/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json +++ b/codegen/sdk-codegen/aws-models/redshiftdata.2019-12-20.json @@ -34,7 +34,7 @@ } ], "traits": { - "smithy.api#documentation": "Runs one or more SQL statements, which can be data manipulation language (DML) or data definition\n language (DDL). \n Depending on the authorization\n method, use one of the following combinations of request parameters:
\nSecrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the \n cluster identifier that matches the cluster in the secret.
\nTemporary credentials - specify the cluster identifier, the database name, and the\n database user name. Permission to call the redshift:GetClusterCredentials
\n operation is required to use this method.
Runs one or more SQL statements, which can be data manipulation language (DML) or data definition\n language (DDL). \n Depending on the authorization\n method, use one of the following combinations of request parameters:
\nSecrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.\nWhen connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name.
\nTemporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. \nAlso, permission to call the redshift:GetClusterCredentials
operation is required.\nWhen connecting to a serverless endpoint, specify the database name.
The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
", - "smithy.api#required": {} + "smithy.api#documentation": "The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
" } }, "SecretArn": { @@ -86,7 +85,7 @@ "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "The database user name. This parameter is required when authenticating using temporary credentials.
" + "smithy.api#documentation": "The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
" } }, "Database": { @@ -128,7 +127,7 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "The cluster identifier.
" + "smithy.api#documentation": "The cluster identifier. This parameter is not returned when connecting to a serverless endpoint.
" } }, "DbUser": { @@ -181,6 +180,9 @@ "target": "com.amazonaws.redshiftdata#CancelStatementResponse" }, "errors": [ + { + "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" + }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, @@ -316,6 +318,22 @@ "target": "com.amazonaws.redshiftdata#ColumnMetadata" } }, + "com.amazonaws.redshiftdata#DatabaseConnectionException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.redshiftdata#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Connection to a database failed.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, "com.amazonaws.redshiftdata#DatabaseList": { "type": "list", "member": { @@ -431,7 +449,7 @@ "HasResultSet": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "A value that indicates whether the statement has a result set. The result set can be empty.
" + "smithy.api#documentation": "A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.\n The value is true if any substatement returns a result set.
" } }, "QueryString": { @@ -481,6 +499,9 @@ "target": "com.amazonaws.redshiftdata#DescribeTableResponse" }, "errors": [ + { + "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" + }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, @@ -489,7 +510,7 @@ } ], "traits": { - "smithy.api#documentation": "Describes the detailed information about a table from metadata in the cluster. The\n information includes its columns. \n A token is returned to page through the column list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:
\nSecrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the \n cluster identifier that matches the cluster in the secret.
\nTemporary credentials - specify the cluster identifier, the database name, and the database\n user name. Permission to call the redshift:GetClusterCredentials
operation is\n required to use this method.
Describes the detailed information about a table from metadata in the cluster. The\n information includes its columns. \n A token is returned to page through the column list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:
\nSecrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.\nWhen connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name.
\nTemporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. \nAlso, permission to call the redshift:GetClusterCredentials
operation is required.\nWhen connecting to a serverless endpoint, specify the database name.
The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
", - "smithy.api#required": {} + "smithy.api#documentation": "The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
" } }, "SecretArn": { @@ -518,7 +538,7 @@ "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "The database user name. This parameter is required when authenticating using temporary credentials.
" + "smithy.api#documentation": "The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
" } }, "Database": { @@ -603,7 +623,7 @@ } ], "traits": { - "smithy.api#documentation": "Runs an SQL statement, which can be data manipulation language (DML) or data definition\n language (DDL). This statement must be a single SQL statement. \n Depending on the authorization\n method, use one of the following combinations of request parameters:
\nSecrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the \n cluster identifier that matches the cluster in the secret.
\nTemporary credentials - specify the cluster identifier, the database name, and the\n database user name. Permission to call the redshift:GetClusterCredentials
\n operation is required to use this method.
Runs an SQL statement, which can be data manipulation language (DML) or data definition\n language (DDL). This statement must be a single SQL statement. \n Depending on the authorization\n method, use one of the following combinations of request parameters:
\nSecrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.\nWhen connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name.
\nTemporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. \nAlso, permission to call the redshift:GetClusterCredentials
operation is required.\nWhen connecting to a serverless endpoint, specify the database name.
The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
", - "smithy.api#required": {} + "smithy.api#documentation": "The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
" } }, "SecretArn": { @@ -656,7 +675,7 @@ "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "The database user name. This parameter is required when authenticating using temporary credentials.
" + "smithy.api#documentation": "The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
" } }, "Database": { @@ -704,7 +723,7 @@ "ClusterIdentifier": { "target": "com.amazonaws.redshiftdata#Location", "traits": { - "smithy.api#documentation": "The cluster identifier.
" + "smithy.api#documentation": "The cluster identifier. This parameter is not returned when connecting to a serverless endpoint.
" } }, "DbUser": { @@ -883,6 +902,9 @@ "target": "com.amazonaws.redshiftdata#ListDatabasesResponse" }, "errors": [ + { + "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" + }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, @@ -891,7 +913,7 @@ } ], "traits": { - "smithy.api#documentation": "List the databases in a cluster. \n A token is returned to page through the database list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:
\nSecrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the \n cluster identifier that matches the cluster in the secret.
\nTemporary credentials - specify the cluster identifier, the database name, and the\n database user name. Permission to call the redshift:GetClusterCredentials
\n operation is required to use this method.
List the databases in a cluster. \n A token is returned to page through the database list.\n Depending on the authorization method, use one of the\n following combinations of request parameters:
\nSecrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.\nWhen connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name.
\nTemporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. \nAlso, permission to call the redshift:GetClusterCredentials
operation is required.\nWhen connecting to a serverless endpoint, specify the database name.
The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
", - "smithy.api#required": {} + "smithy.api#documentation": "The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
" } }, "Database": { @@ -927,7 +948,7 @@ "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "The database user name. This parameter is required when authenticating using temporary credentials.
" + "smithy.api#documentation": "The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
" } }, "NextToken": { @@ -970,6 +991,9 @@ "target": "com.amazonaws.redshiftdata#ListSchemasResponse" }, "errors": [ + { + "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" + }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, @@ -978,7 +1002,7 @@ } ], "traits": { - "smithy.api#documentation": "Lists the schemas in a database. \n A token is returned to page through the schema list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:
\nSecrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the \n cluster identifier that matches the cluster in the secret.
\nTemporary credentials - specify the cluster identifier, the database name, and the\n database user name. Permission to call the redshift:GetClusterCredentials
\n operation is required to use this method.
Lists the schemas in a database. \n A token is returned to page through the schema list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:
\nSecrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.\nWhen connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name.
\nTemporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. \nAlso, permission to call the redshift:GetClusterCredentials
operation is required.\nWhen connecting to a serverless endpoint, specify the database name.
The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
", - "smithy.api#required": {} + "smithy.api#documentation": "The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
" } }, "SecretArn": { @@ -1007,7 +1030,7 @@ "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "The database user name. This parameter is required when authenticating using temporary credentials.
" + "smithy.api#documentation": "The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
" } }, "Database": { @@ -1158,6 +1181,9 @@ "target": "com.amazonaws.redshiftdata#ListTablesResponse" }, "errors": [ + { + "target": "com.amazonaws.redshiftdata#DatabaseConnectionException" + }, { "target": "com.amazonaws.redshiftdata#InternalServerException" }, @@ -1166,7 +1192,7 @@ } ], "traits": { - "smithy.api#documentation": "List the tables in a database. If neither SchemaPattern
nor TablePattern
are specified, then \n all tables in the database are returned.\n A token is returned to page through the table list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:
Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the \n cluster identifier that matches the cluster in the secret.
\nTemporary credentials - specify the cluster identifier, the database name, and the\n database user name. Permission to call the redshift:GetClusterCredentials
\n operation is required to use this method.
List the tables in a database. If neither SchemaPattern
nor TablePattern
are specified, then \n all tables in the database are returned.\n A token is returned to page through the table list. \n Depending on the authorization method, use one of the\n following combinations of request parameters:
Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret.\nWhen connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and the database name.
\nTemporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. \nAlso, permission to call the redshift:GetClusterCredentials
operation is required.\nWhen connecting to a serverless endpoint, specify the database name.
The cluster identifier. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
", - "smithy.api#required": {} + "smithy.api#documentation": "The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
" } }, "SecretArn": { @@ -1195,7 +1220,7 @@ "DbUser": { "target": "com.amazonaws.redshiftdata#String", "traits": { - "smithy.api#documentation": "The database user name. This parameter is required when authenticating using temporary credentials.
" + "smithy.api#documentation": "The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
" } }, "Database": { @@ -1653,7 +1678,7 @@ "HasResultSet": { "target": "smithy.api#Boolean", "traits": { - "smithy.api#documentation": "A value that indicates whether the statement has a result set. The result set can be empty.
" + "smithy.api#documentation": "A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set.
" } } }, diff --git a/codegen/sdk-codegen/aws-models/s3.2006-03-01.json b/codegen/sdk-codegen/aws-models/s3.2006-03-01.json index 3847a299b42..0cf4f2945f3 100644 --- a/codegen/sdk-codegen/aws-models/s3.2006-03-01.json +++ b/codegen/sdk-codegen/aws-models/s3.2006-03-01.json @@ -1408,7 +1408,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a copy of an object that is already stored in Amazon S3.
\nYou can store individual objects of up to 5 TB in Amazon S3. You create a copy of your\n object up to 5 GB in size in a single atomic action using this API. However, to copy\n an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API.\n For more information, see Copy Object Using the REST Multipart Upload API.
\nAll copy requests must be authenticated. Additionally, you must have\n read access to the source object and write\n access to the destination bucket. For more information, see REST Authentication. Both the Region\n that you want to copy the object from and the Region that you want to copy the object to\n must be enabled for your account.
\nA copy request might return an error when Amazon S3 receives the copy request or while Amazon S3\n is copying the files. If the error occurs before the copy action starts, you receive a\n standard Amazon S3 error. If the error occurs during the copy operation, the error response is\n embedded in the 200 OK
response. This means that a 200 OK
\n response can contain either a success or an error. Design your application to parse the\n contents of the response and handle it appropriately.
If the copy is successful, you receive a response with information about the copied\n object.
\nIf the request is an HTTP 1.1 request, the response is chunk encoded. If it were not,\n it would not contain the content-length, and you would need to read the entire\n body.
\nThe copy request charge is based on the storage class and Region that you specify for\n the destination object. For pricing information, see Amazon S3 pricing.
\nAmazon S3 transfer acceleration does not support cross-Region copies. If you request a\n cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad\n Request
error. For more information, see Transfer Acceleration.
\n Metadata\n
\nWhen copying an object, you can preserve all metadata (default) or specify new metadata.\n However, the ACL is not preserved and is set to private for the user making the request. To\n override the default ACL setting, specify a new ACL when generating a copy request. For\n more information, see Using ACLs.
\nTo specify whether you want the object metadata copied from the source object or\n replaced with metadata provided in the request, you can optionally add the\n x-amz-metadata-directive
header. When you grant permissions, you can use\n the s3:x-amz-metadata-directive
condition key to enforce certain metadata\n behavior when objects are uploaded. For more information, see Specifying Conditions in a\n Policy in the Amazon S3 User Guide. For a complete list of\n Amazon S3-specific condition keys, see Actions, Resources, and Condition Keys for\n Amazon S3.
\n \n x-amz-copy-source-if
Headers\n
To only copy an object under certain conditions, such as whether the Etag
\n matches or whether the object was modified before or after a specified date, use the\n following request parameters:
\n x-amz-copy-source-if-match
\n
\n x-amz-copy-source-if-none-match
\n
\n x-amz-copy-source-if-unmodified-since
\n
\n x-amz-copy-source-if-modified-since
\n
If both the x-amz-copy-source-if-match
and\n x-amz-copy-source-if-unmodified-since
headers are present in the request\n and evaluate as follows, Amazon S3 returns 200 OK
and copies the data:
\n x-amz-copy-source-if-match
condition evaluates to true
\n x-amz-copy-source-if-unmodified-since
condition evaluates to\n false
If both the x-amz-copy-source-if-none-match
and\n x-amz-copy-source-if-modified-since
headers are present in the request and\n evaluate as follows, Amazon S3 returns the 412 Precondition Failed
response\n code:
\n x-amz-copy-source-if-none-match
condition evaluates to false
\n x-amz-copy-source-if-modified-since
condition evaluates to\n true
All headers with the x-amz-
prefix, including\n x-amz-copy-source
, must be signed.
\n Server-side encryption\n
\nWhen you perform a CopyObject operation, you can optionally use the appropriate encryption-related \n headers to encrypt the object using server-side encryption with Amazon Web Services managed encryption keys \n (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side encryption, Amazon S3 \n encrypts your data as it writes it to disks in its data centers and decrypts the data when \n you access it. For more information about server-side encryption, see Using\n Server-Side Encryption.
\nIf a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. For more\n information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
\n\n Access Control List (ACL)-Specific Request\n Headers\n
\nWhen copying an object, you can optionally use headers to grant ACL-based permissions.\n By default, all objects are private. Only the owner has full access control. When adding a\n new object, you can grant permissions to individual Amazon Web Services accounts or to predefined groups\n defined by Amazon S3. These permissions are then added to the ACL on the object. For more\n information, see Access Control List (ACL) Overview and Managing ACLs Using the REST\n API.
\n\n\n Storage Class Options\n
\nYou can use the CopyObject
action to change the storage class of an\n object that is already stored in Amazon S3 using the StorageClass
parameter. For\n more information, see Storage\n Classes in the Amazon S3 User Guide.
\n Versioning\n
\nBy default, x-amz-copy-source
identifies the current version of an object\n to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was\n deleted. To copy a different version, use the versionId
subresource.
If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for\n the object being copied. This version ID is different from the version ID of the source\n object. Amazon S3 returns the version ID of the copied object in the\n x-amz-version-id
response header in the response.
If you do not enable versioning or suspend it on the target bucket, the version ID that\n Amazon S3 generates is always null.
\nIf the source object's storage class is GLACIER, you must restore a copy of this object\n before you can use it as a source object for the copy operation. For more information, see\n RestoreObject.
\nThe following operations are related to CopyObject
:
For more information, see Copying\n Objects.
", + "smithy.api#documentation": "Creates a copy of an object that is already stored in Amazon S3.
\nYou can store individual objects of up to 5 TB in Amazon S3. You create a copy of your\n object up to 5 GB in size in a single atomic action using this API. However, to copy\n an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API.\n For more information, see Copy Object Using the REST Multipart Upload API.
\nAll copy requests must be authenticated. Additionally, you must have\n read access to the source object and write\n access to the destination bucket. For more information, see REST Authentication. Both the Region\n that you want to copy the object from and the Region that you want to copy the object to\n must be enabled for your account.
\nA copy request might return an error when Amazon S3 receives the copy request or while Amazon S3\n is copying the files. If the error occurs before the copy action starts, you receive a\n standard Amazon S3 error. If the error occurs during the copy operation, the error response is\n embedded in the 200 OK
response. This means that a 200 OK
\n response can contain either a success or an error. Design your application to parse the\n contents of the response and handle it appropriately.
If the copy is successful, you receive a response with information about the copied\n object.
\nIf the request is an HTTP 1.1 request, the response is chunk encoded. If it were not,\n it would not contain the content-length, and you would need to read the entire\n body.
\nThe copy request charge is based on the storage class and Region that you specify for\n the destination object. For pricing information, see Amazon S3 pricing.
\nAmazon S3 transfer acceleration does not support cross-Region copies. If you request a\n cross-Region copy using a transfer acceleration endpoint, you get a 400 Bad\n Request
error. For more information, see Transfer Acceleration.
\n Metadata\n
\nWhen copying an object, you can preserve all metadata (default) or specify new metadata.\n However, the ACL is not preserved and is set to private for the user making the request. To\n override the default ACL setting, specify a new ACL when generating a copy request. For\n more information, see Using ACLs.
\nTo specify whether you want the object metadata copied from the source object or\n replaced with metadata provided in the request, you can optionally add the\n x-amz-metadata-directive
header. When you grant permissions, you can use\n the s3:x-amz-metadata-directive
condition key to enforce certain metadata\n behavior when objects are uploaded. For more information, see Specifying Conditions in a\n Policy in the Amazon S3 User Guide. For a complete list of\n Amazon S3-specific condition keys, see Actions, Resources, and Condition Keys for\n Amazon S3.
\n \n x-amz-copy-source-if
Headers\n
To only copy an object under certain conditions, such as whether the Etag
\n matches or whether the object was modified before or after a specified date, use the\n following request parameters:
\n x-amz-copy-source-if-match
\n
\n x-amz-copy-source-if-none-match
\n
\n x-amz-copy-source-if-unmodified-since
\n
\n x-amz-copy-source-if-modified-since
\n
If both the x-amz-copy-source-if-match
and\n x-amz-copy-source-if-unmodified-since
headers are present in the request\n and evaluate as follows, Amazon S3 returns 200 OK
and copies the data:
\n x-amz-copy-source-if-match
condition evaluates to true
\n x-amz-copy-source-if-unmodified-since
condition evaluates to\n false
If both the x-amz-copy-source-if-none-match
and\n x-amz-copy-source-if-modified-since
headers are present in the request and\n evaluate as follows, Amazon S3 returns the 412 Precondition Failed
response\n code:
\n x-amz-copy-source-if-none-match
condition evaluates to false
\n x-amz-copy-source-if-modified-since
condition evaluates to\n true
All headers with the x-amz-
prefix, including\n x-amz-copy-source
, must be signed.
\n Server-side encryption\n
\nWhen you perform a CopyObject operation, you can optionally use the appropriate encryption-related \n headers to encrypt the object using server-side encryption with Amazon Web Services managed encryption keys \n (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side encryption, Amazon S3 \n encrypts your data as it writes it to disks in its data centers and decrypts the data when \n you access it. For more information about server-side encryption, see Using\n Server-Side Encryption.
\nIf a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. For more\n information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
\n\n Access Control List (ACL)-Specific Request\n Headers\n
\nWhen copying an object, you can optionally use headers to grant ACL-based permissions.\n By default, all objects are private. Only the owner has full access control. When adding a\n new object, you can grant permissions to individual Amazon Web Services accounts or to predefined groups\n defined by Amazon S3. These permissions are then added to the ACL on the object. For more\n information, see Access Control List (ACL) Overview and Managing ACLs Using the REST\n API.
\nIf the bucket that you're copying objects to uses the bucket owner enforced setting for\n S3 Object Ownership, ACLs are disabled and no longer affect permissions. Buckets that\n use this setting only accept PUT requests that don't specify an ACL or PUT requests that\n specify bucket owner full control ACLs, such as the bucket-owner-full-control
canned\n ACL or an equivalent form of this ACL expressed in the XML format.
For more information, see Controlling ownership of\n objects and disabling ACLs in the Amazon S3 User Guide.
\nIf your bucket uses the bucket owner enforced setting for Object Ownership, \n all objects written to the bucket by any account will be owned by the bucket owner.
\n\n Storage Class Options\n
\nYou can use the CopyObject
action to change the storage class of an\n object that is already stored in Amazon S3 using the StorageClass
parameter. For\n more information, see Storage\n Classes in the Amazon S3 User Guide.
\n Versioning\n
\nBy default, x-amz-copy-source
identifies the current version of an object\n to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was\n deleted. To copy a different version, use the versionId
subresource.
If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for\n the object being copied. This version ID is different from the version ID of the source\n object. Amazon S3 returns the version ID of the copied object in the\n x-amz-version-id
response header in the response.
If you do not enable versioning or suspend it on the target bucket, the version ID that\n Amazon S3 generates is always null.
\nIf the source object's storage class is GLACIER, you must restore a copy of this object\n before you can use it as a source object for the copy operation. For more information, see\n RestoreObject.
\nThe following operations are related to CopyObject
:
For more information, see Copying\n Objects.
", "smithy.api#http": { "method": "PUT", "uri": "/{Bucket}/{Key+}?x-id=CopyObject", @@ -1877,7 +1877,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a new S3 bucket. To create a bucket, you must register with Amazon S3 and have a\n valid Amazon Web Services Access Key ID to authenticate requests. Anonymous requests are never allowed to\n create buckets. By creating the bucket, you become the bucket owner.
\nNot every string is an acceptable bucket name. For information about bucket naming\n restrictions, see Bucket naming rules.
\nIf you want to create an Amazon S3 on Outposts bucket, see Create Bucket.
\nBy default, the bucket is created in the US East (N. Virginia) Region. You can\n optionally specify a Region in the request body. You might choose a Region to optimize\n latency, minimize costs, or address regulatory requirements. For example, if you reside in\n Europe, you will probably find it advantageous to create buckets in the Europe (Ireland)\n Region. For more information, see Accessing a\n bucket.
\nIf you send your create bucket request to the s3.amazonaws.com
endpoint,\n the request goes to the us-east-1 Region. Accordingly, the signature calculations in\n Signature Version 4 must use us-east-1 as the Region, even if the location constraint in\n the request specifies another Region where the bucket is to be created. If you create a\n bucket in a Region other than US East (N. Virginia), your application must be able to\n handle 307 redirect. For more information, see Virtual hosting of buckets.
When creating a bucket using this operation, you can optionally specify the accounts or\n groups that should be granted specific permissions on the bucket. There are two ways to\n grant the appropriate permissions using the request headers.
\nSpecify a canned ACL using the x-amz-acl
request header. Amazon S3\n supports a set of predefined ACLs, known as canned ACLs. Each\n canned ACL has a predefined set of grantees and permissions. For more information,\n see Canned ACL.
Specify access permissions explicitly using the x-amz-grant-read
,\n x-amz-grant-write
, x-amz-grant-read-acp
,\n x-amz-grant-write-acp
, and x-amz-grant-full-control
\n headers. These headers map to the set of permissions Amazon S3 supports in an ACL. For\n more information, see Access control list\n (ACL) overview.
You specify each grantee as a type=value pair, where the type is one of the\n following:
\n\n id
– if the value specified is the canonical user ID of an Amazon Web Services account
\n uri
– if you are granting permissions to a predefined\n group
\n emailAddress
– if the value specified is the email address of\n an Amazon Web Services account
Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\nFor example, the following x-amz-grant-read
header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:
\n x-amz-grant-read: id=\"11112222333\", id=\"444455556666\"
\n
You can use either a canned ACL or specify access permissions explicitly. You cannot\n do both.
\n\n Permissions\n
\nIf your CreateBucket
request specifies ACL permissions and the ACL is public-read, public-read-write, \n authenticated-read, or if you specify access permissions explicitly through any other ACL, both \n s3:CreateBucket
and s3:PutBucketAcl
permissions are needed. If the ACL the \n CreateBucket
request is private, only s3:CreateBucket
permission is needed.
If ObjectLockEnabledForBucket
is set to true in your CreateBucket
request, \n s3:PutBucketObjectLockConfiguration
and s3:PutBucketVersioning
permissions are required.
The following operations are related to CreateBucket
:
\n PutObject\n
\n\n DeleteBucket\n
\nCreates a new S3 bucket. To create a bucket, you must register with Amazon S3 and have a\n valid Amazon Web Services Access Key ID to authenticate requests. Anonymous requests are never allowed to\n create buckets. By creating the bucket, you become the bucket owner.
\nNot every string is an acceptable bucket name. For information about bucket naming\n restrictions, see Bucket naming rules.
\nIf you want to create an Amazon S3 on Outposts bucket, see Create Bucket.
\nBy default, the bucket is created in the US East (N. Virginia) Region. You can\n optionally specify a Region in the request body. You might choose a Region to optimize\n latency, minimize costs, or address regulatory requirements. For example, if you reside in\n Europe, you will probably find it advantageous to create buckets in the Europe (Ireland)\n Region. For more information, see Accessing a\n bucket.
\nIf you send your create bucket request to the s3.amazonaws.com
endpoint,\n the request goes to the us-east-1 Region. Accordingly, the signature calculations in\n Signature Version 4 must use us-east-1 as the Region, even if the location constraint in\n the request specifies another Region where the bucket is to be created. If you create a\n bucket in a Region other than US East (N. Virginia), your application must be able to\n handle 307 redirect. For more information, see Virtual hosting of buckets.
\n Access control lists (ACLs)\n
\nWhen creating a bucket using this operation, you can optionally configure the bucket ACL to specify the accounts or\n groups that should be granted specific permissions on the bucket.
\nIf your CreateBucket request includes the BucketOwnerEnforced
value for\n the x-amz-object-ownership
header, your request can either not specify\n an ACL or specify bucket owner full control ACLs, such as the bucket-owner-full-control
\n canned ACL or an equivalent ACL expressed in the XML format. For\n more information, see Controlling object\n ownership in the Amazon S3 User Guide.
There are two ways to grant the appropriate permissions using the request headers.
\nSpecify a canned ACL using the x-amz-acl
request header. Amazon S3\n supports a set of predefined ACLs, known as canned ACLs. Each\n canned ACL has a predefined set of grantees and permissions. For more information,\n see Canned ACL.
Specify access permissions explicitly using the x-amz-grant-read
,\n x-amz-grant-write
, x-amz-grant-read-acp
,\n x-amz-grant-write-acp
, and x-amz-grant-full-control
\n headers. These headers map to the set of permissions Amazon S3 supports in an ACL. For\n more information, see Access control list\n (ACL) overview.
You specify each grantee as a type=value pair, where the type is one of the\n following:
\n\n id
– if the value specified is the canonical user ID of an Amazon Web Services account
\n uri
– if you are granting permissions to a predefined\n group
\n emailAddress
– if the value specified is the email address of\n an Amazon Web Services account
Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\nFor example, the following x-amz-grant-read
header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:
\n x-amz-grant-read: id=\"11112222333\", id=\"444455556666\"
\n
You can use either a canned ACL or specify access permissions explicitly. You cannot\n do both.
\n\n Permissions\n
\nIn addition to s3:CreateBucket
, the following permissions are required when your CreateBucket includes specific headers:
\n ACLs - If your CreateBucket
request specifies ACL permissions and the ACL is public-read, public-read-write, \n authenticated-read, or if you specify access permissions explicitly through any other ACL, both \n s3:CreateBucket
and s3:PutBucketAcl
permissions are needed. If the ACL the \n CreateBucket
request is private or doesn't specify any ACLs, only s3:CreateBucket
permission is needed.
\n Object Lock - If\n ObjectLockEnabledForBucket
is set to true in your\n CreateBucket
request,\n s3:PutBucketObjectLockConfiguration
and\n s3:PutBucketVersioning
permissions are required.
\n S3 Object Ownership - If your CreateBucket\n request includes the the x-amz-object-ownership
header,\n s3:PutBucketOwnershipControls
permission is required.
The following operations are related to CreateBucket
:
\n PutObject\n
\n\n DeleteBucket\n
\nSpecifies whether you want S3 Object Lock to be enabled for the new bucket.
", "smithy.api#httpHeader": "x-amz-bucket-object-lock-enabled" } + }, + "ObjectOwnership": { + "target": "com.amazonaws.s3#ObjectOwnership", + "traits": { + "smithy.api#httpHeader": "x-amz-object-ownership" + } } } }, @@ -2490,7 +2496,7 @@ "target": "com.amazonaws.s3#DeleteBucketIntelligentTieringConfigurationRequest" }, "traits": { - "smithy.api#documentation": "Deletes the S3 Intelligent-Tiering configuration from the specified bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in two low latency and high throughput access tiers. For data that can be accessed asynchronously, you can choose to activate automatic archiving capabilities within the S3 Intelligent-Tiering storage class.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n DeleteBucketIntelligentTieringConfiguration
include:
Deletes the S3 Intelligent-Tiering configuration from the specified bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in three low latency and high throughput access tiers. To get the lowest storage cost on data that can be accessed in minutes to hours, you can choose to activate additional archiving capabilities.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not monitored and not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n DeleteBucketIntelligentTieringConfiguration
include:
This implementation of the GET
action uses the acl
\n subresource to return the access control list (ACL) of a bucket. To use GET
to\n return the ACL of the bucket, you must have READ_ACP
access to the bucket. If\n READ_ACP
permission is granted to the anonymous user, you can return the\n ACL of the bucket without using an authorization header.
\n Related Resources\n
\n\n ListObjects\n
\nThis implementation of the GET
action uses the acl
\n subresource to return the access control list (ACL) of a bucket. To use GET
to\n return the ACL of the bucket, you must have READ_ACP
access to the bucket. If\n READ_ACP
permission is granted to the anonymous user, you can return the\n ACL of the bucket without using an authorization header.
If your bucket uses the bucket owner enforced setting for S3 Object Ownership, \n requests to read ACLs are still supported and return the bucket-owner-full-control
\n ACL with the owner being the account that created the bucket. For more information, see \n \n Controlling object ownership and disabling ACLs in the Amazon S3 User Guide.
\n Related Resources\n
\n\n ListObjects\n
\nGets the S3 Intelligent-Tiering configuration from the specified bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in two low latency and high throughput access tiers. For data that can be accessed asynchronously, you can choose to activate automatic archiving capabilities within the S3 Intelligent-Tiering storage class.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n GetBucketIntelligentTieringConfiguration
include:
Gets the S3 Intelligent-Tiering configuration from the specified bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in three low latency and high throughput access tiers. To get the lowest storage cost on data that can be accessed in minutes to hours, you can choose to activate additional archiving capabilities.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not monitored and not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n GetBucketIntelligentTieringConfiguration
include:
Retrieves OwnershipControls
for an Amazon S3 bucket. To use this operation, you\n must have the s3:GetBucketOwnershipControls
permission. For more information\n about Amazon S3 permissions, see Specifying\n Permissions in a Policy.
For information about Amazon S3 Object Ownership, see Using Object Ownership.
\nThe following operations are related to GetBucketOwnershipControls
:
Retrieves OwnershipControls
for an Amazon S3 bucket. To use this operation, you\n must have the s3:GetBucketOwnershipControls
permission. For more information\n about Amazon S3 permissions, see Specifying\n permissions in a policy.
For information about Amazon S3 Object Ownership, see Using Object Ownership.
\nThe following operations are related to GetBucketOwnershipControls
:
The OwnershipControls
(BucketOwnerPreferred or ObjectWriter) currently in\n effect for this Amazon S3 bucket.
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) currently in\n effect for this Amazon S3 bucket.
Returns the access control list (ACL) of an object. To use this operation, you must have\n READ_ACP
access to the object.
This action is not supported by Amazon S3 on Outposts.
\n\n Versioning\n
\nBy default, GET returns ACL information about the current version of an object. To\n return ACL information about a different version, use the versionId subresource.
\n\nThe following operations are related to GetObjectAcl
:
\n GetObject\n
\n\n DeleteObject\n
\n\n PutObject\n
\nReturns the access control list (ACL) of an object. To use this operation, you must have\n READ_ACP
access to the object.
This action is not supported by Amazon S3 on Outposts.
\n\n Versioning\n
\nBy default, GET returns ACL information about the current version of an object. To\n return ACL information about a different version, use the versionId subresource.
\nIf your bucket uses the bucket owner enforced setting for S3 Object Ownership, \n requests to read ACLs are still supported and return the bucket-owner-full-control
\n ACL with the owner being the account that created the bucket. For more information, see \n \n Controlling object ownership and disabling ACLs in the Amazon S3 User Guide.
The following operations are related to GetObjectAcl
:
\n GetObject\n
\n\n DeleteObject\n
\n\n PutObject\n
\nLists the S3 Intelligent-Tiering configuration from the specified bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in two low latency and high throughput access tiers. For data that can be accessed asynchronously, you can choose to activate automatic archiving capabilities within the S3 Intelligent-Tiering storage class.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n ListBucketIntelligentTieringConfigurations
include:
Lists the S3 Intelligent-Tiering configuration from the specified bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in three low latency and high throughput access tiers. To get the lowest storage cost on data that can be accessed in minutes to hours, you can choose to activate additional archiving capabilities.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not monitored and not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n ListBucketIntelligentTieringConfigurations
include:
Container for granting information.
" + "smithy.api#documentation": "Container for granting information.
\nBuckets that use the bucket owner enforced setting for Object\n Ownership don't support target grants. For more information, see Permissions for server access log delivery in the\n Amazon S3 User Guide.
" } }, "TargetPrefix": { @@ -8519,7 +8525,7 @@ } }, "traits": { - "smithy.api#documentation": "Container for the transition rule that describes when noncurrent objects transition to\n the STANDARD_IA
, ONEZONE_IA
, INTELLIGENT_TIERING
,\n GLACIER
, or DEEP_ARCHIVE
storage class. If your bucket is\n versioning-enabled (or versioning is suspended), you can set this action to request that\n Amazon S3 transition noncurrent object versions to the STANDARD_IA
,\n ONEZONE_IA
, INTELLIGENT_TIERING
, GLACIER
, or\n DEEP_ARCHIVE
storage class at a specific period in the object's\n lifetime.
Container for the transition rule that describes when noncurrent objects transition to\n the STANDARD_IA
, ONEZONE_IA
, INTELLIGENT_TIERING
,\n GLACIER_IR
, GLACIER
, or DEEP_ARCHIVE
storage class. If your bucket is\n versioning-enabled (or versioning is suspended), you can set this action to request that\n Amazon S3 transition noncurrent object versions to the STANDARD_IA
,\n ONEZONE_IA
, INTELLIGENT_TIERING
, GLACIER_IR
, GLACIER
, or\n DEEP_ARCHIVE
storage class at a specific period in the object's\n lifetime.
The container element for object ownership for a bucket's ownership controls.
\nBucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket\n owner if the objects are uploaded with the bucket-owner-full-control
canned\n ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with\n the bucket-owner-full-control
canned ACL.
The container element for object ownership for a bucket's ownership controls.
\nBucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket\n owner if the objects are uploaded with the bucket-owner-full-control
canned\n ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with\n the bucket-owner-full-control
canned ACL.
BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer affect permissions. \n The bucket owner automatically owns and has full control over every object in the bucket. The bucket only\n accepts PUT requests that don't specify an ACL or bucket owner full control\n ACLs, such as the bucket-owner-full-control
canned\n ACL or an equivalent form of this ACL expressed in the XML format.
Sets the permissions on an existing bucket using access control lists (ACL). For more\n information, see Using ACLs. To set\n the ACL of a bucket, you must have WRITE_ACP
permission.
You can use one of the following two ways to set a bucket's permissions:
\nSpecify the ACL in the request body
\nSpecify permissions using request headers
\nYou cannot specify access permission using both the body and the request\n headers.
\nDepending on your application needs, you may choose to set the ACL on a bucket using\n either the request body or the headers. For example, if you have an existing application\n that updates a bucket ACL using the request body, then you can continue to use that\n approach.
\n\n\n\n Access Permissions\n
\nYou can set access permissions using one of the following methods:
\nSpecify a canned ACL with the x-amz-acl
request header. Amazon S3 supports\n a set of predefined ACLs, known as canned ACLs. Each canned ACL\n has a predefined set of grantees and permissions. Specify the canned ACL name as the\n value of x-amz-acl
. If you use this header, you cannot use other access\n control-specific headers in your request. For more information, see Canned ACL.
Specify access permissions explicitly with the x-amz-grant-read
,\n x-amz-grant-read-acp
, x-amz-grant-write-acp
, and\n x-amz-grant-full-control
headers. When using these headers, you\n specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who\n will receive the permission. If you use these ACL-specific headers, you cannot use\n the x-amz-acl
header to set a canned ACL. These parameters map to the\n set of permissions that Amazon S3 supports in an ACL. For more information, see Access Control List (ACL)\n Overview.
You specify each grantee as a type=value pair, where the type is one of the\n following:
\n\n id
– if the value specified is the canonical user ID of an Amazon Web Services account
\n uri
– if you are granting permissions to a predefined\n group
\n emailAddress
– if the value specified is the email address of\n an Amazon Web Services account
Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\nFor example, the following x-amz-grant-write
header grants create,\n overwrite, and delete objects permission to LogDelivery group predefined by Amazon S3 and\n two Amazon Web Services accounts identified by their email addresses.
\n x-amz-grant-write: uri=\"http://acs.amazonaws.com/groups/s3/LogDelivery\",\n id=\"111122223333\", id=\"555566667777\"
\n
You can use either a canned ACL or specify access permissions explicitly. You cannot do\n both.
\n\n Grantee Values\n
\nYou can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:
\nBy the person's ID:
\n\n
\n
DisplayName is optional and ignored in the request
\nBy URI:
\n\n
\n
By Email address:
\n\n
\n
The grantee is resolved to the CanonicalUser and, in a response to a GET Object\n acl request, appears as the CanonicalUser.
\nUsing email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\n\n Related Resources\n
\n\n CreateBucket\n
\n\n DeleteBucket\n
\n\n GetObjectAcl\n
\nSets the permissions on an existing bucket using access control lists (ACL). For more\n information, see Using ACLs. To set\n the ACL of a bucket, you must have WRITE_ACP
permission.
You can use one of the following two ways to set a bucket's permissions:
\nSpecify the ACL in the request body
\nSpecify permissions using request headers
\nYou cannot specify access permission using both the body and the request\n headers.
\nDepending on your application needs, you may choose to set the ACL on a bucket using\n either the request body or the headers. For example, if you have an existing application\n that updates a bucket ACL using the request body, then you can continue to use that\n approach.
\n\nIf your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs are disabled and no longer affect permissions. \n You must use policies to grant access to your bucket and the objects in it. Requests to set ACLs or update ACLs fail and \n return the AccessControlListNotSupported
error code. Requests to read ACLs are still supported.\n For more information, see Controlling object ownership\n in the Amazon S3 User Guide.
\n Access Permissions\n
\nYou can set access permissions using one of the following methods:
\nSpecify a canned ACL with the x-amz-acl
request header. Amazon S3 supports\n a set of predefined ACLs, known as canned ACLs. Each canned ACL\n has a predefined set of grantees and permissions. Specify the canned ACL name as the\n value of x-amz-acl
. If you use this header, you cannot use other access\n control-specific headers in your request. For more information, see Canned ACL.
Specify access permissions explicitly with the x-amz-grant-read
,\n x-amz-grant-read-acp
, x-amz-grant-write-acp
, and\n x-amz-grant-full-control
headers. When using these headers, you\n specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who\n will receive the permission. If you use these ACL-specific headers, you cannot use\n the x-amz-acl
header to set a canned ACL. These parameters map to the\n set of permissions that Amazon S3 supports in an ACL. For more information, see Access Control List (ACL)\n Overview.
You specify each grantee as a type=value pair, where the type is one of the\n following:
\n\n id
– if the value specified is the canonical user ID of an Amazon Web Services account
\n uri
– if you are granting permissions to a predefined\n group
\n emailAddress
– if the value specified is the email address of\n an Amazon Web Services account
Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\nFor example, the following x-amz-grant-write
header grants create,\n overwrite, and delete objects permission to LogDelivery group predefined by Amazon S3 and\n two Amazon Web Services accounts identified by their email addresses.
\n x-amz-grant-write: uri=\"http://acs.amazonaws.com/groups/s3/LogDelivery\",\n id=\"111122223333\", id=\"555566667777\"
\n
You can use either a canned ACL or specify access permissions explicitly. You cannot do\n both.
\n\n Grantee Values\n
\nYou can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:
\nBy the person's ID:
\n\n
\n
DisplayName is optional and ignored in the request
\nBy URI:
\n\n
\n
By Email address:
\n\n
\n
The grantee is resolved to the CanonicalUser and, in a response to a GET Object\n acl request, appears as the CanonicalUser.
\nUsing email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\n\n Related Resources\n
\n\n CreateBucket\n
\n\n DeleteBucket\n
\n\n GetObjectAcl\n
\nPuts a S3 Intelligent-Tiering configuration to the specified bucket.\n You can have up to 1,000 S3 Intelligent-Tiering configurations per bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in two low latency and high throughput access tiers. For data that can be accessed asynchronously, you can choose to activate automatic archiving capabilities within the S3 Intelligent-Tiering storage class.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n PutBucketIntelligentTieringConfiguration
include:
You only need S3 Intelligent-Tiering enabled on a bucket if you want to automatically\n move objects stored in the S3 Intelligent-Tiering storage class to the\n Archive Access or Deep Archive Access tier.
\n\n Special Errors\n
\n\n HTTP 400 Bad Request Error\n
\n\n Code: InvalidArgument
\n\n Cause: Invalid Argument
\n\n HTTP 400 Bad Request Error\n
\n\n Code: TooManyConfigurations
\n\n Cause: You are attempting to create a new configuration\n but have already reached the 1,000-configuration limit.
\n\n HTTP 403 Forbidden Error\n
\n\n Code: AccessDenied
\n\n Cause: You are not the owner of the specified bucket,\n or you do not have the s3:PutIntelligentTieringConfiguration
bucket\n permission to set the configuration on the bucket.
Puts a S3 Intelligent-Tiering configuration to the specified bucket.\n You can have up to 1,000 S3 Intelligent-Tiering configurations per bucket.
\nThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in three low latency and high throughput access tiers. To get the lowest storage cost on data that can be accessed in minutes to hours, you can choose to activate additional archiving capabilities.
\nThe S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not monitored and not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.
\nFor more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.
\nOperations related to\n PutBucketIntelligentTieringConfiguration
include:
You only need S3 Intelligent-Tiering enabled on a bucket if you want to automatically\n move objects stored in the S3 Intelligent-Tiering storage class to the\n Archive Access or Deep Archive Access tier.
\n\n Special Errors\n
\n\n HTTP 400 Bad Request Error\n
\n\n Code: InvalidArgument
\n\n Cause: Invalid Argument
\n\n HTTP 400 Bad Request Error\n
\n\n Code: TooManyConfigurations
\n\n Cause: You are attempting to create a new configuration\n but have already reached the 1,000-configuration limit.
\n\n HTTP 403 Forbidden Error\n
\n\n Code: AccessDenied
\n\n Cause: You are not the owner of the specified bucket,\n or you do not have the s3:PutIntelligentTieringConfiguration
bucket\n permission to set the configuration on the bucket.
Set the logging parameters for a bucket and to specify permissions for who can view and\n modify the logging parameters. All logs are saved to buckets in the same Amazon Web Services Region as the\n source bucket. To set the logging status of a bucket, you must be the bucket owner.
\n\nThe bucket owner is automatically granted FULL_CONTROL to all logs. You use the\n Grantee
request element to grant access to other people. The\n Permissions
request element specifies the kind of access the grantee has to\n the logs.
\n Grantee Values\n
\nYou can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:
\n\nBy the person's ID:
\n\n
\n
DisplayName is optional and ignored in the request.
\nBy Email address:
\n\n
\n
The grantee is resolved to the CanonicalUser and, in a response to a GET Object\n acl request, appears as the CanonicalUser.
\nBy URI:
\n\n
\n
To enable logging, you use LoggingEnabled and its children request elements. To disable\n logging, you use an empty BucketLoggingStatus request element:
\n\n\n
\n
For more information about server access logging, see Server Access Logging.
\n\nFor more information about creating a bucket, see CreateBucket. For more\n information about returning the logging status of a bucket, see GetBucketLogging.
\n\nThe following operations are related to PutBucketLogging
:
\n PutObject\n
\n\n DeleteBucket\n
\n\n CreateBucket\n
\n\n GetBucketLogging\n
\nSet the logging parameters for a bucket and to specify permissions for who can view and\n modify the logging parameters. All logs are saved to buckets in the same Amazon Web Services Region as the\n source bucket. To set the logging status of a bucket, you must be the bucket owner.
\n\nThe bucket owner is automatically granted FULL_CONTROL to all logs. You use the Grantee
request element to grant access to other people. The\n Permissions
request element specifies the kind of access the grantee has to\n the logs.
If the target bucket for log delivery uses the bucket owner enforced\n setting for S3 Object Ownership, you can't use the Grantee
request element\n to grant access to others. Permissions can only be granted using policies. For more information, see Permissions for server access log delivery in the\n Amazon S3 User Guide.
\n Grantee Values\n
\nYou can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:
\n\nBy the person's ID:
\n\n
\n
DisplayName is optional and ignored in the request.
\nBy Email address:
\n\n
\n
The grantee is resolved to the CanonicalUser and, in a response to a GET Object\n acl request, appears as the CanonicalUser.
\nBy URI:
\n\n
\n
To enable logging, you use LoggingEnabled and its children request elements. To disable\n logging, you use an empty BucketLoggingStatus request element:
\n\n\n
\n
For more information about server access logging, see Server Access Logging in the Amazon S3 User Guide.
\n\nFor more information about creating a bucket, see CreateBucket. For more\n information about returning the logging status of a bucket, see GetBucketLogging.
\n\nThe following operations are related to PutBucketLogging
:
\n PutObject\n
\n\n DeleteBucket\n
\n\n CreateBucket\n
\n\n GetBucketLogging\n
\nCreates or modifies OwnershipControls
for an Amazon S3 bucket. To use this\n operation, you must have the s3:PutBucketOwnershipControls
permission. For\n more information about Amazon S3 permissions, see Specifying Permissions in a Policy.
For information about Amazon S3 Object Ownership, see Using Object Ownership.
\nThe following operations are related to PutBucketOwnershipControls
:
Creates or modifies OwnershipControls
for an Amazon S3 bucket. To use this\n operation, you must have the s3:PutBucketOwnershipControls
permission. For\n more information about Amazon S3 permissions, see Specifying permissions in a policy.
For information about Amazon S3 Object Ownership, see Using object ownership.
\nThe following operations are related to PutBucketOwnershipControls
:
The OwnershipControls
(BucketOwnerPreferred or ObjectWriter) that you want\n to apply to this Amazon S3 bucket.
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want\n to apply to this Amazon S3 bucket.
Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object\n to it.
\n\n\nAmazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the\n entire object to the bucket.
\n\nAmazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. Amazon S3 does not provide object\n locking; if you need this, make sure to build it into your application layer or use\n versioning instead.
\n\nTo ensure that data is not corrupted traversing the network, use the\n Content-MD5
header. When you use this header, Amazon S3 checks the object\n against the provided MD5 value and, if they do not match, returns an error. Additionally,\n you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to\n the calculated MD5 value.
To successfully complete the PutObject
request, you must have the \n s3:PutObject
in your IAM permissions.
To successfully change the objects acl of your PutObject
request, \n you must have the s3:PutObjectAcl
in your IAM permissions.
The Content-MD5
header is required for any request to upload an object\n with a retention period configured using Amazon S3 Object Lock. For more information about\n Amazon S3 Object Lock, see Amazon S3 Object Lock Overview\n in the Amazon S3 User Guide.
\n Server-side Encryption\n
\nYou can optionally request server-side encryption. With server-side encryption, Amazon S3 encrypts \n your data as it writes it to disks in its data centers and decrypts the data\n when you access it. You have the option to provide your own encryption key or use Amazon Web Services\n managed encryption keys (SSE-S3 or SSE-KMS). For more information, see Using Server-Side\n Encryption.
\nIf you request server-side encryption using Amazon Web Services Key Management Service (SSE-KMS), you can enable \n an S3 Bucket Key at the object-level. For more information, see Amazon S3 Bucket Keys in the \n Amazon S3 User Guide.
\n\n Access Control List (ACL)-Specific Request\n Headers\n
\nYou can use headers to grant ACL- based permissions. By default, all objects are\n private. Only the owner has full access control. When adding a new object, you can grant\n permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These\n permissions are then added to the ACL on the object. For more information, see Access Control List\n (ACL) Overview and Managing ACLs Using the REST\n API.
\n\n\n Storage Class Options\n
\nBy default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The\n STANDARD storage class provides high durability and high availability. Depending on\n performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses\n the OUTPOSTS Storage Class. For more information, see Storage Classes in the\n Amazon S3 User Guide.
\n\n\n\n Versioning\n
\nIf you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID\n for the object being stored. Amazon S3 returns this ID in the response. When you enable\n versioning for a bucket, if Amazon S3 receives multiple write requests for the same object\n simultaneously, it stores all of the objects.
\nFor more information about versioning, see Adding Objects to\n Versioning Enabled Buckets. For information about returning the versioning state\n of a bucket, see GetBucketVersioning.
\n\n\n\n Related Resources\n
\n\n CopyObject\n
\n\n DeleteObject\n
\nAdds an object to a bucket. You must have WRITE permissions on a bucket to add an object\n to it.
\n\n\nAmazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the\n entire object to the bucket.
\n\nAmazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. Amazon S3 does not provide object\n locking; if you need this, make sure to build it into your application layer or use\n versioning instead.
\n\nTo ensure that data is not corrupted traversing the network, use the\n Content-MD5
header. When you use this header, Amazon S3 checks the object\n against the provided MD5 value and, if they do not match, returns an error. Additionally,\n you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to\n the calculated MD5 value.
To successfully complete the PutObject
request, you must have the \n s3:PutObject
in your IAM permissions.
To successfully change the objects acl of your PutObject
request, \n you must have the s3:PutObjectAcl
in your IAM permissions.
The Content-MD5
header is required for any request to upload an object\n with a retention period configured using Amazon S3 Object Lock. For more information about\n Amazon S3 Object Lock, see Amazon S3 Object Lock Overview\n in the Amazon S3 User Guide.
\n Server-side Encryption\n
\nYou can optionally request server-side encryption. With server-side encryption, Amazon S3 encrypts \n your data as it writes it to disks in its data centers and decrypts the data\n when you access it. You have the option to provide your own encryption key or use Amazon Web Services\n managed encryption keys (SSE-S3 or SSE-KMS). For more information, see Using Server-Side\n Encryption.
\nIf you request server-side encryption using Amazon Web Services Key Management Service (SSE-KMS), you can enable \n an S3 Bucket Key at the object-level. For more information, see Amazon S3 Bucket Keys in the \n Amazon S3 User Guide.
\n\n Access Control List (ACL)-Specific Request\n Headers\n
\nYou can use headers to grant ACL- based permissions. By default, all objects are\n private. Only the owner has full access control. When adding a new object, you can grant\n permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These\n permissions are then added to the ACL on the object. For more information, see Access Control List\n (ACL) Overview and Managing ACLs Using the REST\n API.
\nIf the bucket that you're uploading objects to uses the bucket owner enforced setting\n for S3 Object Ownership, ACLs are disabled and no longer affect permissions. Buckets that\n use this setting only accept PUT requests that don't specify an ACL or PUT requests that\n specify bucket owner full control ACLs, such as the bucket-owner-full-control
canned\n ACL or an equivalent form of this ACL expressed in the XML format. PUT requests that contain other\n ACLs (for example, custom grants to certain Amazon Web Services accounts) fail and return a\n 400
error with the error code\n AccessControlListNotSupported
.
For more information, see Controlling ownership of\n objects and disabling ACLs in the Amazon S3 User Guide.
\nIf your bucket uses the bucket owner enforced setting for Object Ownership, \n all objects written to the bucket by any account will be owned by the bucket owner.
\n\n Storage Class Options\n
\nBy default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The\n STANDARD storage class provides high durability and high availability. Depending on\n performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses\n the OUTPOSTS Storage Class. For more information, see Storage Classes in the\n Amazon S3 User Guide.
\n\n\n\n Versioning\n
\nIf you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID\n for the object being stored. Amazon S3 returns this ID in the response. When you enable\n versioning for a bucket, if Amazon S3 receives multiple write requests for the same object\n simultaneously, it stores all of the objects.
\nFor more information about versioning, see Adding Objects to\n Versioning Enabled Buckets. For information about returning the versioning state\n of a bucket, see GetBucketVersioning.
\n\n\n\n Related Resources\n
\n\n CopyObject\n
\n\n DeleteObject\n
\nUses the acl
subresource to set the access control list (ACL) permissions\n for a new or existing object in an S3 bucket. You must have WRITE_ACP
\n permission to set the ACL of an object. For more information, see What\n permissions can I grant? in the Amazon S3 User Guide.
This action is not supported by Amazon S3 on Outposts.
\nDepending on your application needs, you can choose to set\n the ACL on an object using either the request body or the headers. For example, if you have\n an existing application that updates a bucket ACL using the request body, you can continue\n to use that approach. For more information, see Access Control List (ACL) Overview in the Amazon S3 User Guide.
\n\n\n\n\n Access Permissions\n
\nYou can set access permissions using one of the following methods:
\nSpecify a canned ACL with the x-amz-acl
request header. Amazon S3 supports\n a set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined set\n of grantees and permissions. Specify the canned ACL name as the value of\n x-amz-ac
l. If you use this header, you cannot use other access\n control-specific headers in your request. For more information, see Canned ACL.
Specify access permissions explicitly with the x-amz-grant-read
,\n x-amz-grant-read-acp
, x-amz-grant-write-acp
, and\n x-amz-grant-full-control
headers. When using these headers, you\n specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who\n will receive the permission. If you use these ACL-specific headers, you cannot use\n x-amz-acl
header to set a canned ACL. These parameters map to the set\n of permissions that Amazon S3 supports in an ACL. For more information, see Access Control List (ACL)\n Overview.
You specify each grantee as a type=value pair, where the type is one of the\n following:
\n\n id
– if the value specified is the canonical user ID of an Amazon Web Services account
\n uri
– if you are granting permissions to a predefined\n group
\n emailAddress
– if the value specified is the email address of\n an Amazon Web Services account
Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\nFor example, the following x-amz-grant-read
header grants list\n objects permission to the two Amazon Web Services accounts identified by their email\n addresses.
\n x-amz-grant-read: emailAddress=\"xyz@amazon.com\",\n emailAddress=\"abc@amazon.com\"
\n
You can use either a canned ACL or specify access permissions explicitly. You cannot do\n both.
\n\n Grantee Values\n
\nYou can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:
\nBy the person's ID:
\n\n
\n
DisplayName is optional and ignored in the request.
\nBy URI:
\n\n
\n
By Email address:
\n\n
\n
The grantee is resolved to the CanonicalUser and, in a response to a GET Object\n acl request, appears as the CanonicalUser.
\nUsing email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\n\n Versioning\n
\nThe ACL of an object is set at the object version level. By default, PUT sets the ACL of\n the current version of an object. To set the ACL of a different version, use the\n versionId
subresource.
\n Related Resources\n
\n\n CopyObject\n
\n\n GetObject\n
\nUses the acl
subresource to set the access control list (ACL) permissions\n for a new or existing object in an S3 bucket. You must have WRITE_ACP
\n permission to set the ACL of an object. For more information, see What\n permissions can I grant? in the Amazon S3 User Guide.
This action is not supported by Amazon S3 on Outposts.
\nDepending on your application needs, you can choose to set\n the ACL on an object using either the request body or the headers. For example, if you have\n an existing application that updates a bucket ACL using the request body, you can continue\n to use that approach. For more information, see Access Control List (ACL) Overview in the Amazon S3 User Guide.
\nIf your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs are disabled and no longer affect permissions. \n You must use policies to grant access to your bucket and the objects in it. Requests to set ACLs or update ACLs fail and \n return the AccessControlListNotSupported
error code. Requests to read ACLs are still supported.\n For more information, see Controlling object ownership\n in the Amazon S3 User Guide.
\n Access Permissions\n
\nYou can set access permissions using one of the following methods:
\nSpecify a canned ACL with the x-amz-acl
request header. Amazon S3 supports\n a set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined set\n of grantees and permissions. Specify the canned ACL name as the value of\n x-amz-ac
l. If you use this header, you cannot use other access\n control-specific headers in your request. For more information, see Canned ACL.
Specify access permissions explicitly with the x-amz-grant-read
,\n x-amz-grant-read-acp
, x-amz-grant-write-acp
, and\n x-amz-grant-full-control
headers. When using these headers, you\n specify explicit access permissions and grantees (Amazon Web Services accounts or Amazon S3 groups) who\n will receive the permission. If you use these ACL-specific headers, you cannot use\n x-amz-acl
header to set a canned ACL. These parameters map to the set\n of permissions that Amazon S3 supports in an ACL. For more information, see Access Control List (ACL)\n Overview.
You specify each grantee as a type=value pair, where the type is one of the\n following:
\n\n id
– if the value specified is the canonical user ID of an Amazon Web Services account
\n uri
– if you are granting permissions to a predefined\n group
\n emailAddress
– if the value specified is the email address of\n an Amazon Web Services account
Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\nFor example, the following x-amz-grant-read
header grants list\n objects permission to the two Amazon Web Services accounts identified by their email\n addresses.
\n x-amz-grant-read: emailAddress=\"xyz@amazon.com\",\n emailAddress=\"abc@amazon.com\"
\n
You can use either a canned ACL or specify access permissions explicitly. You cannot do\n both.
\n\n Grantee Values\n
\nYou can specify the person (grantee) to whom you're assigning access rights (using\n request elements) in the following ways:
\nBy the person's ID:
\n\n
\n
DisplayName is optional and ignored in the request.
\nBy URI:
\n\n
\n
By Email address:
\n\n
\n
The grantee is resolved to the CanonicalUser and, in a response to a GET Object\n acl request, appears as the CanonicalUser.
\nUsing email addresses to specify a grantee is only supported in the following Amazon Web Services Regions:
\nUS East (N. Virginia)
\nUS West (N. California)
\nUS West (Oregon)
\nAsia Pacific (Singapore)
\nAsia Pacific (Sydney)
\nAsia Pacific (Tokyo)
\nEurope (Ireland)
\nSouth America (São Paulo)
\nFor a list of all the Amazon S3 supported Regions and endpoints, see Regions and Endpoints in the Amazon Web Services General Reference.
\n\n Versioning\n
\nThe ACL of an object is set at the object version level. By default, PUT sets the ACL of\n the current version of an object. To set the ACL of a different version, use the\n versionId
subresource.
\n Related Resources\n
\n\n CopyObject\n
\n\n GetObject\n
\nContainer for granting information.
" + "smithy.api#documentation": "Container for granting information.
\nBuckets that use the bucket owner enforced setting for Object\n Ownership don't support target grants. For more information, see Permissions server access log delivery in the\n Amazon S3 User Guide.
" } }, "com.amazonaws.s3#TargetGrants": { @@ -12656,6 +12674,10 @@ { "value": "DEEP_ARCHIVE", "name": "DEEP_ARCHIVE" + }, + { + "value": "GLACIER_IR", + "name": "GLACIER_IR" } ] } diff --git a/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json b/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json index d3c8743b7f5..97ebbc27379 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.2017-07-24.json @@ -285,6 +285,70 @@ } } }, + "com.amazonaws.sagemaker#AdditionalInferenceSpecificationDefinition": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.sagemaker#EntityName", + "traits": { + "smithy.api#documentation": "A unique name to identify the additional inference specification. The name must \n be unique within the list of your additional inference specifications for a \n particular model package.
", + "smithy.api#required": {} + } + }, + "Description": { + "target": "com.amazonaws.sagemaker#EntityDescription", + "traits": { + "smithy.api#documentation": "A description of the additional Inference specification
" + } + }, + "Containers": { + "target": "com.amazonaws.sagemaker#ModelPackageContainerDefinitionList", + "traits": { + "smithy.api#documentation": "The Amazon ECR registry path of the Docker image that contains the inference code.
", + "smithy.api#required": {} + } + }, + "SupportedTransformInstanceTypes": { + "target": "com.amazonaws.sagemaker#TransformInstanceTypes", + "traits": { + "smithy.api#documentation": "A list of the instance types on which a transformation job can be run \n or on which an endpoint can be deployed.
" + } + }, + "SupportedRealtimeInferenceInstanceTypes": { + "target": "com.amazonaws.sagemaker#RealtimeInferenceInstanceTypes", + "traits": { + "smithy.api#documentation": "A list of the instance types that are used to generate inferences in real-time.
" + } + }, + "SupportedContentTypes": { + "target": "com.amazonaws.sagemaker#ContentTypes", + "traits": { + "smithy.api#documentation": "The supported MIME types for the input data.
" + } + }, + "SupportedResponseMIMETypes": { + "target": "com.amazonaws.sagemaker#ResponseMIMETypes", + "traits": { + "smithy.api#documentation": "The supported MIME types for the output data.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure of additional Inference Specification. Additional Inference Specification \n specifies details about inference jobs that can be run with models based on\n this model package
" + } + }, + "com.amazonaws.sagemaker#AdditionalInferenceSpecifications": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#AdditionalInferenceSpecificationDefinition" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 15 + } + } + }, "com.amazonaws.sagemaker#AgentVersion": { "type": "structure", "members": { @@ -2575,6 +2639,12 @@ "traits": { "smithy.api#documentation": "The bias report for a model
" } + }, + "PreTrainingReport": { + "target": "com.amazonaws.sagemaker#MetricsSource" + }, + "PostTrainingReport": { + "target": "com.amazonaws.sagemaker#MetricsSource" } }, "traits": { @@ -2979,6 +3049,28 @@ "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" } }, + "com.amazonaws.sagemaker#CategoricalParameter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.sagemaker#String64", + "traits": { + "smithy.api#documentation": "The Name of the environment variable.
", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.sagemaker#CategoricalParameterRangeValues", + "traits": { + "smithy.api#documentation": "The list of values you can pass.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Environment parameters you want to benchmark your load test against.
" + } + }, "com.amazonaws.sagemaker#CategoricalParameterRange": { "type": "structure", "members": { @@ -3016,6 +3108,18 @@ "smithy.api#documentation": "Defines the possible values for a categorical hyperparameter.
" } }, + "com.amazonaws.sagemaker#CategoricalParameterRangeValues": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#String128" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 3 + } + } + }, "com.amazonaws.sagemaker#CategoricalParameterRanges": { "type": "list", "member": { @@ -3028,6 +3132,18 @@ } } }, + "com.amazonaws.sagemaker#CategoricalParameters": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#CategoricalParameter" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, "com.amazonaws.sagemaker#Cents": { "type": "integer", "traits": { @@ -3198,6 +3314,62 @@ "target": "com.amazonaws.sagemaker#Cidr" } }, + "com.amazonaws.sagemaker#ClarifyCheckStepMetadata": { + "type": "structure", + "members": { + "CheckType": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "The type of the Clarify Check step
" + } + }, + "BaselineUsedForDriftCheckConstraints": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of baseline constraints file to be used for the drift check.
" + } + }, + "CalculatedBaselineConstraints": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of the newly calculated baseline constraints file.
" + } + }, + "ModelPackageGroupName": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "The model package group name.
" + } + }, + "ViolationReport": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of the violation report if violations are detected.
" + } + }, + "CheckJobArn": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the check processing job that was run by this step's execution.
" + } + }, + "SkipCheck": { + "target": "com.amazonaws.sagemaker#Boolean", + "traits": { + "smithy.api#documentation": "This flag indicates if the drift check against the previous baseline will be skipped or not. \n If it is set to False
, the previous baseline of the configured check type must be available.
This flag indicates if a newly calculated baseline can be accessed through step properties \n BaselineUsedForDriftCheckConstraints
and BaselineUsedForDriftCheckStatistics
. \n If it is set to False
, the previous baseline of the configured check type must also be available. \n These can be accessed through the BaselineUsedForDriftCheckConstraints
property.
The container for the metadata for the ClarifyCheck step. For more information, \n see the topic on ClarifyCheck step in the Amazon SageMaker Developer Guide.\n
" + } + }, "com.amazonaws.sagemaker#ClientId": { "type": "string", "traits": { @@ -3763,6 +3935,12 @@ "smithy.api#documentation": "The name or Amazon Resource Name (ARN) of the model package to use to create the\n model.
" } }, + "InferenceSpecificationName": { + "target": "com.amazonaws.sagemaker#InferenceSpecificationName", + "traits": { + "smithy.api#documentation": "The inference specification name in the model package version.
" + } + }, "MultiModelConfig": { "target": "com.amazonaws.sagemaker#MultiModelConfig", "traits": { @@ -4589,11 +4767,16 @@ "smithy.api#required": {} } }, + "ModelPackageVersionArn": { + "target": "com.amazonaws.sagemaker#ModelPackageArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of a versioned model package. Provide either a \n ModelPackageVersionArn
or an InputConfig
object in the \n request syntax. The presence of both objects in the CreateCompilationJob
\n request will return an exception.
Provides information about the location of input model artifacts, the name and shape\n of the expected data inputs, and the framework in which the model was trained.
", - "smithy.api#required": {} + "smithy.api#documentation": "Provides information about the location of input model artifacts, the name and shape\n of the expected data inputs, and the framework in which the model was trained.
" } }, "OutputConfig": { @@ -5677,6 +5860,89 @@ } } }, + "com.amazonaws.sagemaker#CreateInferenceRecommendationsJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#CreateInferenceRecommendationsJobRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#CreateInferenceRecommendationsJobResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sagemaker#ResourceInUse" + }, + { + "target": "com.amazonaws.sagemaker#ResourceLimitExceeded" + } + ], + "traits": { + "smithy.api#documentation": "Starts a recommendation job. You can create either an instance \n recommendation or load test job.
" + } + }, + "com.amazonaws.sagemaker#CreateInferenceRecommendationsJobRequest": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.sagemaker#RecommendationJobName", + "traits": { + "smithy.api#documentation": "A name for the recommendation job. The name must be unique within \n the Amazon Web Services Region and within your Amazon Web Services account.
", + "smithy.api#required": {} + } + }, + "JobType": { + "target": "com.amazonaws.sagemaker#RecommendationJobType", + "traits": { + "smithy.api#documentation": "Defines the type of recommendation job. Specify Default
to initiate an instance \n recommendation and Advanced
to initiate a load test. If left unspecified, \n Amazon SageMaker Inference Recommender will run an instance recommendation (DEFAULT
) job.
The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker \n to perform tasks on your behalf.
", + "smithy.api#required": {} + } + }, + "InputConfig": { + "target": "com.amazonaws.sagemaker#RecommendationJobInputConfig", + "traits": { + "smithy.api#documentation": "Provides information about the versioned model package Amazon Resource Name (ARN), \n the traffic pattern, and endpoint configurations.
", + "smithy.api#required": {} + } + }, + "JobDescription": { + "target": "com.amazonaws.sagemaker#RecommendationJobDescription", + "traits": { + "smithy.api#documentation": "Description of the recommendation job.
" + } + }, + "StoppingConditions": { + "target": "com.amazonaws.sagemaker#RecommendationJobStoppingConditions", + "traits": { + "smithy.api#documentation": "A set of conditions for stopping a recommendation job. If any of \n the conditions are met, the job is automatically stopped.
" + } + }, + "Tags": { + "target": "com.amazonaws.sagemaker#TagList", + "traits": { + "smithy.api#documentation": "The metadata that you apply to Amazon Web Services resources to help you \n categorize and organize them. Each tag consists of a key and a value, both of \n which you define. For more information, see \n Tagging Amazon Web Services Resources \n in the Amazon Web Services General Reference.
" + } + } + } + }, + "com.amazonaws.sagemaker#CreateInferenceRecommendationsJobResponse": { + "type": "structure", + "members": { + "JobArn": { + "target": "com.amazonaws.sagemaker#RecommendationJobArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the recommendation job.
", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.sagemaker#CreateLabelingJob": { "type": "operation", "input": { @@ -6211,6 +6477,36 @@ "traits": { "smithy.api#documentation": "The metadata properties associated with the model package versions.
" } + }, + "DriftCheckBaselines": { + "target": "com.amazonaws.sagemaker#DriftCheckBaselines", + "traits": { + "smithy.api#documentation": "Represents the drift check baselines that can be used when the model monitor is set using the model package.\n For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide.\n
" + } + }, + "Domain": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning domain of your model package and its components. Common \n machine learning domains include computer vision and natural language processing.
" + } + }, + "Task": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning task your model package accomplishes. Common machine \n learning tasks include object detection and image classification.
" + } + }, + "SamplePayloadUrl": { + "target": "com.amazonaws.sagemaker#S3Uri", + "traits": { + "smithy.api#documentation": "The Amazon Simple Storage Service (Amazon S3) path where the sample payload are stored. This path must point \n to a single gzip compressed tar archive (.tar.gz suffix).
" + } + }, + "AdditionalInferenceSpecifications": { + "target": "com.amazonaws.sagemaker#AdditionalInferenceSpecifications", + "traits": { + "smithy.api#documentation": "An array of additional Inference Specification objects. Each additional \n Inference Specification specifies artifacts based on this model package that can \n be used on inference endpoints. Generally used with SageMaker Neo to store the \n compiled artifacts.
" + } } } }, @@ -9531,7 +9827,7 @@ "type": "structure", "members": { "ActionName": { - "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "target": "com.amazonaws.sagemaker#ExperimentEntityNameOrArn", "traits": { "smithy.api#documentation": "The name of the action.
" } @@ -9592,6 +9888,12 @@ }, "MetadataProperties": { "target": "com.amazonaws.sagemaker#MetadataProperties" + }, + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group.
" + } } } }, @@ -9914,7 +10216,7 @@ "type": "structure", "members": { "ArtifactName": { - "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "target": "com.amazonaws.sagemaker#ExperimentEntityNameOrArn", "traits": { "smithy.api#documentation": "The name of the artifact.
" } @@ -9963,6 +10265,12 @@ }, "MetadataProperties": { "target": "com.amazonaws.sagemaker#MetadataProperties" + }, + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group.
" + } } } }, @@ -10276,6 +10584,12 @@ "smithy.api#documentation": "The inference image to use when compiling a model. \n Specify an image only if the target device is a cloud instance.
" } }, + "ModelPackageVersionArn": { + "target": "com.amazonaws.sagemaker#ModelPackageArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the versioned model package that was \n provided to SageMaker Neo when you initiated a compilation job.
" + } + }, "CreationTime": { "target": "com.amazonaws.sagemaker#CreationTime", "traits": { @@ -10360,7 +10674,7 @@ "type": "structure", "members": { "ContextName": { - "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "target": "com.amazonaws.sagemaker#ExperimentEntityNameOrArn", "traits": { "smithy.api#documentation": "The name of the context to describe.
", "smithy.api#required": {} @@ -10424,6 +10738,12 @@ }, "LastModifiedBy": { "target": "com.amazonaws.sagemaker#UserContext" + }, + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group.
" + } } } }, @@ -12107,6 +12427,126 @@ } } }, + "com.amazonaws.sagemaker#DescribeInferenceRecommendationsJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#DescribeInferenceRecommendationsJobRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#DescribeInferenceRecommendationsJobResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sagemaker#ResourceNotFound" + } + ], + "traits": { + "smithy.api#documentation": "Provides the results of the Inference Recommender job. \n One or more recommendation jobs are returned.
" + } + }, + "com.amazonaws.sagemaker#DescribeInferenceRecommendationsJobRequest": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.sagemaker#RecommendationJobName", + "traits": { + "smithy.api#documentation": "The name of the job. The name must be unique within an \n Amazon Web Services Region in the Amazon Web Services account.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.sagemaker#DescribeInferenceRecommendationsJobResponse": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.sagemaker#RecommendationJobName", + "traits": { + "smithy.api#documentation": "The name of the job. The name must be unique within an \n Amazon Web Services Region in the Amazon Web Services account.
", + "smithy.api#required": {} + } + }, + "JobDescription": { + "target": "com.amazonaws.sagemaker#RecommendationJobDescription", + "traits": { + "smithy.api#documentation": "The job description that you provided when you initiated the job.
" + } + }, + "JobType": { + "target": "com.amazonaws.sagemaker#RecommendationJobType", + "traits": { + "smithy.api#documentation": "The job type that you provided when you initiated the job.
", + "smithy.api#required": {} + } + }, + "JobArn": { + "target": "com.amazonaws.sagemaker#RecommendationJobArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the job.
", + "smithy.api#required": {} + } + }, + "RoleArn": { + "target": "com.amazonaws.sagemaker#RoleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Amazon Web Services \n Identity and Access Management (IAM) role you provided when you initiated the job.
", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.sagemaker#RecommendationJobStatus", + "traits": { + "smithy.api#documentation": "The status of the job.
", + "smithy.api#required": {} + } + }, + "CreationTime": { + "target": "com.amazonaws.sagemaker#CreationTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the job was created.
", + "smithy.api#required": {} + } + }, + "CompletionTime": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the job completed.
" + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.sagemaker#LastModifiedTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the job was last modified.
", + "smithy.api#required": {} + } + }, + "FailureReason": { + "target": "com.amazonaws.sagemaker#FailureReason", + "traits": { + "smithy.api#documentation": "If the job fails, provides information why the job failed.
" + } + }, + "InputConfig": { + "target": "com.amazonaws.sagemaker#RecommendationJobInputConfig", + "traits": { + "smithy.api#documentation": "Returns information about the versioned model package Amazon Resource Name (ARN), \n the traffic pattern, and endpoint configurations you provided when you initiated the job.
", + "smithy.api#required": {} + } + }, + "StoppingConditions": { + "target": "com.amazonaws.sagemaker#RecommendationJobStoppingConditions", + "traits": { + "smithy.api#documentation": "The stopping conditions that you provided when you initiated the job.
" + } + }, + "InferenceRecommendations": { + "target": "com.amazonaws.sagemaker#InferenceRecommendations", + "traits": { + "smithy.api#documentation": "The recommendations made by Inference Recommender.
" + } + } + } + }, "com.amazonaws.sagemaker#DescribeLabelingJob": { "type": "operation", "input": { @@ -12260,6 +12700,82 @@ } } }, + "com.amazonaws.sagemaker#DescribeLineageGroup": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#DescribeLineageGroupRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#DescribeLineageGroupResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sagemaker#ResourceNotFound" + } + ], + "traits": { + "smithy.api#documentation": "Provides a list of properties for the requested lineage group. \n For more information, see \n Cross-Account Lineage Tracking in the Amazon SageMaker Developer Guide.
" + } + }, + "com.amazonaws.sagemaker#DescribeLineageGroupRequest": { + "type": "structure", + "members": { + "LineageGroupName": { + "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "traits": { + "smithy.api#documentation": "The name of the lineage group.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.sagemaker#DescribeLineageGroupResponse": { + "type": "structure", + "members": { + "LineageGroupName": { + "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "traits": { + "smithy.api#documentation": "The name of the lineage group.
" + } + }, + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group.
" + } + }, + "DisplayName": { + "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "traits": { + "smithy.api#documentation": "The display name of the lineage group.
" + } + }, + "Description": { + "target": "com.amazonaws.sagemaker#ExperimentDescription", + "traits": { + "smithy.api#documentation": "The description of the lineage group.
" + } + }, + "CreationTime": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "The creation time of lineage group.
" + } + }, + "CreatedBy": { + "target": "com.amazonaws.sagemaker#UserContext" + }, + "LastModifiedTime": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "The last modified time of the lineage group.
" + } + }, + "LastModifiedBy": { + "target": "com.amazonaws.sagemaker#UserContext" + } + } + }, "com.amazonaws.sagemaker#DescribeModel": { "type": "operation", "input": { @@ -12764,6 +13280,36 @@ "traits": { "smithy.api#documentation": "The metadata properties associated with the model package versions.
" } + }, + "DriftCheckBaselines": { + "target": "com.amazonaws.sagemaker#DriftCheckBaselines", + "traits": { + "smithy.api#documentation": "Represents the drift check baselines that can be used when the model monitor is set using the model package. \n For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide.\n
" + } + }, + "Domain": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning domain of the model package you specified. Common machine \n learning domains include computer vision and natural language processing.
" + } + }, + "Task": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning task you specified that your model package accomplishes. \n Common machine learning tasks include object detection and image classification.
" + } + }, + "SamplePayloadUrl": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The Amazon Simple Storage Service (Amazon S3) path where the sample payload are stored. This path points to a single \n gzip compressed tar archive (.tar.gz suffix).
" + } + }, + "AdditionalInferenceSpecifications": { + "target": "com.amazonaws.sagemaker#AdditionalInferenceSpecifications", + "traits": { + "smithy.api#documentation": "An array of additional Inference Specification objects. Each additional \n Inference Specification specifies artifacts based on this model package that can \n be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
" + } } } }, @@ -14469,7 +15015,7 @@ "type": "structure", "members": { "TrialComponentName": { - "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "target": "com.amazonaws.sagemaker#ExperimentEntityNameOrArn", "traits": { "smithy.api#documentation": "The name of the trial component to describe.
", "smithy.api#required": {} @@ -14572,6 +15118,12 @@ "traits": { "smithy.api#documentation": "The metrics for the component.
" } + }, + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group.
" + } } } }, @@ -15163,6 +15715,25 @@ ] } }, + "com.amazonaws.sagemaker#Direction": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Both", + "name": "BOTH" + }, + { + "value": "Ascendants", + "name": "ASCENDANTS" + }, + { + "value": "Descendants", + "name": "DESCENDANTS" + } + ] + } + }, "com.amazonaws.sagemaker#DirectoryPath": { "type": "string", "traits": { @@ -15442,6 +16013,129 @@ "smithy.api#box": {} } }, + "com.amazonaws.sagemaker#DriftCheckBaselines": { + "type": "structure", + "members": { + "Bias": { + "target": "com.amazonaws.sagemaker#DriftCheckBias", + "traits": { + "smithy.api#documentation": "Represents the drift check bias baselines that can be used when the model monitor is set using the model \n package.
" + } + }, + "Explainability": { + "target": "com.amazonaws.sagemaker#DriftCheckExplainability", + "traits": { + "smithy.api#documentation": "Represents the drift check explainability baselines that can be used when the model monitor is set using \n the model package.
" + } + }, + "ModelQuality": { + "target": "com.amazonaws.sagemaker#DriftCheckModelQuality", + "traits": { + "smithy.api#documentation": "Represents the drift check model quality baselines that can be used when the model monitor is set using \n the model package.
" + } + }, + "ModelDataQuality": { + "target": "com.amazonaws.sagemaker#DriftCheckModelDataQuality", + "traits": { + "smithy.api#documentation": "Represents the drift check model data quality baselines that can be used when the model monitor is set \n using the model package.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Represents the drift check baselines that can be used when the model monitor is set using the model \n package.
" + } + }, + "com.amazonaws.sagemaker#DriftCheckBias": { + "type": "structure", + "members": { + "ConfigFile": { + "target": "com.amazonaws.sagemaker#FileSource", + "traits": { + "smithy.api#documentation": "The bias config file for a model.
" + } + }, + "PreTrainingConstraints": { + "target": "com.amazonaws.sagemaker#MetricsSource" + }, + "PostTrainingConstraints": { + "target": "com.amazonaws.sagemaker#MetricsSource" + } + }, + "traits": { + "smithy.api#documentation": "Represents the drift check bias baselines that can be used when the model monitor is set using the \n model package.
" + } + }, + "com.amazonaws.sagemaker#DriftCheckExplainability": { + "type": "structure", + "members": { + "Constraints": { + "target": "com.amazonaws.sagemaker#MetricsSource" + }, + "ConfigFile": { + "target": "com.amazonaws.sagemaker#FileSource", + "traits": { + "smithy.api#documentation": "The explainability config file for the model.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Represents the drift check explainability baselines that can be used when the model monitor is set \n using the model package.
" + } + }, + "com.amazonaws.sagemaker#DriftCheckModelDataQuality": { + "type": "structure", + "members": { + "Statistics": { + "target": "com.amazonaws.sagemaker#MetricsSource" + }, + "Constraints": { + "target": "com.amazonaws.sagemaker#MetricsSource" + } + }, + "traits": { + "smithy.api#documentation": "Represents the drift check data quality baselines that can be used when the model monitor is set using \n the model package.
" + } + }, + "com.amazonaws.sagemaker#DriftCheckModelQuality": { + "type": "structure", + "members": { + "Statistics": { + "target": "com.amazonaws.sagemaker#MetricsSource" + }, + "Constraints": { + "target": "com.amazonaws.sagemaker#MetricsSource" + } + }, + "traits": { + "smithy.api#documentation": "Represents the drift check model quality baselines that can be used when the model monitor is set using \n the model package.
" + } + }, + "com.amazonaws.sagemaker#Edge": { + "type": "structure", + "members": { + "SourceArn": { + "target": "com.amazonaws.sagemaker#AssociationEntityArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the source lineage entity of the directed edge.
" + } + }, + "DestinationArn": { + "target": "com.amazonaws.sagemaker#AssociationEntityArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the destination lineage entity of the directed edge.
" + } + }, + "AssociationType": { + "target": "com.amazonaws.sagemaker#AssociationEdgeType", + "traits": { + "smithy.api#documentation": "The type of the Association(Edge) between the source and destination. For example ContributedTo
, \n Produced
, or DerivedFrom
.
A directed edge connecting two lineage entities.
" + } + }, "com.amazonaws.sagemaker#EdgeModel": { "type": "structure", "members": { @@ -15783,6 +16477,12 @@ "smithy.api#pattern": "^[a-zA-Z0-9\\ \\_\\.]+$" } }, + "com.amazonaws.sagemaker#Edges": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#Edge" + } + }, "com.amazonaws.sagemaker#EfsUid": { "type": "string", "traits": { @@ -16059,6 +16759,45 @@ "smithy.api#documentation": "Input object for the endpoint
" } }, + "com.amazonaws.sagemaker#EndpointInputConfiguration": { + "type": "structure", + "members": { + "InstanceType": { + "target": "com.amazonaws.sagemaker#ProductionVariantInstanceType", + "traits": { + "smithy.api#documentation": "The instance types to use for the load test.
", + "smithy.api#required": {} + } + }, + "InferenceSpecificationName": { + "target": "com.amazonaws.sagemaker#InferenceSpecificationName", + "traits": { + "smithy.api#documentation": "The inference specification name in the model package version.
" + } + }, + "EnvironmentParameterRanges": { + "target": "com.amazonaws.sagemaker#EnvironmentParameterRanges", + "traits": { + "smithy.api#documentation": "The parameter you want to benchmark against.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The endpoint configuration for the load test.
" + } + }, + "com.amazonaws.sagemaker#EndpointInputConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#EndpointInputConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, "com.amazonaws.sagemaker#EndpointName": { "type": "string", "traits": { @@ -16079,6 +16818,42 @@ "smithy.api#pattern": "^[a-zA-Z0-9-]+$" } }, + "com.amazonaws.sagemaker#EndpointOutputConfiguration": { + "type": "structure", + "members": { + "EndpointName": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The name of the endpoint made during a recommendation job.
", + "smithy.api#required": {} + } + }, + "VariantName": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The name of the production variant (deployed model) made during a recommendation job.
", + "smithy.api#required": {} + } + }, + "InstanceType": { + "target": "com.amazonaws.sagemaker#ProductionVariantInstanceType", + "traits": { + "smithy.api#documentation": "The instance type recommended by Amazon SageMaker Inference Recommender.
", + "smithy.api#required": {} + } + }, + "InitialInstanceCount": { + "target": "com.amazonaws.sagemaker#Integer", + "traits": { + "smithy.api#documentation": "The number of instances recommended to launch initially.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The endpoint configuration made by Inference Recommender during a recommendation job.
" + } + }, "com.amazonaws.sagemaker#EndpointSortKey": { "type": "string", "traits": { @@ -16231,6 +17006,61 @@ } } }, + "com.amazonaws.sagemaker#EnvironmentParameter": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The environment key suggested by the Amazon SageMaker Inference Recommender.
", + "smithy.api#required": {} + } + }, + "ValueType": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The value type suggested by the Amazon SageMaker Inference Recommender.
", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The value suggested by the Amazon SageMaker Inference Recommender.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A list of environment parameters suggested by the Amazon SageMaker Inference Recommender.
" + } + }, + "com.amazonaws.sagemaker#EnvironmentParameterRanges": { + "type": "structure", + "members": { + "CategoricalParameterRanges": { + "target": "com.amazonaws.sagemaker#CategoricalParameters", + "traits": { + "smithy.api#documentation": "Specified a list of parameters for each category.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the range of environment parameters
" + } + }, + "com.amazonaws.sagemaker#EnvironmentParameters": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#EnvironmentParameter" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, "com.amazonaws.sagemaker#EnvironmentValue": { "type": "string", "traits": { @@ -16404,6 +17234,16 @@ "smithy.api#pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,119}$" } }, + "com.amazonaws.sagemaker#ExperimentEntityNameOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:(experiment|experiment-trial|experiment-trial-component|artifact|action|context)\\/)?([a-zA-Z0-9](-*[a-zA-Z0-9]){0,119})$" + } + }, "com.amazonaws.sagemaker#ExperimentSource": { "type": "structure", "members": { @@ -16818,6 +17658,33 @@ ] } }, + "com.amazonaws.sagemaker#FileSource": { + "type": "structure", + "members": { + "ContentType": { + "target": "com.amazonaws.sagemaker#ContentType", + "traits": { + "smithy.api#documentation": "The type of content stored in the file source.
" + } + }, + "ContentDigest": { + "target": "com.amazonaws.sagemaker#ContentDigest", + "traits": { + "smithy.api#documentation": "The digest of the file source.
" + } + }, + "S3Uri": { + "target": "com.amazonaws.sagemaker#S3Uri", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI for the file source.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Contains details regarding the file source.
" + } + }, "com.amazonaws.sagemaker#FileSystemAccessMode": { "type": "string", "traits": { @@ -17360,6 +18227,52 @@ } } }, + "com.amazonaws.sagemaker#GetLineageGroupPolicy": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#GetLineageGroupPolicyRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#GetLineageGroupPolicyResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sagemaker#ResourceNotFound" + } + ], + "traits": { + "smithy.api#documentation": "The resource policy for the lineage group.
" + } + }, + "com.amazonaws.sagemaker#GetLineageGroupPolicyRequest": { + "type": "structure", + "members": { + "LineageGroupName": { + "target": "com.amazonaws.sagemaker#LineageGroupNameOrArn", + "traits": { + "smithy.api#documentation": "The name or Amazon Resource Name (ARN) of the lineage group.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.sagemaker#GetLineageGroupPolicyResponse": { + "type": "structure", + "members": { + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group.
" + } + }, + "ResourcePolicy": { + "target": "com.amazonaws.sagemaker#ResourcePolicyString", + "traits": { + "smithy.api#documentation": "The resource policy that gives access to the lineage group in another account.
" + } + } + } + }, "com.amazonaws.sagemaker#GetModelPackageGroupPolicy": { "type": "operation", "input": { @@ -17711,14 +18624,14 @@ "TaskTimeLimitInSeconds": { "target": "com.amazonaws.sagemaker#TaskTimeLimitInSeconds", "traits": { - "smithy.api#documentation": "The amount of time that a worker has to complete a task.
\nIf you create a custom labeling job, the maximum value for this parameter is 8 hours\n (28,800 seconds).
\nIf you create a labeling job using a built-in task type the maximum\n for this parameter depends on the task type you use:
\nFor image and \n text labeling jobs,\n the maximum is 8 hours (28,800 seconds).
\nFor 3D point cloud and video frame labeling jobs, the maximum is 30 days (2952,000 seconds) for non-AL mode. For most users, the maximum is also 30 days. If you want to change these limits,\n contact Amazon Web Services Support.
\nThe amount of time that a worker has to complete a task.
\nIf you create a custom labeling job, the maximum value for this parameter is 8 hours\n (28,800 seconds).
\nIf you create a labeling job using a built-in task type the maximum\n for this parameter depends on the task type you use:
\nFor image and \n text labeling jobs,\n the maximum is 8 hours (28,800 seconds).
\nFor 3D point cloud and video frame labeling jobs, the maximum is 30 days (2952,000 seconds) for non-AL mode. For most users, the maximum is also 30 days.
\nThe length of time that a task remains available for labeling by human workers. The\n default and maximum values for this parameter depend on the type of workforce you\n use.
\nIf you choose the Amazon Mechanical Turk workforce, the maximum is 12 hours (43,200 seconds).\n The default is 6 hours (21,600 seconds).
\nIf you choose a private or vendor workforce, the default value is 30 days (2592,000 seconds) for non-AL mode. For most users, the maximum is also 30 days. If you want to\n change this limit, contact Amazon Web Services Support.
\nThe length of time that a task remains available for labeling by human workers. The\n default and maximum values for this parameter depend on the type of workforce you\n use.
\nIf you choose the Amazon Mechanical Turk workforce, the maximum is 12 hours (43,200 seconds).\n The default is 6 hours (21,600 seconds).
\nIf you choose a private or vendor workforce, the default value is 30 days (2592,000 seconds) for non-AL mode. For most users, the maximum is also 30 days.
\nThe metrics used to decide what recommendation to make.
", + "smithy.api#required": {} + } + }, + "EndpointConfiguration": { + "target": "com.amazonaws.sagemaker#EndpointOutputConfiguration", + "traits": { + "smithy.api#documentation": "Defines the endpoint configuration parameters.
", + "smithy.api#required": {} + } + }, + "ModelConfiguration": { + "target": "com.amazonaws.sagemaker#ModelConfiguration", + "traits": { + "smithy.api#documentation": "Defines the model configuration.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A list of recommendations made by Amazon SageMaker Inference Recommender.
" + } + }, + "com.amazonaws.sagemaker#InferenceRecommendations": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#InferenceRecommendation" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.sagemaker#InferenceRecommendationsJob": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.sagemaker#RecommendationJobName", + "traits": { + "smithy.api#documentation": "The name of the job.
", + "smithy.api#required": {} + } + }, + "JobDescription": { + "target": "com.amazonaws.sagemaker#RecommendationJobDescription", + "traits": { + "smithy.api#documentation": "The job description.
", + "smithy.api#required": {} + } + }, + "JobType": { + "target": "com.amazonaws.sagemaker#RecommendationJobType", + "traits": { + "smithy.api#documentation": "The recommendation job type.
", + "smithy.api#required": {} + } + }, + "JobArn": { + "target": "com.amazonaws.sagemaker#RecommendationJobArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the recommendation job.
", + "smithy.api#required": {} + } + }, + "Status": { + "target": "com.amazonaws.sagemaker#RecommendationJobStatus", + "traits": { + "smithy.api#documentation": "The status of the job.
", + "smithy.api#required": {} + } + }, + "CreationTime": { + "target": "com.amazonaws.sagemaker#CreationTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the job was created.
", + "smithy.api#required": {} + } + }, + "CompletionTime": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the job completed.
" + } + }, + "RoleArn": { + "target": "com.amazonaws.sagemaker#RoleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker \n to perform tasks on your behalf.
", + "smithy.api#required": {} + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.sagemaker#LastModifiedTime", + "traits": { + "smithy.api#documentation": "A timestamp that shows when the job was last modified.
", + "smithy.api#required": {} + } + }, + "FailureReason": { + "target": "com.amazonaws.sagemaker#FailureReason", + "traits": { + "smithy.api#documentation": "If the job fails, provides information why the job failed.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A structure that contains a list of recommendation jobs.
" + } + }, + "com.amazonaws.sagemaker#InferenceRecommendationsJobs": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#InferenceRecommendationsJob" + } + }, "com.amazonaws.sagemaker#InferenceSpecification": { "type": "structure", "members": { @@ -18970,6 +20006,25 @@ "smithy.api#documentation": "Defines how to perform inference generation after a training job is run.
" } }, + "com.amazonaws.sagemaker#InferenceSpecificationName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 63 + }, + "smithy.api#pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}$" + } + }, + "com.amazonaws.sagemaker#InitialNumberOfUsers": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1 + } + } + }, "com.amazonaws.sagemaker#InitialTaskCount": { "type": "integer", "traits": { @@ -19401,6 +20456,15 @@ "smithy.api#pattern": "^arn:aws[a-z\\-]*:iam::\\d{12}:rolealias/?[a-zA-Z_0-9+=,.@\\-_/]+$" } }, + "com.amazonaws.sagemaker#JobDurationInSeconds": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1 + } + } + }, "com.amazonaws.sagemaker#JobReferenceCode": { "type": "string", "traits": { @@ -20132,6 +21196,93 @@ } } }, + "com.amazonaws.sagemaker#LineageGroupArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:lineage-group/" + } + }, + "com.amazonaws.sagemaker#LineageGroupNameOrArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:lineage-group\\/)?([a-zA-Z0-9](-*[a-zA-Z0-9]){0,119})$" + } + }, + "com.amazonaws.sagemaker#LineageGroupSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#LineageGroupSummary" + } + }, + "com.amazonaws.sagemaker#LineageGroupSummary": { + "type": "structure", + "members": { + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group resource.
" + } + }, + "LineageGroupName": { + "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "traits": { + "smithy.api#documentation": "The name or Amazon Resource Name (ARN) of the lineage group.
" + } + }, + "DisplayName": { + "target": "com.amazonaws.sagemaker#ExperimentEntityName", + "traits": { + "smithy.api#documentation": "The display name of the lineage group summary.
" + } + }, + "CreationTime": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "The creation time of the lineage group summary.
" + } + }, + "LastModifiedTime": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "The last modified time of the lineage group summary.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Lists a summary of the properties of a lineage group. A lineage group provides a group of shareable lineage entity \n resources.
" + } + }, + "com.amazonaws.sagemaker#LineageType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "TrialComponent", + "name": "TRIAL_COMPONENT" + }, + { + "value": "Artifact", + "name": "ARTIFACT" + }, + { + "value": "Context", + "name": "CONTEXT" + }, + { + "value": "Action", + "name": "ACTION" + } + ] + } + }, "com.amazonaws.sagemaker#ListActions": { "type": "operation", "input": { @@ -22412,6 +23563,125 @@ } } }, + "com.amazonaws.sagemaker#ListInferenceRecommendationsJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#ListInferenceRecommendationsJobsRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#ListInferenceRecommendationsJobsResponse" + }, + "traits": { + "smithy.api#documentation": "Lists recommendation jobs that satisfy various filters.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.sagemaker#ListInferenceRecommendationsJobsRequest": { + "type": "structure", + "members": { + "CreationTimeAfter": { + "target": "com.amazonaws.sagemaker#CreationTime", + "traits": { + "smithy.api#documentation": "A filter that returns only jobs created after the specified time (timestamp).
" + } + }, + "CreationTimeBefore": { + "target": "com.amazonaws.sagemaker#CreationTime", + "traits": { + "smithy.api#documentation": "A filter that returns only jobs created before the specified time (timestamp).
" + } + }, + "LastModifiedTimeAfter": { + "target": "com.amazonaws.sagemaker#LastModifiedTime", + "traits": { + "smithy.api#documentation": "A filter that returns only jobs that were last modified after the specified time (timestamp).
" + } + }, + "LastModifiedTimeBefore": { + "target": "com.amazonaws.sagemaker#LastModifiedTime", + "traits": { + "smithy.api#documentation": "A filter that returns only jobs that were last modified before the specified time (timestamp).
" + } + }, + "NameContains": { + "target": "com.amazonaws.sagemaker#NameContains", + "traits": { + "smithy.api#documentation": "A string in the job name. This filter returns only recommendations whose name contains the specified string.
" + } + }, + "StatusEquals": { + "target": "com.amazonaws.sagemaker#RecommendationJobStatus", + "traits": { + "smithy.api#documentation": "A filter that retrieves only inference recommendations jobs with a specific status.
" + } + }, + "SortBy": { + "target": "com.amazonaws.sagemaker#ListInferenceRecommendationsJobsSortBy", + "traits": { + "smithy.api#documentation": "The parameter by which to sort the results.
" + } + }, + "SortOrder": { + "target": "com.amazonaws.sagemaker#SortOrder", + "traits": { + "smithy.api#documentation": "The sort order for the results.
" + } + }, + "NextToken": { + "target": "com.amazonaws.sagemaker#NextToken", + "traits": { + "smithy.api#documentation": "If the response to a previous ListInferenceRecommendationsJobsRequest
request \n was truncated, the response includes a NextToken
. To retrieve the next set \n of recommendations, use the token in the next request.
The maximum number of recommendations to return in the response.
" + } + } + } + }, + "com.amazonaws.sagemaker#ListInferenceRecommendationsJobsResponse": { + "type": "structure", + "members": { + "InferenceRecommendationsJobs": { + "target": "com.amazonaws.sagemaker#InferenceRecommendationsJobs", + "traits": { + "smithy.api#documentation": "The recommendations created from the Amazon SageMaker Inference Recommender job.
", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.sagemaker#NextToken", + "traits": { + "smithy.api#documentation": "A token for getting the next set of recommendations, if there are any.
" + } + } + } + }, + "com.amazonaws.sagemaker#ListInferenceRecommendationsJobsSortBy": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Name", + "name": "NAME" + }, + { + "value": "CreationTime", + "name": "CREATION_TIME" + }, + { + "value": "Status", + "name": "STATUS" + } + ] + } + }, "com.amazonaws.sagemaker#ListLabelingJobs": { "type": "operation", "input": { @@ -22622,6 +23892,81 @@ "target": "com.amazonaws.sagemaker#StringParameterValue" } }, + "com.amazonaws.sagemaker#ListLineageGroups": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#ListLineageGroupsRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#ListLineageGroupsResponse" + }, + "traits": { + "smithy.api#documentation": "A list of lineage groups shared with your Amazon Web Services account. \n For more information, see \n Cross-Account Lineage Tracking in the Amazon SageMaker Developer Guide.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.sagemaker#ListLineageGroupsRequest": { + "type": "structure", + "members": { + "CreatedAfter": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp to filter against lineage groups created after a certain point in time.
" + } + }, + "CreatedBefore": { + "target": "com.amazonaws.sagemaker#Timestamp", + "traits": { + "smithy.api#documentation": "A timestamp to filter against lineage groups created before a certain point in time.
" + } + }, + "SortBy": { + "target": "com.amazonaws.sagemaker#SortLineageGroupsBy", + "traits": { + "smithy.api#documentation": "The parameter by which to sort the results. The default is\n CreationTime
.
The sort order for the results. The default is Ascending
.
If the response is truncated, SageMaker returns this token. To retrieve the next set of\n algorithms, use it in the subsequent request.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.sagemaker#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of endpoints to return in the response. This value defaults to\n 10.
" + } + } + } + }, + "com.amazonaws.sagemaker#ListLineageGroupsResponse": { + "type": "structure", + "members": { + "LineageGroupSummaries": { + "target": "com.amazonaws.sagemaker#LineageGroupSummaries", + "traits": { + "smithy.api#documentation": "A list of lineage groups and their properties.
" + } + }, + "NextToken": { + "target": "com.amazonaws.sagemaker#NextToken", + "traits": { + "smithy.api#documentation": "If the response is truncated, SageMaker returns this token. To retrieve the next set of\n algorithms, use it in the subsequent request.
" + } + } + } + }, "com.amazonaws.sagemaker#ListMaxResults": { "type": "integer", "traits": { @@ -22806,6 +24151,64 @@ } } }, + "com.amazonaws.sagemaker#ListModelMetadata": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#ListModelMetadataRequest" + }, + "output": { + "target": "com.amazonaws.sagemaker#ListModelMetadataResponse" + }, + "traits": { + "smithy.api#documentation": "Lists the domain, framework, task, and model name of standard \n machine learning models found in common model zoos.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.sagemaker#ListModelMetadataRequest": { + "type": "structure", + "members": { + "SearchExpression": { + "target": "com.amazonaws.sagemaker#ModelMetadataSearchExpression", + "traits": { + "smithy.api#documentation": "One or more filters that searches for the specified resource or resources \n in a search. All resource objects that satisfy the expression's condition are \n included in the search results. Specify the Framework, FrameworkVersion, Domain \n or Task to filter supported. Filter names and values are case-sensitive.
" + } + }, + "NextToken": { + "target": "com.amazonaws.sagemaker#NextToken", + "traits": { + "smithy.api#documentation": "If the response to a previous ListModelMetadataResponse
request was truncated, \n the response includes a NextToken. To retrieve the next set of model metadata, \n use the token in the next request.
The maximum number of models to return in the response.
" + } + } + } + }, + "com.amazonaws.sagemaker#ListModelMetadataResponse": { + "type": "structure", + "members": { + "ModelMetadataSummaries": { + "target": "com.amazonaws.sagemaker#ModelMetadataSummaries", + "traits": { + "smithy.api#documentation": "A structure that holds model metadata.
", + "smithy.api#required": {} + } + }, + "NextToken": { + "target": "com.amazonaws.sagemaker#NextToken", + "traits": { + "smithy.api#documentation": "A token for getting the next set of recommendations, if there are any.
" + } + } + } + }, "com.amazonaws.sagemaker#ListModelPackageGroups": { "type": "operation", "input": { @@ -25114,6 +26517,15 @@ } } }, + "com.amazonaws.sagemaker#MaxNumberOfTests": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1 + } + } + }, "com.amazonaws.sagemaker#MaxNumberOfTrainingJobs": { "type": "integer", "traits": { @@ -25122,6 +26534,15 @@ } } }, + "com.amazonaws.sagemaker#MaxParallelOfTests": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1 + } + } + }, "com.amazonaws.sagemaker#MaxParallelTrainingJobs": { "type": "integer", "traits": { @@ -25601,6 +27022,26 @@ "smithy.api#documentation": "Configures the timeout and maximum number of retries for processing a transform job\n invocation.
" } }, + "com.amazonaws.sagemaker#ModelConfiguration": { + "type": "structure", + "members": { + "InferenceSpecificationName": { + "target": "com.amazonaws.sagemaker#InferenceSpecificationName", + "traits": { + "smithy.api#documentation": "The inference specification name in the model package version.
" + } + }, + "EnvironmentParameters": { + "target": "com.amazonaws.sagemaker#EnvironmentParameters", + "traits": { + "smithy.api#documentation": "Defines the environment parameters that includes key, value types, and values.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the model configuration. Includes the specification name and environment parameters.
" + } + }, "com.amazonaws.sagemaker#ModelDataQuality": { "type": "structure", "members": { @@ -25728,6 +27169,173 @@ "smithy.api#documentation": "Inputs for the model explainability job.
" } }, + "com.amazonaws.sagemaker#ModelInput": { + "type": "structure", + "members": { + "DataInputConfig": { + "target": "com.amazonaws.sagemaker#DataInputConfig", + "traits": { + "smithy.api#documentation": "The input configuration object for the model.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Input object for the model.
" + } + }, + "com.amazonaws.sagemaker#ModelLatencyThreshold": { + "type": "structure", + "members": { + "Percentile": { + "target": "com.amazonaws.sagemaker#String64", + "traits": { + "smithy.api#documentation": "The model latency percentile threshold.
" + } + }, + "ValueInMilliseconds": { + "target": "com.amazonaws.sagemaker#Integer", + "traits": { + "smithy.api#documentation": "The model latency percentile value in milliseconds.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The model latency threshold.
" + } + }, + "com.amazonaws.sagemaker#ModelLatencyThresholds": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#ModelLatencyThreshold" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1 + } + } + }, + "com.amazonaws.sagemaker#ModelMetadataFilter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.sagemaker#ModelMetadataFilterType", + "traits": { + "smithy.api#documentation": "The name of the of the model to filter by.
", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "The value to filter the model metadata.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Part of the search expression. You can specify the name and value \n (domain, task, framework, framework version, task, and model).
" + } + }, + "com.amazonaws.sagemaker#ModelMetadataFilterType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Domain", + "name": "DOMAIN" + }, + { + "value": "Framework", + "name": "FRAMEWORK" + }, + { + "value": "Task", + "name": "TASK" + }, + { + "value": "FrameworkVersion", + "name": "FRAMEWORKVERSION" + } + ] + } + }, + "com.amazonaws.sagemaker#ModelMetadataFilters": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#ModelMetadataFilter" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4 + } + } + }, + "com.amazonaws.sagemaker#ModelMetadataSearchExpression": { + "type": "structure", + "members": { + "Filters": { + "target": "com.amazonaws.sagemaker#ModelMetadataFilters", + "traits": { + "smithy.api#documentation": "A list of filter objects.
" + } + } + }, + "traits": { + "smithy.api#documentation": "One or more filters that searches for the specified resource or resources in \n a search. All resource objects that satisfy the expression's condition are \n included in the search results
" + } + }, + "com.amazonaws.sagemaker#ModelMetadataSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#ModelMetadataSummary" + } + }, + "com.amazonaws.sagemaker#ModelMetadataSummary": { + "type": "structure", + "members": { + "Domain": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning domain of the model.
", + "smithy.api#required": {} + } + }, + "Framework": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning framework of the model.
", + "smithy.api#required": {} + } + }, + "Task": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning task of the model.
", + "smithy.api#required": {} + } + }, + "Model": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The name of the model.
", + "smithy.api#required": {} + } + }, + "FrameworkVersion": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The framework version of the model.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A summary of the model metadata.
" + } + }, "com.amazonaws.sagemaker#ModelMetrics": { "type": "structure", "members": { @@ -25876,6 +27484,30 @@ "smithy.api#documentation": "A description provided when the model approval is set.
" } }, + "Domain": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning domain of your model package and its components. Common \n machine learning domains include computer vision and natural language processing.
" + } + }, + "Task": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning task your model package accomplishes. Common machine \n learning tasks include object detection and image classification.
" + } + }, + "SamplePayloadUrl": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The Amazon Simple Storage Service path where the sample payload are stored. This path must point to \n a single gzip compressed tar archive (.tar.gz suffix).
" + } + }, + "AdditionalInferenceSpecifications": { + "target": "com.amazonaws.sagemaker#AdditionalInferenceSpecifications", + "traits": { + "smithy.api#documentation": "An array of additional Inference Specification objects.
" + } + }, "Tags": { "target": "com.amazonaws.sagemaker#TagList", "traits": { @@ -25887,6 +27519,12 @@ "traits": { "smithy.api#documentation": "The metadata properties for the model package.
" } + }, + "DriftCheckBaselines": { + "target": "com.amazonaws.sagemaker#DriftCheckBaselines", + "traits": { + "smithy.api#documentation": "Represents the drift check baselines that can be used when the model monitor is set using the model package.
" + } } }, "traits": { @@ -25954,6 +27592,30 @@ "traits": { "smithy.api#documentation": "The environment variables to set in the Docker container. Each key and value in the\n Environment
string to string map can have length of up to 1024. We\n support up to 16 entries in the map.
A structure with Model Input details.
" + } + }, + "Framework": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The machine learning framework of the model package container image.
" + } + }, + "FrameworkVersion": { + "target": "com.amazonaws.sagemaker#FrameworkVersion", + "traits": { + "smithy.api#documentation": "The framework version of the Model Package Container Image.
" + } + }, + "NearestModelName": { + "target": "com.amazonaws.sagemaker#String", + "traits": { + "smithy.api#documentation": "The name of a pre-trained machine learning benchmarked by \n Amazon SageMaker Inference Recommender model that matches your model. \n You can find a list of benchmarked models by calling ListModelMetadata
.
The endpoint variant status which describes the current deployment stage status or operational status.
" } + }, + "CurrentServerlessConfig": { + "target": "com.amazonaws.sagemaker#ProductionVariantServerlessConfig", + "traits": { + "smithy.api#documentation": "The serverless configuration for the endpoint.
\nServerless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
\nThe serverless configuration requested for this deployment, as specified in the endpoint configuration for the endpoint.
\nServerless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
\nSpecifies how many concurrent users to start with.
" + } + }, + "SpawnRate": { + "target": "com.amazonaws.sagemaker#SpawnRate", + "traits": { + "smithy.api#documentation": "Specified how many new users to spawn in a minute.
" + } + }, + "DurationInSeconds": { + "target": "com.amazonaws.sagemaker#TrafficDurationInSeconds", + "traits": { + "smithy.api#documentation": "Specifies how long traffic phase should be.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the traffic pattern.
" + } + }, + "com.amazonaws.sagemaker#Phases": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#Phase" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, "com.amazonaws.sagemaker#Pipeline": { "type": "structure", "members": { @@ -29123,6 +30834,18 @@ "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda function that was run by this step execution and a list of\n output parameters.
" } + }, + "QualityCheck": { + "target": "com.amazonaws.sagemaker#QualityCheckStepMetadata", + "traits": { + "smithy.api#documentation": "The configurations and outcomes of the check step execution. This includes:
\nThe type of the check conducted,
\nThe Amazon S3 URIs of baseline constraints and statistics files to be used for the drift check.
\nThe Amazon S3 URIs of newly calculated baseline constraints and statistics.
\nThe model package group name provided.
\nThe Amazon S3 URI of the violation report if violations detected.
\nThe Amazon Resource Name (ARN) of check processing job initiated by the step execution.
\nThe boolean flags indicating if the drift check is skipped.
\nIf step property BaselineUsedForDriftCheck
is set the same as \n CalculatedBaseline
.
Container for the metadata for a Clarify check step. The configurations \n and outcomes of the check step execution. This includes:
\nThe type of the check conducted,
\nThe Amazon S3 URIs of baseline constraints and statistics files to be used for the drift check.
\nThe Amazon S3 URIs of newly calculated baseline constraints and statistics.
\nThe model package group name provided.
\nThe Amazon S3 URI of the violation report if violations detected.
\nThe Amazon Resource Name (ARN) of check processing job initiated by the step execution.
\nThe boolean flags indicating if the drift check is skipped.
\nIf step property BaselineUsedForDriftCheck
is set the same as \n CalculatedBaseline
.
Number of instances to launch initially.
", - "smithy.api#required": {} + "smithy.api#documentation": "Number of instances to launch initially.
" } }, "InstanceType": { "target": "com.amazonaws.sagemaker#ProductionVariantInstanceType", "traits": { - "smithy.api#documentation": "The ML compute instance type.
", - "smithy.api#required": {} + "smithy.api#documentation": "The ML compute instance type.
" } }, "InitialVariantWeight": { @@ -30257,6 +31978,12 @@ "traits": { "smithy.api#documentation": "Specifies configuration for a core dump from the model container when the process\n crashes.
" } + }, + "ServerlessConfig": { + "target": "com.amazonaws.sagemaker#ProductionVariantServerlessConfig", + "traits": { + "smithy.api#documentation": "The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
\nServerless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
\nThe memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB.
", + "smithy.api#required": {} + } + }, + "MaxConcurrency": { + "target": "com.amazonaws.sagemaker#ServerlessMaxConcurrency", + "traits": { + "smithy.api#documentation": "The maximum number of concurrent invocations your serverless endpoint can process.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
\nSpecifies the serverless configuration for an endpoint variant.
" + } + }, "com.amazonaws.sagemaker#ProductionVariantStatus": { "type": "structure", "members": { @@ -30682,6 +32431,18 @@ "traits": { "smithy.api#documentation": "The endpoint variant status which describes the current deployment stage status or operational status.
" } + }, + "CurrentServerlessConfig": { + "target": "com.amazonaws.sagemaker#ProductionVariantServerlessConfig", + "traits": { + "smithy.api#documentation": "The serverless configuration for the endpoint.
\nServerless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
\nThe serverless configuration requested for the endpoint update.
\nServerless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
\nThe type of the Quality check step.
" + } + }, + "BaselineUsedForDriftCheckStatistics": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of the baseline statistics file used for the drift check.
" + } + }, + "BaselineUsedForDriftCheckConstraints": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of the baseline constraints file used for the drift check.
" + } + }, + "CalculatedBaselineStatistics": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of the newly calculated baseline statistics file.
" + } + }, + "CalculatedBaselineConstraints": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of the newly calculated baseline constraints file.
" + } + }, + "ModelPackageGroupName": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "The model package group name.
" + } + }, + "ViolationReport": { + "target": "com.amazonaws.sagemaker#String1024", + "traits": { + "smithy.api#documentation": "The Amazon S3 URI of violation report if violations are detected.
" + } + }, + "CheckJobArn": { + "target": "com.amazonaws.sagemaker#String256", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Quality check processing job that was run by this step execution.
" + } + }, + "SkipCheck": { + "target": "com.amazonaws.sagemaker#Boolean", + "traits": { + "smithy.api#documentation": "This flag indicates if the drift check against the previous baseline will be skipped or not. \n If it is set to False
, the previous baseline of the configured check type must be available.
This flag indicates if a newly calculated baseline can be accessed through step properties \n BaselineUsedForDriftCheckConstraints
and BaselineUsedForDriftCheckStatistics
. \n If it is set to False
, the previous baseline of the configured check type must also be available. \n These can be accessed through the BaselineUsedForDriftCheckConstraints
and \n BaselineUsedForDriftCheckStatistics
properties.
Container for the metadata for a Quality check step. For more information, see \n the topic on QualityCheck step in the Amazon SageMaker Developer Guide.\n
" + } + }, + "com.amazonaws.sagemaker#QueryFilters": { + "type": "structure", + "members": { + "Types": { + "target": "com.amazonaws.sagemaker#QueryTypes", + "traits": { + "smithy.api#documentation": "Filter the lineage entities connected to the StartArn
by type. For example: DataSet
, \n Model
, Endpoint
, or ModelDeployment
.
Filter the lineage entities connected to the StartArn
(s) by the type of the lineage entity.
Filter the lineage entities connected to the StartArn
(s) by created date.
Filter the lineage entities connected to the StartArn
(s) after the create date.
Filter the lineage entities connected to the StartArn
(s) before the last modified date.
Filter the lineage entities connected to the StartArn
(s) after the last modified date.
Filter the lineage entities connected to the StartArn
(s) by a set if property key value pairs. \n If multiple pairs are provided, an entity will be included in the results if it matches any of the provided pairs.
A set of filters to narrow the set of lineage entities connected to the StartArn
(s) returned by the \n QueryLineage
API action.
Use this action to inspect your lineage and discover relationships between entities. \n For more information, see \n Querying Lineage Entities in the Amazon SageMaker Developer Guide.
", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.sagemaker#QueryLineageMaxDepth": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "max": 10 + } + } + }, + "com.amazonaws.sagemaker#QueryLineageMaxResults": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "max": 50 + } + } + }, + "com.amazonaws.sagemaker#QueryLineageRequest": { + "type": "structure", + "members": { + "StartArns": { + "target": "com.amazonaws.sagemaker#QueryLineageStartArns", + "traits": { + "smithy.api#documentation": "A list of resource Amazon Resource Name (ARN) that represent the starting point for your lineage query.
", + "smithy.api#required": {} + } + }, + "Direction": { + "target": "com.amazonaws.sagemaker#Direction", + "traits": { + "smithy.api#documentation": "Associations between lineage entities are directed. This parameter determines the direction from the \n StartArn(s) the query will look.
" + } + }, + "IncludeEdges": { + "target": "com.amazonaws.sagemaker#Boolean", + "traits": { + "smithy.api#documentation": " Setting this value to True
will retrieve not only the entities of interest but also the \n Associations and \n lineage entities on the path. Set to False
to only return lineage entities that match your query.
A set of filtering parameters that allow you to specify which entities should be returned.
\nProperties - Key-value pairs to match on the lineage entities' properties.
\nLineageTypes - A set of lineage entity types to match on. For example: TrialComponent
, \n Artifact
, or Context
.
CreatedBefore - Filter entities created before this date.
\nModifiedBefore - Filter entities modified before this date.
\nModifiedAfter - Filter entities modified after this date.
\nThe maximum depth in lineage relationships from the StartArns
that will be traversed. Depth is a measure of the number \n of Associations
from the StartArn
entity to the matched results.
Limits the number of vertices in the results. Use the NextToken
in a response to to retrieve the next page of results.
Limits the number of vertices in the request. Use the NextToken
in a response to to retrieve the next page of results.
A list of vertices connected to the start entity(ies) in the lineage graph.
" + } + }, + "Edges": { + "target": "com.amazonaws.sagemaker#Edges", + "traits": { + "smithy.api#documentation": "A list of edges that connect vertices in the response.
" + } + }, + "NextToken": { + "target": "com.amazonaws.sagemaker#String8192", + "traits": { + "smithy.api#documentation": "Limits the number of vertices in the response. Use the NextToken
in a response to to retrieve the next page of results.
The Amazon Resource Name (ARN) of a versioned model package.
", + "smithy.api#required": {} + } + }, + "JobDurationInSeconds": { + "target": "com.amazonaws.sagemaker#JobDurationInSeconds", + "traits": { + "smithy.api#documentation": "Specifies the maximum duration of the job, in seconds.>
" + } + }, + "TrafficPattern": { + "target": "com.amazonaws.sagemaker#TrafficPattern", + "traits": { + "smithy.api#documentation": "Specifies the traffic pattern of the job.
" + } + }, + "ResourceLimit": { + "target": "com.amazonaws.sagemaker#RecommendationJobResourceLimit", + "traits": { + "smithy.api#documentation": "Defines the resource limit of the job.
" + } + }, + "EndpointConfigurations": { + "target": "com.amazonaws.sagemaker#EndpointInputConfigurations", + "traits": { + "smithy.api#documentation": "Specifies the endpoint configuration to use for a job.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The input configuration of the recommendation job.
" + } + }, + "com.amazonaws.sagemaker#RecommendationJobName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}$" + } + }, + "com.amazonaws.sagemaker#RecommendationJobResourceLimit": { + "type": "structure", + "members": { + "MaxNumberOfTests": { + "target": "com.amazonaws.sagemaker#MaxNumberOfTests", + "traits": { + "smithy.api#documentation": "Defines the maximum number of load tests.
" + } + }, + "MaxParallelOfTests": { + "target": "com.amazonaws.sagemaker#MaxParallelOfTests", + "traits": { + "smithy.api#documentation": "Defines the maximum number of parallel load tests.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies the maximum number of jobs that can run in parallel \n and the maximum number of jobs that can run.
" + } + }, + "com.amazonaws.sagemaker#RecommendationJobStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PENDING", + "name": "PENDING" + }, + { + "value": "IN_PROGRESS", + "name": "IN_PROGRESS" + }, + { + "value": "COMPLETED", + "name": "COMPLETED" + }, + { + "value": "FAILED", + "name": "FAILED" + }, + { + "value": "STOPPING", + "name": "STOPPING" + }, + { + "value": "STOPPED", + "name": "STOPPED" + } + ] + } + }, + "com.amazonaws.sagemaker#RecommendationJobStoppingConditions": { + "type": "structure", + "members": { + "MaxInvocations": { + "target": "com.amazonaws.sagemaker#Integer", + "traits": { + "smithy.api#documentation": "The maximum number of requests per minute expected for the endpoint.
" + } + }, + "ModelLatencyThresholds": { + "target": "com.amazonaws.sagemaker#ModelLatencyThresholds", + "traits": { + "smithy.api#documentation": "The interval of time taken by a model to respond as viewed from SageMaker. \n The interval includes the local communication time taken to send the request \n and to fetch the response from the container of a model and the time taken to \n complete the inference in the container.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies conditions for stopping a job. When a job reaches a \n stopping condition limit, SageMaker ends the job.
" + } + }, + "com.amazonaws.sagemaker#RecommendationJobType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Default", + "name": "DEFAULT" + }, + { + "value": "Advanced", + "name": "ADVANCED" + } + ] + } + }, + "com.amazonaws.sagemaker#RecommendationMetrics": { + "type": "structure", + "members": { + "CostPerHour": { + "target": "com.amazonaws.sagemaker#Float", + "traits": { + "smithy.api#documentation": "Defines the cost per hour for the instance.
", + "smithy.api#required": {} + } + }, + "CostPerInference": { + "target": "com.amazonaws.sagemaker#Float", + "traits": { + "smithy.api#documentation": "Defines the cost per inference for the instance .
", + "smithy.api#required": {} + } + }, + "MaxInvocations": { + "target": "com.amazonaws.sagemaker#Integer", + "traits": { + "smithy.api#documentation": "The expected maximum number of requests per minute for the instance.
", + "smithy.api#required": {} + } + }, + "ModelLatency": { + "target": "com.amazonaws.sagemaker#Integer", + "traits": { + "smithy.api#documentation": "The expected model latency at maximum invocation per minute for the instance.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The metrics of recommendations.
" + } + }, "com.amazonaws.sagemaker#RecordWrapper": { "type": "string", "traits": { @@ -31905,6 +34136,16 @@ "smithy.api#error": "client" } }, + "com.amazonaws.sagemaker#ResourcePolicyString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 20480 + }, + "smithy.api#pattern": "(?:[ \\r\\n\\t].*)*$" + } + }, "com.amazonaws.sagemaker#ResourcePropertyName": { "type": "string", "traits": { @@ -32398,6 +34639,9 @@ { "target": "com.amazonaws.sagemaker#CreateImageVersion" }, + { + "target": "com.amazonaws.sagemaker#CreateInferenceRecommendationsJob" + }, { "target": "com.amazonaws.sagemaker#CreateLabelingJob" }, @@ -32653,9 +34897,15 @@ { "target": "com.amazonaws.sagemaker#DescribeImageVersion" }, + { + "target": "com.amazonaws.sagemaker#DescribeInferenceRecommendationsJob" + }, { "target": "com.amazonaws.sagemaker#DescribeLabelingJob" }, + { + "target": "com.amazonaws.sagemaker#DescribeLineageGroup" + }, { "target": "com.amazonaws.sagemaker#DescribeModel" }, @@ -32737,6 +34987,9 @@ { "target": "com.amazonaws.sagemaker#GetDeviceFleetReport" }, + { + "target": "com.amazonaws.sagemaker#GetLineageGroupPolicy" + }, { "target": "com.amazonaws.sagemaker#GetModelPackageGroupPolicy" }, @@ -32821,18 +35074,27 @@ { "target": "com.amazonaws.sagemaker#ListImageVersions" }, + { + "target": "com.amazonaws.sagemaker#ListInferenceRecommendationsJobs" + }, { "target": "com.amazonaws.sagemaker#ListLabelingJobs" }, { "target": "com.amazonaws.sagemaker#ListLabelingJobsForWorkteam" }, + { + "target": "com.amazonaws.sagemaker#ListLineageGroups" + }, { "target": "com.amazonaws.sagemaker#ListModelBiasJobDefinitions" }, { "target": "com.amazonaws.sagemaker#ListModelExplainabilityJobDefinitions" }, + { + "target": "com.amazonaws.sagemaker#ListModelMetadata" + }, { "target": "com.amazonaws.sagemaker#ListModelPackageGroups" }, @@ -32911,6 +35173,9 @@ { "target": "com.amazonaws.sagemaker#PutModelPackageGroupPolicy" }, + { + "target": "com.amazonaws.sagemaker#QueryLineage" + }, { "target": "com.amazonaws.sagemaker#RegisterDevices" }, @@ -32950,6 +35215,9 @@ { "target": "com.amazonaws.sagemaker#StopHyperParameterTuningJob" }, + { + "target": "com.amazonaws.sagemaker#StopInferenceRecommendationsJob" + }, { "target": "com.amazonaws.sagemaker#StopLabelingJob" }, @@ -33576,6 +35844,26 @@ } } }, + "com.amazonaws.sagemaker#ServerlessMaxConcurrency": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.sagemaker#ServerlessMemorySizeInMB": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1024, + "max": 6144 + } + } + }, "com.amazonaws.sagemaker#ServiceCatalogEntityId": { "type": "string", "traits": { @@ -33828,6 +36116,21 @@ ] } }, + "com.amazonaws.sagemaker#SortLineageGroupsBy": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Name", + "name": "NAME" + }, + { + "value": "CreationTime", + "name": "CREATION_TIME" + } + ] + } + }, "com.amazonaws.sagemaker#SortOrder": { "type": "string", "traits": { @@ -33985,6 +36288,15 @@ "smithy.api#pattern": ".*" } }, + "com.amazonaws.sagemaker#SpawnRate": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0 + } + } + }, "com.amazonaws.sagemaker#SplitType": { "type": "string", "traits": { @@ -34282,6 +36594,32 @@ } } }, + "com.amazonaws.sagemaker#StopInferenceRecommendationsJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.sagemaker#StopInferenceRecommendationsJobRequest" + }, + "errors": [ + { + "target": "com.amazonaws.sagemaker#ResourceNotFound" + } + ], + "traits": { + "smithy.api#documentation": "Stops an Inference Recommender job.
" + } + }, + "com.amazonaws.sagemaker#StopInferenceRecommendationsJobRequest": { + "type": "structure", + "members": { + "JobName": { + "target": "com.amazonaws.sagemaker#RecommendationJobName", + "traits": { + "smithy.api#documentation": "The name of the job you want to stop.
", + "smithy.api#required": {} + } + } + } + }, "com.amazonaws.sagemaker#StopLabelingJob": { "type": "operation", "input": { @@ -34513,6 +36851,15 @@ } } }, + "com.amazonaws.sagemaker#String128": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 128 + } + } + }, "com.amazonaws.sagemaker#String200": { "type": "string", "traits": { @@ -34541,6 +36888,15 @@ } } }, + "com.amazonaws.sagemaker#String40": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 40 + } + } + }, "com.amazonaws.sagemaker#String64": { "type": "string", "traits": { @@ -34550,6 +36906,15 @@ } } }, + "com.amazonaws.sagemaker#String8192": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 8192 + } + } + }, "com.amazonaws.sagemaker#StringParameterValue": { "type": "string", "traits": { @@ -35246,6 +37611,35 @@ "com.amazonaws.sagemaker#Timestamp": { "type": "timestamp" }, + "com.amazonaws.sagemaker#TrafficDurationInSeconds": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.sagemaker#TrafficPattern": { + "type": "structure", + "members": { + "TrafficType": { + "target": "com.amazonaws.sagemaker#TrafficType", + "traits": { + "smithy.api#documentation": "Defines the traffic patterns.
" + } + }, + "Phases": { + "target": "com.amazonaws.sagemaker#Phases", + "traits": { + "smithy.api#documentation": "Defines the phases traffic specification.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the traffic pattern of the load test.
" + } + }, "com.amazonaws.sagemaker#TrafficRoutingConfig": { "type": "structure", "members": { @@ -35299,6 +37693,17 @@ ] } }, + "com.amazonaws.sagemaker#TrafficType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "PHASES", + "name": "PHASES" + } + ] + } + }, "com.amazonaws.sagemaker#TrainingEnvironmentKey": { "type": "string", "traits": { @@ -36852,6 +39257,12 @@ "smithy.api#documentation": "Details of the source of the component.
" } }, + "LineageGroupArn": { + "target": "com.amazonaws.sagemaker#LineageGroupArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lineage group resource.
" + } + }, "Tags": { "target": "com.amazonaws.sagemaker#TagList", "traits": { @@ -38172,6 +40583,12 @@ "traits": { "smithy.api#documentation": "The metadata properties associated with the model package versions to remove.
" } + }, + "AdditionalInferenceSpecificationsToAdd": { + "target": "com.amazonaws.sagemaker#AdditionalInferenceSpecifications", + "traits": { + "smithy.api#documentation": "An array of additional Inference Specification objects to be added to the \n existing array additional Inference Specification. Total number of additional \n Inference Specifications can not exceed 15. Each additional Inference Specification \n specifies artifacts based on this model package that can be used on inference endpoints. \n Generally used with SageMaker Neo to store the compiled artifacts.
" + } } } }, @@ -38962,7 +41379,7 @@ } }, "traits": { - "smithy.api#documentation": "Information about the user who created or modified an experiment, trial, trial\n component, or project.
" + "smithy.api#documentation": "Information about the user who created or modified an experiment, trial, trial\n component, lineage group, or project.
" } }, "com.amazonaws.sagemaker#UserProfileArn": { @@ -39246,6 +41663,38 @@ "smithy.api#pattern": "^(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:[a-z\\-]*\\/)?([a-zA-Z0-9]([a-zA-Z0-9-]){0,62})(?The Amazon Resource Name (ARN) of the lineage entity resource." + } + }, + "Type": { + "target": "com.amazonaws.sagemaker#String40", + "traits": { + "smithy.api#documentation": "The type of the lineage entity resource. For example: DataSet
, Model
, Endpoint
, \n etc...
The type of resource of the lineage entity.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A lineage entity connected to the starting entity(ies).
" + } + }, + "com.amazonaws.sagemaker#Vertices": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#Vertex" + } + }, "com.amazonaws.sagemaker#VolumeSizeInGB": { "type": "integer", "traits": { diff --git a/codegen/sdk-codegen/aws-models/sagemakerruntime.2017-05-13.json b/codegen/sdk-codegen/aws-models/sagemakerruntime.2017-05-13.json index 37c333aeafa..336ace505cc 100644 --- a/codegen/sdk-codegen/aws-models/sagemakerruntime.2017-05-13.json +++ b/codegen/sdk-codegen/aws-models/sagemakerruntime.2017-05-13.json @@ -31,15 +31,6 @@ "shapes": { "com.amazonaws.sagemakerruntime#AmazonSageMakerRuntime": { "type": "service", - "version": "2017-05-13", - "operations": [ - { - "target": "com.amazonaws.sagemakerruntime#InvokeEndpoint" - }, - { - "target": "com.amazonaws.sagemakerruntime#InvokeEndpointAsync" - } - ], "traits": { "aws.api#service": { "sdkId": "SageMaker Runtime", @@ -54,7 +45,16 @@ "aws.protocols#restJson1": {}, "smithy.api#documentation": "The Amazon SageMaker runtime API.
", "smithy.api#title": "Amazon SageMaker Runtime" - } + }, + "version": "2017-05-13", + "operations": [ + { + "target": "com.amazonaws.sagemakerruntime#InvokeEndpoint" + }, + { + "target": "com.amazonaws.sagemakerruntime#InvokeEndpointAsync" + } + ] }, "com.amazonaws.sagemakerruntime#BodyBlob": { "type": "blob", @@ -117,6 +117,19 @@ "smithy.api#pattern": "^(https|s3)://([^/]+)/?(.*)$" } }, + "com.amazonaws.sagemakerruntime#InternalDependencyException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.sagemakerruntime#Message" + } + }, + "traits": { + "smithy.api#documentation": "Your request caused an exception with an internal dependency. Contact customer support.
", + "smithy.api#error": "server", + "smithy.api#httpError": 530 + } + }, "com.amazonaws.sagemakerruntime#InternalFailure": { "type": "structure", "members": { @@ -139,12 +152,18 @@ "target": "com.amazonaws.sagemakerruntime#InvokeEndpointOutput" }, "errors": [ + { + "target": "com.amazonaws.sagemakerruntime#InternalDependencyException" + }, { "target": "com.amazonaws.sagemakerruntime#InternalFailure" }, { "target": "com.amazonaws.sagemakerruntime#ModelError" }, + { + "target": "com.amazonaws.sagemakerruntime#ModelNotReadyException" + }, { "target": "com.amazonaws.sagemakerruntime#ServiceUnavailable" }, @@ -153,7 +172,7 @@ } ], "traits": { - "smithy.api#documentation": "After you deploy a model into production using Amazon SageMaker hosting services, your\n client applications use this API to get inferences from the model hosted at the\n specified endpoint.
\nFor an overview of Amazon SageMaker, see How It Works.
\nAmazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add\n additional headers. You should not rely on the behavior of headers outside those\n enumerated in the request syntax.
\nCalls to InvokeEndpoint
are authenticated by using AWS Signature Version\n 4. For information, see Authenticating\n Requests (AWS Signature Version 4) in the Amazon S3 API\n Reference.
A customer's model containers must respond to requests within 60 seconds. The model\n itself can have a maximum processing time of 60 seconds before responding to\n invocations. If your model is going to take 50-60 seconds of processing time, the SDK\n socket timeout should be set to be 70 seconds.
\nEndpoints are scoped to an individual account, and are not public. The URL does\n not contain the account ID, but Amazon SageMaker determines the account ID from the\n authentication token that is supplied by the caller.
\nAfter you deploy a model into production using Amazon SageMaker hosting services, your\n client applications use this API to get inferences from the model hosted at the\n specified endpoint.
\nFor an overview of Amazon SageMaker, see How It Works.
\nAmazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add\n additional headers. You should not rely on the behavior of headers outside those\n enumerated in the request syntax.
\nCalls to InvokeEndpoint
are authenticated by using Amazon Web Services Signature Version\n 4. For information, see Authenticating\n Requests (Amazon Web Services Signature Version 4) in the Amazon S3 API\n Reference.
A customer's model containers must respond to requests within 60 seconds. The model\n itself can have a maximum processing time of 60 seconds before responding to\n invocations. If your model is going to take 50-60 seconds of processing time, the SDK\n socket timeout should be set to be 70 seconds.
\nEndpoints are scoped to an individual account, and are not public. The URL does\n not contain the account ID, but Amazon SageMaker determines the account ID from the\n authentication token that is supplied by the caller.
\nAfter you deploy a model into production using Amazon SageMaker hosting services, \n your client applications use this API to get inferences from the model hosted at \n the specified endpoint in an asynchronous manner.
\n \nInference requests sent to this API are enqueued for asynchronous processing. \n The processing of the inference request may or may not complete before the \n you receive a response from this API. The response from this API will \n not contain the result of the inference request but contain information \n about where you can locate it.
\n \nAmazon SageMaker strips all POST
headers except those supported by the API. \n Amazon SageMaker might add additional headers. You should not rely on the behavior \n of headers outside those enumerated in the request syntax.
Calls to InvokeEndpointAsync
are authenticated by using AWS Signature\n Version 4. For information, see Authenticating Requests (AWS Signature Version 4) in the Amazon S3 API\n Reference.
After you deploy a model into production using Amazon SageMaker hosting services, \n your client applications use this API to get inferences from the model hosted at \n the specified endpoint in an asynchronous manner.
\n \nInference requests sent to this API are enqueued for asynchronous processing. \n The processing of the inference request may or may not complete before the \n you receive a response from this API. The response from this API will \n not contain the result of the inference request but contain information \n about where you can locate it.
\n \nAmazon SageMaker strips all POST
headers except those supported by the API. \n Amazon SageMaker might add additional headers. You should not rely on the behavior \n of headers outside those enumerated in the request syntax.
Calls to InvokeEndpointAsync
are authenticated by using Amazon Web Services Signature\n Version 4. For information, see Authenticating Requests (Amazon Web Services Signature Version 4) in the Amazon S3 API\n Reference.
Provides additional information about a request for an inference submitted to \n a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is \n forwarded verbatim. You could use this value, for example, to provide an ID that you \n can use to track a request or to provide other metadata that a service endpoint was \n programmed to process. The value must consist of no more than 1024 \n visible US-ASCII characters as specified in \n Section 3.3.6. \n Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1).
\n \nThe code in your model is responsible for setting or updating any custom attributes \n in the response. If your code does not set this value in the response, an empty \n value is returned. For example, if a custom attribute represents the trace ID, \n your model can prepend the custom attribute with Trace ID
: in your post-processing function.
This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python SDK.
", + "smithy.api#documentation": "Provides additional information about a request for an inference submitted to \n a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is \n forwarded verbatim. You could use this value, for example, to provide an ID that you \n can use to track a request or to provide other metadata that a service endpoint was \n programmed to process. The value must consist of no more than 1024 \n visible US-ASCII characters as specified in \n Section 3.3.6. \n Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1).
\n \nThe code in your model is responsible for setting or updating any custom attributes \n in the response. If your code does not set this value in the response, an empty \n value is returned. For example, if a custom attribute represents the trace ID, \n your model can prepend the custom attribute with Trace ID
: in your post-processing function.
This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK.
", "smithy.api#httpHeader": "X-Amzn-SageMaker-Custom-Attributes" } }, @@ -299,7 +318,7 @@ "CustomAttributes": { "target": "com.amazonaws.sagemakerruntime#CustomAttributesHeader", "traits": { - "smithy.api#documentation": "Provides additional information about a request for an inference submitted to a model\n hosted at an Amazon SageMaker endpoint. The information is an opaque value that is\n forwarded verbatim. You could use this value, for example, to provide an ID that you can\n use to track a request or to provide other metadata that a service endpoint was\n programmed to process. The value must consist of no more than 1024 visible US-ASCII\n characters as specified in Section 3.3.6. Field Value\n Components of the Hypertext Transfer Protocol (HTTP/1.1).
\nThe code in your model is responsible for setting or updating any custom attributes in\n the response. If your code does not set this value in the response, an empty value is\n returned. For example, if a custom attribute represents the trace ID, your model can\n prepend the custom attribute with Trace ID:
in your post-processing\n function.
This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python\n SDK.
", + "smithy.api#documentation": "Provides additional information about a request for an inference submitted to a model\n hosted at an Amazon SageMaker endpoint. The information is an opaque value that is\n forwarded verbatim. You could use this value, for example, to provide an ID that you can\n use to track a request or to provide other metadata that a service endpoint was\n programmed to process. The value must consist of no more than 1024 visible US-ASCII\n characters as specified in Section 3.3.6. Field Value\n Components of the Hypertext Transfer Protocol (HTTP/1.1).
\nThe code in your model is responsible for setting or updating any custom attributes in\n the response. If your code does not set this value in the response, an empty value is\n returned. For example, if a custom attribute represents the trace ID, your model can\n prepend the custom attribute with Trace ID:
in your post-processing\n function.
This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python\n SDK.
", "smithy.api#httpHeader": "X-Amzn-SageMaker-Custom-Attributes" } }, @@ -361,7 +380,7 @@ "CustomAttributes": { "target": "com.amazonaws.sagemakerruntime#CustomAttributesHeader", "traits": { - "smithy.api#documentation": "Provides additional information in the response about the inference returned by a\n model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is\n forwarded verbatim. You could use this value, for example, to return an ID received in\n the CustomAttributes
header of a request or other metadata that a service\n endpoint was programmed to produce. The value must consist of no more than 1024 visible\n US-ASCII characters as specified in Section 3.3.6. Field Value\n Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer\n wants the custom attribute returned, the model must set the custom attribute to be\n included on the way back.
The code in your model is responsible for setting or updating any custom attributes in\n the response. If your code does not set this value in the response, an empty value is\n returned. For example, if a custom attribute represents the trace ID, your model can\n prepend the custom attribute with Trace ID:
in your post-processing\n function.
This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python\n SDK.
", + "smithy.api#documentation": "Provides additional information in the response about the inference returned by a\n model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is\n forwarded verbatim. You could use this value, for example, to return an ID received in\n the CustomAttributes
header of a request or other metadata that a service\n endpoint was programmed to produce. The value must consist of no more than 1024 visible\n US-ASCII characters as specified in Section 3.3.6. Field Value\n Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer\n wants the custom attribute returned, the model must set the custom attribute to be\n included on the way back.
The code in your model is responsible for setting or updating any custom attributes in\n the response. If your code does not set this value in the response, an empty value is\n returned. For example, if a custom attribute represents the trace ID, your model can\n prepend the custom attribute with Trace ID:
in your post-processing\n function.
This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python\n SDK.
", "smithy.api#httpHeader": "X-Amzn-SageMaker-Custom-Attributes" } } @@ -410,6 +429,23 @@ "smithy.api#httpError": 424 } }, + "com.amazonaws.sagemakerruntime#ModelNotReadyException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.sagemakerruntime#Message" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "ModelNotReadyException", + "httpResponseCode": 429 + }, + "smithy.api#documentation": "Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, "com.amazonaws.sagemakerruntime#RequestTTLSecondsHeader": { "type": "integer", "traits": { diff --git a/codegen/sdk-codegen/aws-models/shield.2016-06-02.json b/codegen/sdk-codegen/aws-models/shield.2016-06-02.json index 7baa4bac8bc..7dab9f0c7df 100644 --- a/codegen/sdk-codegen/aws-models/shield.2016-06-02.json +++ b/codegen/sdk-codegen/aws-models/shield.2016-06-02.json @@ -31,6 +31,24 @@ "shapes": { "com.amazonaws.shield#AWSShield_20160616": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Shield", + "arnNamespace": "shield", + "cloudFormationName": "Shield", + "cloudTrailEventSource": "shield.amazonaws.com", + "endpointPrefix": "shield" + }, + "aws.auth#sigv4": { + "name": "shield" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "This is the Shield Advanced API Reference. This guide is for developers who need detailed information about the Shield Advanced API actions, \n data types, and errors. For detailed information about WAF and Shield Advanced features and an overview of how to use the WAF and Shield Advanced APIs, see the \n WAF and Shield Developer Guide.
", + "smithy.api#title": "AWS Shield", + "smithy.api#xmlNamespace": { + "uri": "http://ddp.amazonaws.com/doc/2016-06-02/" + } + }, "version": "2016-06-02", "operations": [ { @@ -84,6 +102,9 @@ { "target": "com.amazonaws.shield#DescribeSubscription" }, + { + "target": "com.amazonaws.shield#DisableApplicationLayerAutomaticResponse" + }, { "target": "com.amazonaws.shield#DisableProactiveEngagement" }, @@ -96,6 +117,9 @@ { "target": "com.amazonaws.shield#DisassociateHealthCheck" }, + { + "target": "com.amazonaws.shield#EnableApplicationLayerAutomaticResponse" + }, { "target": "com.amazonaws.shield#EnableProactiveEngagement" }, @@ -123,6 +147,9 @@ { "target": "com.amazonaws.shield#UntagResource" }, + { + "target": "com.amazonaws.shield#UpdateApplicationLayerAutomaticResponse" + }, { "target": "com.amazonaws.shield#UpdateEmergencyContactSettings" }, @@ -132,25 +159,7 @@ { "target": "com.amazonaws.shield#UpdateSubscription" } - ], - "traits": { - "aws.api#service": { - "sdkId": "Shield", - "arnNamespace": "shield", - "cloudFormationName": "Shield", - "cloudTrailEventSource": "shield.amazonaws.com", - "endpointPrefix": "shield" - }, - "aws.auth#sigv4": { - "name": "shield" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "This is the Shield Advanced API Reference. This guide is for developers who need detailed information about the Shield Advanced API actions, \n data types, and errors. For detailed information about WAF and Shield Advanced features and an overview of how to use the WAF and Shield Advanced APIs, see the \n WAF and Shield Developer Guide.
", - "smithy.api#title": "AWS Shield", - "smithy.api#xmlNamespace": { - "uri": "http://ddp.amazonaws.com/doc/2016-06-02/" - } - } + ] }, "com.amazonaws.shield#AccessDeniedException": { "type": "structure", @@ -176,6 +185,42 @@ "smithy.api#error": "client" } }, + "com.amazonaws.shield#ApplicationLayerAutomaticResponseConfiguration": { + "type": "structure", + "members": { + "Status": { + "target": "com.amazonaws.shield#ApplicationLayerAutomaticResponseStatus", + "traits": { + "smithy.api#documentation": "Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
", + "smithy.api#required": {} + } + }, + "Action": { + "target": "com.amazonaws.shield#ResponseAction", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The automatic application layer DDoS mitigation settings for a Protection. \n This configuration determines whether Shield Advanced automatically \n manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.
" + } + }, + "com.amazonaws.shield#ApplicationLayerAutomaticResponseStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ENABLED", + "name": "ENABLED" + }, + { + "value": "DISABLED", + "name": "DISABLED" + } + ] + } + }, "com.amazonaws.shield#AssociateDRTLogBucket": { "type": "operation", "input": { @@ -211,7 +256,7 @@ } ], "traits": { - "smithy.api#documentation": "Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.
\n\tTo use the services of the SRT and make an AssociateDRTLogBucket
request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.
\nTo use the services of the SRT and make an AssociateDRTLogBucket
request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.
\nYou can associate only one RoleArn
with your subscription. If you submit an AssociateDRTRole
request for an account that already has an associated role, the new RoleArn
will replace the existing RoleArn
.
Prior to making the AssociateDRTRole
request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com
. For more information, see IAM JSON Policy Elements: Principal.
The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.
\nYou must have the iam:PassRole
permission to make an AssociateDRTRole
request. For more information, see Granting a User Permissions to Pass a Role to an Amazon Web Services Service.
To use the services of the SRT and make an AssociateDRTRole
request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.
\nYou can associate only one RoleArn
with your subscription. If you submit an AssociateDRTRole
request for an account that already has an associated role, the new RoleArn
will replace the existing RoleArn
.
Prior to making the AssociateDRTRole
request, you must attach the AWSShieldDRTAccessPolicy
managed policy to the role that you'll specify in the request. You can access this policy in the IAM console at AWSShieldDRTAccessPolicy. For more information see Adding and removing IAM identity permissions. The role must also trust the service principal \ndrt.shield.amazonaws.com
. For more information, see IAM JSON policy elements: Principal.
The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.
\nYou must have the iam:PassRole
permission to make an AssociateDRTRole
request. For more information, see Granting a user permissions to pass a role to an Amazon Web Services service.
To use the services of the SRT and make an AssociateDRTRole
request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and mitigation.
\nYou define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.
" + "smithy.api#documentation": "Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response.
\nYou define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.
" } }, "com.amazonaws.shield#AssociateHealthCheckRequest": { @@ -399,13 +447,13 @@ "StartTime": { "target": "com.amazonaws.shield#AttackTimestamp", "traits": { - "smithy.api#documentation": "The time the attack started, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The time the attack started, in Unix time in seconds.
" } }, "EndTime": { "target": "com.amazonaws.shield#AttackTimestamp", "traits": { - "smithy.api#documentation": "The time the attack ended, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The time the attack ended, in Unix time in seconds.
" } }, "AttackCounters": { @@ -417,7 +465,7 @@ "AttackProperties": { "target": "com.amazonaws.shield#AttackProperties", "traits": { - "smithy.api#documentation": "The array of objects that provide details of the Shield event.
\nFor infrastructure \n layer events (L3 and L4 events) after January 25, 2021, you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.
" + "smithy.api#documentation": "The array of objects that provide details of the Shield event.
\nFor infrastructure \n layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.
" } }, "Mitigations": { @@ -468,7 +516,7 @@ "AttackLayer": { "target": "com.amazonaws.shield#AttackLayer", "traits": { - "smithy.api#documentation": "The type of Shield event that was observed. NETWORK
indicates layer 3 and layer 4 events and APPLICATION
\n indicates layer 7 events.
For infrastructure \n layer events (L3 and L4 events) after January 25, 2021, you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.
" + "smithy.api#documentation": "The type of Shield event that was observed. NETWORK
indicates layer 3 and layer 4 events and APPLICATION
\n indicates layer 7 events.
For infrastructure \n layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. \n For more information, see Shield metrics and alarms \n in the WAF Developer Guide.
" } }, "AttackPropertyIdentifier": { @@ -480,7 +528,7 @@ "TopContributors": { "target": "com.amazonaws.shield#TopContributors", "traits": { - "smithy.api#documentation": "Contributor objects for the top five contributors to a Shield event.
" + "smithy.api#documentation": "Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event.
" } }, "Unit": { @@ -590,13 +638,13 @@ "StartTime": { "target": "com.amazonaws.shield#AttackTimestamp", "traits": { - "smithy.api#documentation": "The start time of the attack, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The start time of the attack, in Unix time in seconds.
" } }, "EndTime": { "target": "com.amazonaws.shield#AttackTimestamp", "traits": { - "smithy.api#documentation": "The end time of the attack, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The end time of the attack, in Unix time in seconds.
" } }, "AttackVectors": { @@ -690,6 +738,13 @@ ] } }, + "com.amazonaws.shield#BlockAction": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
This is only used in the context of the ResponseAction
setting.
JSON specification: \"Block\": {}
\n
The name of the contributor. This is dependent on the AttackPropertyIdentifier
. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier
setting in the AttackProperty
where this contributor is defined. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
A contributor to the attack and their contribution.
" + "smithy.api#documentation": "A contributor to the attack and their contribution.
" + } + }, + "com.amazonaws.shield#CountAction": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
This is only used in the context of the ResponseAction
setting.
JSON specification: \"Count\": {}
\n
Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.
\nYou can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the WAF console. For more information see Getting Started with Shield Advanced and Add Shield Advanced Protection to more Amazon Web Services Resources.
" + "smithy.api#documentation": "Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.
\nYou can add protection to only a single resource with each CreateProtection
request. You can add protection to multiple resources \n at once through the Shield Advanced console at https://console.aws.amazon.com/wafv2/shieldv2#/.\n For more information see \n Getting Started with Shield Advanced \n and Adding Shield Advanced protection to Amazon Web Services resources.
The ARN (Amazon Resource Name) of the resource to be protected.
\nThe ARN should be in one of the following formats:
\nFor an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id\n
\n
For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name\n
\n
For an Amazon CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id\n
\n
For an Global Accelerator accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id\n
\n
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id\n
\n
For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id\n
\n
The ARN (Amazon Resource Name) of the resource to be protected.
\nThe ARN should be in one of the following formats:
\nFor an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id\n
\n
For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name\n
\n
For an Amazon CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id\n
\n
For an Global Accelerator accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id\n
\n
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id\n
\n
For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id\n
\n
The unique identifier (ID) for the attack that to be described.
", + "smithy.api#documentation": "The unique identifier (ID) for the attack.
", "smithy.api#required": {} } } @@ -1306,6 +1368,51 @@ } } }, + "com.amazonaws.shield#DisableApplicationLayerAutomaticResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.shield#DisableApplicationLayerAutomaticResponseRequest" + }, + "output": { + "target": "com.amazonaws.shield#DisableApplicationLayerAutomaticResponseResponse" + }, + "errors": [ + { + "target": "com.amazonaws.shield#InternalErrorException" + }, + { + "target": "com.amazonaws.shield#InvalidOperationException" + }, + { + "target": "com.amazonaws.shield#InvalidParameterException" + }, + { + "target": "com.amazonaws.shield#OptimisticLockException" + }, + { + "target": "com.amazonaws.shield#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Disable the Shield Advanced automatic application layer DDoS mitigation feature for the resource. This \n stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource.
" + } + }, + "com.amazonaws.shield#DisableApplicationLayerAutomaticResponseRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.shield#ResourceArn", + "traits": { + "smithy.api#documentation": "The ARN (Amazon Resource Name) of the resource.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.shield#DisableApplicationLayerAutomaticResponseResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.shield#DisableProactiveEngagement": { "type": "operation", "input": { @@ -1372,7 +1479,7 @@ } ], "traits": { - "smithy.api#documentation": "Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.
\n\tTo make a DisassociateDRTLogBucket
request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the SRT access to your account, you can submit a DisassociateDRTLogBucket
request to remove this access.
Removes the Shield Response Team's (SRT) access to the specified Amazon S3 bucket containing the logs that you shared previously.
" } }, "com.amazonaws.shield#DisassociateDRTLogBucketRequest": { @@ -1414,7 +1521,7 @@ } ], "traits": { - "smithy.api#documentation": "Removes the Shield Response Team's (SRT) access to your Amazon Web Services account.
\n\tTo make a DisassociateDRTRole
request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the SRT access to your account, you can submit a DisassociateDRTRole
request to remove this access.
Removes the Shield Response Team's (SRT) access to your Amazon Web Services account.
" } }, "com.amazonaws.shield#DisassociateDRTRoleRequest": { @@ -1440,6 +1547,9 @@ { "target": "com.amazonaws.shield#InvalidParameterException" }, + { + "target": "com.amazonaws.shield#InvalidResourceException" + }, { "target": "com.amazonaws.shield#OptimisticLockException" }, @@ -1448,7 +1558,7 @@ } ], "traits": { - "smithy.api#documentation": "Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and mitigation.
\nYou define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.
" + "smithy.api#documentation": "Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your Amazon Web Services resource to improve responsiveness and accuracy in attack detection and response.
\nYou define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the WAF Developer Guide.
" } }, "com.amazonaws.shield#DisassociateHealthCheckRequest": { @@ -1534,6 +1644,61 @@ } } }, + "com.amazonaws.shield#EnableApplicationLayerAutomaticResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.shield#EnableApplicationLayerAutomaticResponseRequest" + }, + "output": { + "target": "com.amazonaws.shield#EnableApplicationLayerAutomaticResponseResponse" + }, + "errors": [ + { + "target": "com.amazonaws.shield#InternalErrorException" + }, + { + "target": "com.amazonaws.shield#InvalidOperationException" + }, + { + "target": "com.amazonaws.shield#InvalidParameterException" + }, + { + "target": "com.amazonaws.shield#LimitsExceededException" + }, + { + "target": "com.amazonaws.shield#OptimisticLockException" + }, + { + "target": "com.amazonaws.shield#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Enable the Shield Advanced automatic application layer DDoS mitigation for the resource.
\nThis feature is available for Amazon CloudFront distributions only.
\nThis causes Shield Advanced to create, verify, and apply WAF rules for DDoS attacks that it detects for the \n resource. Shield Advanced applies the rules in a Shield rule group inside the web ACL that you've associated \n with the resource. For information about how automatic mitigation works and the requirements for using it, see \n Shield Advanced automatic application layer DDoS mitigation.
\nDon't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use UpdateApplicationLayerAutomaticResponse.
\nTo use this feature, you must associate a web ACL with the protected resource. The web ACL must be created using the latest version of WAF (v2). You can associate the web ACL through the Shield Advanced console \n at https://console.aws.amazon.com/wafv2/shieldv2#/. For more information, \n see Getting Started with Shield Advanced.
\nYou can also do this through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see \n WAF Developer Guide.
" + } + }, + "com.amazonaws.shield#EnableApplicationLayerAutomaticResponseRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.shield#ResourceArn", + "traits": { + "smithy.api#documentation": "The ARN (Amazon Resource Name) of the resource.
", + "smithy.api#required": {} + } + }, + "Action": { + "target": "com.amazonaws.shield#ResponseAction", + "traits": { + "smithy.api#documentation": "Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the \n protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, \n when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.shield#EnableApplicationLayerAutomaticResponseResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.shield#EnableProactiveEngagement": { "type": "operation", "input": { @@ -1634,7 +1799,7 @@ } }, "traits": { - "smithy.api#documentation": "Exception that indicates that a problem occurred with the service infrastructure. You\n can retry the request.
", + "smithy.api#documentation": "Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
", "smithy.api#error": "server" } }, @@ -1658,7 +1823,7 @@ } }, "traits": { - "smithy.api#documentation": "Exception that indicates that the NextToken specified in the request is invalid. Submit the request using the NextToken value that was returned in the response.
", + "smithy.api#documentation": "Exception that indicates that the NextToken
specified in the request is invalid. Submit the request using the NextToken
value that was returned in the prior response.
The ARN (Amazon Resource Name) of the resource that was attacked. If this is left\n blank, all applicable resources for this account will be included.
" + "smithy.api#documentation": "The ARNs (Amazon Resource Names) of the resources that were attacked. If you leave this \n blank, all applicable resources for this account will be included.
" } }, "StartTime": { "target": "com.amazonaws.shield#TimeRange", "traits": { - "smithy.api#documentation": "The start of the time period for the attacks. This is a timestamp
type. The sample request above indicates a number
type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.
The start of the time period for the attacks. This is a timestamp
type. The request syntax listing for this call indicates a number
type,\n but you can provide the time in any valid timestamp format setting.
The end of the time period for the attacks. This is a timestamp
type. The sample request above indicates a number
type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.
The end of the time period for the attacks. This is a timestamp
type. The request syntax listing for this call indicates a number
type,\n but you can provide the time in any valid timestamp format setting.
The ListAttacksRequest.NextMarker
value from a previous call to ListAttacksRequest
. Pass null if this is the first call.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
On your first call to a list operation, leave this setting empty.
" } }, "MaxResults": { "target": "com.amazonaws.shield#MaxResults", "traits": { - "smithy.api#documentation": "The maximum number of AttackSummary objects to return. If you leave this blank, \n Shield Advanced returns the first 20 results.
\nThis is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults
, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects\n than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken
value \n in the response.
The default setting is 20.
" } } } @@ -1830,7 +1995,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "The token returned by a previous call to indicate that there is more data available.\n If not null, more results are available. Pass this value for the NextMarker
\n parameter in a subsequent call to ListAttacks
to retrieve the next set of\n items.
Shield Advanced might return the list of AttackSummary objects in batches smaller than the number specified by MaxResults. If there are more attack summary objects to return, Shield Advanced will always also return a NextToken
.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
The next token value from a previous call to ListProtectionGroups
. Pass null if this is the first call.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
On your first call to a list operation, leave this setting empty.
" } }, "MaxResults": { "target": "com.amazonaws.shield#MaxResults", "traits": { - "smithy.api#documentation": "The maximum number of ProtectionGroup objects to return. If you leave this blank, \n Shield Advanced returns the first 20 results.
\nThis is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults
, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects\n than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken
value \n in the response.
The default setting is 20.
" } } } @@ -1893,7 +2058,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "If you specify a value for MaxResults
and you have more protection groups than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
The ListProtectionsRequest.NextToken
value from a previous call to ListProtections
. Pass null if this is the first call.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
On your first call to a list operation, leave this setting empty.
" } }, "MaxResults": { "target": "com.amazonaws.shield#MaxResults", "traits": { - "smithy.api#documentation": "The maximum number of Protection objects to return. If you leave this blank, \n Shield Advanced returns the first 20 results.
\nThis is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults
, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects\n than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken
value \n in the response.
The default setting is 20.
" } } } @@ -1956,7 +2121,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "If you specify a value for MaxResults
and you have more Protections than the value of MaxResults, Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.
Shield Advanced might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a NextToken
.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
The next token value from a previous call to ListResourcesInProtectionGroup
. Pass null if this is the first call.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
On your first call to a list operation, leave this setting empty.
" } }, "MaxResults": { "target": "com.amazonaws.shield#MaxResults", "traits": { - "smithy.api#documentation": "The maximum number of resource ARN objects to return. If you leave this blank, \n Shield Advanced returns the first 20 results.
\nThis is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults
, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects\n than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken
value \n in the response.
The default setting is 20.
" } } } @@ -2026,7 +2191,7 @@ "NextToken": { "target": "com.amazonaws.shield#Token", "traits": { - "smithy.api#documentation": "If you specify a value for MaxResults
and you have more resources in the protection group than the value of MaxResults, Shield Advanced returns this token that you can use in your next request, to get the next batch of objects.
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, \n Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and \n providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
\n setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
" + "smithy.api#documentation": "The unique identifier (ID) for the Route 53 health check that's associated with the protection.
" } }, "ProtectionArn": { @@ -2260,6 +2425,12 @@ "traits": { "smithy.api#documentation": "The ARN (Amazon Resource Name) of the protection.
" } + }, + "ApplicationLayerAutomaticResponseConfiguration": { + "target": "com.amazonaws.shield#ApplicationLayerAutomaticResponseConfiguration", + "traits": { + "smithy.api#documentation": "The automatic application layer DDoS mitigation settings for the protection. \n This configuration determines whether Shield Advanced automatically \n manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.
" + } } }, "traits": { @@ -2436,7 +2607,7 @@ "type": "string", "traits": { "smithy.api#length": { - "min": 1, + "min": 36, "max": 36 }, "smithy.api#pattern": "^[a-zA-Z0-9\\\\-]*$" @@ -2531,6 +2702,26 @@ "smithy.api#error": "client" } }, + "com.amazonaws.shield#ResponseAction": { + "type": "structure", + "members": { + "Block": { + "target": "com.amazonaws.shield#BlockAction", + "traits": { + "smithy.api#documentation": "Specifies that Shield Advanced should configure its WAF rules with the WAF Block
action.
You must specify exactly one action, either Block
or Count
.
Specifies that Shield Advanced should configure its WAF rules with the WAF Count
action.
You must specify exactly one action, either Block
or Count
.
Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the \n protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, \n when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
" + } + }, "com.amazonaws.shield#RoleArn": { "type": "string", "traits": { @@ -2603,7 +2794,7 @@ "StartTime": { "target": "com.amazonaws.shield#Timestamp", "traits": { - "smithy.api#documentation": "The start time of the subscription, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The start time of the subscription, in Unix time in seconds.
" } }, "EndTime": { @@ -2883,15 +3074,15 @@ "type": "structure", "members": { "FromInclusive": { - "target": "com.amazonaws.shield#AttackTimestamp", + "target": "com.amazonaws.shield#Timestamp", "traits": { - "smithy.api#documentation": "The start time, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The start time, in Unix time in seconds.
" } }, "ToExclusive": { - "target": "com.amazonaws.shield#AttackTimestamp", + "target": "com.amazonaws.shield#Timestamp", "traits": { - "smithy.api#documentation": "The end time, in Unix time in seconds. For more information see timestamp.
" + "smithy.api#documentation": "The end time, in Unix time in seconds.
" } } }, @@ -2990,6 +3181,58 @@ "type": "structure", "members": {} }, + "com.amazonaws.shield#UpdateApplicationLayerAutomaticResponse": { + "type": "operation", + "input": { + "target": "com.amazonaws.shield#UpdateApplicationLayerAutomaticResponseRequest" + }, + "output": { + "target": "com.amazonaws.shield#UpdateApplicationLayerAutomaticResponseResponse" + }, + "errors": [ + { + "target": "com.amazonaws.shield#InternalErrorException" + }, + { + "target": "com.amazonaws.shield#InvalidOperationException" + }, + { + "target": "com.amazonaws.shield#InvalidParameterException" + }, + { + "target": "com.amazonaws.shield#OptimisticLockException" + }, + { + "target": "com.amazonaws.shield#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Updates an existing Shield Advanced automatic application layer DDoS mitigation configuration for the specified resource.
" + } + }, + "com.amazonaws.shield#UpdateApplicationLayerAutomaticResponseRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.shield#ResourceArn", + "traits": { + "smithy.api#documentation": "The ARN (Amazon Resource Name) of the resource.
", + "smithy.api#required": {} + } + }, + "Action": { + "target": "com.amazonaws.shield#ResponseAction", + "traits": { + "smithy.api#documentation": "Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the \n protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, \n when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.shield#UpdateApplicationLayerAutomaticResponseResponse": { + "type": "structure", + "members": {} + }, "com.amazonaws.shield#UpdateEmergencyContactSettings": { "type": "operation", "input": { diff --git a/codegen/sdk-codegen/aws-models/snowball.2016-06-30.json b/codegen/sdk-codegen/aws-models/snowball.2016-06-30.json index 652e54f1d5f..1e6bb0902ca 100644 --- a/codegen/sdk-codegen/aws-models/snowball.2016-06-30.json +++ b/codegen/sdk-codegen/aws-models/snowball.2016-06-30.json @@ -31,6 +31,21 @@ "shapes": { "com.amazonaws.snowball#AWSIESnowballJobManagementService": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Snowball", + "arnNamespace": "snowball", + "cloudFormationName": "Snowball", + "cloudTrailEventSource": "snowball.amazonaws.com", + "endpointPrefix": "snowball" + }, + "aws.auth#sigv4": { + "name": "snowball" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "The Amazon Web Services Snow Family provides a petabyte-scale data transport solution that uses\n secure devices to transfer large amounts of data between your on-premises data centers and\n Amazon Simple Storage Service (Amazon S3). The Snow Family commands described here provide access to the same\n functionality that is available in the Amazon Web Services Snow Family Management Console, which enables you to create\n and manage jobs for a Snow Family device. To transfer data locally with a Snow Family device,\n you'll need to use the Snowball Edge client or the Amazon S3 API Interface for Snowball or OpsHub for Snow Family. For more information, see the User Guide.
", + "smithy.api#title": "Amazon Import/Export Snowball" + }, "version": "2016-06-30", "operations": [ { @@ -108,22 +123,7 @@ { "target": "com.amazonaws.snowball#UpdateLongTermPricing" } - ], - "traits": { - "aws.api#service": { - "sdkId": "Snowball", - "arnNamespace": "snowball", - "cloudFormationName": "Snowball", - "cloudTrailEventSource": "snowball.amazonaws.com", - "endpointPrefix": "snowball" - }, - "aws.auth#sigv4": { - "name": "snowball" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "AWS Snow Family is a petabyte-scale data transport solution that uses secure devices to\n transfer large amounts of data between your on-premises data centers and Amazon Simple Storage\n Service (Amazon S3). The Snow commands described here provide access to the same\n functionality that is available in the AWS Snow Family Management Console, which enables you to\n create and manage jobs for a Snow device. To transfer data locally with a Snow device, you'll\n need to use the Snowball Edge client or the Amazon S3 API Interface for Snowball or AWS OpsHub for Snow Family. For more\n information, see the User Guide.
", - "smithy.api#title": "Amazon Import/Export Snowball" - } + ] }, "com.amazonaws.snowball#Address": { "type": "structure", @@ -214,7 +214,7 @@ } }, "traits": { - "smithy.api#documentation": "The address that you want the Snow device(s) associated with a specific job to\n be shipped to. Addresses are validated at the time of creation. The address you provide must\n be located within the serviceable area of your region. Although no individual elements of the\n Address
are required, if the address is invalid or unsupported, then an\n exception is thrown.
The address that you want the Snow device(s) associated with a specific job to be\n shipped to. Addresses are validated at the time of creation. The address you provide must be\n located within the serviceable area of your region. Although no individual elements of the\n Address
are required, if the address is invalid or unsupported, then an\n exception is thrown.
The KmsKeyARN
Amazon Resource Name (ARN) associated with this cluster.\n This ARN was created using the CreateKey API action in AWS Key\n Management Service (AWS KMS).
The KmsKeyARN
Amazon Resource Name (ARN) associated with this cluster.\n This ARN was created using the CreateKey API action in Key Management Service (KMS.
The role ARN associated with this cluster. This ARN was created using the CreateRole\n API action in AWS Identity and Access Management (IAM).
" + "smithy.api#documentation": "The role ARN associated with this cluster. This ARN was created using the CreateRole\n API action in Identity and Access Management (IAM).
" } }, "ClusterState": { @@ -426,7 +426,7 @@ "SnowballType": { "target": "com.amazonaws.snowball#SnowballType", "traits": { - "smithy.api#documentation": "The type of AWS Snow device to use for this cluster. \n
\nFor cluster jobs, AWS Snow Family currently supports only the EDGE
device type.
The type of Snowcone device to use for this cluster.\n
\nFor cluster jobs, Amazon Web Services Snow Family currently supports only the\n EDGE
device type.
The shipping speed for each node in this cluster. This speed doesn't dictate how soon\n you'll get each device, rather it represents how quickly each device moves to\n its destination while in transit. Regional shipping speeds are as follows:
\n\nIn Australia, you have access to express shipping. Typically, devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically,\n Snow devices shipped express are delivered in about a day. In addition, most countries\n in the EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the US, you have access to one-day shipping and two-day shipping.
\nThe shipping speed for each node in this cluster. This speed doesn't dictate how soon\n you'll get each device, rather it represents how quickly each device moves to its destination\n while in transit. Regional shipping speeds are as follows:
\n\nIn Australia, you have access to express shipping. Typically, devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically, Snow\n devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the US, you have access to one-day shipping and two-day shipping.
\nThe tax documents required in your AWS Region.
" + "smithy.api#documentation": "The tax documents required in your Amazon Web Services Region.
" } }, "OnDeviceServiceConfiguration": { "target": "com.amazonaws.snowball#OnDeviceServiceConfiguration", "traits": { - "smithy.api#documentation": "Represents metadata and configuration settings for services on an AWS Snow Family device.
" + "smithy.api#documentation": "Represents metadata and configuration settings for services on an Amazon Web Services Snow Family\n device.
" } } }, @@ -546,7 +546,7 @@ } }, "traits": { - "smithy.api#documentation": "You get this exception when you call CreateReturnShippingLabel
more than once when other requests are not completed.
You get this exception when you call CreateReturnShippingLabel
more than once\n when other requests are not completed.
The automatically generated ID for a specific address. You'll use this ID when you\n create a job to specify which address you want the Snow device for that job shipped to.
" + "smithy.api#documentation": "The automatically generated ID for a specific address. You'll use this ID when you\n create a job to specify which address you want the Snow device for that job shipped\n to.
" } } } @@ -632,14 +632,14 @@ "Resources": { "target": "com.amazonaws.snowball#JobResource", "traits": { - "smithy.api#documentation": "The resources associated with the cluster job. These resources include Amazon S3\n buckets and optional AWS Lambda functions written in the Python language.
", + "smithy.api#documentation": "The resources associated with the cluster job. These resources include Amazon S3\n buckets and optional Lambda functions written in the Python language.\n
", "smithy.api#required": {} } }, "OnDeviceServiceConfiguration": { "target": "com.amazonaws.snowball#OnDeviceServiceConfiguration", "traits": { - "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. AWS Snow Family supports Amazon S3 and NFS (Network File System).
" + "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your transferred data\n will be exported from or imported into. Amazon Web Services Snow Family device clusters support Amazon S3 and NFS\n (Network File System).
" } }, "Description": { @@ -658,27 +658,27 @@ "KmsKeyARN": { "target": "com.amazonaws.snowball#KmsKeyARN", "traits": { - "smithy.api#documentation": "The KmsKeyARN
value that you want to associate with this cluster.\n KmsKeyARN
values are created by using the CreateKey API action in AWS Key\n Management Service (AWS KMS).
The KmsKeyARN
value that you want to associate with this cluster.\n KmsKeyARN
values are created by using the CreateKey API action in Key Management Service (KMS).
The RoleARN
that you want to associate with this cluster.\n RoleArn
values are created by using the CreateRole API action in AWS\n Identity and Access Management (IAM).
The RoleARN
that you want to associate with this cluster.\n RoleArn
values are created by using the CreateRole API action in Identity and Access Management (IAM).
The type of AWS Snow Family device to use for this cluster. \n
\nFor cluster jobs, AWS Snow Family currently supports only the EDGE
device type.
For more information, see\n \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide or\n \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide.
", + "smithy.api#documentation": "The type of Snow Family Devices to use for this cluster.
\nFor cluster jobs, Amazon Web Services Snow Family currently supports only the\n EDGE
device type.
For more information, see\n \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide or\n \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide.
", "smithy.api#required": {} } }, "ShippingOption": { "target": "com.amazonaws.snowball#ShippingOption", "traits": { - "smithy.api#documentation": "The shipping speed for each node in this cluster. This speed doesn't dictate how soon\n you'll get each Snowball Edge device, rather it represents how quickly each device moves to\n its destination while in transit. Regional shipping speeds are as follows:\n
\nIn Australia, you have access to express shipping. Typically, Snow devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically,\n Snow devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the United States of America (US), you have access to one-day shipping and\n two-day shipping.
\nIn Australia, you have access to express shipping. Typically, devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically,\n Snow devices shipped express are delivered in about a day. In addition, most countries\n in the EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the US, you have access to one-day shipping and two-day shipping.
\nThe shipping speed for each node in this cluster. This speed doesn't dictate how soon\n you'll get each Snowball Edge device, rather it represents how quickly each device moves to\n its destination while in transit. Regional shipping speeds are as follows:
\nIn Australia, you have access to express shipping. Typically, Snow devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically, Snow\n devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the United States of America (US), you have access to one-day shipping and\n two-day shipping.
\nIn Australia, you have access to express shipping. Typically, devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically, Snow\n devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the US, you have access to one-day shipping and two-day shipping.
\nThe tax documents required in your AWS Region.
" + "smithy.api#documentation": "The tax documents required in your Amazon Web Services Region.
" } }, "RemoteManagement": { @@ -745,7 +745,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a job to import or export data between Amazon S3 and your on-premises data\n center. Your AWS account must have the right trust policies and permissions in place to create\n a job for a Snow device. If you're creating a job for a node in a cluster, you only need to provide\n the clusterId
value; the other job attributes are inherited from the cluster.\n
Only the Snowball; Edge device type is supported when ordering clustered jobs.
\nThe device capacity is optional.
\nAvailability of device types differ by AWS Region. For more information about Region\n availability, see AWS Regional Services.
\n\n AWS Snow Family device types and their capacities.\n
\nSnow Family device type: SNC1_SSD\n
\nCapacity: T14
\nDescription: Snowcone
\nSnow Family device type: SNC1_HDD\n
\nCapacity: T8
\nDescription: Snowcone
\nDevice type: EDGE_S\n
\nCapacity: T98
\nDescription: Snowball Edge Storage Optimized for data transfer only
\nDevice type: EDGE_CG\n
\nCapacity: T42
\nDescription: Snowball Edge Compute Optimized with GPU
\nDevice type: EDGE_C\n
\nCapacity: T42
\nDescription: Snowball Edge Compute Optimized without GPU
\nDevice type: EDGE\n
\nCapacity: T100
\nDescription: Snowball Edge Storage Optimized with EC2 Compute
\nDevice type: STANDARD\n
\nCapacity: T50
\nDescription: Original Snowball device
\nThis device is only available in the Ningxia, Beijing, and Singapore AWS Regions.
\nDevice type: STANDARD\n
\nCapacity: T80
\nDescription: Original Snowball device
\nThis device is only available in the Ningxia, Beijing, and Singapore AWS Regions.
\nCreates a job to import or export data between Amazon S3 and your on-premises data\n center. Your Amazon Web Services account must have the right trust policies and permissions in\n place to create a job for a Snow device. If you're creating a job for a node in a cluster, you\n only need to provide the clusterId
value; the other job attributes are inherited\n from the cluster.
Only the Snowball; Edge device type is supported when ordering clustered jobs.
\nThe device capacity is optional.
\nAvailability of device types differ by Amazon Web Services Region. For more information\n about Region availability, see Amazon Web Services Regional Services.
\n\n Snow Family Devices and their capacities.\n
\nSnow Family device type: SNC1_SSD\n
\nCapacity: T14
\nDescription: Snowcone
\nSnow Family device type: SNC1_HDD\n
\nCapacity: T8
\nDescription: Snowcone
\nDevice type: EDGE_S\n
\nCapacity: T98
\nDescription: Snowball Edge Storage Optimized for data transfer only
\nDevice type: EDGE_CG\n
\nCapacity: T42
\nDescription: Snowball Edge Compute Optimized with GPU
\nDevice type: EDGE_C\n
\nCapacity: T42
\nDescription: Snowball Edge Compute Optimized without GPU
\nDevice type: EDGE\n
\nCapacity: T100
\nDescription: Snowball Edge Storage Optimized with EC2 Compute
\nDevice type: STANDARD\n
\nCapacity: T50
\nDescription: Original Snowball device
\nThis device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region\n
\nDevice type: STANDARD\n
\nCapacity: T80
\nDescription: Original Snowball device
\nThis device is only available in the Ningxia, Beijing, and Singapore Amazon Web Services Region.
\nSpecifies the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. AWS Snow Family supports Amazon S3 and NFS (Network File System).
" + "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your transferred data\n will be exported from or imported into. Amazon Web Services Snow Family supports Amazon S3 and NFS (Network File\n System) and the Amazon Web Services Storage Gateway service Tape Gateway type.
" } }, "Description": { @@ -784,13 +784,13 @@ "KmsKeyARN": { "target": "com.amazonaws.snowball#KmsKeyARN", "traits": { - "smithy.api#documentation": "The KmsKeyARN
that you want to associate with this job.\n KmsKeyARN
s are created using the CreateKey AWS Key Management\n Service (KMS) API action.
The KmsKeyARN
that you want to associate with this job.\n KmsKeyARN
s are created using the CreateKey\n Key Management Service (KMS) API action.
The RoleARN
that you want to associate with this job.\n RoleArn
s are created using the CreateRole AWS Identity and\n Access Management (IAM) API action.
The RoleARN
that you want to associate with this job.\n RoleArn
s are created using the CreateRole\n Identity and Access Management (IAM) API action.
The shipping speed for this job. This speed doesn't dictate how soon you'll get the\n Snow device, rather it represents how quickly the Snow device moves to its destination while in\n transit. Regional shipping speeds are as follows:
\n\nIn Australia, you have access to express shipping. Typically, Snow devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically,\n Snow devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the US, you have access to one-day shipping and two-day shipping.
\nThe shipping speed for this job. This speed doesn't dictate how soon you'll get the\n Snow device, rather it represents how quickly the Snow device moves to its destination while\n in transit. Regional shipping speeds are as follows:
\n\nIn Australia, you have access to express shipping. Typically, Snow devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically, Snow\n devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the US, you have access to one-day shipping and two-day shipping.
\nThe type of AWS Snow Family device to use for this job. \n
\nFor cluster jobs, AWS Snow Family currently supports only the EDGE
device type.
The type of AWS Snow device to use for this job. Currently, the only supported\n device type for cluster jobs is EDGE
.
For more information, see Snowball Edge Device\n Options in the Snowball Edge Developer Guide.
\n \nFor more information, see\n \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide or\n \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide.
" + "smithy.api#documentation": "The type of Snow Family Devices to use for this job.\n
\nFor cluster jobs, Amazon Web Services Snow Family currently supports only the\n EDGE
device type.
The type of Amazon Web Services Snow device to use for this job. Currently, the only\n supported device type for cluster jobs is EDGE
.
For more information, see Snowball Edge Device\n Options in the Snowball Edge Developer Guide.
\n \nFor more information, see\n \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide or\n \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide.
" } }, "ForwardingAddressId": { @@ -832,13 +832,13 @@ "TaxDocuments": { "target": "com.amazonaws.snowball#TaxDocuments", "traits": { - "smithy.api#documentation": "The tax documents required in your AWS Region.
" + "smithy.api#documentation": "The tax documents required in your Amazon Web Services Region.
" } }, "DeviceConfiguration": { "target": "com.amazonaws.snowball#DeviceConfiguration", "traits": { - "smithy.api#documentation": "Defines the device configuration for an AWS Snowcone job.
\n \nFor more information, see\n \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide or\n \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide.
" + "smithy.api#documentation": "Defines the device configuration for an Snowcone job.
\n \nFor more information, see\n \"https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide or\n \"https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html\" (Snow\n Family Devices and Capacity) in the Snowcone User Guide.
" } }, "RemoteManagement": { @@ -880,7 +880,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a job with the long-term usage option for a device. The long-term usage is a\n 1-year or 3-year long-term pricing type for the device. You are billed upfront, and AWS\n provides discounts for long-term pricing.\n
" + "smithy.api#documentation": "Creates a job with the long-term usage option for a device. The long-term usage is a\n 1-year or 3-year long-term pricing type for the device. You are billed upfront, and Amazon Web Services provides discounts for long-term pricing.\n
" } }, "com.amazonaws.snowball#CreateLongTermPricingRequest": { @@ -896,13 +896,13 @@ "IsLongTermPricingAutoRenew": { "target": "com.amazonaws.snowball#JavaBoolean", "traits": { - "smithy.api#documentation": "Specifies whether the current long-term pricing type for the device should be renewed.
" + "smithy.api#documentation": "Specifies whether the current long-term pricing type for the device should be\n renewed.
" } }, "SnowballType": { "target": "com.amazonaws.snowball#SnowballType", "traits": { - "smithy.api#documentation": "The type of AWS Snow Family device to use for the long-term pricing job.
" + "smithy.api#documentation": "The type of Snow Family Devices to use for the long-term pricing job.
" } } } @@ -944,7 +944,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a shipping label that will be used to return the Snow device to AWS.
" + "smithy.api#documentation": "Creates a shipping label that will be used to return the Snow device to Amazon Web Services.
" } }, "com.amazonaws.snowball#CreateReturnShippingLabelRequest": { @@ -960,7 +960,7 @@ "ShippingOption": { "target": "com.amazonaws.snowball#ShippingOption", "traits": { - "smithy.api#documentation": "The shipping speed for a particular job. This speed doesn't dictate how soon the device is returned to AWS.\n This speed represents how quickly it moves to its\n destination while in transit. Regional shipping speeds are as follows:
" + "smithy.api#documentation": "The shipping speed for a particular job. This speed doesn't dictate how soon the device\n is returned to Amazon Web Services. This speed represents how quickly it moves to its\n destination while in transit. Regional shipping speeds are as follows:
" } } } @@ -971,7 +971,7 @@ "Status": { "target": "com.amazonaws.snowball#ShippingLabelStatus", "traits": { - "smithy.api#documentation": "The status information of the task on a Snow device that is being returned to AWS.
" + "smithy.api#documentation": "The status information of the task on a Snow device that is being returned to Amazon Web Services.
" } } } @@ -994,18 +994,18 @@ "TotalBytes": { "target": "com.amazonaws.snowball#Long", "traits": { - "smithy.api#documentation": "The total bytes of data for a transfer between a Snow device and Amazon S3. This value is\n set to 0 (zero) until all the keys that will be transferred have been listed.
" + "smithy.api#documentation": "The total bytes of data for a transfer between a Snow device and Amazon S3. This value\n is set to 0 (zero) until all the keys that will be transferred have been listed.
" } }, "TotalObjects": { "target": "com.amazonaws.snowball#Long", "traits": { - "smithy.api#documentation": "The total number of objects for a transfer between a Snow device and Amazon S3. This value\n is set to 0 (zero) until all the keys that will be transferred have been listed.
" + "smithy.api#documentation": "The total number of objects for a transfer between a Snow device and Amazon S3. This\n value is set to 0 (zero) until all the keys that will be transferred have been\n listed.
" } } }, "traits": { - "smithy.api#documentation": "Defines the real-time status of a Snow device's data transfer while the device is at AWS.\n This data is only available while a job has a JobState
value of\n InProgress
, for both import and export jobs.
Defines the real-time status of a Snow device's data transfer while the device is at\n Amazon Web Services. This data is only available while a job has a JobState
\n value of InProgress
, for both import and export jobs.
The address that you want the Snow device(s) associated with a specific job to\n be shipped to.
" + "smithy.api#documentation": "The address that you want the Snow device(s) associated with a specific job to be\n shipped to.
" } } } @@ -1214,7 +1214,7 @@ } ], "traits": { - "smithy.api#documentation": "Information on the shipping label of a Snow device that is being returned to AWS.
" + "smithy.api#documentation": "Information on the shipping label of a Snow device that is being returned to Amazon Web Services.
" } }, "com.amazonaws.snowball#DescribeReturnShippingLabelRequest": { @@ -1223,7 +1223,7 @@ "JobId": { "target": "com.amazonaws.snowball#JobId", "traits": { - "smithy.api#documentation": "The automatically generated ID for a job, for example\n JID123e4567-e89b-12d3-a456-426655440000
.
The automatically generated ID for a job, for example\n JID123e4567-e89b-12d3-a456-426655440000
.
The status information of the task on a Snow device that is being returned to AWS.
" + "smithy.api#documentation": "The status information of the task on a Snow device that is being returned to Amazon Web Services.
" } }, "ExpirationDate": { @@ -1243,6 +1243,12 @@ "traits": { "smithy.api#documentation": "The expiration date of the current return shipping label.
" } + }, + "ReturnShippingLabelURI": { + "target": "com.amazonaws.snowball#String", + "traits": { + "smithy.api#documentation": "The pre-signed Amazon S3 URI used to download the return shipping label.
" + } } } }, @@ -1252,7 +1258,7 @@ "SnowconeDeviceConfiguration": { "target": "com.amazonaws.snowball#SnowconeDeviceConfiguration", "traits": { - "smithy.api#documentation": "Returns information about the device configuration for an AWS Snowcone job.
" + "smithy.api#documentation": "Returns information about the device configuration for an Snowcone\n job.
" } } }, @@ -1293,7 +1299,7 @@ } }, "traits": { - "smithy.api#documentation": "A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI),\n including the Amazon EC2 AMI ID and the Snow device AMI ID. Each AMI has these two IDs to\n simplify identifying the AMI in both the AWS Cloud and on the device.
" + "smithy.api#documentation": "A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI),\n including the Amazon EC2 AMI ID and the Snow device AMI ID. Each AMI has these two IDs to\n simplify identifying the AMI in both the Amazon Web Services Cloud and on the device.
" } }, "com.amazonaws.snowball#Ec2AmiResourceList": { @@ -1320,7 +1326,7 @@ "EventResourceARN": { "target": "com.amazonaws.snowball#ResourceARN", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS Lambda\n function's event trigger associated with this job.
" + "smithy.api#documentation": "The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an Lambda function's event trigger associated with this job.
" } } }, @@ -1357,7 +1363,7 @@ } ], "traits": { - "smithy.api#documentation": "Returns a link to an Amazon S3 presigned URL for the manifest file associated with the\n specified JobId
value. You can access the manifest file for up to 60 minutes\n after this request has been made. To access the manifest file after 60 minutes have passed,\n you'll have to make another call to the GetJobManifest
action.
The manifest is an encrypted file that you can download after your job enters the\n WithCustomer
status. The manifest is decrypted by using the\n UnlockCode
code value, when you pass both values to the Snow device through the\n Snowball client when the client is started for the first time.
As a best practice, we recommend that you don't save a copy of an\n UnlockCode
value in the same location as the manifest file for that job. Saving\n these separately helps prevent unauthorized parties from gaining access to the Snow device\n associated with that job.
The credentials of a given job, including its manifest file and unlock code, expire 360\n days after the job is created.
" + "smithy.api#documentation": "Returns a link to an Amazon S3 presigned URL for the manifest file associated with the\n specified JobId
value. You can access the manifest file for up to 60 minutes\n after this request has been made. To access the manifest file after 60 minutes have passed,\n you'll have to make another call to the GetJobManifest
action.
The manifest is an encrypted file that you can download after your job enters the\n WithCustomer
status. The manifest is decrypted by using the\n UnlockCode
code value, when you pass both values to the Snow device through the\n Snowball client when the client is started for the first time.
As a best practice, we recommend that you don't save a copy of an\n UnlockCode
value in the same location as the manifest file for that job. Saving\n these separately helps prevent unauthorized parties from gaining access to the Snow device\n associated with that job.
The credentials of a given job, including its manifest file and unlock code, expire 360\n days after the job is created.
" } }, "com.amazonaws.snowball#GetJobManifestRequest": { @@ -1400,7 +1406,7 @@ } ], "traits": { - "smithy.api#documentation": "Returns the UnlockCode
code value for the specified job. A particular\n UnlockCode
value can be accessed for up to 360 days after the associated job\n has been created.
The UnlockCode
value is a 29-character code with 25 alphanumeric\n characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed\n along with the manifest to the Snow device through the Snowball client when the client is started\n for the first time.
As a best practice, we recommend that you don't save a copy of the\n UnlockCode
in the same location as the manifest file for that job. Saving these\n separately helps prevent unauthorized parties from gaining access to the Snow device associated\n with that job.
Returns the UnlockCode
code value for the specified job. A particular\n UnlockCode
value can be accessed for up to 360 days after the associated job\n has been created.
The UnlockCode
value is a 29-character code with 25 alphanumeric\n characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed\n along with the manifest to the Snow device through the Snowball client when the client is\n started for the first time.
As a best practice, we recommend that you don't save a copy of the\n UnlockCode
in the same location as the manifest file for that job. Saving these\n separately helps prevent unauthorized parties from gaining access to the Snow device\n associated with that job.
Returns information about the Snow Family service limit for your account, and also the\n number of Snow devices your account has in use.
\n\nThe default service limit for the number of Snow devices that you can have at one time is\n 1. If you want to increase your service limit, contact AWS Support.
" + "smithy.api#documentation": "Returns information about the Snow Family service limit for your account, and also the\n number of Snow devices your account has in use.
\n\nThe default service limit for the number of Snow devices that you can have at one time\n is 1. If you want to increase your service limit, contact Amazon Web Services Support.
" } }, "com.amazonaws.snowball#GetSnowballUsageRequest": { @@ -1476,7 +1482,7 @@ } ], "traits": { - "smithy.api#documentation": "Returns an Amazon S3 presigned URL for an update file associated with a specified\n JobId
.
Returns an Amazon S3 presigned URL for an update file associated with a specified\n JobId
.
The ID for a job that you want to get the software update file for, for example\n JID123e4567-e89b-12d3-a456-426655440000
.
The ID for a job that you want to get the software update file for, for example\n JID123e4567-e89b-12d3-a456-426655440000
.
The Amazon S3 presigned URL for the update file associated with the specified\n JobId
value. The software update will be available for 2 days after this request is made. \n To access an update after the 2 days have passed, you'll have to make another call to GetSoftwareUpdates
.
The Amazon S3 presigned URL for the update file associated with the specified\n JobId
value. The software update will be available for 2 days after this\n request is made. To access an update after the 2 days have passed, you'll have to make another\n call to GetSoftwareUpdates
.
The Goods and Services Tax (GST) documents required in AWS Regions in India.
" + "smithy.api#documentation": "The Goods and Services Tax (GST) documents required in Amazon Web Services Region in\n India.
" } } }, "traits": { - "smithy.api#documentation": "The tax documents required in AWS Regions in India.
" + "smithy.api#documentation": "The tax documents required in Amazon Web Services Region in India.
" } }, "com.amazonaws.snowball#Integer": { @@ -1542,7 +1548,7 @@ } }, "traits": { - "smithy.api#documentation": "Job or cluster creation failed. One or more inputs were invalid. Confirm that the\n CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, and try again.
", + "smithy.api#documentation": "Job or cluster creation failed. One or more inputs were invalid. Confirm that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, and try again.
", "smithy.api#error": "client" } }, @@ -1622,7 +1628,7 @@ "IsMaster": { "target": "com.amazonaws.snowball#Boolean", "traits": { - "smithy.api#documentation": "A value that indicates that this job is a main job. A main job represents a\n successful request to create an export job. Main jobs aren't associated with any Snowballs.\n Instead, each main job will have at least one job part, and each job part is associated with\n a Snowball. It might take some time before the job parts associated with a particular main\n job are listed, because they are created after the main job is created.
" + "smithy.api#documentation": "A value that indicates that this job is a main job. A main job represents a successful\n request to create an export job. Main jobs aren't associated with any Snowballs. Instead, each\n main job will have at least one job part, and each job part is associated with a Snowball. It\n might take some time before the job parts associated with a particular main job are listed,\n because they are created after the main job is created.
" } }, "JobType": { @@ -1683,7 +1689,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains job logs. Whenever a Snow device is used to import data into or export data out of\n Amazon S3, you'll have the option of downloading a PDF job report. Job logs are returned as a\n part of the response syntax of the DescribeJob
action in the\n JobMetadata
data type. The job logs can be accessed for up to 60 minutes after\n this request has been made. To access any of the job logs after 60 minutes have passed, you'll\n have to make another call to the DescribeJob
action.
For import jobs, the PDF job report becomes available at the end of the import process.\n For export jobs, your job report typically becomes available while the Snow device for your job\n part is being delivered to you.
\n\nThe job report provides you insight into the state of your Amazon S3 data transfer. The\n report includes details about your job or job part for your records.
\n\nFor deeper visibility into the status of your transferred objects, you can look at the\n two associated logs: a success log and a failure log. The logs are saved in comma-separated\n value (CSV) format, and the name of each log includes the ID of the job or job part that the\n log describes.
" + "smithy.api#documentation": "Contains job logs. Whenever a Snow device is used to import data into or export data\n out of Amazon S3, you'll have the option of downloading a PDF job report. Job logs are\n returned as a part of the response syntax of the DescribeJob
action in the\n JobMetadata
data type. The job logs can be accessed for up to 60 minutes after\n this request has been made. To access any of the job logs after 60 minutes have passed, you'll\n have to make another call to the DescribeJob
action.
For import jobs, the PDF job report becomes available at the end of the import process.\n For export jobs, your job report typically becomes available while the Snow device for your\n job part is being delivered to you.
\n\nThe job report provides you insight into the state of your Amazon S3 data transfer. The\n report includes details about your job or job part for your records.
\n\nFor deeper visibility into the status of your transferred objects, you can look at the\n two associated logs: a success log and a failure log. The logs are saved in comma-separated\n value (CSV) format, and the name of each log includes the ID of the job or job part that the\n log describes.
" } }, "com.amazonaws.snowball#JobMetadata": { @@ -1734,13 +1740,13 @@ "KmsKeyARN": { "target": "com.amazonaws.snowball#KmsKeyARN", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) key\n associated with this job. This ARN was created using the CreateKey API action in AWS\n KMS.
" + "smithy.api#documentation": "The Amazon Resource Name (ARN) for the Key Management Service (KMS) key\n associated with this job. This ARN was created using the CreateKey API action in KMS.
" } }, "RoleARN": { "target": "com.amazonaws.snowball#RoleARN", "traits": { - "smithy.api#documentation": "The role ARN associated with this job. This ARN was created using the CreateRole\n API action in AWS Identity and Access Management (IAM).
" + "smithy.api#documentation": "The role ARN associated with this job. This ARN was created using the CreateRole\n API action in Identity and Access Management.
" } }, "AddressId": { @@ -1770,13 +1776,13 @@ "DataTransferProgress": { "target": "com.amazonaws.snowball#DataTransfer", "traits": { - "smithy.api#documentation": "A value that defines the real-time status of a Snow device's data transfer while the\n device is at AWS. This data is only available while a job has a JobState
value of\n InProgress
, for both import and export jobs.
A value that defines the real-time status of a Snow device's data transfer while the\n device is at Amazon Web Services. This data is only available while a job has a\n JobState
value of InProgress
, for both import and export\n jobs.
Links to Amazon S3 presigned URLs for the job report and logs. For import jobs, the PDF\n job report becomes available at the end of the import process. For export jobs, your job\n report typically becomes available while the Snow device for your job part is being delivered to\n you.
" + "smithy.api#documentation": "Links to Amazon S3 presigned URLs for the job report and logs. For import jobs, the PDF\n job report becomes available at the end of the import process. For export jobs, your job\n report typically becomes available while the Snow device for your job part is being delivered\n to you.
" } }, "ClusterId": { @@ -1794,7 +1800,7 @@ "TaxDocuments": { "target": "com.amazonaws.snowball#TaxDocuments", "traits": { - "smithy.api#documentation": "The metadata associated with the tax documents required in your AWS Region.
" + "smithy.api#documentation": "The metadata associated with the tax documents required in your Amazon Web Services Region.
" } }, "DeviceConfiguration": { @@ -1815,7 +1821,7 @@ "OnDeviceServiceConfiguration": { "target": "com.amazonaws.snowball#OnDeviceServiceConfiguration", "traits": { - "smithy.api#documentation": "Represents metadata and configuration settings for services on an AWS Snow Family device.
" + "smithy.api#documentation": "Represents metadata and configuration settings for services on an Amazon Web Services Snow Family\n device.
" } } }, @@ -1852,7 +1858,7 @@ } }, "traits": { - "smithy.api#documentation": "Contains an array of AWS resource objects. Each object represents an Amazon S3 bucket,\n an AWS Lambda function, or an Amazon Machine Image (AMI) based on Amazon EC2 that is\n associated with a particular job.
" + "smithy.api#documentation": "Contains an array of Amazon Web Services resource objects. Each object represents an\n Amazon S3 bucket, an Lambda function, or an Amazon Machine Image (AMI) based\n on Amazon EC2 that is associated with a particular job.
" } }, "com.amazonaws.snowball#JobState": { @@ -1947,7 +1953,7 @@ } }, "traits": { - "smithy.api#documentation": "The provided AWS Key Management Service key lacks the permissions to perform the\n specified CreateJob or UpdateJob action.
", + "smithy.api#documentation": "The provided Key Management Service key lacks the permissions to perform the specified\n CreateJob or UpdateJob action.
", "smithy.api#error": "client" } }, @@ -1987,7 +1993,7 @@ "LambdaArn": { "target": "com.amazonaws.snowball#ResourceARN", "traits": { - "smithy.api#documentation": "An Amazon Resource Name (ARN) that represents an AWS Lambda function to be triggered by\n PUT object actions on the associated local Amazon S3 resource.
" + "smithy.api#documentation": "An Amazon Resource Name (ARN) that represents an Lambda function to be\n triggered by PUT object actions on the associated local Amazon S3 resource.
" } }, "EventTriggers": { @@ -2136,7 +2142,7 @@ } ], "traits": { - "smithy.api#documentation": "This action returns a list of the different Amazon EC2 Amazon Machine Images (AMIs)\n that are owned by your AWS account that would be supported for use on a Snow device.\n Currently, supported AMIs are based on the CentOS 7 (x86_64) - with Updates HVM, Ubuntu Server\n 14.04 LTS (HVM), and Ubuntu 16.04 LTS - Xenial (HVM) images, available on the AWS\n Marketplace.
" + "smithy.api#documentation": "This action returns a list of the different Amazon EC2 Amazon Machine Images (AMIs)\n that are owned by your Amazon Web Services accountthat would be supported for use on a Snow\n device. Currently, supported AMIs are based on the CentOS 7 (x86_64) - with Updates HVM,\n Ubuntu Server 14.04 LTS (HVM), and Ubuntu 16.04 LTS - Xenial (HVM) images, available on the\n Amazon Web Services Marketplace.
" } }, "com.amazonaws.snowball#ListCompatibleImagesRequest": { @@ -2272,7 +2278,7 @@ "NextToken": { "target": "com.amazonaws.snowball#String", "traits": { - "smithy.api#documentation": "Because HTTP requests are stateless, this is the starting point for your next list of\n ListLongTermPricing
to return.
Because HTTP requests are stateless, this is the starting point for your next list of\n ListLongTermPricing
to return.
The type of AWS Snow Family device associated with this long-term pricing job.
" + "smithy.api#documentation": "The type of Snow Family Devices associated with this long-term pricing job.
" } }, "JobIds": { @@ -2384,7 +2390,7 @@ } }, "traits": { - "smithy.api#documentation": "Each LongTermPricingListEntry
object contains information about a long-term pricing type.
Each LongTermPricingListEntry
object contains information about a long-term\n pricing type.
The maximum NFS storage for one Snowball Family device.
" + "smithy.api#documentation": "The maximum NFS storage for one Snow Family device.
" } }, "StorageUnit": { @@ -2419,7 +2425,7 @@ } }, "traits": { - "smithy.api#documentation": "An object that represents metadata and configuration settings for NFS service on an AWS Snow Family device.
" + "smithy.api#documentation": "An object that represents the metadata and configuration settings for the NFS (Network\n File System) service on an Amazon Web Services Snow Family device.
" } }, "com.amazonaws.snowball#Notification": { @@ -2428,7 +2434,7 @@ "SnsTopicARN": { "target": "com.amazonaws.snowball#SnsTopicARN", "traits": { - "smithy.api#documentation": "The new SNS TopicArn
that you want to associate with this job. You can\n create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API\n action.
You can subscribe email addresses to an Amazon SNS topic through the AWS Management\n Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
" + "smithy.api#documentation": "The new SNS TopicArn
that you want to associate with this job. You can\n create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API\n action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification\n Service (Amazon SNS) API action.
" } }, "JobStatesToNotify": { @@ -2454,12 +2460,18 @@ "NFSOnDeviceService": { "target": "com.amazonaws.snowball#NFSOnDeviceServiceConfiguration", "traits": { - "smithy.api#documentation": "Represents the NFS service on a Snow Family device.
" + "smithy.api#documentation": "Represents the NFS (Network File System) service on a Snow Family device.
" + } + }, + "TGWOnDeviceService": { + "target": "com.amazonaws.snowball#TGWOnDeviceServiceConfiguration", + "traits": { + "smithy.api#documentation": "Represents the Storage Gateway service Tape Gateway type on a Snow Family device.
" } } }, "traits": { - "smithy.api#documentation": "An object that represents metadata and configuration settings for services on an AWS Snow Family device.
" + "smithy.api#documentation": "An object that represents the metadata and configuration settings for services on an Amazon Web Services\n Snow Family device.
" } }, "com.amazonaws.snowball#RemoteManagement": { @@ -2495,7 +2507,7 @@ } }, "traits": { - "smithy.api#documentation": "You get this exception if you call CreateReturnShippingLabel
and a valid return\n shipping label already exists. In this case, use\n DescribeReturnShippingLabel
to get the url.
You get this exception if you call CreateReturnShippingLabel
and a valid\n return shipping label already exists. In this case, use\n DescribeReturnShippingLabel
to get the URL.
Specifies the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. AWS Snow Family supports Amazon S3 and NFS (Network File System).
" + "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your transferred data\n will be exported from or imported into. Amazon Web Services Snow Family supports Amazon S3 and NFS (Network File\n System).
" } } }, @@ -2582,13 +2594,13 @@ "ShippingOption": { "target": "com.amazonaws.snowball#ShippingOption", "traits": { - "smithy.api#documentation": "The shipping speed for a particular job. This speed doesn't dictate how soon you'll get\n the Snow device from the job's creation date. This speed represents how quickly it moves to its\n destination while in transit. Regional shipping speeds are as follows:
\n\nIn Australia, you have access to express shipping. Typically, Snow devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically,\n Snow devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the United States of America (US), you have access to one-day shipping and\n two-day shipping.
\nThe shipping speed for a particular job. This speed doesn't dictate how soon you'll get\n the Snow device from the job's creation date. This speed represents how quickly it moves to\n its destination while in transit. Regional shipping speeds are as follows:
\n\nIn Australia, you have access to express shipping. Typically, Snow devices shipped\n express are delivered in about a day.
\nIn the European Union (EU), you have access to express shipping. Typically, Snow\n devices shipped express are delivered in about a day. In addition, most countries in the\n EU have access to standard shipping, which typically takes less than a week, one\n way.
\nIn India, Snow devices are delivered in one to seven days.
\nIn the United States of America (US), you have access to one-day shipping and\n two-day shipping.
\nThe Status
and TrackingNumber
values for a Snow device being\n returned to AWS for a particular job.
The Status
and TrackingNumber
values for a Snow device being\n returned to Amazon Web Services for a particular job.
Configures the wireless connection for the AWS Snowcone device.
" + "smithy.api#documentation": "Configures the wireless connection for the Snowcone device.
" } } }, "traits": { - "smithy.api#documentation": "Specifies the device configuration for an AWS Snowcone job.
" + "smithy.api#documentation": "Specifies the device configuration for an Snowcone job.
" } }, "com.amazonaws.snowball#SnsTopicARN": { @@ -2774,24 +2786,44 @@ } } }, + "com.amazonaws.snowball#TGWOnDeviceServiceConfiguration": { + "type": "structure", + "members": { + "StorageLimit": { + "target": "com.amazonaws.snowball#StorageLimit", + "traits": { + "smithy.api#documentation": "The maximum number of virtual tapes to store on one Snow Family device. Due to physical\n resource limitations, this value must be set to 80 for Snowball Edge.
" + } + }, + "StorageUnit": { + "target": "com.amazonaws.snowball#StorageUnit", + "traits": { + "smithy.api#documentation": "The scale unit of the virtual tapes on the device.
" + } + } + }, + "traits": { + "smithy.api#documentation": "An object that represents the metadata and configuration settings for the Storage Gateway\n service Tape Gateway type on an Amazon Web Services Snow Family device.
" + } + }, "com.amazonaws.snowball#TargetOnDeviceService": { "type": "structure", "members": { "ServiceName": { "target": "com.amazonaws.snowball#DeviceServiceName", "traits": { - "smithy.api#documentation": "Specifies the name of the service on the Snow Family device that your\n transferred data will be exported from or imported into.
" + "smithy.api#documentation": "Specifies the name of the service on the Snow Family device that your transferred data\n will be exported from or imported into.
" } }, "TransferOption": { "target": "com.amazonaws.snowball#TransferOption", "traits": { - "smithy.api#documentation": "Specifies whether the data is being imported or exported. You can import or export the data, or use it locally on the device.
" + "smithy.api#documentation": "Specifies whether the data is being imported or exported. You can import or export the\n data, or use it locally on the device.
" } } }, "traits": { - "smithy.api#documentation": "An object that represents the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. AWS Snow Family supports Amazon S3 and NFS (Network File System).
" + "smithy.api#documentation": "An object that represents the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. Amazon Web Services Snow Family supports Amazon S3 and\n NFS (Network File System).
" } }, "com.amazonaws.snowball#TargetOnDeviceServiceList": { @@ -2808,7 +2840,7 @@ } }, "traits": { - "smithy.api#documentation": "The tax documents required in your AWS Region.
" + "smithy.api#documentation": "The tax documents required in your Amazon Web Services Region.
" } }, "com.amazonaws.snowball#Timestamp": { @@ -2841,7 +2873,7 @@ } }, "traits": { - "smithy.api#documentation": "The address is either outside the serviceable area for your region, or an error\n occurred. Check the address with your region's carrier and try again. If the issue persists,\n contact AWS Support.
", + "smithy.api#documentation": "The address is either outside the serviceable area for your region, or an error\n occurred. Check the address with your region's carrier and try again. If the issue persists,\n contact Amazon Web Services Support.
", "smithy.api#error": "client" } }, @@ -2887,7 +2919,7 @@ "RoleARN": { "target": "com.amazonaws.snowball#RoleARN", "traits": { - "smithy.api#documentation": "The new role Amazon Resource Name (ARN) that you want to associate with this cluster.\n To create a role ARN, use the CreateRole API action in AWS\n Identity and Access Management (IAM).
" + "smithy.api#documentation": "The new role Amazon Resource Name (ARN) that you want to associate with this cluster.\n To create a role ARN, use the CreateRole API action in Identity and Access Management (IAM).
" } }, "Description": { @@ -2905,7 +2937,7 @@ "OnDeviceServiceConfiguration": { "target": "com.amazonaws.snowball#OnDeviceServiceConfiguration", "traits": { - "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. AWS Snow Family supports Amazon S3 and NFS (Network File System).
" + "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your transferred data\n will be exported from or imported into. Amazon Web Services Snow Family device clusters support Amazon S3 and NFS\n (Network File System).
" } }, "AddressId": { @@ -2983,7 +3015,7 @@ "RoleARN": { "target": "com.amazonaws.snowball#RoleARN", "traits": { - "smithy.api#documentation": "The new role Amazon Resource Name (ARN) that you want to associate with this job. To\n create a role ARN, use the CreateRoleAWS Identity and Access\n Management (IAM) API action.
" + "smithy.api#documentation": "The new role Amazon Resource Name (ARN) that you want to associate with this job. To\n create a role ARN, use the CreateRoleIdentity and Access Management\n (IAM) API action.
" } }, "Notification": { @@ -3001,7 +3033,7 @@ "OnDeviceServiceConfiguration": { "target": "com.amazonaws.snowball#OnDeviceServiceConfiguration", "traits": { - "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your\n transferred data will be exported from or imported into. AWS Snow Family supports Amazon S3 and NFS (Network File System).
" + "smithy.api#documentation": "Specifies the service or services on the Snow Family device that your transferred data\n will be exported from or imported into. Amazon Web Services Snow Family supports Amazon S3 and NFS (Network File\n System) and the Amazon Web Services Storage Gateway service Tape Gateway type.
" } }, "AddressId": { @@ -3066,14 +3098,14 @@ "JobId": { "target": "com.amazonaws.snowball#JobId", "traits": { - "smithy.api#documentation": "The job ID of the job whose shipment date you want to update, for example\n JID123e4567-e89b-12d3-a456-426655440000
.
The job ID of the job whose shipment date you want to update, for example\n JID123e4567-e89b-12d3-a456-426655440000
.
The state of a device when it is being shipped.
\nSet to RECEIVED
when the device arrives at your location.
Set to RETURNED
when you have returned the device to AWS.
The state of a device when it is being shipped.
\nSet to RECEIVED
when the device arrives at your location.
Set to RETURNED
when you have returned the device to Amazon Web Services.
Specifies that a device that is ordered with long-term pricing should be replaced with a new device.
" + "smithy.api#documentation": "Specifies that a device that is ordered with long-term pricing should be replaced with a\n new device.
" } }, "IsLongTermPricingAutoRenew": { @@ -3134,12 +3166,12 @@ "IsWifiEnabled": { "target": "com.amazonaws.snowball#Boolean", "traits": { - "smithy.api#documentation": "Enables the Wi-Fi adapter on an AWS Snowcone device.
" + "smithy.api#documentation": "Enables the Wi-Fi adapter on an Snowcone device.
" } } }, "traits": { - "smithy.api#documentation": "Configures the wireless connection on an AWS Snowcone device.
" + "smithy.api#documentation": "Configures the wireless connection on an Snowcone device.
" } } } diff --git a/codegen/sdk-codegen/aws-models/storagegateway.2013-06-30.json b/codegen/sdk-codegen/aws-models/storagegateway.2013-06-30.json index 5905d401d18..3b198e6a0f8 100644 --- a/codegen/sdk-codegen/aws-models/storagegateway.2013-06-30.json +++ b/codegen/sdk-codegen/aws-models/storagegateway.2013-06-30.json @@ -83,7 +83,7 @@ "GatewayType": { "target": "com.amazonaws.storagegateway#GatewayType", "traits": { - "smithy.api#documentation": "A value that defines the type of gateway to activate. The type specified is critical to\n all later functions of the gateway and cannot be changed after activation. The default\n value is CACHED
.
Valid Values: STORED
| CACHED
| VTL
|\n FILE_S3
| FILE_FSX_SMB|
\n
A value that defines the type of gateway to activate. The type specified is critical to\n all later functions of the gateway and cannot be changed after activation. The default\n value is CACHED
.
Valid Values: STORED
| CACHED
| VTL
|\n VTL_SNOW
| FILE_S3
| FILE_FSX_SMB
\n
The type of hypervisor environment used by the host.
" + "smithy.api#documentation": "The type of hardware or software platform on which the gateway is running.
" } }, "EndpointType": { @@ -3190,6 +3190,12 @@ "traits": { "smithy.api#documentation": "A list of the metadata cache sizes that the gateway can support based on its current\n hardware specifications.
" } + }, + "HostEnvironmentId": { + "target": "com.amazonaws.storagegateway#HostEnvironmentId", + "traits": { + "smithy.api#documentation": "A unique identifier for the specific instance of the host platform running the gateway.\n This value is only available for certain host environments, and its format depends on the\n host environment type.
" + } } }, "traits": { @@ -4998,6 +5004,18 @@ "traits": { "smithy.api#documentation": "The Amazon Web Services Region where the Amazon EC2 instance is located.
" } + }, + "HostEnvironment": { + "target": "com.amazonaws.storagegateway#HostEnvironment", + "traits": { + "smithy.api#documentation": "The type of hardware or software platform on which the gateway is running.
" + } + }, + "HostEnvironmentId": { + "target": "com.amazonaws.storagegateway#HostEnvironmentId", + "traits": { + "smithy.api#documentation": "A unique identifier for the specific instance of the host platform running the gateway.\n This value is only available for certain host environments, and its format depends on the\n host environment type.
" + } } }, "traits": { @@ -5096,10 +5114,23 @@ { "value": "OTHER", "name": "OTHER" + }, + { + "value": "SNOWBALL", + "name": "SNOWBALL" } ] } }, + "com.amazonaws.storagegateway#HostEnvironmentId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + } + } + }, "com.amazonaws.storagegateway#Hosts": { "type": "list", "member": { @@ -7362,6 +7393,24 @@ }, "com.amazonaws.storagegateway#StorageGateway_20130630": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "Storage Gateway", + "arnNamespace": "storagegateway", + "cloudFormationName": "StorageGateway", + "cloudTrailEventSource": "storagegateway.amazonaws.com", + "endpointPrefix": "storagegateway" + }, + "aws.auth#sigv4": { + "name": "storagegateway" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Storage Gateway is the service that connects an on-premises software appliance\n with cloud-based storage to provide seamless and secure integration between an\n organization's on-premises IT environment and the Amazon Web Services storage\n infrastructure. The service enables you to securely upload data to the Amazon Web Services Cloud for cost effective backup and rapid disaster recovery.
\n\nUse the following links to get started using the Storage Gateway\n Service API Reference:
\n\n\n Storage Gateway required request headers: Describes the required\n headers that you must send with every POST request to Storage Gateway.
\n\n Signing requests: Storage Gateway requires that you authenticate\n every request you send; this topic describes how sign such a request.
\n\n Error responses: Provides reference information about Storage Gateway errors.
\n\n Operations in Storage Gateway: Contains detailed descriptions of all Storage Gateway operations, their request parameters, response elements, possible errors, and\n examples of requests and responses.
\n\n Storage Gateway\n endpoints and quotas: Provides a list of each Amazon Web Services Region\n and the endpoints available for use with Storage Gateway.
\nStorage Gateway resource IDs are in uppercase. When you use these resource IDs\n with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change\n your resource ID to lowercase to use it with the EC2 API. For example, in Storage\n Gateway the ID for a volume might be vol-AA22BB012345DAF670
. When you use\n this ID with the EC2 API, you must change it to vol-aa22bb012345daf670
.\n Otherwise, the EC2 API might not behave as expected.
IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway\n volumes are changing to a longer format. Starting in December 2016, all new volumes and\n snapshots will be created with a 17-character string. Starting in April 2016, you will\n be able to use these longer IDs so you can test your systems with the new format. For\n more information, see Longer EC2 and\n EBS resource IDs.
\n\nFor example, a volume Amazon Resource Name (ARN) with the longer volume ID format\n looks like the following:
\n\n\n arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG
.
A snapshot ID with the longer ID format looks like the following:\n snap-78e226633445566ee
.
For more information, see Announcement:\n Heads-up – Longer Storage Gateway volume and snapshot IDs coming in\n 2016.
\nStorage Gateway is the service that connects an on-premises software appliance\n with cloud-based storage to provide seamless and secure integration between an\n organization's on-premises IT environment and the Amazon Web Services storage\n infrastructure. The service enables you to securely upload data to the Amazon Web Services Cloud for cost effective backup and rapid disaster recovery.
\n\nUse the following links to get started using the Storage Gateway\n Service API Reference:
\n\n\n Storage Gateway required request headers: Describes the required\n headers that you must send with every POST request to Storage Gateway.
\n\n Signing requests: Storage Gateway requires that you authenticate\n every request you send; this topic describes how sign such a request.
\n\n Error responses: Provides reference information about Storage Gateway errors.
\n\n Operations in Storage Gateway: Contains detailed descriptions of all Storage Gateway operations, their request parameters, response elements, possible errors, and\n examples of requests and responses.
\n\n Storage Gateway\n endpoints and quotas: Provides a list of each Amazon Web Services Region\n and the endpoints available for use with Storage Gateway.
\nStorage Gateway resource IDs are in uppercase. When you use these resource IDs\n with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change\n your resource ID to lowercase to use it with the EC2 API. For example, in Storage\n Gateway the ID for a volume might be vol-AA22BB012345DAF670
. When you use\n this ID with the EC2 API, you must change it to vol-aa22bb012345daf670
.\n Otherwise, the EC2 API might not behave as expected.
IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway\n volumes are changing to a longer format. Starting in December 2016, all new volumes and\n snapshots will be created with a 17-character string. Starting in April 2016, you will\n be able to use these longer IDs so you can test your systems with the new format. For\n more information, see Longer EC2 and\n EBS resource IDs.
\n\nFor example, a volume Amazon Resource Name (ARN) with the longer volume ID format\n looks like the following:
\n\n\n arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG
.
A snapshot ID with the longer ID format looks like the following:\n snap-78e226633445566ee
.
For more information, see Announcement:\n Heads-up – Longer Storage Gateway volume and snapshot IDs coming in\n 2016.
\nWorkSpaces Web is a low cost, fully managed WorkSpace built specifically to facilitate\n secure, web-based workloads. WorkSpaces Web makes it easy for customers to safely provide\n their employees with access to internal websites and SaaS web applications without the\n administrative burden of appliances or specialized client software. WorkSpaces Web provides\n simple policy tools tailored for user interactions, while offloading common tasks like\n capacity management, scaling, and maintaining browser images.
", + "smithy.api#title": "Amazon WorkSpaces Web" + }, + "version": "2020-07-08", + "operations": [ + { + "target": "com.amazonaws.workspacesweb#AssociateBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#AssociateNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#AssociateTrustStore" + }, + { + "target": "com.amazonaws.workspacesweb#AssociateUserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#CreateBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#CreateIdentityProvider" + }, + { + "target": "com.amazonaws.workspacesweb#CreateNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#CreatePortal" + }, + { + "target": "com.amazonaws.workspacesweb#CreateTrustStore" + }, + { + "target": "com.amazonaws.workspacesweb#CreateUserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#DeleteBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#DeleteIdentityProvider" + }, + { + "target": "com.amazonaws.workspacesweb#DeleteNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#DeletePortal" + }, + { + "target": "com.amazonaws.workspacesweb#DeleteTrustStore" + }, + { + "target": "com.amazonaws.workspacesweb#DeleteUserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#DisassociateBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#DisassociateNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#DisassociateTrustStore" + }, + { + "target": "com.amazonaws.workspacesweb#DisassociateUserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#GetBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#GetIdentityProvider" + }, + { + "target": "com.amazonaws.workspacesweb#GetNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#GetPortal" + }, + { + "target": "com.amazonaws.workspacesweb#GetPortalServiceProviderMetadata" + }, + { + "target": "com.amazonaws.workspacesweb#GetTrustStore" + }, + { + "target": "com.amazonaws.workspacesweb#GetTrustStoreCertificate" + }, + { + "target": "com.amazonaws.workspacesweb#GetUserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#ListBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#ListIdentityProviders" + }, + { + "target": "com.amazonaws.workspacesweb#ListNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#ListPortals" + }, + { + "target": "com.amazonaws.workspacesweb#ListTagsForResource" + }, + { + "target": "com.amazonaws.workspacesweb#ListTrustStoreCertificates" + }, + { + "target": "com.amazonaws.workspacesweb#ListTrustStores" + }, + { + "target": "com.amazonaws.workspacesweb#ListUserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#TagResource" + }, + { + "target": "com.amazonaws.workspacesweb#UntagResource" + }, + { + "target": "com.amazonaws.workspacesweb#UpdateBrowserSettings" + }, + { + "target": "com.amazonaws.workspacesweb#UpdateIdentityProvider" + }, + { + "target": "com.amazonaws.workspacesweb#UpdateNetworkSettings" + }, + { + "target": "com.amazonaws.workspacesweb#UpdatePortal" + }, + { + "target": "com.amazonaws.workspacesweb#UpdateTrustStore" + }, + { + "target": "com.amazonaws.workspacesweb#UpdateUserSettings" + } + ] + }, + "com.amazonaws.workspacesweb#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "Access is denied.
", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.workspacesweb#ArnList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#ARN" + } + }, + "com.amazonaws.workspacesweb#AssociateBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#AssociateBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#AssociateBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Associates a browser settings resource with a web portal.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/portals/{portalArn+}/browserSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#AssociateBrowserSettingsRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#httpQuery": "browserSettingsArn", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateBrowserSettingsResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#AssociateNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#AssociateNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Associates a network settings resource with a web portal.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/portals/{portalArn+}/networkSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#AssociateNetworkSettingsRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#httpQuery": "networkSettingsArn", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateNetworkSettingsResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateTrustStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#AssociateTrustStoreRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#AssociateTrustStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Associates a trust store with a web portal.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/portals/{portalArn+}/trustStores", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#AssociateTrustStoreRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#httpQuery": "trustStoreArn", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateTrustStoreResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#AssociateUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#AssociateUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Associates a user settings resource with a web portal.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/portals/{portalArn+}/userSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#AssociateUserSettingsRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#httpQuery": "userSettingsArn", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#AssociateUserSettingsResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#BrowserPolicy": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 131072 + }, + "smithy.api#pattern": "\\{[\\S\\s]*\\}\\s*" + } + }, + "com.amazonaws.workspacesweb#BrowserSettings": { + "type": "structure", + "members": { + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#required": {} + } + }, + "associatedPortalArns": { + "target": "com.amazonaws.workspacesweb#ArnList", + "traits": { + "smithy.api#documentation": "A list of web portal ARNs that this browser settings is associated with.
" + } + }, + "browserPolicy": { + "target": "com.amazonaws.workspacesweb#BrowserPolicy", + "traits": { + "smithy.api#documentation": "A JSON string containing Chrome Enterprise policies that will be applied to all\n streaming sessions.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The browser settings resource that can be associated with a web portal. Once associated\n with a web portal, browser settings control how the browser will behave once a user starts\n a streaming session for the web portal.
" + } + }, + "com.amazonaws.workspacesweb#BrowserSettingsList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#BrowserSettingsSummary" + } + }, + "com.amazonaws.workspacesweb#BrowserSettingsSummary": { + "type": "structure", + "members": { + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary for browser settings.
" + } + }, + "com.amazonaws.workspacesweb#BrowserType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Chrome", + "name": "CHROME" + } + ] + } + }, + "com.amazonaws.workspacesweb#Certificate": { + "type": "structure", + "members": { + "thumbprint": { + "target": "com.amazonaws.workspacesweb#CertificateThumbprint", + "traits": { + "smithy.api#documentation": "A hexadecimal identifier for the certificate.
" + } + }, + "subject": { + "target": "com.amazonaws.workspacesweb#CertificatePrincipal", + "traits": { + "smithy.api#documentation": "The entity the certificate belongs to.
" + } + }, + "issuer": { + "target": "com.amazonaws.workspacesweb#CertificatePrincipal", + "traits": { + "smithy.api#documentation": "The entity that issued the certificate.
" + } + }, + "notValidBefore": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "The certificate is not valid before this date.
" + } + }, + "notValidAfter": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "The certificate is not valid after this date.
" + } + }, + "body": { + "target": "com.amazonaws.workspacesweb#CertificateAuthorityBody", + "traits": { + "smithy.api#documentation": "The body of the certificate.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The certificate.
" + } + }, + "com.amazonaws.workspacesweb#CertificateAuthorityBody": { + "type": "blob" + }, + "com.amazonaws.workspacesweb#CertificateList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#CertificateAuthorityBody" + } + }, + "com.amazonaws.workspacesweb#CertificatePrincipal": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^\\S+$" + } + }, + "com.amazonaws.workspacesweb#CertificateSummary": { + "type": "structure", + "members": { + "thumbprint": { + "target": "com.amazonaws.workspacesweb#CertificateThumbprint", + "traits": { + "smithy.api#documentation": "A hexadecimal identifier for the certificate.
" + } + }, + "subject": { + "target": "com.amazonaws.workspacesweb#CertificatePrincipal", + "traits": { + "smithy.api#documentation": "The entity the certificate belongs to.
" + } + }, + "issuer": { + "target": "com.amazonaws.workspacesweb#CertificatePrincipal", + "traits": { + "smithy.api#documentation": "The entity that issued the certificate.
" + } + }, + "notValidBefore": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "The certificate is not valid before this date.
" + } + }, + "notValidAfter": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "The certificate is not valid after this date.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary of the certificate.
" + } + }, + "com.amazonaws.workspacesweb#CertificateSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#CertificateSummary" + } + }, + "com.amazonaws.workspacesweb#CertificateThumbprint": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 64, + "max": 64 + }, + "smithy.api#pattern": "^[A-Fa-f0-9]{64}$" + } + }, + "com.amazonaws.workspacesweb#CertificateThumbprintList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#CertificateThumbprint" + } + }, + "com.amazonaws.workspacesweb#ClientToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 512 + } + } + }, + "com.amazonaws.workspacesweb#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + }, + "resourceId": { + "target": "com.amazonaws.workspacesweb#ResourceId", + "traits": { + "smithy.api#documentation": "Identifier of the resource affected.
" + } + }, + "resourceType": { + "target": "com.amazonaws.workspacesweb#ResourceType", + "traits": { + "smithy.api#documentation": "Type of the resource affected.
" + } + } + }, + "traits": { + "smithy.api#documentation": "There is a conflict.
", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.workspacesweb#CreateBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreateBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreateBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a browser settings resource that can be associated with a web portal. Once\n associated with a web portal, browser settings control how the browser will behave once a\n user starts a streaming session for the web portal.
", + "smithy.api#http": { + "method": "POST", + "uri": "/browserSettings", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreateBrowserSettingsRequest": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags to add to the browser settings resource. A tag is a key-value pair.
" + } + }, + "customerManagedKey": { + "target": "com.amazonaws.workspacesweb#keyArn", + "traits": { + "smithy.api#documentation": "The custom managed key of the browser settings.
" + } + }, + "additionalEncryptionContext": { + "target": "com.amazonaws.workspacesweb#EncryptionContextMap", + "traits": { + "smithy.api#documentation": "Additional encryption context of the browser settings.
" + } + }, + "browserPolicy": { + "target": "com.amazonaws.workspacesweb#BrowserPolicy", + "traits": { + "smithy.api#documentation": "A JSON string containing Chrome Enterprise policies that will be applied to all\n streaming sessions.
", + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateBrowserSettingsResponse": { + "type": "structure", + "members": { + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateIdentityProvider": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreateIdentityProviderRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreateIdentityProviderResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates an identity provider resource that is then associated with a web portal.
", + "smithy.api#http": { + "method": "POST", + "uri": "/identityProviders", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreateIdentityProviderRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "identityProviderName": { + "target": "com.amazonaws.workspacesweb#IdentityProviderName", + "traits": { + "smithy.api#documentation": "The identity provider name.
", + "smithy.api#required": {} + } + }, + "identityProviderType": { + "target": "com.amazonaws.workspacesweb#IdentityProviderType", + "traits": { + "smithy.api#documentation": "The identity provider type.
", + "smithy.api#required": {} + } + }, + "identityProviderDetails": { + "target": "com.amazonaws.workspacesweb#IdentityProviderDetails", + "traits": { + "smithy.api#documentation": "The identity provider details. The following list describes the provider detail keys for\n each identity provider type.
\nFor Google and Login with Amazon:
\n\n client_id
\n
\n client_secret
\n
\n authorize_scopes
\n
For Facebook:
\n\n client_id
\n
\n client_secret
\n
\n authorize_scopes
\n
\n api_version
\n
For Sign in with Apple:
\n\n client_id
\n
\n team_id
\n
\n key_id
\n
\n private_key
\n
\n authorize_scopes
\n
For OIDC providers:
\n\n client_id
\n
\n client_secret
\n
\n attributes_request_method
\n
\n oidc_issuer
\n
\n authorize_scopes
\n
\n authorize_url
\n if not available from discovery URL specified by\n oidc_issuer
key\n
\n token_url
\n if not available from discovery URL specified by\n oidc_issuer
key\n
\n attributes_url
\n if not available from discovery URL specified by\n oidc_issuer
key\n
\n jwks_uri
\n if not available from discovery URL specified by\n oidc_issuer
key\n
For SAML providers:
\n\n MetadataFile
OR MetadataURL
\n
\n IDPSignout
\n optional\n
A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateIdentityProviderResponse": { + "type": "structure", + "members": { + "identityProviderArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the identity provider.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreateNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreateNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a network settings resource that can be associated with a web portal. Once\n associated with a web portal, network settings define how streaming instances will connect\n with your specified VPC.
", + "smithy.api#http": { + "method": "POST", + "uri": "/networkSettings", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreateNetworkSettingsRequest": { + "type": "structure", + "members": { + "vpcId": { + "target": "com.amazonaws.workspacesweb#VpcId", + "traits": { + "smithy.api#documentation": "The VPC that streaming instances will connect to.
", + "smithy.api#required": {} + } + }, + "subnetIds": { + "target": "com.amazonaws.workspacesweb#SubnetIdList", + "traits": { + "smithy.api#documentation": "The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
", + "smithy.api#required": {} + } + }, + "securityGroupIds": { + "target": "com.amazonaws.workspacesweb#SecurityGroupIdList", + "traits": { + "smithy.api#documentation": "One or more security groups used to control access from streaming instances to your VPC.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags to add to the network settings resource. A tag is a key-value pair.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateNetworkSettingsResponse": { + "type": "structure", + "members": { + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreatePortal": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreatePortalRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreatePortalResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a web portal.
", + "smithy.api#http": { + "method": "POST", + "uri": "/portals", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreatePortalRequest": { + "type": "structure", + "members": { + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayName", + "traits": { + "smithy.api#documentation": "The name of the web portal. This is not visible to users who log into the web portal.
" + } + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags to add to the web portal. A tag is a key-value pair.
" + } + }, + "customerManagedKey": { + "target": "com.amazonaws.workspacesweb#keyArn", + "traits": { + "smithy.api#documentation": "The customer managed key of the web portal.
" + } + }, + "additionalEncryptionContext": { + "target": "com.amazonaws.workspacesweb#EncryptionContextMap", + "traits": { + "smithy.api#documentation": "The additional encryption context of the portal.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreatePortalResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "portalEndpoint": { + "target": "com.amazonaws.workspacesweb#PortalEndpoint", + "traits": { + "smithy.api#documentation": "The endpoint URL of the web portal that users access in order to start streaming sessions.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateTrustStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreateTrustStoreRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreateTrustStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a trust store that can be associated with a web portal. A trust store contains\n certificate authority (CA) certificates. Once associated with a web portal, the browser in\n a streaming session will recognize certificates that have been issued using any of the CAs\n in the trust store. If your organization has internal websites that use certificates issued\n by private CAs, you should add the private CA certificate to the trust store.
", + "smithy.api#http": { + "method": "POST", + "uri": "/trustStores", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreateTrustStoreRequest": { + "type": "structure", + "members": { + "certificateList": { + "target": "com.amazonaws.workspacesweb#CertificateList", + "traits": { + "smithy.api#documentation": "A list of CA certificates to be added to the trust store.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags to add to the trust store. A tag is a key-value pair.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateTrustStoreResponse": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#CreateUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#CreateUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a user settings resource that can be associated with a web portal. Once\n associated with a web portal, user settings control how users can transfer data between a\n streaming session and the their local devices.
", + "smithy.api#http": { + "method": "POST", + "uri": "/userSettings", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#CreateUserSettingsRequest": { + "type": "structure", + "members": { + "copyAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can copy text from the streaming session to the local\n device.
", + "smithy.api#required": {} + } + }, + "pasteAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can paste text from the local device to the streaming\n session.
", + "smithy.api#required": {} + } + }, + "downloadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can download files from the streaming session to the local\n device.
", + "smithy.api#required": {} + } + }, + "uploadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can upload files from the local device to the streaming\n session.
", + "smithy.api#required": {} + } + }, + "printAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can print to the local device.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags to add to the user settings resource. A tag is a key-value pair.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#CreateUserSettingsResponse": { + "type": "structure", + "members": { + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeleteBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeleteBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeleteBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes browser settings.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/browserSettings/{browserSettingsArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeleteBrowserSettingsRequest": { + "type": "structure", + "members": { + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeleteBrowserSettingsResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DeleteIdentityProvider": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeleteIdentityProviderRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeleteIdentityProviderResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes the identity provider.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/identityProviders/{identityProviderArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeleteIdentityProviderRequest": { + "type": "structure", + "members": { + "identityProviderArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the identity provider.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeleteIdentityProviderResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DeleteNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeleteNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeleteNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes network settings.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/networkSettings/{networkSettingsArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeleteNetworkSettingsRequest": { + "type": "structure", + "members": { + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeleteNetworkSettingsResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DeletePortal": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeletePortalRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeletePortalResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a web portal.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/portals/{portalArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeletePortalRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeletePortalResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DeleteTrustStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeleteTrustStoreRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeleteTrustStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes the trust store.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/trustStores/{trustStoreArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeleteTrustStoreRequest": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeleteTrustStoreResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DeleteUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DeleteUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DeleteUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#ConflictException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes user settings.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/userSettings/{userSettingsArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DeleteUserSettingsRequest": { + "type": "structure", + "members": { + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DeleteUserSettingsResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DisassociateBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DisassociateBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DisassociateBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Disassociates browser settings from a web portal.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/portals/{portalArn+}/browserSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DisassociateBrowserSettingsRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DisassociateBrowserSettingsResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DisassociateNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DisassociateNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DisassociateNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Disassociates network settings from a web portal.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/portals/{portalArn+}/networkSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DisassociateNetworkSettingsRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DisassociateNetworkSettingsResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DisassociateTrustStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DisassociateTrustStoreRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DisassociateTrustStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Disassociates a trust store from a web portal.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/portals/{portalArn+}/trustStores", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DisassociateTrustStoreRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DisassociateTrustStoreResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DisassociateUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#DisassociateUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#DisassociateUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Disassociates user settings from a web portal.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/portals/{portalArn+}/userSettings", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#DisassociateUserSettingsRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#DisassociateUserSettingsResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#DisplayName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.workspacesweb#EnabledType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Disabled", + "name": "DISABLED" + }, + { + "value": "Enabled", + "name": "ENABLED" + } + ] + } + }, + "com.amazonaws.workspacesweb#EncryptionContextMap": { + "type": "map", + "key": { + "target": "com.amazonaws.workspacesweb#StringType" + }, + "value": { + "target": "com.amazonaws.workspacesweb#StringType" + } + }, + "com.amazonaws.workspacesweb#ExceptionMessage": { + "type": "string" + }, + "com.amazonaws.workspacesweb#FieldName": { + "type": "string" + }, + "com.amazonaws.workspacesweb#GetBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets browser settings.
", + "smithy.api#http": { + "method": "GET", + "uri": "/browserSettings/{browserSettingsArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetBrowserSettingsRequest": { + "type": "structure", + "members": { + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetBrowserSettingsResponse": { + "type": "structure", + "members": { + "browserSettings": { + "target": "com.amazonaws.workspacesweb#BrowserSettings", + "traits": { + "smithy.api#documentation": "The browser settings.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetIdentityProvider": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetIdentityProviderRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetIdentityProviderResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the identity provider.
", + "smithy.api#http": { + "method": "GET", + "uri": "/identityProviders/{identityProviderArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetIdentityProviderRequest": { + "type": "structure", + "members": { + "identityProviderArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the identity provider.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetIdentityProviderResponse": { + "type": "structure", + "members": { + "identityProvider": { + "target": "com.amazonaws.workspacesweb#IdentityProvider", + "traits": { + "smithy.api#documentation": "The identity provider.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the network settings.
", + "smithy.api#http": { + "method": "GET", + "uri": "/networkSettings/{networkSettingsArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetNetworkSettingsRequest": { + "type": "structure", + "members": { + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetNetworkSettingsResponse": { + "type": "structure", + "members": { + "networkSettings": { + "target": "com.amazonaws.workspacesweb#NetworkSettings", + "traits": { + "smithy.api#documentation": "The network settings.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetPortal": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetPortalRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetPortalResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the web portal.
", + "smithy.api#http": { + "method": "GET", + "uri": "/portals/{portalArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetPortalRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetPortalResponse": { + "type": "structure", + "members": { + "portal": { + "target": "com.amazonaws.workspacesweb#Portal", + "traits": { + "smithy.api#documentation": "The web portal.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetPortalServiceProviderMetadata": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetPortalServiceProviderMetadataRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetPortalServiceProviderMetadataResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the service provider metadata.
", + "smithy.api#http": { + "method": "GET", + "uri": "/portalIdp/{portalArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetPortalServiceProviderMetadataRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetPortalServiceProviderMetadataResponse": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#required": {} + } + }, + "serviceProviderSamlMetadata": { + "target": "com.amazonaws.workspacesweb#SamlMetadata", + "traits": { + "smithy.api#documentation": "The service provider SAML metadata.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetTrustStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetTrustStoreRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetTrustStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the trust store.
", + "smithy.api#http": { + "method": "GET", + "uri": "/trustStores/{trustStoreArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetTrustStoreCertificate": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetTrustStoreCertificateRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetTrustStoreCertificateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets the trust store certificate.
", + "smithy.api#http": { + "method": "GET", + "uri": "/trustStores/{trustStoreArn+}/certificate", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetTrustStoreCertificateRequest": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store certificate.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "thumbprint": { + "target": "com.amazonaws.workspacesweb#CertificateThumbprint", + "traits": { + "smithy.api#documentation": "The thumbprint of the trust store certificate.
", + "smithy.api#httpQuery": "thumbprint", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetTrustStoreCertificateResponse": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store certificate.
" + } + }, + "certificate": { + "target": "com.amazonaws.workspacesweb#Certificate", + "traits": { + "smithy.api#documentation": "The certificate of the trust store certificate.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetTrustStoreRequest": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetTrustStoreResponse": { + "type": "structure", + "members": { + "trustStore": { + "target": "com.amazonaws.workspacesweb#TrustStore", + "traits": { + "smithy.api#documentation": "The trust store.
" + } + } + } + }, + "com.amazonaws.workspacesweb#GetUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#GetUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#GetUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Gets user settings.
", + "smithy.api#http": { + "method": "GET", + "uri": "/userSettings/{userSettingsArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#GetUserSettingsRequest": { + "type": "structure", + "members": { + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#GetUserSettingsResponse": { + "type": "structure", + "members": { + "userSettings": { + "target": "com.amazonaws.workspacesweb#UserSettings", + "traits": { + "smithy.api#documentation": "The user settings.
" + } + } + } + }, + "com.amazonaws.workspacesweb#IdentityProvider": { + "type": "structure", + "members": { + "identityProviderArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the identity provider.
", + "smithy.api#required": {} + } + }, + "identityProviderName": { + "target": "com.amazonaws.workspacesweb#IdentityProviderName", + "traits": { + "smithy.api#documentation": "The identity provider name.
" + } + }, + "identityProviderType": { + "target": "com.amazonaws.workspacesweb#IdentityProviderType", + "traits": { + "smithy.api#documentation": "The identity provider type.
" + } + }, + "identityProviderDetails": { + "target": "com.amazonaws.workspacesweb#IdentityProviderDetails", + "traits": { + "smithy.api#documentation": "The identity provider details. The following list describes the provider detail keys for\n each identity provider type.
\nFor Google and Login with Amazon:
\n\n client_id
\n
\n client_secret
\n
\n authorize_scopes
\n
For Facebook:
\n\n client_id
\n
\n client_secret
\n
\n authorize_scopes
\n
\n api_version
\n
For Sign in with Apple:
\n\n client_id
\n
\n team_id
\n
\n key_id
\n
\n private_key
\n
\n authorize_scopes
\n
For OIDC providers:
\n\n client_id
\n
\n client_secret
\n
\n attributes_request_method
\n
\n oidc_issuer
\n
\n authorize_scopes
\n
\n authorize_url
\n if not available from discovery URL specified by oidc_issuer\n key\n
\n token_url
\n if not available from discovery URL specified by oidc_issuer\n key\n
\n attributes_url
\n if not available from discovery URL specified by oidc_issuer\n key\n
\n jwks_uri
\n if not available from discovery URL specified by oidc_issuer\n key\n
For SAML providers:
\n\n MetadataFile
OR MetadataURL
\n
\n IDPSignout
\n optional\n
The identity provider.
" + } + }, + "com.amazonaws.workspacesweb#IdentityProviderDetails": { + "type": "map", + "key": { + "target": "com.amazonaws.workspacesweb#StringType" + }, + "value": { + "target": "com.amazonaws.workspacesweb#StringType" + } + }, + "com.amazonaws.workspacesweb#IdentityProviderList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#IdentityProviderSummary" + } + }, + "com.amazonaws.workspacesweb#IdentityProviderName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32 + }, + "smithy.api#pattern": "^[^_][\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}][^_]+$" + } + }, + "com.amazonaws.workspacesweb#IdentityProviderSummary": { + "type": "structure", + "members": { + "identityProviderArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the identity provider.
" + } + }, + "identityProviderName": { + "target": "com.amazonaws.workspacesweb#IdentityProviderName", + "traits": { + "smithy.api#documentation": "The identity provider name.
" + } + }, + "identityProviderType": { + "target": "com.amazonaws.workspacesweb#IdentityProviderType", + "traits": { + "smithy.api#documentation": "The identity provider type.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary of the identity provider.
" + } + }, + "com.amazonaws.workspacesweb#IdentityProviderType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "SAML", + "name": "SAML" + }, + { + "value": "Facebook", + "name": "Facebook" + }, + { + "value": "Google", + "name": "Google" + }, + { + "value": "LoginWithAmazon", + "name": "LoginWithAmazon" + }, + { + "value": "SignInWithApple", + "name": "SignInWithApple" + }, + { + "value": "OIDC", + "name": "OIDC" + } + ] + } + }, + "com.amazonaws.workspacesweb#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + }, + "retryAfterSeconds": { + "target": "com.amazonaws.workspacesweb#RetryAfterSeconds", + "traits": { + "smithy.api#documentation": "Advice to clients on when the call can be safely retried.
", + "smithy.api#httpHeader": "Retry-After" + } + } + }, + "traits": { + "smithy.api#documentation": "There is an internal server error.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.workspacesweb#ListBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of browser settings.
", + "smithy.api#http": { + "method": "GET", + "uri": "/browserSettings", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListBrowserSettingsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.workspacesweb#ListBrowserSettingsResponse": { + "type": "structure", + "members": { + "browserSettings": { + "target": "com.amazonaws.workspacesweb#BrowserSettingsList", + "traits": { + "smithy.api#documentation": "The browser settings.
" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListIdentityProviders": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListIdentityProvidersRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListIdentityProvidersResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of identity providers for a specific web portal.
", + "smithy.api#http": { + "method": "GET", + "uri": "/portals/{portalArn+}/identityProviders", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListIdentityProvidersRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + }, + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#ListIdentityProvidersResponse": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
" + } + }, + "identityProviders": { + "target": "com.amazonaws.workspacesweb#IdentityProviderList", + "traits": { + "smithy.api#documentation": "The identity providers.
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of network settings.
", + "smithy.api#http": { + "method": "GET", + "uri": "/networkSettings", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListNetworkSettingsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.workspacesweb#ListNetworkSettingsResponse": { + "type": "structure", + "members": { + "networkSettings": { + "target": "com.amazonaws.workspacesweb#NetworkSettingsList", + "traits": { + "smithy.api#documentation": "The network settings.
" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListPortals": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListPortalsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListPortalsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list or web portals.
", + "smithy.api#http": { + "method": "GET", + "uri": "/portals", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListPortalsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.workspacesweb#ListPortalsResponse": { + "type": "structure", + "members": { + "portals": { + "target": "com.amazonaws.workspacesweb#PortalList", + "traits": { + "smithy.api#documentation": "The portals in the list.
" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of tags for a resource.
", + "smithy.api#http": { + "method": "GET", + "uri": "/tags/{resourceArn+}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the resource.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags of the resource.
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListTrustStoreCertificates": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListTrustStoreCertificatesRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListTrustStoreCertificatesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of trust store certificates.
", + "smithy.api#http": { + "method": "GET", + "uri": "/trustStores/{trustStoreArn+}/certificates", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListTrustStoreCertificatesRequest": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.workspacesweb#ListTrustStoreCertificatesResponse": { + "type": "structure", + "members": { + "certificateList": { + "target": "com.amazonaws.workspacesweb#CertificateSummaryList", + "traits": { + "smithy.api#documentation": "The certificate list.
" + } + }, + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.>
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListTrustStores": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListTrustStoresRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListTrustStoresResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of trust stores.
", + "smithy.api#http": { + "method": "GET", + "uri": "/trustStores", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListTrustStoresRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.workspacesweb#ListTrustStoresResponse": { + "type": "structure", + "members": { + "trustStores": { + "target": "com.amazonaws.workspacesweb#TrustStoreSummaryList", + "traits": { + "smithy.api#documentation": "The trust stores.
" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
" + } + } + } + }, + "com.amazonaws.workspacesweb#ListUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#ListUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#ListUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Retrieves a list of user settings.
", + "smithy.api#http": { + "method": "GET", + "uri": "/userSettings", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.workspacesweb#ListUserSettingsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
", + "smithy.api#httpQuery": "nextToken" + } + }, + "maxResults": { + "target": "com.amazonaws.workspacesweb#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of results to be included in the next page.
", + "smithy.api#httpQuery": "maxResults" + } + } + } + }, + "com.amazonaws.workspacesweb#ListUserSettingsResponse": { + "type": "structure", + "members": { + "userSettings": { + "target": "com.amazonaws.workspacesweb#UserSettingsList", + "traits": { + "smithy.api#documentation": "The user settings.
" + } + }, + "nextToken": { + "target": "com.amazonaws.workspacesweb#PaginationToken", + "traits": { + "smithy.api#documentation": "The pagination token used to retrieve the next page of results for this operation.
" + } + } + } + }, + "com.amazonaws.workspacesweb#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.workspacesweb#NetworkSettings": { + "type": "structure", + "members": { + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#required": {} + } + }, + "associatedPortalArns": { + "target": "com.amazonaws.workspacesweb#ArnList", + "traits": { + "smithy.api#documentation": "A list of web portal ARNs that this network settings is associated with.
" + } + }, + "vpcId": { + "target": "com.amazonaws.workspacesweb#VpcId", + "traits": { + "smithy.api#documentation": "The VPC that streaming instances will connect to.
" + } + }, + "subnetIds": { + "target": "com.amazonaws.workspacesweb#SubnetIdList", + "traits": { + "smithy.api#documentation": "The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
" + } + }, + "securityGroupIds": { + "target": "com.amazonaws.workspacesweb#SecurityGroupIdList", + "traits": { + "smithy.api#documentation": "One or more security groups used to control access from streaming instances to your VPC.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A network settings resource that can be associated with a web portal. Once associated\n with a web portal, network settings define how streaming instances will connect with your\n specified VPC.
" + } + }, + "com.amazonaws.workspacesweb#NetworkSettingsList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#NetworkSettingsSummary" + } + }, + "com.amazonaws.workspacesweb#NetworkSettingsSummary": { + "type": "structure", + "members": { + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
" + } + }, + "vpcId": { + "target": "com.amazonaws.workspacesweb#VpcId", + "traits": { + "smithy.api#documentation": "The VPC ID of the network settings.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary of network settings.
" + } + }, + "com.amazonaws.workspacesweb#PaginationToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^\\S+$" + } + }, + "com.amazonaws.workspacesweb#Portal": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
" + } + }, + "rendererType": { + "target": "com.amazonaws.workspacesweb#RendererType", + "traits": { + "smithy.api#documentation": "The renderer that is used in streaming sessions.
" + } + }, + "browserType": { + "target": "com.amazonaws.workspacesweb#BrowserType", + "traits": { + "smithy.api#documentation": "The browser that users see when using a streaming session.
" + } + }, + "portalStatus": { + "target": "com.amazonaws.workspacesweb#PortalStatus", + "traits": { + "smithy.api#documentation": "The status of the web portal.
" + } + }, + "portalEndpoint": { + "target": "com.amazonaws.workspacesweb#PortalEndpoint", + "traits": { + "smithy.api#documentation": "The endpoint URL of the web portal that users access in order to start streaming\n sessions.
" + } + }, + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayName", + "traits": { + "smithy.api#documentation": "The name of the web portal.
" + } + }, + "creationDate": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "The creation date of the web portal.
" + } + }, + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings that is associated with this web portal.
" + } + }, + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store that is associated with the web portal.
" + } + }, + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings that is associated with the web portal.
" + } + }, + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store that is associated with the web portal.
" + } + }, + "statusReason": { + "target": "com.amazonaws.workspacesweb#StatusReason", + "traits": { + "smithy.api#documentation": "A message that explains why the web portal is in its current status.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The web portal.
" + } + }, + "com.amazonaws.workspacesweb#PortalEndpoint": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 253 + }, + "smithy.api#pattern": "^[a-zA-Z0-9]?((?!-)([A-Za-z0-9-]*[A-Za-z0-9])\\.)+[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.workspacesweb#PortalList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#PortalSummary" + } + }, + "com.amazonaws.workspacesweb#PortalStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "Incomplete", + "name": "INCOMPLETE" + }, + { + "value": "Pending", + "name": "PENDING" + }, + { + "value": "Active", + "name": "ACTIVE" + } + ] + } + }, + "com.amazonaws.workspacesweb#PortalSummary": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
" + } + }, + "rendererType": { + "target": "com.amazonaws.workspacesweb#RendererType", + "traits": { + "smithy.api#documentation": "The renderer that is used in streaming sessions.
" + } + }, + "browserType": { + "target": "com.amazonaws.workspacesweb#BrowserType", + "traits": { + "smithy.api#documentation": "The browser type of the web portal.
" + } + }, + "portalStatus": { + "target": "com.amazonaws.workspacesweb#PortalStatus", + "traits": { + "smithy.api#documentation": "The status of the web portal.
" + } + }, + "portalEndpoint": { + "target": "com.amazonaws.workspacesweb#PortalEndpoint", + "traits": { + "smithy.api#documentation": "The endpoint URL of the web portal that users access in order to start streaming\n sessions.
" + } + }, + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayName", + "traits": { + "smithy.api#documentation": "The name of the web portal.
" + } + }, + "creationDate": { + "target": "com.amazonaws.workspacesweb#Timestamp", + "traits": { + "smithy.api#documentation": "The creation date of the web portal.
" + } + }, + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings that is associated with the web portal.
" + } + }, + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings that is associated with the web portal.
" + } + }, + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings that is associated with the web portal.
" + } + }, + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust that is associated with this web portal.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary of the portal.
" + } + }, + "com.amazonaws.workspacesweb#QuotaCode": { + "type": "string" + }, + "com.amazonaws.workspacesweb#RendererType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AppStream", + "name": "APPSTREAM" + } + ] + } + }, + "com.amazonaws.workspacesweb#ResourceId": { + "type": "string" + }, + "com.amazonaws.workspacesweb#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + }, + "resourceId": { + "target": "com.amazonaws.workspacesweb#ResourceId", + "traits": { + "smithy.api#documentation": "Hypothetical identifier of the resource affected.
" + } + }, + "resourceType": { + "target": "com.amazonaws.workspacesweb#ResourceType", + "traits": { + "smithy.api#documentation": "Hypothetical type of the resource affected.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The resource cannot be found.
", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.workspacesweb#ResourceType": { + "type": "string" + }, + "com.amazonaws.workspacesweb#RetryAfterSeconds": { + "type": "integer" + }, + "com.amazonaws.workspacesweb#SamlMetadata": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 204800 + }, + "smithy.api#pattern": "^.+$" + } + }, + "com.amazonaws.workspacesweb#SecurityGroupId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[\\w+\\-]+$" + } + }, + "com.amazonaws.workspacesweb#SecurityGroupIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#SecurityGroupId" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 5 + } + } + }, + "com.amazonaws.workspacesweb#ServiceCode": { + "type": "string" + }, + "com.amazonaws.workspacesweb#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + }, + "resourceId": { + "target": "com.amazonaws.workspacesweb#ResourceId", + "traits": { + "smithy.api#documentation": "Identifier of the resource affected.
" + } + }, + "resourceType": { + "target": "com.amazonaws.workspacesweb#ResourceType", + "traits": { + "smithy.api#documentation": "Type of the resource affected.
" + } + }, + "serviceCode": { + "target": "com.amazonaws.workspacesweb#ServiceCode", + "traits": { + "smithy.api#documentation": "The originating service.
" + } + }, + "quotaCode": { + "target": "com.amazonaws.workspacesweb#QuotaCode", + "traits": { + "smithy.api#documentation": "The originating quota.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The service quota has been exceeded.
", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.workspacesweb#StatusReason": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + }, + "smithy.api#pattern": ".*" + } + }, + "com.amazonaws.workspacesweb#StringType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 131072 + }, + "smithy.api#pattern": "^[\\s\\S]*$" + } + }, + "com.amazonaws.workspacesweb#SubnetId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32 + }, + "smithy.api#pattern": "^subnet-([0-9a-f]{8}|[0-9a-f]{17})$" + } + }, + "com.amazonaws.workspacesweb#SubnetIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#SubnetId" + }, + "traits": { + "smithy.api#length": { + "min": 2, + "max": 3 + } + } + }, + "com.amazonaws.workspacesweb#Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.workspacesweb#TagKey", + "traits": { + "smithy.api#documentation": "The key of the tag.
", + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.workspacesweb#TagValue", + "traits": { + "smithy.api#documentation": "The value of the tag
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The tag.
" + } + }, + "com.amazonaws.workspacesweb#TagExceptionMessage": { + "type": "string" + }, + "com.amazonaws.workspacesweb#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.workspacesweb#TagKeyList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#TagKey" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.workspacesweb#TagList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#Tag" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 200 + } + } + }, + "com.amazonaws.workspacesweb#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#TagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#TooManyTagsException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Adds or overwrites one or more tags for the specified resource.
", + "smithy.api#http": { + "method": "POST", + "uri": "/tags/{resourceArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#TagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the resource.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.workspacesweb#TagList", + "traits": { + "smithy.api#documentation": "The tags of the resource.
", + "smithy.api#required": {} + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token returns the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#TagResourceResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + } + }, + "com.amazonaws.workspacesweb#ThrottlingException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + }, + "serviceCode": { + "target": "com.amazonaws.workspacesweb#ServiceCode", + "traits": { + "smithy.api#documentation": "The originating service.
" + } + }, + "quotaCode": { + "target": "com.amazonaws.workspacesweb#QuotaCode", + "traits": { + "smithy.api#documentation": "The originating quota.
" + } + }, + "retryAfterSeconds": { + "target": "com.amazonaws.workspacesweb#RetryAfterSeconds", + "traits": { + "smithy.api#documentation": "Advice to clients on when the call can be safely retried.
", + "smithy.api#httpHeader": "Retry-After" + } + } + }, + "traits": { + "smithy.api#documentation": "There is a throttling error.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.workspacesweb#Timestamp": { + "type": "timestamp" + }, + "com.amazonaws.workspacesweb#TooManyTagsException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#TagExceptionMessage" + }, + "resourceName": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "Name of the resource affected.
" + } + } + }, + "traits": { + "smithy.api#documentation": "There are too many tags.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.workspacesweb#TrustStore": { + "type": "structure", + "members": { + "associatedPortalArns": { + "target": "com.amazonaws.workspacesweb#ArnList", + "traits": { + "smithy.api#documentation": "A list of web portal ARNs that this trust store is associated with.
" + } + }, + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A trust store that can be associated with a web portal. A trust store contains\n certificate authority (CA) certificates. Once associated with a web portal, the browser in\n a streaming session will recognize certificates that have been issued using any of the CAs\n in the trust store. If your organization has internal websites that use certificates issued\n by private CAs, you should add the private CA certificate to the trust store.
" + } + }, + "com.amazonaws.workspacesweb#TrustStoreSummary": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary of the trust store.
" + } + }, + "com.amazonaws.workspacesweb#TrustStoreSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#TrustStoreSummary" + } + }, + "com.amazonaws.workspacesweb#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UntagResourceRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UntagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Removes one or more tags from the specified resource.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/tags/{resourceArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#UntagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the resource.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tagKeys": { + "target": "com.amazonaws.workspacesweb#TagKeyList", + "traits": { + "smithy.api#documentation": "The list of tag keys to remove from the resource.
", + "smithy.api#httpQuery": "tagKeys", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UntagResourceResponse": { + "type": "structure", + "members": {} + }, + "com.amazonaws.workspacesweb#UpdateBrowserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdateBrowserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdateBrowserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates browser settings.
", + "smithy.api#http": { + "method": "PATCH", + "uri": "/browserSettings/{browserSettingsArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#UpdateBrowserSettingsRequest": { + "type": "structure", + "members": { + "browserSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the browser settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "browserPolicy": { + "target": "com.amazonaws.workspacesweb#BrowserPolicy", + "traits": { + "smithy.api#documentation": "A JSON string containing Chrome Enterprise policies that will be applied to all\n streaming sessions.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token return the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateBrowserSettingsResponse": { + "type": "structure", + "members": { + "browserSettings": { + "target": "com.amazonaws.workspacesweb#BrowserSettings", + "traits": { + "smithy.api#documentation": "The browser settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateIdentityProvider": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdateIdentityProviderRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdateIdentityProviderResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates the identity provider.
", + "smithy.api#http": { + "method": "PATCH", + "uri": "/identityProviders/{identityProviderArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#UpdateIdentityProviderRequest": { + "type": "structure", + "members": { + "identityProviderArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the identity provider.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "identityProviderName": { + "target": "com.amazonaws.workspacesweb#IdentityProviderName", + "traits": { + "smithy.api#documentation": "The name of the identity provider.
" + } + }, + "identityProviderType": { + "target": "com.amazonaws.workspacesweb#IdentityProviderType", + "traits": { + "smithy.api#documentation": "The type of the identity provider.
" + } + }, + "identityProviderDetails": { + "target": "com.amazonaws.workspacesweb#IdentityProviderDetails", + "traits": { + "smithy.api#documentation": "The details of the identity provider.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token return the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateIdentityProviderResponse": { + "type": "structure", + "members": { + "identityProvider": { + "target": "com.amazonaws.workspacesweb#IdentityProvider", + "traits": { + "smithy.api#documentation": "The identity provider.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateNetworkSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdateNetworkSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdateNetworkSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates network settings.
", + "smithy.api#http": { + "method": "PATCH", + "uri": "/networkSettings/{networkSettingsArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#UpdateNetworkSettingsRequest": { + "type": "structure", + "members": { + "networkSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the network settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "vpcId": { + "target": "com.amazonaws.workspacesweb#VpcId", + "traits": { + "smithy.api#documentation": "The VPC that streaming instances will connect to.
" + } + }, + "subnetIds": { + "target": "com.amazonaws.workspacesweb#SubnetIdList", + "traits": { + "smithy.api#documentation": "The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
" + } + }, + "securityGroupIds": { + "target": "com.amazonaws.workspacesweb#SecurityGroupIdList", + "traits": { + "smithy.api#documentation": "One or more security groups used to control access from streaming instances to your VPC.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token return the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateNetworkSettingsResponse": { + "type": "structure", + "members": { + "networkSettings": { + "target": "com.amazonaws.workspacesweb#NetworkSettings", + "traits": { + "smithy.api#documentation": "The network settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdatePortal": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdatePortalRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdatePortalResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates a web portal.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/portals/{portalArn+}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.workspacesweb#UpdatePortalRequest": { + "type": "structure", + "members": { + "portalArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the web portal.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "displayName": { + "target": "com.amazonaws.workspacesweb#DisplayName", + "traits": { + "smithy.api#documentation": "The name of the web portal. This is not visible to users who log into the web portal.
" + } + } + } + }, + "com.amazonaws.workspacesweb#UpdatePortalResponse": { + "type": "structure", + "members": { + "portal": { + "target": "com.amazonaws.workspacesweb#Portal", + "traits": { + "smithy.api#documentation": "The web portal.
" + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateTrustStore": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdateTrustStoreRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdateTrustStoreResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates the trust store.
", + "smithy.api#http": { + "method": "PATCH", + "uri": "/trustStores/{trustStoreArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#UpdateTrustStoreRequest": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "certificatesToAdd": { + "target": "com.amazonaws.workspacesweb#CertificateList", + "traits": { + "smithy.api#documentation": "A list of CA certificates to add to the trust store.
" + } + }, + "certificatesToDelete": { + "target": "com.amazonaws.workspacesweb#CertificateThumbprintList", + "traits": { + "smithy.api#documentation": "A list of CA certificates to delete from a trust store.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token return the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateTrustStoreResponse": { + "type": "structure", + "members": { + "trustStoreArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the trust store.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateUserSettings": { + "type": "operation", + "input": { + "target": "com.amazonaws.workspacesweb#UpdateUserSettingsRequest" + }, + "output": { + "target": "com.amazonaws.workspacesweb#UpdateUserSettingsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.workspacesweb#AccessDeniedException" + }, + { + "target": "com.amazonaws.workspacesweb#InternalServerException" + }, + { + "target": "com.amazonaws.workspacesweb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.workspacesweb#ThrottlingException" + }, + { + "target": "com.amazonaws.workspacesweb#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates the user settings.
", + "smithy.api#http": { + "method": "PATCH", + "uri": "/userSettings/{userSettingsArn+}", + "code": 200 + } + } + }, + "com.amazonaws.workspacesweb#UpdateUserSettingsRequest": { + "type": "structure", + "members": { + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "copyAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can copy text from the streaming session to the local\n device.
" + } + }, + "pasteAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can paste text from the local device to the streaming\n session.
" + } + }, + "downloadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can download files from the streaming session to the local\n device.
" + } + }, + "uploadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can upload files from the local device to the streaming\n session.
" + } + }, + "printAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can print to the local device.
" + } + }, + "clientToken": { + "target": "com.amazonaws.workspacesweb#ClientToken", + "traits": { + "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, subsequent retries with the same\n client token return the result from the original successful request.
\nIf you do not specify a client token, one is automatically generated by the AWS\n SDK.
", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UpdateUserSettingsResponse": { + "type": "structure", + "members": { + "userSettings": { + "target": "com.amazonaws.workspacesweb#UserSettings", + "traits": { + "smithy.api#documentation": "The user settings.
", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.workspacesweb#UserSettings": { + "type": "structure", + "members": { + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
", + "smithy.api#required": {} + } + }, + "associatedPortalArns": { + "target": "com.amazonaws.workspacesweb#ArnList", + "traits": { + "smithy.api#documentation": "A list of web portal ARNs that this user settings is associated with.
" + } + }, + "copyAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can copy text from the streaming session to the local\n device.
" + } + }, + "pasteAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can paste text from the local device to the streaming\n session.
" + } + }, + "downloadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can download files from the streaming session to the local\n device.
" + } + }, + "uploadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can upload files from the local device to the streaming\n session.
" + } + }, + "printAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can print to the local device.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A user settings resource that can be associated with a web portal. Once associated with\n a web portal, user settings control how users can transfer data between a streaming session\n and the their local devices.
" + } + }, + "com.amazonaws.workspacesweb#UserSettingsList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#UserSettingsSummary" + } + }, + "com.amazonaws.workspacesweb#UserSettingsSummary": { + "type": "structure", + "members": { + "userSettingsArn": { + "target": "com.amazonaws.workspacesweb#ARN", + "traits": { + "smithy.api#documentation": "The ARN of the user settings.
" + } + }, + "copyAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can copy text from the streaming session to the local\n device.
" + } + }, + "pasteAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can paste text from the local device to the streaming\n session.
" + } + }, + "downloadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can download files from the streaming session to the local\n device.
" + } + }, + "uploadAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can upload files from the local device to the streaming\n session.
" + } + }, + "printAllowed": { + "target": "com.amazonaws.workspacesweb#EnabledType", + "traits": { + "smithy.api#documentation": "Specifies whether the user can print to the local device.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The summary of user settings.
" + } + }, + "com.amazonaws.workspacesweb#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage" + }, + "reason": { + "target": "com.amazonaws.workspacesweb#ValidationExceptionReason", + "traits": { + "smithy.api#documentation": "Reason the request failed validation
" + } + }, + "fieldList": { + "target": "com.amazonaws.workspacesweb#ValidationExceptionFieldList", + "traits": { + "smithy.api#documentation": "The field that caused the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "There is a validation error.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.workspacesweb#ValidationExceptionField": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.workspacesweb#FieldName", + "traits": { + "smithy.api#documentation": "The name of the field that failed validation.
", + "smithy.api#required": {} + } + }, + "message": { + "target": "com.amazonaws.workspacesweb#ExceptionMessage", + "traits": { + "smithy.api#documentation": "The message describing why the field failed validation.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Information about a field passed inside a request that resulted in an exception.
" + } + }, + "com.amazonaws.workspacesweb#ValidationExceptionFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.workspacesweb#ValidationExceptionField" + } + }, + "com.amazonaws.workspacesweb#ValidationExceptionReason": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "unknownOperation", + "name": "UNKNOWN_OPERATION" + }, + { + "value": "cannotParse", + "name": "CANNOT_PARSE" + }, + { + "value": "fieldValidationFailed", + "name": "FIELD_VALIDATION_FAILED" + }, + { + "value": "other", + "name": "OTHER" + } + ] + } + }, + "com.amazonaws.workspacesweb#VpcId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^vpc-[0-9a-z]*$" + } + }, + "com.amazonaws.workspacesweb#keyArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 2048 + }, + "smithy.api#pattern": "^arn:[\\w+=\\/,.@-]+:kms:[a-zA-Z0-9\\-]*:[a-zA-Z0-9]{1,12}:key\\/[a-zA-Z0-9-]+$" + } + } + } +} \ No newline at end of file diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json index 7c0ebc4c98c..6375693093d 100644 --- a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json +++ b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoint-prefix.json @@ -27,6 +27,7 @@ "Auto Scaling": "autoscaling", "Auto Scaling Plans": "autoscaling-plans", "Backup": "backup", + "Backup Gateway": "backup-gateway", "Batch": "batch", "Braket": "braket", "Budgets": "budgets", @@ -144,6 +145,7 @@ "IoTSecureTunneling": "api.tunneling.iot", "IoTSiteWise": "iotsitewise", "IoTThingsGraph": "iotthingsgraph", + "IoTTwinMaker": "iottwinmaker", "IotDeviceAdvisor": "api.iotdeviceadvisor", "Ivs": "ivs", "KMS": "kms", @@ -293,5 +295,6 @@ "WorkMail": "workmail", "WorkMailMessageFlow": "workmailmessageflow", "WorkSpaces": "workspaces", + "WorkSpaces Web": "workspaces-web", "XRay": "xray" } diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json index d4e4deaff20..159094490fb 100644 --- a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json +++ b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json @@ -1082,6 +1082,7 @@ "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, + "ap-northeast-3" : { }, "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, @@ -1731,16 +1732,8 @@ }, "cloudhsm" : { "endpoints" : { - "ap-northeast-1" : { }, - "ap-southeast-1" : { }, - "ap-southeast-2" : { }, - "ca-central-1" : { }, - "eu-central-1" : { }, "eu-west-1" : { }, - "us-east-1" : { }, - "us-east-2" : { }, - "us-west-1" : { }, - "us-west-2" : { } + "us-east-1" : { } } }, "cloudhsmv2" : { @@ -4698,6 +4691,37 @@ } } }, + "evidently" : { + "endpoints" : { + "ap-northeast-1" : { + "hostname" : "evidently.ap-northeast-1.amazonaws.com" + }, + "ap-southeast-1" : { + "hostname" : "evidently.ap-southeast-1.amazonaws.com" + }, + "ap-southeast-2" : { + "hostname" : "evidently.ap-southeast-2.amazonaws.com" + }, + "eu-central-1" : { + "hostname" : "evidently.eu-central-1.amazonaws.com" + }, + "eu-north-1" : { + "hostname" : "evidently.eu-north-1.amazonaws.com" + }, + "eu-west-1" : { + "hostname" : "evidently.eu-west-1.amazonaws.com" + }, + "us-east-1" : { + "hostname" : "evidently.us-east-1.amazonaws.com" + }, + "us-east-2" : { + "hostname" : "evidently.us-east-2.amazonaws.com" + }, + "us-west-2" : { + "hostname" : "evidently.us-west-2.amazonaws.com" + } + } + }, "finspace" : { "endpoints" : { "ca-central-1" : { }, @@ -5909,6 +5933,29 @@ } } }, + "inspector2" : { + "endpoints" : { + "ap-east-1" : { }, + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-south-1" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "ca-central-1" : { }, + "eu-central-1" : { }, + "eu-north-1" : { }, + "eu-south-1" : { }, + "eu-west-1" : { }, + "eu-west-2" : { }, + "eu-west-3" : { }, + "me-south-1" : { }, + "sa-east-1" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-1" : { }, + "us-west-2" : { } + } + }, "iot" : { "defaults" : { "credentialScope" : { @@ -8573,6 +8620,31 @@ } } }, + "rbin" : { + "endpoints" : { + "af-south-1" : { }, + "ap-east-1" : { }, + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-northeast-3" : { }, + "ap-south-1" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "ca-central-1" : { }, + "eu-central-1" : { }, + "eu-north-1" : { }, + "eu-south-1" : { }, + "eu-west-1" : { }, + "eu-west-2" : { }, + "eu-west-3" : { }, + "me-south-1" : { }, + "sa-east-1" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-1" : { }, + "us-west-2" : { } + } + }, "rds" : { "endpoints" : { "af-south-1" : { }, @@ -9141,6 +9213,20 @@ "us-west-2" : { } } }, + "rum" : { + "endpoints" : { + "ap-northeast-1" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "eu-central-1" : { }, + "eu-north-1" : { }, + "eu-west-1" : { }, + "eu-west-2" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-2" : { } + } + }, "runtime-v2-lex" : { "endpoints" : { "af-south-1" : { }, @@ -12254,6 +12340,13 @@ } } }, + "workspaces-web" : { + "endpoints" : { + "eu-west-1" : { }, + "us-east-1" : { }, + "us-west-2" : { } + } + }, "xray" : { "endpoints" : { "af-south-1" : { }, diff --git a/service/accessanalyzer/api_op_ValidatePolicy.go b/service/accessanalyzer/api_op_ValidatePolicy.go index b7b8de776ec..3ba8bfc20c8 100644 --- a/service/accessanalyzer/api_op_ValidatePolicy.go +++ b/service/accessanalyzer/api_op_ValidatePolicy.go @@ -60,6 +60,17 @@ type ValidatePolicyInput struct { // A token used for pagination of results returned. NextToken *string + // The type of resource to attach to your resource policy. Specify a value for the + // policy validation resource type only if the policy type is RESOURCE_POLICY. For + // example, to validate a resource policy to attach to an Amazon S3 bucket, you can + // choose AWS::S3::Bucket for the policy validation resource type. For resource + // types not supported as valid values, IAM Access Analyzer runs policy checks that + // apply to all resource policies. For example, to validate a resource policy to + // attach to a KMS key, do not specify a value for the policy validation resource + // type and IAM Access Analyzer will run policy checks that apply to all resource + // policies. + ValidatePolicyResourceType types.ValidatePolicyResourceType + noSmithyDocumentSerde } diff --git a/service/accessanalyzer/serializers.go b/service/accessanalyzer/serializers.go index c00433eb443..7735cd380a9 100644 --- a/service/accessanalyzer/serializers.go +++ b/service/accessanalyzer/serializers.go @@ -2077,6 +2077,11 @@ func awsRestjson1_serializeOpDocumentValidatePolicyInput(v *ValidatePolicyInput, ok.String(string(v.PolicyType)) } + if len(v.ValidatePolicyResourceType) > 0 { + ok := object.Key("validatePolicyResourceType") + ok.String(string(v.ValidatePolicyResourceType)) + } + return nil } diff --git a/service/accessanalyzer/types/enums.go b/service/accessanalyzer/types/enums.go index 212441752e3..27f57fae1a5 100644 --- a/service/accessanalyzer/types/enums.go +++ b/service/accessanalyzer/types/enums.go @@ -413,6 +413,28 @@ func (ValidatePolicyFindingType) Values() []ValidatePolicyFindingType { } } +type ValidatePolicyResourceType string + +// Enum values for ValidatePolicyResourceType +const ( + ValidatePolicyResourceTypeS3Bucket ValidatePolicyResourceType = "AWS::S3::Bucket" + ValidatePolicyResourceTypeS3AccessPoint ValidatePolicyResourceType = "AWS::S3::AccessPoint" + ValidatePolicyResourceTypeS3MultiRegionAccessPoint ValidatePolicyResourceType = "AWS::S3::MultiRegionAccessPoint" + ValidatePolicyResourceTypeS3ObjectLambdaAccessPoint ValidatePolicyResourceType = "AWS::S3ObjectLambda::AccessPoint" +) + +// Values returns all known values for ValidatePolicyResourceType. 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 (ValidatePolicyResourceType) Values() []ValidatePolicyResourceType { + return []ValidatePolicyResourceType{ + "AWS::S3::Bucket", + "AWS::S3::AccessPoint", + "AWS::S3::MultiRegionAccessPoint", + "AWS::S3ObjectLambda::AccessPoint", + } +} + type ValidationExceptionReason string // Enum values for ValidationExceptionReason diff --git a/service/accessanalyzer/types/types.go b/service/accessanalyzer/types/types.go index b9106a49f2d..005b6978e02 100644 --- a/service/accessanalyzer/types/types.go +++ b/service/accessanalyzer/types/types.go @@ -1190,14 +1190,14 @@ type S3PublicAccessBlockConfiguration struct { // access preview assumes a secret without a policy. To propose deletion of an // existing policy, you can specify an empty string. If the proposed configuration // is for a new secret and you do not specify the KMS key ID, the access preview -// uses the default CMK of the Amazon Web Services account. If you specify an empty -// string for the KMS key ID, the access preview uses the default CMK of the Amazon -// Web Services account. For more information about secret policy limits, see -// Quotas for Secrets Manager. +// uses the Amazon Web Services managed key aws/secretsmanager. If you specify an +// empty string for the KMS key ID, the access preview uses the Amazon Web Services +// managed key of the Amazon Web Services account. For more information about +// secret policy limits, see Quotas for Secrets Manager. // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_limits.html). type SecretsManagerSecretConfiguration struct { - // The proposed ARN, key ID, or alias of the KMS customer master key (CMK). + // The proposed ARN, key ID, or alias of the KMS key. KmsKeyId *string // The proposed resource policy defining who can access or manage the secret. diff --git a/service/applicationinsights/internal/endpoints/endpoints.go b/service/applicationinsights/internal/endpoints/endpoints.go index 9bca632e586..b1710b7aebe 100644 --- a/service/applicationinsights/internal/endpoints/endpoints.go +++ b/service/applicationinsights/internal/endpoints/endpoints.go @@ -147,6 +147,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-northeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-3", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, diff --git a/service/backupgateway/LICENSE.txt b/service/backupgateway/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/backupgateway/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/backupgateway/api_client.go b/service/backupgateway/api_client.go new file mode 100644 index 00000000000..57e3484333e --- /dev/null +++ b/service/backupgateway/api_client.go @@ -0,0 +1,296 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + "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/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "time" +) + +const ServiceID = "Backup Gateway" +const ServiceAPIVersion = "2021-01-01" + +// Client provides the API client to make operations call for AWS Backup Gateway. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + resolveRetryer(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveDefaultEndpointConfiguration(&options) + + for _, fn := range optFns { + fn(&options) + } + + client := &Client{ + options: options, + } + + return client +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + EndpointResolver EndpointResolver + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. + Retryer aws.Retryer + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + return to +} +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + for _, fn := range optFns { + fn(&options) + } + + finalizeClientEndpointResolverOptions(&options) + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + resolveUseDualStackEndpoint(cfg, &opts) + resolveUseFIPSEndpoint(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + if o.HTTPClient != nil { + return + } + o.HTTPClient = awshttp.NewBuildableClient() +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + o.Retryer = retry.NewStandard() +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver()) +} + +func addClientUserAgent(stack *middleware.Stack) error { + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "backupgateway", goModuleVersion)(stack) +} + +func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { + mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ + CredentialsProvider: o.Credentials, + Signer: o.HTTPSignerV4, + LogSigning: o.ClientLogMode.IsSigning(), + }) + return stack.Finalize.Add(mw, middleware.After) +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// resolves dual-stack endpoint configuration +func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseDualStackEndpoint = value + } + return nil +} + +// resolves FIPS endpoint configuration +func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseFIPSEndpoint = value + } + return nil +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} diff --git a/service/backupgateway/api_op_AssociateGatewayToServer.go b/service/backupgateway/api_op_AssociateGatewayToServer.go new file mode 100644 index 00000000000..f77b13f25b3 --- /dev/null +++ b/service/backupgateway/api_op_AssociateGatewayToServer.go @@ -0,0 +1,127 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a backup gateway with your server. After you complete the association +// process, you can back up and restore your VMs through the gateway. +func (c *Client) AssociateGatewayToServer(ctx context.Context, params *AssociateGatewayToServerInput, optFns ...func(*Options)) (*AssociateGatewayToServerOutput, error) { + if params == nil { + params = &AssociateGatewayToServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateGatewayToServer", params, optFns, c.addOperationAssociateGatewayToServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateGatewayToServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateGatewayToServerInput struct { + + // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to + // return a list of gateways for your account and Amazon Web Services Region. + // + // This member is required. + GatewayArn *string + + // The Amazon Resource Name (ARN) of the server that hosts your virtual machines. + // + // This member is required. + ServerArn *string + + noSmithyDocumentSerde +} + +type AssociateGatewayToServerOutput struct { + + // The Amazon Resource Name (ARN) of a gateway. + GatewayArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateGatewayToServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpAssociateGatewayToServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpAssociateGatewayToServer{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateGatewayToServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateGatewayToServer(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateGatewayToServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "AssociateGatewayToServer", + } +} diff --git a/service/backupgateway/api_op_CreateGateway.go b/service/backupgateway/api_op_CreateGateway.go new file mode 100644 index 00000000000..d9d8b3f66ce --- /dev/null +++ b/service/backupgateway/api_op_CreateGateway.go @@ -0,0 +1,135 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a backup gateway. After you create a gateway, you can associate it with +// a server using the AssociateGatewayToServer operation. +func (c *Client) CreateGateway(ctx context.Context, params *CreateGatewayInput, optFns ...func(*Options)) (*CreateGatewayOutput, error) { + if params == nil { + params = &CreateGatewayInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateGateway", params, optFns, c.addOperationCreateGatewayMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateGatewayOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateGatewayInput struct { + + // The activation key of the created gateway. + // + // This member is required. + ActivationKey *string + + // The display name of the created gateway. + // + // This member is required. + GatewayDisplayName *string + + // The type of created gateway. + // + // This member is required. + GatewayType types.GatewayType + + // A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateGatewayOutput struct { + + // The Amazon Resource Name (ARN) of the gateway you create. + GatewayArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpCreateGateway{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpCreateGateway{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateGatewayValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateGateway(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreateGateway(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "CreateGateway", + } +} diff --git a/service/backupgateway/api_op_DeleteGateway.go b/service/backupgateway/api_op_DeleteGateway.go new file mode 100644 index 00000000000..019bfb6c892 --- /dev/null +++ b/service/backupgateway/api_op_DeleteGateway.go @@ -0,0 +1,120 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a backup gateway. +func (c *Client) DeleteGateway(ctx context.Context, params *DeleteGatewayInput, optFns ...func(*Options)) (*DeleteGatewayOutput, error) { + if params == nil { + params = &DeleteGatewayInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteGateway", params, optFns, c.addOperationDeleteGatewayMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteGatewayOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteGatewayInput struct { + + // The Amazon Resource Name (ARN) of the gateway to delete. + // + // This member is required. + GatewayArn *string + + noSmithyDocumentSerde +} + +type DeleteGatewayOutput struct { + + // The Amazon Resource Name (ARN) of the gateway you deleted. + GatewayArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteGateway{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteGateway{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteGatewayValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteGateway(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteGateway(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "DeleteGateway", + } +} diff --git a/service/backupgateway/api_op_DeleteHypervisor.go b/service/backupgateway/api_op_DeleteHypervisor.go new file mode 100644 index 00000000000..4f050c6f927 --- /dev/null +++ b/service/backupgateway/api_op_DeleteHypervisor.go @@ -0,0 +1,120 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a hypervisor. +func (c *Client) DeleteHypervisor(ctx context.Context, params *DeleteHypervisorInput, optFns ...func(*Options)) (*DeleteHypervisorOutput, error) { + if params == nil { + params = &DeleteHypervisorInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteHypervisor", params, optFns, c.addOperationDeleteHypervisorMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteHypervisorOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteHypervisorInput struct { + + // The Amazon Resource Name (ARN) of the hypervisor to delete. + // + // This member is required. + HypervisorArn *string + + noSmithyDocumentSerde +} + +type DeleteHypervisorOutput struct { + + // The Amazon Resource Name (ARN) of the hypervisor you deleted. + HypervisorArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteHypervisorMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteHypervisor{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteHypervisor{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteHypervisorValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteHypervisor(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteHypervisor(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "DeleteHypervisor", + } +} diff --git a/service/backupgateway/api_op_DisassociateGatewayFromServer.go b/service/backupgateway/api_op_DisassociateGatewayFromServer.go new file mode 100644 index 00000000000..61250c0293b --- /dev/null +++ b/service/backupgateway/api_op_DisassociateGatewayFromServer.go @@ -0,0 +1,122 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates a backup gateway from the specified server. After the +// disassociation process finishes, the gateway can no longer access the virtual +// machines on the server. +func (c *Client) DisassociateGatewayFromServer(ctx context.Context, params *DisassociateGatewayFromServerInput, optFns ...func(*Options)) (*DisassociateGatewayFromServerOutput, error) { + if params == nil { + params = &DisassociateGatewayFromServerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateGatewayFromServer", params, optFns, c.addOperationDisassociateGatewayFromServerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateGatewayFromServerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateGatewayFromServerInput struct { + + // The Amazon Resource Name (ARN) of the gateway to disassociate. + // + // This member is required. + GatewayArn *string + + noSmithyDocumentSerde +} + +type DisassociateGatewayFromServerOutput struct { + + // The Amazon Resource Name (ARN) of the gateway you disassociated. + GatewayArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateGatewayFromServerMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDisassociateGatewayFromServer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDisassociateGatewayFromServer{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateGatewayFromServerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateGatewayFromServer(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateGatewayFromServer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "DisassociateGatewayFromServer", + } +} diff --git a/service/backupgateway/api_op_ImportHypervisorConfiguration.go b/service/backupgateway/api_op_ImportHypervisorConfiguration.go new file mode 100644 index 00000000000..8b0887f566e --- /dev/null +++ b/service/backupgateway/api_op_ImportHypervisorConfiguration.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Connect to a hypervisor by importing its configuration. +func (c *Client) ImportHypervisorConfiguration(ctx context.Context, params *ImportHypervisorConfigurationInput, optFns ...func(*Options)) (*ImportHypervisorConfigurationOutput, error) { + if params == nil { + params = &ImportHypervisorConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ImportHypervisorConfiguration", params, optFns, c.addOperationImportHypervisorConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ImportHypervisorConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ImportHypervisorConfigurationInput struct { + + // The server host of the hypervisor. This can be either an IP address or a + // fully-qualified domain name (FQDN). + // + // This member is required. + Host *string + + // The name of the hypervisor. + // + // This member is required. + Name *string + + // The Key Management Service for the hypervisor. + KmsKeyArn *string + + // The password for the hypervisor. + Password *string + + // The tags of the hypervisor configuration to import. + Tags []types.Tag + + // The username for the hypervisor. + Username *string + + noSmithyDocumentSerde +} + +type ImportHypervisorConfigurationOutput struct { + + // The Amazon Resource Name (ARN) of the hypervisor you disassociated. + HypervisorArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationImportHypervisorConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpImportHypervisorConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpImportHypervisorConfiguration{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpImportHypervisorConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportHypervisorConfiguration(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opImportHypervisorConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "ImportHypervisorConfiguration", + } +} diff --git a/service/backupgateway/api_op_ListGateways.go b/service/backupgateway/api_op_ListGateways.go new file mode 100644 index 00000000000..66ad944ad0e --- /dev/null +++ b/service/backupgateway/api_op_ListGateways.go @@ -0,0 +1,216 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web +// Services Region. The returned list is ordered by gateway Amazon Resource Name +// (ARN). +func (c *Client) ListGateways(ctx context.Context, params *ListGatewaysInput, optFns ...func(*Options)) (*ListGatewaysOutput, error) { + if params == nil { + params = &ListGatewaysInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListGateways", params, optFns, c.addOperationListGatewaysMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListGatewaysOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListGatewaysInput struct { + + // The maximum number of gateways to list. + MaxResults *int32 + + // The next item following a partial list of returned resources. For example, if a + // request is made to return MaxResults number of resources, NextToken allows you + // to return more items in your list starting at the location pointed to by the + // next token. + NextToken *string + + noSmithyDocumentSerde +} + +type ListGatewaysOutput struct { + + // A list of your gateways. + Gateways []types.Gateway + + // The next item following a partial list of returned resources. For example, if a + // request is made to return maxResults number of resources, NextToken allows you + // to return more items in your list starting at the location pointed to by the + // next token. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListGateways{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListGateways{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListGateways(options.Region), middleware.Before); 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 + } + return nil +} + +// ListGatewaysAPIClient is a client that implements the ListGateways operation. +type ListGatewaysAPIClient interface { + ListGateways(context.Context, *ListGatewaysInput, ...func(*Options)) (*ListGatewaysOutput, error) +} + +var _ ListGatewaysAPIClient = (*Client)(nil) + +// ListGatewaysPaginatorOptions is the paginator options for ListGateways +type ListGatewaysPaginatorOptions struct { + // The maximum number of gateways to list. + 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 +} + +// ListGatewaysPaginator is a paginator for ListGateways +type ListGatewaysPaginator struct { + options ListGatewaysPaginatorOptions + client ListGatewaysAPIClient + params *ListGatewaysInput + nextToken *string + firstPage bool +} + +// NewListGatewaysPaginator returns a new ListGatewaysPaginator +func NewListGatewaysPaginator(client ListGatewaysAPIClient, params *ListGatewaysInput, optFns ...func(*ListGatewaysPaginatorOptions)) *ListGatewaysPaginator { + if params == nil { + params = &ListGatewaysInput{} + } + + options := ListGatewaysPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListGatewaysPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListGatewaysPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListGateways page. +func (p *ListGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListGatewaysOutput, 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.ListGateways(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_opListGateways(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "ListGateways", + } +} diff --git a/service/backupgateway/api_op_ListHypervisors.go b/service/backupgateway/api_op_ListHypervisors.go new file mode 100644 index 00000000000..709f32221c8 --- /dev/null +++ b/service/backupgateway/api_op_ListHypervisors.go @@ -0,0 +1,216 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists your hypervisors. +func (c *Client) ListHypervisors(ctx context.Context, params *ListHypervisorsInput, optFns ...func(*Options)) (*ListHypervisorsOutput, error) { + if params == nil { + params = &ListHypervisorsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListHypervisors", params, optFns, c.addOperationListHypervisorsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListHypervisorsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListHypervisorsInput struct { + + // The maximum number of hypervisors to list. + MaxResults *int32 + + // The next item following a partial list of returned resources. For example, if a + // request is made to return maxResults number of resources, NextToken allows you + // to return more items in your list starting at the location pointed to by the + // next token. + NextToken *string + + noSmithyDocumentSerde +} + +type ListHypervisorsOutput struct { + + // A list of your Hypervisor objects, ordered by their Amazon Resource Names + // (ARNs). + Hypervisors []types.Hypervisor + + // The next item following a partial list of returned resources. For example, if a + // request is made to return maxResults number of resources, NextToken allows you + // to return more items in your list starting at the location pointed to by the + // next token. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListHypervisorsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListHypervisors{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListHypervisors{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListHypervisors(options.Region), middleware.Before); 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 + } + return nil +} + +// ListHypervisorsAPIClient is a client that implements the ListHypervisors +// operation. +type ListHypervisorsAPIClient interface { + ListHypervisors(context.Context, *ListHypervisorsInput, ...func(*Options)) (*ListHypervisorsOutput, error) +} + +var _ ListHypervisorsAPIClient = (*Client)(nil) + +// ListHypervisorsPaginatorOptions is the paginator options for ListHypervisors +type ListHypervisorsPaginatorOptions struct { + // The maximum number of hypervisors to list. + 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 +} + +// ListHypervisorsPaginator is a paginator for ListHypervisors +type ListHypervisorsPaginator struct { + options ListHypervisorsPaginatorOptions + client ListHypervisorsAPIClient + params *ListHypervisorsInput + nextToken *string + firstPage bool +} + +// NewListHypervisorsPaginator returns a new ListHypervisorsPaginator +func NewListHypervisorsPaginator(client ListHypervisorsAPIClient, params *ListHypervisorsInput, optFns ...func(*ListHypervisorsPaginatorOptions)) *ListHypervisorsPaginator { + if params == nil { + params = &ListHypervisorsInput{} + } + + options := ListHypervisorsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListHypervisorsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListHypervisorsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListHypervisors page. +func (p *ListHypervisorsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListHypervisorsOutput, 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.ListHypervisors(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_opListHypervisors(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "ListHypervisors", + } +} diff --git a/service/backupgateway/api_op_ListTagsForResource.go b/service/backupgateway/api_op_ListTagsForResource.go new file mode 100644 index 00000000000..1187e78a6ef --- /dev/null +++ b/service/backupgateway/api_op_ListTagsForResource.go @@ -0,0 +1,125 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists the tags applied to the resource identified by its Amazon Resource Name +// (ARN). +func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { + if params == nil { + params = &ListTagsForResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTagsForResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTagsForResourceInput struct { + + // The Amazon Resource Name (ARN) of the resource's tags to list. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type ListTagsForResourceOutput struct { + + // The Amazon Resource Name (ARN) of the resource's tags that you listed. + ResourceArn *string + + // A list of the resource's tags. + Tags []types.Tag + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListTagsForResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "ListTagsForResource", + } +} diff --git a/service/backupgateway/api_op_ListVirtualMachines.go b/service/backupgateway/api_op_ListVirtualMachines.go new file mode 100644 index 00000000000..e27cc7713ae --- /dev/null +++ b/service/backupgateway/api_op_ListVirtualMachines.go @@ -0,0 +1,217 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists your virtual machines. +func (c *Client) ListVirtualMachines(ctx context.Context, params *ListVirtualMachinesInput, optFns ...func(*Options)) (*ListVirtualMachinesOutput, error) { + if params == nil { + params = &ListVirtualMachinesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListVirtualMachines", params, optFns, c.addOperationListVirtualMachinesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListVirtualMachinesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListVirtualMachinesInput struct { + + // The maximum number of virtual machines to list. + MaxResults *int32 + + // The next item following a partial list of returned resources. For example, if a + // request is made to return maxResults number of resources, NextToken allows you + // to return more items in your list starting at the location pointed to by the + // next token. + NextToken *string + + noSmithyDocumentSerde +} + +type ListVirtualMachinesOutput struct { + + // The next item following a partial list of returned resources. For example, if a + // request is made to return maxResults number of resources, NextToken allows you + // to return more items in your list starting at the location pointed to by the + // next token. + NextToken *string + + // A list of your VirtualMachine objects, ordered by their Amazon Resource Names + // (ARNs). + VirtualMachines []types.VirtualMachine + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListVirtualMachinesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListVirtualMachines{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListVirtualMachines{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListVirtualMachines(options.Region), middleware.Before); 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 + } + return nil +} + +// ListVirtualMachinesAPIClient is a client that implements the ListVirtualMachines +// operation. +type ListVirtualMachinesAPIClient interface { + ListVirtualMachines(context.Context, *ListVirtualMachinesInput, ...func(*Options)) (*ListVirtualMachinesOutput, error) +} + +var _ ListVirtualMachinesAPIClient = (*Client)(nil) + +// ListVirtualMachinesPaginatorOptions is the paginator options for +// ListVirtualMachines +type ListVirtualMachinesPaginatorOptions struct { + // The maximum number of virtual machines to list. + 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 +} + +// ListVirtualMachinesPaginator is a paginator for ListVirtualMachines +type ListVirtualMachinesPaginator struct { + options ListVirtualMachinesPaginatorOptions + client ListVirtualMachinesAPIClient + params *ListVirtualMachinesInput + nextToken *string + firstPage bool +} + +// NewListVirtualMachinesPaginator returns a new ListVirtualMachinesPaginator +func NewListVirtualMachinesPaginator(client ListVirtualMachinesAPIClient, params *ListVirtualMachinesInput, optFns ...func(*ListVirtualMachinesPaginatorOptions)) *ListVirtualMachinesPaginator { + if params == nil { + params = &ListVirtualMachinesInput{} + } + + options := ListVirtualMachinesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListVirtualMachinesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListVirtualMachinesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListVirtualMachines page. +func (p *ListVirtualMachinesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListVirtualMachinesOutput, 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.ListVirtualMachines(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_opListVirtualMachines(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "ListVirtualMachines", + } +} diff --git a/service/backupgateway/api_op_PutMaintenanceStartTime.go b/service/backupgateway/api_op_PutMaintenanceStartTime.go new file mode 100644 index 00000000000..b729928d23b --- /dev/null +++ b/service/backupgateway/api_op_PutMaintenanceStartTime.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Set the maintenance start time for a gateway. +func (c *Client) PutMaintenanceStartTime(ctx context.Context, params *PutMaintenanceStartTimeInput, optFns ...func(*Options)) (*PutMaintenanceStartTimeOutput, error) { + if params == nil { + params = &PutMaintenanceStartTimeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutMaintenanceStartTime", params, optFns, c.addOperationPutMaintenanceStartTimeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutMaintenanceStartTimeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutMaintenanceStartTimeInput struct { + + // The Amazon Resource Name (ARN) for the gateway, used to specify its maintenance + // start time. + // + // This member is required. + GatewayArn *string + + // The hour of the day to start maintenance on a gateway. + // + // This member is required. + HourOfDay *int32 + + // The minute of the hour to start maintenance on a gateway. + // + // This member is required. + MinuteOfHour *int32 + + // The day of the month start maintenance on a gateway. Valid values range from + // Sunday to Saturday. + DayOfMonth *int32 + + // The day of the week to start maintenance on a gateway. + DayOfWeek *int32 + + noSmithyDocumentSerde +} + +type PutMaintenanceStartTimeOutput struct { + + // The Amazon Resource Name (ARN) of a gateway for which you set the maintenance + // start time. + GatewayArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutMaintenanceStartTimeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpPutMaintenanceStartTime{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpPutMaintenanceStartTime{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpPutMaintenanceStartTimeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutMaintenanceStartTime(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opPutMaintenanceStartTime(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "PutMaintenanceStartTime", + } +} diff --git a/service/backupgateway/api_op_TagResource.go b/service/backupgateway/api_op_TagResource.go new file mode 100644 index 00000000000..cd69dbb7840 --- /dev/null +++ b/service/backupgateway/api_op_TagResource.go @@ -0,0 +1,126 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Tag the resource. +func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { + if params == nil { + params = &TagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TagResourceInput struct { + + // The Amazon Resource Name (ARN) of the resource to tag. + // + // This member is required. + ResourceARN *string + + // A list of tags to assign to the resource. + // + // This member is required. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type TagResourceOutput struct { + + // The Amazon Resource Name (ARN) of the resource you tagged. + ResourceARN *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpTagResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpTagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "TagResource", + } +} diff --git a/service/backupgateway/api_op_TestHypervisorConfiguration.go b/service/backupgateway/api_op_TestHypervisorConfiguration.go new file mode 100644 index 00000000000..3251c7b4a33 --- /dev/null +++ b/service/backupgateway/api_op_TestHypervisorConfiguration.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Tests your hypervisor configuration to validate that backup gateway can connect +// with the hypervisor and its resources. +func (c *Client) TestHypervisorConfiguration(ctx context.Context, params *TestHypervisorConfigurationInput, optFns ...func(*Options)) (*TestHypervisorConfigurationOutput, error) { + if params == nil { + params = &TestHypervisorConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TestHypervisorConfiguration", params, optFns, c.addOperationTestHypervisorConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TestHypervisorConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TestHypervisorConfigurationInput struct { + + // The Amazon Resource Name (ARN) of the gateway to the hypervisor to test. + // + // This member is required. + GatewayArn *string + + // The server host of the hypervisor. This can be either an IP address or a + // fully-qualified domain name (FQDN). + // + // This member is required. + Host *string + + // The password for the hypervisor. + Password *string + + // The username for the hypervisor. + Username *string + + noSmithyDocumentSerde +} + +type TestHypervisorConfigurationOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTestHypervisorConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpTestHypervisorConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpTestHypervisorConfiguration{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpTestHypervisorConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTestHypervisorConfiguration(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opTestHypervisorConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "TestHypervisorConfiguration", + } +} diff --git a/service/backupgateway/api_op_UntagResource.go b/service/backupgateway/api_op_UntagResource.go new file mode 100644 index 00000000000..9b88f1f5dae --- /dev/null +++ b/service/backupgateway/api_op_UntagResource.go @@ -0,0 +1,125 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes tags from the resource. +func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { + if params == nil { + params = &UntagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UntagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UntagResourceInput struct { + + // The Amazon Resource Name (ARN) of the resource from which to remove tags. + // + // This member is required. + ResourceARN *string + + // The list of tag keys specifying which tags to remove. + // + // This member is required. + TagKeys []string + + noSmithyDocumentSerde +} + +type UntagResourceOutput struct { + + // The Amazon Resource Name (ARN) of the resource from which you removed tags. + ResourceARN *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUntagResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUntagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "UntagResource", + } +} diff --git a/service/backupgateway/api_op_UpdateGatewayInformation.go b/service/backupgateway/api_op_UpdateGatewayInformation.go new file mode 100644 index 00000000000..35b070c7ac7 --- /dev/null +++ b/service/backupgateway/api_op_UpdateGatewayInformation.go @@ -0,0 +1,124 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a gateway's name. Specify which gateway to update using the Amazon +// Resource Name (ARN) of the gateway in your request. +func (c *Client) UpdateGatewayInformation(ctx context.Context, params *UpdateGatewayInformationInput, optFns ...func(*Options)) (*UpdateGatewayInformationOutput, error) { + if params == nil { + params = &UpdateGatewayInformationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateGatewayInformation", params, optFns, c.addOperationUpdateGatewayInformationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateGatewayInformationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateGatewayInformationInput struct { + + // The Amazon Resource Name (ARN) of the gateway to update. + // + // This member is required. + GatewayArn *string + + // The updated display name of the gateway. + GatewayDisplayName *string + + noSmithyDocumentSerde +} + +type UpdateGatewayInformationOutput struct { + + // The Amazon Resource Name (ARN) of the gateway you updated. + GatewayArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateGatewayInformationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateGatewayInformation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateGatewayInformation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateGatewayInformationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateGatewayInformation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateGatewayInformation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "UpdateGatewayInformation", + } +} diff --git a/service/backupgateway/api_op_UpdateHypervisor.go b/service/backupgateway/api_op_UpdateHypervisor.go new file mode 100644 index 00000000000..11393fd00cf --- /dev/null +++ b/service/backupgateway/api_op_UpdateHypervisor.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a hypervisor metadata, including its host, username, and password. +// Specify which hypervisor to update using the Amazon Resource Name (ARN) of the +// hypervisor in your request. +func (c *Client) UpdateHypervisor(ctx context.Context, params *UpdateHypervisorInput, optFns ...func(*Options)) (*UpdateHypervisorOutput, error) { + if params == nil { + params = &UpdateHypervisorInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateHypervisor", params, optFns, c.addOperationUpdateHypervisorMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateHypervisorOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateHypervisorInput struct { + + // The Amazon Resource Name (ARN) of the hypervisor to update. + // + // This member is required. + HypervisorArn *string + + // The updated host of the hypervisor. This can be either an IP address or a + // fully-qualified domain name (FQDN). + Host *string + + // The updated password for the hypervisor. + Password *string + + // The updated username for the hypervisor. + Username *string + + noSmithyDocumentSerde +} + +type UpdateHypervisorOutput struct { + + // The Amazon Resource Name (ARN) of the hypervisor you updated. + HypervisorArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateHypervisorMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateHypervisor{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateHypervisor{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateHypervisorValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateHypervisor(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateHypervisor(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "backup-gateway", + OperationName: "UpdateHypervisor", + } +} diff --git a/service/backupgateway/deserializers.go b/service/backupgateway/deserializers.go new file mode 100644 index 00000000000..ee422e1bff2 --- /dev/null +++ b/service/backupgateway/deserializers.go @@ -0,0 +1,3405 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strings" +) + +type awsAwsjson10_deserializeOpAssociateGatewayToServer struct { +} + +func (*awsAwsjson10_deserializeOpAssociateGatewayToServer) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpAssociateGatewayToServer) 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, awsAwsjson10_deserializeOpErrorAssociateGatewayToServer(response, &metadata) + } + output := &AssociateGatewayToServerOutput{} + 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 = awsAwsjson10_deserializeOpDocumentAssociateGatewayToServerOutput(&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 awsAwsjson10_deserializeOpErrorAssociateGatewayToServer(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpCreateGateway struct { +} + +func (*awsAwsjson10_deserializeOpCreateGateway) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpCreateGateway) 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, awsAwsjson10_deserializeOpErrorCreateGateway(response, &metadata) + } + output := &CreateGatewayOutput{} + 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 = awsAwsjson10_deserializeOpDocumentCreateGatewayOutput(&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 awsAwsjson10_deserializeOpErrorCreateGateway(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpDeleteGateway struct { +} + +func (*awsAwsjson10_deserializeOpDeleteGateway) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpDeleteGateway) 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, awsAwsjson10_deserializeOpErrorDeleteGateway(response, &metadata) + } + output := &DeleteGatewayOutput{} + 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 = awsAwsjson10_deserializeOpDocumentDeleteGatewayOutput(&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 awsAwsjson10_deserializeOpErrorDeleteGateway(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpDeleteHypervisor struct { +} + +func (*awsAwsjson10_deserializeOpDeleteHypervisor) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpDeleteHypervisor) 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, awsAwsjson10_deserializeOpErrorDeleteHypervisor(response, &metadata) + } + output := &DeleteHypervisorOutput{} + 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 = awsAwsjson10_deserializeOpDocumentDeleteHypervisorOutput(&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 awsAwsjson10_deserializeOpErrorDeleteHypervisor(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpDisassociateGatewayFromServer struct { +} + +func (*awsAwsjson10_deserializeOpDisassociateGatewayFromServer) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpDisassociateGatewayFromServer) 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, awsAwsjson10_deserializeOpErrorDisassociateGatewayFromServer(response, &metadata) + } + output := &DisassociateGatewayFromServerOutput{} + 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 = awsAwsjson10_deserializeOpDocumentDisassociateGatewayFromServerOutput(&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 awsAwsjson10_deserializeOpErrorDisassociateGatewayFromServer(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpImportHypervisorConfiguration struct { +} + +func (*awsAwsjson10_deserializeOpImportHypervisorConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpImportHypervisorConfiguration) 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, awsAwsjson10_deserializeOpErrorImportHypervisorConfiguration(response, &metadata) + } + output := &ImportHypervisorConfigurationOutput{} + 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 = awsAwsjson10_deserializeOpDocumentImportHypervisorConfigurationOutput(&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 awsAwsjson10_deserializeOpErrorImportHypervisorConfiguration(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpListGateways struct { +} + +func (*awsAwsjson10_deserializeOpListGateways) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpListGateways) 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, awsAwsjson10_deserializeOpErrorListGateways(response, &metadata) + } + output := &ListGatewaysOutput{} + 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 = awsAwsjson10_deserializeOpDocumentListGatewaysOutput(&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 awsAwsjson10_deserializeOpErrorListGateways(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpListHypervisors struct { +} + +func (*awsAwsjson10_deserializeOpListHypervisors) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpListHypervisors) 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, awsAwsjson10_deserializeOpErrorListHypervisors(response, &metadata) + } + output := &ListHypervisorsOutput{} + 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 = awsAwsjson10_deserializeOpDocumentListHypervisorsOutput(&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 awsAwsjson10_deserializeOpErrorListHypervisors(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpListTagsForResource struct { +} + +func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + 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, awsAwsjson10_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + 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 = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&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 awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpListVirtualMachines struct { +} + +func (*awsAwsjson10_deserializeOpListVirtualMachines) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpListVirtualMachines) 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, awsAwsjson10_deserializeOpErrorListVirtualMachines(response, &metadata) + } + output := &ListVirtualMachinesOutput{} + 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 = awsAwsjson10_deserializeOpDocumentListVirtualMachinesOutput(&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 awsAwsjson10_deserializeOpErrorListVirtualMachines(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpPutMaintenanceStartTime struct { +} + +func (*awsAwsjson10_deserializeOpPutMaintenanceStartTime) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpPutMaintenanceStartTime) 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, awsAwsjson10_deserializeOpErrorPutMaintenanceStartTime(response, &metadata) + } + output := &PutMaintenanceStartTimeOutput{} + 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 = awsAwsjson10_deserializeOpDocumentPutMaintenanceStartTimeOutput(&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 awsAwsjson10_deserializeOpErrorPutMaintenanceStartTime(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpTagResource struct { +} + +func (*awsAwsjson10_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpTagResource) 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, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + 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 = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&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 awsAwsjson10_deserializeOpErrorTagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpTestHypervisorConfiguration struct { +} + +func (*awsAwsjson10_deserializeOpTestHypervisorConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpTestHypervisorConfiguration) 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, awsAwsjson10_deserializeOpErrorTestHypervisorConfiguration(response, &metadata) + } + output := &TestHypervisorConfigurationOutput{} + 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 = awsAwsjson10_deserializeOpDocumentTestHypervisorConfigurationOutput(&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 awsAwsjson10_deserializeOpErrorTestHypervisorConfiguration(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUntagResource struct { +} + +func (*awsAwsjson10_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUntagResource) 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, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + 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 = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&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 awsAwsjson10_deserializeOpErrorUntagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateGatewayInformation struct { +} + +func (*awsAwsjson10_deserializeOpUpdateGatewayInformation) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateGatewayInformation) 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, awsAwsjson10_deserializeOpErrorUpdateGatewayInformation(response, &metadata) + } + output := &UpdateGatewayInformationOutput{} + 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 = awsAwsjson10_deserializeOpDocumentUpdateGatewayInformationOutput(&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 awsAwsjson10_deserializeOpErrorUpdateGatewayInformation(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpUpdateHypervisor struct { +} + +func (*awsAwsjson10_deserializeOpUpdateHypervisor) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpUpdateHypervisor) 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, awsAwsjson10_deserializeOpErrorUpdateHypervisor(response, &metadata) + } + output := &UpdateHypervisorOutput{} + 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 = awsAwsjson10_deserializeOpDocumentUpdateHypervisorOutput(&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 awsAwsjson10_deserializeOpErrorUpdateHypervisor(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson10_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 := awsAwsjson10_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 awsAwsjson10_deserializeErrorConflictException(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.ConflictException{} + err := awsAwsjson10_deserializeDocumentConflictException(&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 awsAwsjson10_deserializeErrorInternalServerException(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.InternalServerException{} + err := awsAwsjson10_deserializeDocumentInternalServerException(&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 awsAwsjson10_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 := awsAwsjson10_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(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorValidationException(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.ValidationException{} + err := awsAwsjson10_deserializeDocumentValidationException(&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 awsAwsjson10_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 "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.ErrorCode_ = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictException, 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.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.ErrorCode_ = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentGateway(v **types.Gateway, 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.Gateway + if *v == nil { + sv = &types.Gateway{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + case "GatewayDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.GatewayDisplayName = ptr.String(jtv) + } + + case "GatewayType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayType to be of type string, got %T instead", value) + } + sv.GatewayType = types.GatewayType(jtv) + } + + case "HypervisorId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HypervisorId to be of type string, got %T instead", value) + } + sv.HypervisorId = ptr.String(jtv) + } + + case "LastSeenTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastSeenTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Time to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentGateways(v *[]types.Gateway, 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.Gateway + if *v == nil { + cv = []types.Gateway{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Gateway + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGateway(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentHypervisor(v **types.Hypervisor, 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.Hypervisor + if *v == nil { + sv = &types.Hypervisor{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "HypervisorArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServerArn to be of type string, got %T instead", value) + } + sv.HypervisorArn = ptr.String(jtv) + } + + case "KmsKeyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + } + sv.KmsKeyArn = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HypervisorState to be of type string, got %T instead", value) + } + sv.State = types.HypervisorState(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentHypervisors(v *[]types.Hypervisor, 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.Hypervisor + if *v == nil { + cv = []types.Hypervisor{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Hypervisor + destAddr := &col + if err := awsAwsjson10_deserializeDocumentHypervisor(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalServerException, 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.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.ErrorCode_ = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, 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.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.ErrorCode_ = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentTag(v **types.Tag, 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.Tag + if *v == nil { + sv = &types.Tag{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Key": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) + } + sv.Key = ptr.String(jtv) + } + + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentTags(v *[]types.Tag, 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.Tag + if *v == nil { + cv = []types.Tag{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationException, 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.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.ErrorCode_ = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentVirtualMachine(v **types.VirtualMachine, 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.VirtualMachine + if *v == nil { + sv = &types.VirtualMachine{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HostName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.HostName = ptr.String(jtv) + } + + case "HypervisorId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected string to be of type string, got %T instead", value) + } + sv.HypervisorId = ptr.String(jtv) + } + + case "LastBackupDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastBackupDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Time to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Path": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Path to be of type string, got %T instead", value) + } + sv.Path = ptr.String(jtv) + } + + case "ResourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentVirtualMachines(v *[]types.VirtualMachine, 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.VirtualMachine + if *v == nil { + cv = []types.VirtualMachine{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.VirtualMachine + destAddr := &col + if err := awsAwsjson10_deserializeDocumentVirtualMachine(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeOpDocumentAssociateGatewayToServerOutput(v **AssociateGatewayToServerOutput, 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 *AssociateGatewayToServerOutput + if *v == nil { + sv = &AssociateGatewayToServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentCreateGatewayOutput(v **CreateGatewayOutput, 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 *CreateGatewayOutput + if *v == nil { + sv = &CreateGatewayOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentDeleteGatewayOutput(v **DeleteGatewayOutput, 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 *DeleteGatewayOutput + if *v == nil { + sv = &DeleteGatewayOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentDeleteHypervisorOutput(v **DeleteHypervisorOutput, 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 *DeleteHypervisorOutput + if *v == nil { + sv = &DeleteHypervisorOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HypervisorArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServerArn to be of type string, got %T instead", value) + } + sv.HypervisorArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentDisassociateGatewayFromServerOutput(v **DisassociateGatewayFromServerOutput, 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 *DisassociateGatewayFromServerOutput + if *v == nil { + sv = &DisassociateGatewayFromServerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentImportHypervisorConfigurationOutput(v **ImportHypervisorConfigurationOutput, 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 *ImportHypervisorConfigurationOutput + if *v == nil { + sv = &ImportHypervisorConfigurationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HypervisorArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServerArn to be of type string, got %T instead", value) + } + sv.HypervisorArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentListGatewaysOutput(v **ListGatewaysOutput, 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 *ListGatewaysOutput + if *v == nil { + sv = &ListGatewaysOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Gateways": + if err := awsAwsjson10_deserializeDocumentGateways(&sv.Gateways, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentListHypervisorsOutput(v **ListHypervisorsOutput, 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 *ListHypervisorsOutput + if *v == nil { + sv = &ListHypervisorsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Hypervisors": + if err := awsAwsjson10_deserializeDocumentHypervisors(&sv.Hypervisors, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, 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 *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ResourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + case "Tags": + if err := awsAwsjson10_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentListVirtualMachinesOutput(v **ListVirtualMachinesOutput, 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 *ListVirtualMachinesOutput + if *v == nil { + sv = &ListVirtualMachinesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "VirtualMachines": + if err := awsAwsjson10_deserializeDocumentVirtualMachines(&sv.VirtualMachines, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentPutMaintenanceStartTimeOutput(v **PutMaintenanceStartTimeOutput, 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 *PutMaintenanceStartTimeOutput + if *v == nil { + sv = &PutMaintenanceStartTimeOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, 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 *TagResourceOutput + if *v == nil { + sv = &TagResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ResourceARN": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.ResourceARN = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentTestHypervisorConfigurationOutput(v **TestHypervisorConfigurationOutput, 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 *TestHypervisorConfigurationOutput + if *v == nil { + sv = &TestHypervisorConfigurationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, 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 *UntagResourceOutput + if *v == nil { + sv = &UntagResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ResourceARN": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.ResourceARN = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentUpdateGatewayInformationOutput(v **UpdateGatewayInformationOutput, 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 *UpdateGatewayInformationOutput + if *v == nil { + sv = &UpdateGatewayInformationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "GatewayArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GatewayArn to be of type string, got %T instead", value) + } + sv.GatewayArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentUpdateHypervisorOutput(v **UpdateHypervisorOutput, 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 *UpdateHypervisorOutput + if *v == nil { + sv = &UpdateHypervisorOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "HypervisorArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServerArn to be of type string, got %T instead", value) + } + sv.HypervisorArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/backupgateway/doc.go b/service/backupgateway/doc.go new file mode 100644 index 00000000000..07758dbfc18 --- /dev/null +++ b/service/backupgateway/doc.go @@ -0,0 +1,16 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package backupgateway provides the API client, operations, and parameter types +// for AWS Backup Gateway. +// +// Backup gateway Backup gateway connects Backup to your hypervisor, so you can +// create, store, and restore backups of your virtual machines (VMs) anywhere, +// whether on-premises or in the VMware Cloud (VMC) on Amazon Web Services. Add +// on-premises resources by connecting to a hypervisor through a gateway. Backup +// will automatically discover the resources in your hypervisor. Use Backup to +// assign virtual or on-premises resources to a backup plan, or run on-demand +// backups. Once you have backed up your resources, you can view them and restore +// them like any resource supported by Backup. To download the Amazon Web Services +// software to get started, navigate to the Backup console, choose Gateways, then +// choose Create gateway. +package backupgateway diff --git a/service/backupgateway/endpoints.go b/service/backupgateway/endpoints.go new file mode 100644 index 00000000000..b2f09480a68 --- /dev/null +++ b/service/backupgateway/endpoints.go @@ -0,0 +1,200 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/backupgateway/internal/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/url" + "strings" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +func resolveDefaultEndpointConfiguration(o *Options) { + if o.EndpointResolver != nil { + return + } + o.EndpointResolver = NewDefaultEndpointResolver() +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + eo := m.Options + eo.Logger = middleware.GetLogger(ctx) + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "backup-gateway" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolverWithOptions + resolver EndpointResolver +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + if w.awsResolver == nil { + goto fallback + } + endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) + if err == nil { + return endpoint, nil + } + + if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { + return endpoint, err + } + +fallback: + if w.resolver == nil { + return endpoint, fmt.Errorf("default endpoint resolver provided was nil") + } + return w.resolver.ResolveEndpoint(region, options) +} + +type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) + +func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { + return a(service, region) +} + +var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) + +// withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. +// If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided +// fallbackResolver for resolution. +// +// fallbackResolver must not be nil +func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { + var resolver aws.EndpointResolverWithOptions + + if awsResolverWithOptions != nil { + resolver = awsResolverWithOptions + } else if awsResolver != nil { + resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) + } + + return &wrappedEndpointResolver{ + awsResolver: resolver, + resolver: fallbackResolver, + } +} + +func finalizeClientEndpointResolverOptions(options *Options) { + options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() + + if len(options.EndpointOptions.ResolvedRegion) == 0 { + const fipsInfix = "-fips-" + const fipsPrefix = "fips-" + const fipsSuffix = "-fips" + + if strings.Contains(options.Region, fipsInfix) || + strings.Contains(options.Region, fipsPrefix) || + strings.Contains(options.Region, fipsSuffix) { + options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( + options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") + options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled + } + } + +} diff --git a/service/backupgateway/generated.json b/service/backupgateway/generated.json new file mode 100644 index 00000000000..d30824ff5f6 --- /dev/null +++ b/service/backupgateway/generated.json @@ -0,0 +1,42 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", + "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", + "github.com/aws/smithy-go": "v1.4.0" + }, + "files": [ + "api_client.go", + "api_op_AssociateGatewayToServer.go", + "api_op_CreateGateway.go", + "api_op_DeleteGateway.go", + "api_op_DeleteHypervisor.go", + "api_op_DisassociateGatewayFromServer.go", + "api_op_ImportHypervisorConfiguration.go", + "api_op_ListGateways.go", + "api_op_ListHypervisors.go", + "api_op_ListTagsForResource.go", + "api_op_ListVirtualMachines.go", + "api_op_PutMaintenanceStartTime.go", + "api_op_TagResource.go", + "api_op_TestHypervisorConfiguration.go", + "api_op_UntagResource.go", + "api_op_UpdateGatewayInformation.go", + "api_op_UpdateHypervisor.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/backupgateway", + "unstable": false +} diff --git a/service/backupgateway/go.mod b/service/backupgateway/go.mod new file mode 100644 index 00000000000..7a5911d2d35 --- /dev/null +++ b/service/backupgateway/go.mod @@ -0,0 +1,16 @@ +module github.com/aws/aws-sdk-go-v2/service/backupgateway + +go 1.15 + +require ( + github.com/aws/aws-sdk-go-v2 v1.11.1 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.1 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.0.1 + github.com/aws/smithy-go v1.9.0 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ + +replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ + +replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum new file mode 100644 index 00000000000..45efc0b1e03 --- /dev/null +++ b/service/backupgateway/go.sum @@ -0,0 +1,14 @@ +github.com/aws/smithy-go v1.9.0 h1:c7FUdEqrQA1/UVKKCNDFQPNKGp4FQg3YW4Ck5SLTG58= +github.com/aws/smithy-go v1.9.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/backupgateway/go_module_metadata.go b/service/backupgateway/go_module_metadata.go new file mode 100644 index 00000000000..430880cce8b --- /dev/null +++ b/service/backupgateway/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package backupgateway + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/backupgateway/internal/endpoints/endpoints.go b/service/backupgateway/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..80d8328822b --- /dev/null +++ b/service/backupgateway/internal/endpoints/endpoints.go @@ -0,0 +1,250 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" + "github.com/aws/smithy-go/logging" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + // Logger is a logging implementation that log events should be sent to. + Logger logging.Logger + + // LogDeprecated indicates that deprecated endpoints should be logged to the + // provided logger. + LogDeprecated bool + + // ResolvedRegion is used to override the region to be resolved, rather then the + // using the value passed to the ResolveEndpoint method. This value is used by the + // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative + // name. You must not set this value directly in your application. + ResolvedRegion string + + // DisableHTTPS informs the resolver to return an endpoint that does not use the + // HTTPS scheme. + DisableHTTPS bool + + // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. + UseDualStackEndpoint aws.DualStackEndpointState + + // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. + UseFIPSEndpoint aws.FIPSEndpointState +} + +func (o Options) GetResolvedRegion() string { + return o.ResolvedRegion +} + +func (o Options) GetDisableHTTPS() bool { + return o.DisableHTTPS +} + +func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { + return o.UseDualStackEndpoint +} + +func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { + return o.UseFIPSEndpoint +} + +func transformToSharedOptions(options Options) endpoints.Options { + return endpoints.Options{ + Logger: options.Logger, + LogDeprecated: options.LogDeprecated, + ResolvedRegion: options.ResolvedRegion, + DisableHTTPS: options.DisableHTTPS, + UseDualStackEndpoint: options.UseDualStackEndpoint, + UseFIPSEndpoint: options.UseFIPSEndpoint, + } +} + +// Resolver Backup Gateway endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := transformToSharedOptions(options) + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "backup-gateway.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-gateway-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "backup-gateway-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup-gateway.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "backup-gateway.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-gateway-fips.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "backup-gateway-fips.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup-gateway.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-gateway-fips.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup-gateway.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-gateway-fips.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup-gateway.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "backup-gateway.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-gateway-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "backup-gateway-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup-gateway.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/backupgateway/internal/endpoints/endpoints_test.go b/service/backupgateway/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/backupgateway/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/backupgateway/protocol_test.go b/service/backupgateway/protocol_test.go new file mode 100644 index 00000000000..9849e53857f --- /dev/null +++ b/service/backupgateway/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway diff --git a/service/backupgateway/serializers.go b/service/backupgateway/serializers.go new file mode 100644 index 00000000000..20844d25d21 --- /dev/null +++ b/service/backupgateway/serializers.go @@ -0,0 +1,1261 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "path" +) + +type awsAwsjson10_serializeOpAssociateGatewayToServer struct { +} + +func (*awsAwsjson10_serializeOpAssociateGatewayToServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpAssociateGatewayToServer) 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.(*AssociateGatewayToServerInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.AssociateGatewayToServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentAssociateGatewayToServerInput(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 awsAwsjson10_serializeOpCreateGateway struct { +} + +func (*awsAwsjson10_serializeOpCreateGateway) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpCreateGateway) 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.(*CreateGatewayInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.CreateGateway") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentCreateGatewayInput(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 awsAwsjson10_serializeOpDeleteGateway struct { +} + +func (*awsAwsjson10_serializeOpDeleteGateway) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDeleteGateway) 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.(*DeleteGatewayInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.DeleteGateway") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDeleteGatewayInput(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 awsAwsjson10_serializeOpDeleteHypervisor struct { +} + +func (*awsAwsjson10_serializeOpDeleteHypervisor) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDeleteHypervisor) 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.(*DeleteHypervisorInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.DeleteHypervisor") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDeleteHypervisorInput(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 awsAwsjson10_serializeOpDisassociateGatewayFromServer struct { +} + +func (*awsAwsjson10_serializeOpDisassociateGatewayFromServer) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDisassociateGatewayFromServer) 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.(*DisassociateGatewayFromServerInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.DisassociateGatewayFromServer") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDisassociateGatewayFromServerInput(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 awsAwsjson10_serializeOpImportHypervisorConfiguration struct { +} + +func (*awsAwsjson10_serializeOpImportHypervisorConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpImportHypervisorConfiguration) 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.(*ImportHypervisorConfigurationInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.ImportHypervisorConfiguration") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentImportHypervisorConfigurationInput(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 awsAwsjson10_serializeOpListGateways struct { +} + +func (*awsAwsjson10_serializeOpListGateways) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpListGateways) 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.(*ListGatewaysInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.ListGateways") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListGatewaysInput(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 awsAwsjson10_serializeOpListHypervisors struct { +} + +func (*awsAwsjson10_serializeOpListHypervisors) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpListHypervisors) 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.(*ListHypervisorsInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.ListHypervisors") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListHypervisorsInput(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 awsAwsjson10_serializeOpListTagsForResource struct { +} + +func (*awsAwsjson10_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpListTagsForResource) 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.(*ListTagsForResourceInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.ListTagsForResource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListTagsForResourceInput(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 awsAwsjson10_serializeOpListVirtualMachines struct { +} + +func (*awsAwsjson10_serializeOpListVirtualMachines) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpListVirtualMachines) 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.(*ListVirtualMachinesInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.ListVirtualMachines") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListVirtualMachinesInput(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 awsAwsjson10_serializeOpPutMaintenanceStartTime struct { +} + +func (*awsAwsjson10_serializeOpPutMaintenanceStartTime) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpPutMaintenanceStartTime) 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.(*PutMaintenanceStartTimeInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.PutMaintenanceStartTime") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentPutMaintenanceStartTimeInput(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 awsAwsjson10_serializeOpTagResource struct { +} + +func (*awsAwsjson10_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpTagResource) 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.(*TagResourceInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.TagResource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentTagResourceInput(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 awsAwsjson10_serializeOpTestHypervisorConfiguration struct { +} + +func (*awsAwsjson10_serializeOpTestHypervisorConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpTestHypervisorConfiguration) 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.(*TestHypervisorConfigurationInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.TestHypervisorConfiguration") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentTestHypervisorConfigurationInput(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 awsAwsjson10_serializeOpUntagResource struct { +} + +func (*awsAwsjson10_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUntagResource) 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.(*UntagResourceInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.UntagResource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUntagResourceInput(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 awsAwsjson10_serializeOpUpdateGatewayInformation struct { +} + +func (*awsAwsjson10_serializeOpUpdateGatewayInformation) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUpdateGatewayInformation) 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.(*UpdateGatewayInformationInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.UpdateGatewayInformation") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUpdateGatewayInformationInput(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 awsAwsjson10_serializeOpUpdateHypervisor struct { +} + +func (*awsAwsjson10_serializeOpUpdateHypervisor) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpUpdateHypervisor) 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.(*UpdateHypervisorInput) + _ = 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.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("BackupOnPremises_v20210101.UpdateHypervisor") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUpdateHypervisorInput(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) +} +func awsAwsjson10_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Key != nil { + ok := object.Key("Key") + ok.String(*v.Key) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) + } + + return nil +} + +func awsAwsjson10_serializeDocumentTagKeys(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 awsAwsjson10_serializeDocumentTags(v []types.Tag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson10_serializeDocumentTag(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson10_serializeOpDocumentAssociateGatewayToServerInput(v *AssociateGatewayToServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GatewayArn != nil { + ok := object.Key("GatewayArn") + ok.String(*v.GatewayArn) + } + + if v.ServerArn != nil { + ok := object.Key("ServerArn") + ok.String(*v.ServerArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentCreateGatewayInput(v *CreateGatewayInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ActivationKey != nil { + ok := object.Key("ActivationKey") + ok.String(*v.ActivationKey) + } + + if v.GatewayDisplayName != nil { + ok := object.Key("GatewayDisplayName") + ok.String(*v.GatewayDisplayName) + } + + if len(v.GatewayType) > 0 { + ok := object.Key("GatewayType") + ok.String(string(v.GatewayType)) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson10_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentDeleteGatewayInput(v *DeleteGatewayInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GatewayArn != nil { + ok := object.Key("GatewayArn") + ok.String(*v.GatewayArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentDeleteHypervisorInput(v *DeleteHypervisorInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.HypervisorArn != nil { + ok := object.Key("HypervisorArn") + ok.String(*v.HypervisorArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentDisassociateGatewayFromServerInput(v *DisassociateGatewayFromServerInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GatewayArn != nil { + ok := object.Key("GatewayArn") + ok.String(*v.GatewayArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentImportHypervisorConfigurationInput(v *ImportHypervisorConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + if v.KmsKeyArn != nil { + ok := object.Key("KmsKeyArn") + ok.String(*v.KmsKeyArn) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Password != nil { + ok := object.Key("Password") + ok.String(*v.Password) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson10_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + if v.Username != nil { + ok := object.Key("Username") + ok.String(*v.Username) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentListGatewaysInput(v *ListGatewaysInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 awsAwsjson10_serializeOpDocumentListHypervisorsInput(v *ListHypervisorsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 awsAwsjson10_serializeOpDocumentListTagsForResourceInput(v *ListTagsForResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentListVirtualMachinesInput(v *ListVirtualMachinesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 awsAwsjson10_serializeOpDocumentPutMaintenanceStartTimeInput(v *PutMaintenanceStartTimeInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DayOfMonth != nil { + ok := object.Key("DayOfMonth") + ok.Integer(*v.DayOfMonth) + } + + if v.DayOfWeek != nil { + ok := object.Key("DayOfWeek") + ok.Integer(*v.DayOfWeek) + } + + if v.GatewayArn != nil { + ok := object.Key("GatewayArn") + ok.String(*v.GatewayArn) + } + + if v.HourOfDay != nil { + ok := object.Key("HourOfDay") + ok.Integer(*v.HourOfDay) + } + + if v.MinuteOfHour != nil { + ok := object.Key("MinuteOfHour") + ok.Integer(*v.MinuteOfHour) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceARN != nil { + ok := object.Key("ResourceARN") + ok.String(*v.ResourceARN) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson10_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentTestHypervisorConfigurationInput(v *TestHypervisorConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GatewayArn != nil { + ok := object.Key("GatewayArn") + ok.String(*v.GatewayArn) + } + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + if v.Password != nil { + ok := object.Key("Password") + ok.String(*v.Password) + } + + if v.Username != nil { + ok := object.Key("Username") + ok.String(*v.Username) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceARN != nil { + ok := object.Key("ResourceARN") + ok.String(*v.ResourceARN) + } + + if v.TagKeys != nil { + ok := object.Key("TagKeys") + if err := awsAwsjson10_serializeDocumentTagKeys(v.TagKeys, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentUpdateGatewayInformationInput(v *UpdateGatewayInformationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GatewayArn != nil { + ok := object.Key("GatewayArn") + ok.String(*v.GatewayArn) + } + + if v.GatewayDisplayName != nil { + ok := object.Key("GatewayDisplayName") + ok.String(*v.GatewayDisplayName) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentUpdateHypervisorInput(v *UpdateHypervisorInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + if v.HypervisorArn != nil { + ok := object.Key("HypervisorArn") + ok.String(*v.HypervisorArn) + } + + if v.Password != nil { + ok := object.Key("Password") + ok.String(*v.Password) + } + + if v.Username != nil { + ok := object.Key("Username") + ok.String(*v.Username) + } + + return nil +} diff --git a/service/backupgateway/types/enums.go b/service/backupgateway/types/enums.go new file mode 100644 index 00000000000..f89c03a94b7 --- /dev/null +++ b/service/backupgateway/types/enums.go @@ -0,0 +1,41 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type GatewayType string + +// Enum values for GatewayType +const ( + GatewayTypeBackupVm GatewayType = "BACKUP_VM" +) + +// Values returns all known values for GatewayType. 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 (GatewayType) Values() []GatewayType { + return []GatewayType{ + "BACKUP_VM", + } +} + +type HypervisorState string + +// Enum values for HypervisorState +const ( + HypervisorStatePending HypervisorState = "PENDING" + HypervisorStateOnline HypervisorState = "ONLINE" + HypervisorStateOffline HypervisorState = "OFFLINE" + HypervisorStateError HypervisorState = "ERROR" +) + +// Values returns all known values for HypervisorState. 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 (HypervisorState) Values() []HypervisorState { + return []HypervisorState{ + "PENDING", + "ONLINE", + "OFFLINE", + "ERROR", + } +} diff --git a/service/backupgateway/types/errors.go b/service/backupgateway/types/errors.go new file mode 100644 index 00000000000..c72d9847df4 --- /dev/null +++ b/service/backupgateway/types/errors.go @@ -0,0 +1,114 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// The operation cannot proceed because you have insufficient permissions. +type AccessDeniedException struct { + Message *string + + ErrorCode_ *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The operation cannot proceed because it is not supported. +type ConflictException struct { + Message *string + + ErrorCode_ *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The operation did not succeed because an internal error occurred. Try again +// later. +type InternalServerException struct { + Message *string + + ErrorCode_ *string + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// A resource that is required for the action wasn't found. +type ResourceNotFoundException struct { + Message *string + + ErrorCode_ *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The operation did not succeed because a validation error occurred. +type ValidationException struct { + Message *string + + ErrorCode_ *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/backupgateway/types/types.go b/service/backupgateway/types/types.go new file mode 100644 index 00000000000..919c3e780ee --- /dev/null +++ b/service/backupgateway/types/types.go @@ -0,0 +1,103 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" + "time" +) + +// A gateway is an Backup Gateway appliance that runs on the customer's network to +// provide seamless connectivity to backup storage in the Amazon Web Services +// Cloud. +type Gateway struct { + + // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to + // return a list of gateways for your account and Amazon Web Services Region. + GatewayArn *string + + // The display name of the gateway. + GatewayDisplayName *string + + // The type of the gateway. + GatewayType GatewayType + + // The hypervisor ID of the gateway. + HypervisorId *string + + // The last time Backup gateway communicated with the gateway, in Unix format and + // UTC time. + LastSeenTime *time.Time + + noSmithyDocumentSerde +} + +// Represents the hypervisor's permissions to which the gateway will connect. A +// hypervisor is hardware, software, or firmware that creates and manages virtual +// machines, and allocates resources to them. +type Hypervisor struct { + + // The server host of the hypervisor. This can be either an IP address or a + // fully-qualified domain name (FQDN). + Host *string + + // The Amazon Resource Name (ARN) of the hypervisor. + HypervisorArn *string + + // The Amazon Resource Name (ARN) of the Key Management Service used to encrypt the + // hypervisor. + KmsKeyArn *string + + // The name of the hypervisor. + Name *string + + // The state of the hypervisor. + State HypervisorState + + noSmithyDocumentSerde +} + +// A key-value pair you can use to manage, filter, and search for your resources. +// Allowed characters include UTF-8 letters, numbers, spaces, and the following +// characters: + - = . _ : /. +type Tag struct { + + // The key part of a tag's key-value pair. The key can't start with aws:. + // + // This member is required. + Key *string + + // The key part of a value's key-value pair. + // + // This member is required. + Value *string + + noSmithyDocumentSerde +} + +// A virtual machine that is on a hypervisor. +type VirtualMachine struct { + + // The host name of the virtual machine. + HostName *string + + // The ID of the virtual machine's hypervisor. + HypervisorId *string + + // The most recent date a virtual machine was backed up, in Unix format and UTC + // time. + LastBackupDate *time.Time + + // The name of the virtual machine. + Name *string + + // The path of the virtual machine. + Path *string + + // The Amazon Resource Name (ARN) of the virtual machine. + ResourceArn *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/backupgateway/validators.go b/service/backupgateway/validators.go new file mode 100644 index 00000000000..1b3d279812a --- /dev/null +++ b/service/backupgateway/validators.go @@ -0,0 +1,594 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package backupgateway + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/backupgateway/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpAssociateGatewayToServer struct { +} + +func (*validateOpAssociateGatewayToServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateGatewayToServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateGatewayToServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateGatewayToServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateGateway struct { +} + +func (*validateOpCreateGateway) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateGateway) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateGatewayInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateGatewayInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteGateway struct { +} + +func (*validateOpDeleteGateway) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteGateway) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteGatewayInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteGatewayInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteHypervisor struct { +} + +func (*validateOpDeleteHypervisor) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteHypervisor) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteHypervisorInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteHypervisorInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDisassociateGatewayFromServer struct { +} + +func (*validateOpDisassociateGatewayFromServer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateGatewayFromServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateGatewayFromServerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateGatewayFromServerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpImportHypervisorConfiguration struct { +} + +func (*validateOpImportHypervisorConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpImportHypervisorConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ImportHypervisorConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpImportHypervisorConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTagsForResource struct { +} + +func (*validateOpListTagsForResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTagsForResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTagsForResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpPutMaintenanceStartTime struct { +} + +func (*validateOpPutMaintenanceStartTime) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutMaintenanceStartTime) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutMaintenanceStartTimeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutMaintenanceStartTimeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTagResource struct { +} + +func (*validateOpTagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTestHypervisorConfiguration struct { +} + +func (*validateOpTestHypervisorConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTestHypervisorConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TestHypervisorConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTestHypervisorConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUntagResource struct { +} + +func (*validateOpUntagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UntagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUntagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateGatewayInformation struct { +} + +func (*validateOpUpdateGatewayInformation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateGatewayInformation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateGatewayInformationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateGatewayInformationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateHypervisor struct { +} + +func (*validateOpUpdateHypervisor) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateHypervisor) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateHypervisorInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateHypervisorInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpAssociateGatewayToServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateGatewayToServer{}, middleware.After) +} + +func addOpCreateGatewayValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateGateway{}, middleware.After) +} + +func addOpDeleteGatewayValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteGateway{}, middleware.After) +} + +func addOpDeleteHypervisorValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteHypervisor{}, middleware.After) +} + +func addOpDisassociateGatewayFromServerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateGatewayFromServer{}, middleware.After) +} + +func addOpImportHypervisorConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpImportHypervisorConfiguration{}, middleware.After) +} + +func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) +} + +func addOpPutMaintenanceStartTimeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutMaintenanceStartTime{}, middleware.After) +} + +func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) +} + +func addOpTestHypervisorConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTestHypervisorConfiguration{}, middleware.After) +} + +func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) +} + +func addOpUpdateGatewayInformationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateGatewayInformation{}, middleware.After) +} + +func addOpUpdateHypervisorValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateHypervisor{}, middleware.After) +} + +func validateTag(v *types.Tag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Tag"} + if v.Key == nil { + invalidParams.Add(smithy.NewErrParamRequired("Key")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTags(v []types.Tag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Tags"} + for i := range v { + if err := validateTag(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpAssociateGatewayToServerInput(v *AssociateGatewayToServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateGatewayToServerInput"} + if v.GatewayArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) + } + if v.ServerArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServerArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateGatewayInput(v *CreateGatewayInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateGatewayInput"} + if v.ActivationKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("ActivationKey")) + } + if v.GatewayDisplayName == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayDisplayName")) + } + if len(v.GatewayType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("GatewayType")) + } + if v.Tags != nil { + if err := validateTags(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteGatewayInput(v *DeleteGatewayInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteGatewayInput"} + if v.GatewayArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteHypervisorInput(v *DeleteHypervisorInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteHypervisorInput"} + if v.HypervisorArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("HypervisorArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDisassociateGatewayFromServerInput(v *DisassociateGatewayFromServerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateGatewayFromServerInput"} + if v.GatewayArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpImportHypervisorConfigurationInput(v *ImportHypervisorConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ImportHypervisorConfigurationInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Host == nil { + invalidParams.Add(smithy.NewErrParamRequired("Host")) + } + if v.Tags != nil { + if err := validateTags(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpPutMaintenanceStartTimeInput(v *PutMaintenanceStartTimeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutMaintenanceStartTimeInput"} + if v.GatewayArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) + } + if v.HourOfDay == nil { + invalidParams.Add(smithy.NewErrParamRequired("HourOfDay")) + } + if v.MinuteOfHour == nil { + invalidParams.Add(smithy.NewErrParamRequired("MinuteOfHour")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTagResourceInput(v *TagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} + if v.ResourceARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) + } + if v.Tags == nil { + invalidParams.Add(smithy.NewErrParamRequired("Tags")) + } else if v.Tags != nil { + if err := validateTags(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTestHypervisorConfigurationInput(v *TestHypervisorConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TestHypervisorConfigurationInput"} + if v.GatewayArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) + } + if v.Host == nil { + invalidParams.Add(smithy.NewErrParamRequired("Host")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUntagResourceInput(v *UntagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} + if v.ResourceARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) + } + if v.TagKeys == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateGatewayInformationInput(v *UpdateGatewayInformationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateGatewayInformationInput"} + if v.GatewayArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("GatewayArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateHypervisorInput(v *UpdateHypervisorInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateHypervisorInput"} + if v.HypervisorArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("HypervisorArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/cloudhsm/internal/endpoints/endpoints.go b/service/cloudhsm/internal/endpoints/endpoints.go index 071d3671fee..067a0ca6adc 100644 --- a/service/cloudhsm/internal/endpoints/endpoints.go +++ b/service/cloudhsm/internal/endpoints/endpoints.go @@ -135,36 +135,12 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ - endpoints.EndpointKey{ - Region: "ap-northeast-1", - }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "ap-southeast-1", - }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "ap-southeast-2", - }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "ca-central-1", - }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "eu-central-1", - }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-1", }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "us-east-2", - }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "us-west-1", - }: endpoints.Endpoint{}, - endpoints.EndpointKey{ - Region: "us-west-2", - }: endpoints.Endpoint{}, }, }, { diff --git a/service/devopsguru/api_op_DescribeAnomaly.go b/service/devopsguru/api_op_DescribeAnomaly.go index 4c6fca68e20..68f4fcce7a6 100644 --- a/service/devopsguru/api_op_DescribeAnomaly.go +++ b/service/devopsguru/api_op_DescribeAnomaly.go @@ -42,10 +42,10 @@ type DescribeAnomalyInput struct { type DescribeAnomalyOutput struct { - // A ReactiveAnomaly object that represents the requested anomaly. + // A ProactiveAnomaly object that represents the requested anomaly. ProactiveAnomaly *types.ProactiveAnomaly - // A ProactiveAnomaly object that represents the requested anomaly. + // A ReactiveAnomaly object that represents the requested anomaly. ReactiveAnomaly *types.ReactiveAnomaly // Metadata pertaining to the operation's result. diff --git a/service/devopsguru/api_op_DescribeOrganizationResourceCollectionHealth.go b/service/devopsguru/api_op_DescribeOrganizationResourceCollectionHealth.go index 6ec4627b45f..e508afc70eb 100644 --- a/service/devopsguru/api_op_DescribeOrganizationResourceCollectionHealth.go +++ b/service/devopsguru/api_op_DescribeOrganizationResourceCollectionHealth.go @@ -33,11 +33,12 @@ func (c *Client) DescribeOrganizationResourceCollectionHealth(ctx context.Contex type DescribeOrganizationResourceCollectionHealthInput struct { // An Amazon Web Services resource collection type. This type specifies how - // analyzed Amazon Web Services resources are defined. The one type of Amazon Web - // Services resource collection supported is Amazon Web Services CloudFormation - // stacks. DevOps Guru can be configured to analyze only the Amazon Web Services - // resources that are defined in the stacks. You can specify up to 500 Amazon Web - // Services CloudFormation stacks. + // analyzed Amazon Web Services resources are defined. The two types of Amazon Web + // Services resource collections supported are Amazon Web Services CloudFormation + // stacks and Amazon Web Services resources that contain the same Amazon Web + // Services tag. DevOps Guru can be configured to analyze the Amazon Web Services + // resources that are defined in the stacks or that are tagged using the same tag + // key. You can specify up to 500 Amazon Web Services CloudFormation stacks. // // This member is required. OrganizationResourceCollectionType types.OrganizationResourceCollectionType diff --git a/service/devopsguru/api_op_DescribeResourceCollectionHealth.go b/service/devopsguru/api_op_DescribeResourceCollectionHealth.go index 8ff75e9977d..1dc404478a2 100644 --- a/service/devopsguru/api_op_DescribeResourceCollectionHealth.go +++ b/service/devopsguru/api_op_DescribeResourceCollectionHealth.go @@ -15,10 +15,12 @@ import ( // Returns the number of open proactive insights, open reactive insights, and the // Mean Time to Recover (MTTR) for all closed insights in resource collections in // your account. You specify the type of Amazon Web Services resources collection. -// The one type of Amazon Web Services resource collection supported is Amazon Web -// Services CloudFormation stacks. DevOps Guru can be configured to analyze only -// the Amazon Web Services resources that are defined in the stacks. You can -// specify up to 500 Amazon Web Services CloudFormation stacks. +// The two types of Amazon Web Services resource collections supported are Amazon +// Web Services CloudFormation stacks and Amazon Web Services resources that +// contain the same Amazon Web Services tag. DevOps Guru can be configured to +// analyze the Amazon Web Services resources that are defined in the stacks or that +// are tagged using the same tag key. You can specify up to 500 Amazon Web Services +// CloudFormation stacks. func (c *Client) DescribeResourceCollectionHealth(ctx context.Context, params *DescribeResourceCollectionHealthInput, optFns ...func(*Options)) (*DescribeResourceCollectionHealthOutput, error) { if params == nil { params = &DescribeResourceCollectionHealthInput{} @@ -37,11 +39,12 @@ func (c *Client) DescribeResourceCollectionHealth(ctx context.Context, params *D type DescribeResourceCollectionHealthInput struct { // An Amazon Web Services resource collection type. This type specifies how - // analyzed Amazon Web Services resources are defined. The one type of Amazon Web - // Services resource collection supported is Amazon Web Services CloudFormation - // stacks. DevOps Guru can be configured to analyze only the Amazon Web Services - // resources that are defined in the stacks. You can specify up to 500 Amazon Web - // Services CloudFormation stacks. + // analyzed Amazon Web Services resources are defined. The two types of Amazon Web + // Services resource collections supported are Amazon Web Services CloudFormation + // stacks and Amazon Web Services resources that contain the same Amazon Web + // Services tag. DevOps Guru can be configured to analyze the Amazon Web Services + // resources that are defined in the stacks or that are tagged using the same tag + // key. You can specify up to 500 Amazon Web Services CloudFormation stacks. // // This member is required. ResourceCollectionType types.ResourceCollectionType @@ -57,8 +60,6 @@ type DescribeResourceCollectionHealthOutput struct { // The returned CloudFormationHealthOverview object that contains an // InsightHealthOverview object with the requested system health information. - // - // This member is required. CloudFormation []types.CloudFormationHealth // The pagination token to use to retrieve the next page of results for this @@ -69,6 +70,35 @@ type DescribeResourceCollectionHealthOutput struct { // Services services associated with the resources in the collection. Service []types.ServiceHealth + // The Amazon Web Services tags that are used by resources in the resource + // collection. Tags help you identify and organize your Amazon Web Services + // resources. Many Amazon Web Services services support tagging, so you can assign + // the same tag to resources from different services to indicate that the resources + // are related. For example, you can assign the same tag to an Amazon DynamoDB + // table resource that you assign to an Lambda function. For more information about + // using tags, see the Tagging best practices + // (https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + // whitepaper. Each Amazon Web Services tag has two parts. + // + // * A tag key (for + // example, CostCenter, Environment, Project, or Secret). Tag keys are + // case-sensitive. + // + // * An optional field known as a tag value (for example, + // 111122223333, Production, or a team name). Omitting the tag value is the same as + // using an empty string. Like tag keys, tag values are case-sensitive. + // + // Together + // these are known as key-value pairs. The string used for a key in a tag that you + // use to define your resource coverage must begin with the prefix Devops-guru-. + // The tag key might be Devops-guru-deployment-application or + // Devops-guru-rds-application. While keys are case-sensitive, the case of key + // characters don't matter to DevOps Guru. For example, DevOps Guru works with a + // key named devops-guru-rds and a key named DevOps-Guru-RDS. Possible key/value + // pairs in your application might be Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + Tags []types.TagHealth + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/devopsguru/api_op_GetResourceCollection.go b/service/devopsguru/api_op_GetResourceCollection.go index f26357bedbf..787e430fd30 100644 --- a/service/devopsguru/api_op_GetResourceCollection.go +++ b/service/devopsguru/api_op_GetResourceCollection.go @@ -13,10 +13,12 @@ import ( ) // Returns lists Amazon Web Services resources that are of the specified resource -// collection type. The one type of Amazon Web Services resource collection -// supported is Amazon Web Services CloudFormation stacks. DevOps Guru can be -// configured to analyze only the Amazon Web Services resources that are defined in -// the stacks. You can specify up to 500 Amazon Web Services CloudFormation stacks. +// collection type. The two types of Amazon Web Services resource collections +// supported are Amazon Web Services CloudFormation stacks and Amazon Web Services +// resources that contain the same Amazon Web Services tag. DevOps Guru can be +// configured to analyze the Amazon Web Services resources that are defined in the +// stacks or that are tagged using the same tag key. You can specify up to 500 +// Amazon Web Services CloudFormation stacks. func (c *Client) GetResourceCollection(ctx context.Context, params *GetResourceCollectionInput, optFns ...func(*Options)) (*GetResourceCollectionOutput, error) { if params == nil { params = &GetResourceCollectionInput{} @@ -53,11 +55,13 @@ type GetResourceCollectionOutput struct { // operation. If there are no more pages, this value is null. NextToken *string - // The requested list of Amazon Web Services resource collections. The one type of - // Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // The requested list of Amazon Web Services resource collections. The two types of + // Amazon Web Services resource collections supported are Amazon Web Services + // CloudFormation stacks and Amazon Web Services resources that contain the same + // Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web + // Services resources that are defined in the stacks or that are tagged using the + // same tag key. You can specify up to 500 Amazon Web Services CloudFormation + // stacks. ResourceCollection *types.ResourceCollectionFilter // Metadata pertaining to the operation's result. diff --git a/service/devopsguru/api_op_UpdateResourceCollection.go b/service/devopsguru/api_op_UpdateResourceCollection.go index aa666fd41ef..8a3682ac44a 100644 --- a/service/devopsguru/api_op_UpdateResourceCollection.go +++ b/service/devopsguru/api_op_UpdateResourceCollection.go @@ -11,12 +11,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the collection of resources that DevOps Guru analyzes. The one type of -// Amazon Web Services resource collection supported is Amazon Web Services -// CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon -// Web Services resources that are defined in the stacks. You can specify up to 500 -// Amazon Web Services CloudFormation stacks. This method also creates the IAM role -// required for you to use DevOps Guru. +// Updates the collection of resources that DevOps Guru analyzes. The two types of +// Amazon Web Services resource collections supported are Amazon Web Services +// CloudFormation stacks and Amazon Web Services resources that contain the same +// Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web +// Services resources that are defined in the stacks or that are tagged using the +// same tag key. You can specify up to 500 Amazon Web Services CloudFormation +// stacks. This method also creates the IAM role required for you to use DevOps +// Guru. func (c *Client) UpdateResourceCollection(ctx context.Context, params *UpdateResourceCollectionInput, optFns ...func(*Options)) (*UpdateResourceCollectionOutput, error) { if params == nil { params = &UpdateResourceCollectionInput{} diff --git a/service/devopsguru/deserializers.go b/service/devopsguru/deserializers.go index f063e8e0f1a..8390221a83c 100644 --- a/service/devopsguru/deserializers.go +++ b/service/devopsguru/deserializers.go @@ -1786,6 +1786,11 @@ func awsRestjson1_deserializeOpDocumentDescribeResourceCollectionHealthOutput(v return err } + case "Tags": + if err := awsRestjson1_deserializeDocumentTagHealths(&sv.Tags, value); err != nil { + return err + } + default: _, _ = key, value @@ -4709,6 +4714,89 @@ func awsRestjson1_deserializeDocumentAnomalyReportedTimeRange(v **types.AnomalyR return nil } +func awsRestjson1_deserializeDocumentAnomalyResource(v **types.AnomalyResource, 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.AnomalyResource + if *v == nil { + sv = &types.AnomalyResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnomalyResources(v *[]types.AnomalyResource, 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.AnomalyResource + if *v == nil { + cv = []types.AnomalyResource{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnomalyResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnomalyResource(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentAnomalySourceDetails(v **types.AnomalySourceDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -4736,6 +4824,11 @@ func awsRestjson1_deserializeDocumentAnomalySourceDetails(v **types.AnomalySourc return err } + case "PerformanceInsightsMetrics": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricsDetails(&sv.PerformanceInsightsMetrics, value); err != nil { + return err + } + default: _, _ = key, value @@ -4808,6 +4901,42 @@ func awsRestjson1_deserializeDocumentAnomalyTimeRange(v **types.AnomalyTimeRange return nil } +func awsRestjson1_deserializeDocumentAssociatedResourceArns(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 ResourceArn to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentChannels(v *[]types.NotificationChannel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5366,6 +5495,11 @@ func awsRestjson1_deserializeDocumentCostEstimationResourceCollectionFilter(v ** return err } + case "Tags": + if err := awsRestjson1_deserializeDocumentTagCostEstimationResourceCollectionFilters(&sv.Tags, value); err != nil { + return err + } + default: _, _ = key, value @@ -5411,6 +5545,42 @@ func awsRestjson1_deserializeDocumentCostEstimationStackNames(v *[]string, value return nil } +func awsRestjson1_deserializeDocumentCostEstimationTagValues(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 TagValue to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentCostEstimationTimeRange(v **types.CostEstimationTimeRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6058,7 +6228,7 @@ func awsRestjson1_deserializeDocumentOpsCenterIntegration(v **types.OpsCenterInt return nil } -func awsRestjson1_deserializeDocumentPredictionTimeRange(v **types.PredictionTimeRange, value interface{}) error { +func awsRestjson1_deserializeDocumentPerformanceInsightsMetricDimensionGroup(v **types.PerformanceInsightsMetricDimensionGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6071,45 +6241,40 @@ func awsRestjson1_deserializeDocumentPredictionTimeRange(v **types.PredictionTim return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PredictionTimeRange + var sv *types.PerformanceInsightsMetricDimensionGroup if *v == nil { - sv = &types.PredictionTimeRange{} + sv = &types.PerformanceInsightsMetricDimensionGroup{} } else { sv = *v } for key, value := range shape { switch key { - case "EndTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case "Dimensions": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricDimensions(&sv.Dimensions, value); err != nil { + return err + } + case "Group": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsMetricGroup to be of type string, got %T instead", value) } + sv.Group = ptr.String(jtv) } - case "StartTime": + case "Limit": 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) - + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PerformanceInsightsMetricLimitInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err } + sv.Limit = ptr.Int32(int32(i64)) } default: @@ -6121,7 +6286,7 @@ func awsRestjson1_deserializeDocumentPredictionTimeRange(v **types.PredictionTim return nil } -func awsRestjson1_deserializeDocumentProactiveAnomalies(v *[]types.ProactiveAnomalySummary, value interface{}) error { +func awsRestjson1_deserializeDocumentPerformanceInsightsMetricDimensions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6134,20 +6299,22 @@ func awsRestjson1_deserializeDocumentProactiveAnomalies(v *[]types.ProactiveAnom return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ProactiveAnomalySummary + var cv []string if *v == nil { - cv = []types.ProactiveAnomalySummary{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ProactiveAnomalySummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentProactiveAnomalySummary(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsMetricDimension to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -6155,7 +6322,7 @@ func awsRestjson1_deserializeDocumentProactiveAnomalies(v *[]types.ProactiveAnom return nil } -func awsRestjson1_deserializeDocumentProactiveAnomaly(v **types.ProactiveAnomaly, value interface{}) error { +func awsRestjson1_deserializeDocumentPerformanceInsightsMetricFilterMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6168,45 +6335,660 @@ func awsRestjson1_deserializeDocumentProactiveAnomaly(v **types.ProactiveAnomaly return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ProactiveAnomaly + var mv map[string]string if *v == nil { - sv = &types.ProactiveAnomaly{} + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsMetricFilterValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsMetricQuery(v **types.PerformanceInsightsMetricQuery, 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.PerformanceInsightsMetricQuery + if *v == nil { + sv = &types.PerformanceInsightsMetricQuery{} } else { sv = *v } for key, value := range shape { switch key { - case "AnomalyReportedTimeRange": - if err := awsRestjson1_deserializeDocumentAnomalyReportedTimeRange(&sv.AnomalyReportedTimeRange, value); err != nil { + case "Filter": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricFilterMap(&sv.Filter, value); err != nil { return err } - case "AnomalyTimeRange": - if err := awsRestjson1_deserializeDocumentAnomalyTimeRange(&sv.AnomalyTimeRange, value); err != nil { + case "GroupBy": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricDimensionGroup(&sv.GroupBy, value); err != nil { return err } - case "AssociatedInsightId": + case "Metric": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InsightId to be of type string, got %T instead", value) + return fmt.Errorf("expected PerformanceInsightsMetricName to be of type string, got %T instead", value) } - sv.AssociatedInsightId = ptr.String(jtv) + sv.Metric = ptr.String(jtv) } - case "Id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnomalyId to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } + default: + _, _ = key, value - case "Limit": - if value != nil { + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsMetricsDetail(v **types.PerformanceInsightsMetricsDetail, 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.PerformanceInsightsMetricsDetail + if *v == nil { + sv = &types.PerformanceInsightsMetricsDetail{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MetricDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsMetricDisplayName to be of type string, got %T instead", value) + } + sv.MetricDisplayName = ptr.String(jtv) + } + + case "MetricQuery": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricQuery(&sv.MetricQuery, value); err != nil { + return err + } + + case "ReferenceData": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsReferenceDataList(&sv.ReferenceData, value); err != nil { + return err + } + + case "StatsAtAnomaly": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsStats(&sv.StatsAtAnomaly, value); err != nil { + return err + } + + case "StatsAtBaseline": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsStats(&sv.StatsAtBaseline, value); err != nil { + return err + } + + case "Unit": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsMetricUnit to be of type string, got %T instead", value) + } + sv.Unit = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsMetricsDetails(v *[]types.PerformanceInsightsMetricsDetail, 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.PerformanceInsightsMetricsDetail + if *v == nil { + cv = []types.PerformanceInsightsMetricsDetail{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PerformanceInsightsMetricsDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricsDetail(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsReferenceComparisonValues(v **types.PerformanceInsightsReferenceComparisonValues, 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.PerformanceInsightsReferenceComparisonValues + if *v == nil { + sv = &types.PerformanceInsightsReferenceComparisonValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ReferenceMetric": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsReferenceMetric(&sv.ReferenceMetric, value); err != nil { + return err + } + + case "ReferenceScalar": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsReferenceScalar(&sv.ReferenceScalar, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsReferenceData(v **types.PerformanceInsightsReferenceData, 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.PerformanceInsightsReferenceData + if *v == nil { + sv = &types.PerformanceInsightsReferenceData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ComparisonValues": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsReferenceComparisonValues(&sv.ComparisonValues, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsReferenceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsReferenceDataList(v *[]types.PerformanceInsightsReferenceData, 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.PerformanceInsightsReferenceData + if *v == nil { + cv = []types.PerformanceInsightsReferenceData{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PerformanceInsightsReferenceData + destAddr := &col + if err := awsRestjson1_deserializeDocumentPerformanceInsightsReferenceData(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsReferenceMetric(v **types.PerformanceInsightsReferenceMetric, 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.PerformanceInsightsReferenceMetric + if *v == nil { + sv = &types.PerformanceInsightsReferenceMetric{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MetricQuery": + if err := awsRestjson1_deserializeDocumentPerformanceInsightsMetricQuery(&sv.MetricQuery, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsReferenceScalar(v **types.PerformanceInsightsReferenceScalar, 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.PerformanceInsightsReferenceScalar + if *v == nil { + sv = &types.PerformanceInsightsReferenceScalar{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = ptr.Float64(f64) + + default: + return fmt.Errorf("expected PerformanceInsightsValueDouble to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsStat(v **types.PerformanceInsightsStat, 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.PerformanceInsightsStat + if *v == nil { + sv = &types.PerformanceInsightsStat{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PerformanceInsightsStatType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = ptr.Float64(f64) + + default: + return fmt.Errorf("expected PerformanceInsightsValueDouble to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPerformanceInsightsStats(v *[]types.PerformanceInsightsStat, 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.PerformanceInsightsStat + if *v == nil { + cv = []types.PerformanceInsightsStat{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PerformanceInsightsStat + destAddr := &col + if err := awsRestjson1_deserializeDocumentPerformanceInsightsStat(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPredictionTimeRange(v **types.PredictionTimeRange, 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.PredictionTimeRange + if *v == nil { + sv = &types.PredictionTimeRange{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + 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 awsRestjson1_deserializeDocumentProactiveAnomalies(v *[]types.ProactiveAnomalySummary, 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.ProactiveAnomalySummary + if *v == nil { + cv = []types.ProactiveAnomalySummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ProactiveAnomalySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentProactiveAnomalySummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentProactiveAnomaly(v **types.ProactiveAnomaly, 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.ProactiveAnomaly + if *v == nil { + sv = &types.ProactiveAnomaly{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AnomalyReportedTimeRange": + if err := awsRestjson1_deserializeDocumentAnomalyReportedTimeRange(&sv.AnomalyReportedTimeRange, value); err != nil { + return err + } + + case "AnomalyTimeRange": + if err := awsRestjson1_deserializeDocumentAnomalyTimeRange(&sv.AnomalyTimeRange, value); err != nil { + return err + } + + case "AssociatedInsightId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InsightId to be of type string, got %T instead", value) + } + sv.AssociatedInsightId = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "Limit": + if value != nil { switch jtv := value.(type) { case json.Number: f64, err := jtv.Float64() @@ -6586,6 +7368,11 @@ func awsRestjson1_deserializeDocumentProactiveInsightSummary(v **types.Proactive for key, value := range shape { switch key { + case "AssociatedResourceArns": + if err := awsRestjson1_deserializeDocumentAssociatedResourceArns(&sv.AssociatedResourceArns, value); err != nil { + return err + } + case "Id": if value != nil { jtv, ok := value.(string) @@ -6851,6 +7638,11 @@ func awsRestjson1_deserializeDocumentReactiveAnomaly(v **types.ReactiveAnomaly, return err } + case "AnomalyResources": + if err := awsRestjson1_deserializeDocumentAnomalyResources(&sv.AnomalyResources, value); err != nil { + return err + } + case "AnomalyTimeRange": if err := awsRestjson1_deserializeDocumentAnomalyTimeRange(&sv.AnomalyTimeRange, value); err != nil { return err @@ -6865,6 +7657,24 @@ func awsRestjson1_deserializeDocumentReactiveAnomaly(v **types.ReactiveAnomaly, sv.AssociatedInsightId = ptr.String(jtv) } + case "CausalAnomalyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyId to be of type string, got %T instead", value) + } + sv.CausalAnomalyId = ptr.String(jtv) + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + case "Id": if value != nil { jtv, ok := value.(string) @@ -6874,6 +7684,15 @@ func awsRestjson1_deserializeDocumentReactiveAnomaly(v **types.ReactiveAnomaly, sv.Id = ptr.String(jtv) } + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + case "ResourceCollection": if err := awsRestjson1_deserializeDocumentResourceCollection(&sv.ResourceCollection, value); err != nil { return err @@ -6902,6 +7721,15 @@ func awsRestjson1_deserializeDocumentReactiveAnomaly(v **types.ReactiveAnomaly, sv.Status = types.AnomalyStatus(jtv) } + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyType to be of type string, got %T instead", value) + } + sv.Type = types.AnomalyType(jtv) + } + default: _, _ = key, value @@ -6938,6 +7766,11 @@ func awsRestjson1_deserializeDocumentReactiveAnomalySummary(v **types.ReactiveAn return err } + case "AnomalyResources": + if err := awsRestjson1_deserializeDocumentAnomalyResources(&sv.AnomalyResources, value); err != nil { + return err + } + case "AnomalyTimeRange": if err := awsRestjson1_deserializeDocumentAnomalyTimeRange(&sv.AnomalyTimeRange, value); err != nil { return err @@ -6952,6 +7785,24 @@ func awsRestjson1_deserializeDocumentReactiveAnomalySummary(v **types.ReactiveAn sv.AssociatedInsightId = ptr.String(jtv) } + case "CausalAnomalyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyId to be of type string, got %T instead", value) + } + sv.CausalAnomalyId = ptr.String(jtv) + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + case "Id": if value != nil { jtv, ok := value.(string) @@ -6961,6 +7812,15 @@ func awsRestjson1_deserializeDocumentReactiveAnomalySummary(v **types.ReactiveAn sv.Id = ptr.String(jtv) } + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + case "ResourceCollection": if err := awsRestjson1_deserializeDocumentResourceCollection(&sv.ResourceCollection, value); err != nil { return err @@ -6989,6 +7849,15 @@ func awsRestjson1_deserializeDocumentReactiveAnomalySummary(v **types.ReactiveAn sv.Status = types.AnomalyStatus(jtv) } + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyType to be of type string, got %T instead", value) + } + sv.Type = types.AnomalyType(jtv) + } + default: _, _ = key, value @@ -7140,6 +8009,11 @@ func awsRestjson1_deserializeDocumentReactiveInsightSummary(v **types.ReactiveIn for key, value := range shape { switch key { + case "AssociatedResourceArns": + if err := awsRestjson1_deserializeDocumentAssociatedResourceArns(&sv.AssociatedResourceArns, value); err != nil { + return err + } + case "Id": if value != nil { jtv, ok := value.(string) @@ -7467,6 +8341,15 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomaly(v **types.Reco for key, value := range shape { switch key { + case "AnomalyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnomalyId to be of type string, got %T instead", value) + } + sv.AnomalyId = ptr.String(jtv) + } + case "Resources": if err := awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResources(&sv.Resources, value); err != nil { return err @@ -7486,7 +8369,254 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomaly(v **types.Reco return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(v **types.RecommendationRelatedAnomalyResource, value interface{}) error { +func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(v **types.RecommendationRelatedAnomalyResource, 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.RecommendationRelatedAnomalyResource + if *v == nil { + sv = &types.RecommendationRelatedAnomalyResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationRelatedAnomalyResourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationRelatedAnomalyResourceType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResources(v *[]types.RecommendationRelatedAnomalyResource, 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.RecommendationRelatedAnomalyResource + if *v == nil { + cv = []types.RecommendationRelatedAnomalyResource{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RecommendationRelatedAnomalyResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalySourceDetail(v **types.RecommendationRelatedAnomalySourceDetail, 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.RecommendationRelatedAnomalySourceDetail + if *v == nil { + sv = &types.RecommendationRelatedAnomalySourceDetail{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CloudWatchMetrics": + if err := awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetails(&sv.CloudWatchMetrics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetail(v **types.RecommendationRelatedCloudWatchMetricsSourceDetail, 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.RecommendationRelatedCloudWatchMetricsSourceDetail + if *v == nil { + sv = &types.RecommendationRelatedCloudWatchMetricsSourceDetail{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MetricName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationRelatedCloudWatchMetricsSourceMetricName to be of type string, got %T instead", value) + } + sv.MetricName = ptr.String(jtv) + } + + case "Namespace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationRelatedCloudWatchMetricsSourceNamespace to be of type string, got %T instead", value) + } + sv.Namespace = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetails(v *[]types.RecommendationRelatedCloudWatchMetricsSourceDetail, 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.RecommendationRelatedCloudWatchMetricsSourceDetail + if *v == nil { + cv = []types.RecommendationRelatedCloudWatchMetricsSourceDetail{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RecommendationRelatedCloudWatchMetricsSourceDetail + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetail(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendationRelatedEvent(v **types.RecommendationRelatedEvent, 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.RecommendationRelatedEvent + if *v == nil { + sv = &types.RecommendationRelatedEvent{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationRelatedEventName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Resources": + if err := awsRestjson1_deserializeDocumentRecommendationRelatedEventResources(&sv.Resources, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendationRelatedEventResource(v **types.RecommendationRelatedEventResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7499,9 +8629,9 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RecommendationRelatedAnomalyResource + var sv *types.RecommendationRelatedEventResource if *v == nil { - sv = &types.RecommendationRelatedAnomalyResource{} + sv = &types.RecommendationRelatedEventResource{} } else { sv = *v } @@ -7512,7 +8642,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(v **ty if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RecommendationRelatedAnomalyResourceName to be of type string, got %T instead", value) + return fmt.Errorf("expected RecommendationRelatedEventResourceName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } @@ -7521,7 +8651,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(v **ty if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RecommendationRelatedAnomalyResourceType to be of type string, got %T instead", value) + return fmt.Errorf("expected RecommendationRelatedEventResourceType to be of type string, got %T instead", value) } sv.Type = ptr.String(jtv) } @@ -7535,7 +8665,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(v **ty return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResources(v *[]types.RecommendationRelatedAnomalyResource, value interface{}) error { +func awsRestjson1_deserializeDocumentRecommendationRelatedEventResources(v *[]types.RecommendationRelatedEventResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7548,17 +8678,17 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResources(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.RecommendationRelatedAnomalyResource + var cv []types.RecommendationRelatedEventResource if *v == nil { - cv = []types.RecommendationRelatedAnomalyResource{} + cv = []types.RecommendationRelatedEventResource{} } else { cv = *v } for _, value := range shape { - var col types.RecommendationRelatedAnomalyResource + var col types.RecommendationRelatedEventResource destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResource(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentRecommendationRelatedEventResource(&destAddr, value); err != nil { return err } col = *destAddr @@ -7569,7 +8699,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalyResources(v *[] return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalySourceDetail(v **types.RecommendationRelatedAnomalySourceDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentRecommendationRelatedEvents(v *[]types.RecommendationRelatedEvent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7577,35 +8707,33 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedAnomalySourceDetail(v 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.RecommendationRelatedAnomalySourceDetail + var cv []types.RecommendationRelatedEvent if *v == nil { - sv = &types.RecommendationRelatedAnomalySourceDetail{} + cv = []types.RecommendationRelatedEvent{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CloudWatchMetrics": - if err := awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetails(&sv.CloudWatchMetrics, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.RecommendationRelatedEvent + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendationRelatedEvent(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetail(v **types.RecommendationRelatedCloudWatchMetricsSourceDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentRecommendations(v *[]types.Recommendation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7613,48 +8741,33 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourc 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.RecommendationRelatedCloudWatchMetricsSourceDetail + var cv []types.Recommendation if *v == nil { - sv = &types.RecommendationRelatedCloudWatchMetricsSourceDetail{} + cv = []types.Recommendation{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "MetricName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RecommendationRelatedCloudWatchMetricsSourceMetricName to be of type string, got %T instead", value) - } - sv.MetricName = ptr.String(jtv) - } - - case "Namespace": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RecommendationRelatedCloudWatchMetricsSourceNamespace to be of type string, got %T instead", value) - } - sv.Namespace = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Recommendation + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendation(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetails(v *[]types.RecommendationRelatedCloudWatchMetricsSourceDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentRelatedAnomalySourceDetails(v *[]types.RecommendationRelatedAnomalySourceDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7667,17 +8780,17 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourc return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.RecommendationRelatedCloudWatchMetricsSourceDetail + var cv []types.RecommendationRelatedAnomalySourceDetail if *v == nil { - cv = []types.RecommendationRelatedCloudWatchMetricsSourceDetail{} + cv = []types.RecommendationRelatedAnomalySourceDetail{} } else { cv = *v } for _, value := range shape { - var col types.RecommendationRelatedCloudWatchMetricsSourceDetail + var col types.RecommendationRelatedAnomalySourceDetail destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourceDetail(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentRecommendationRelatedAnomalySourceDetail(&destAddr, value); err != nil { return err } col = *destAddr @@ -7688,7 +8801,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedCloudWatchMetricsSourc return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedEvent(v **types.RecommendationRelatedEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceCollection(v **types.ResourceCollection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7701,26 +8814,22 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedEvent(v **types.Recomm return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RecommendationRelatedEvent + var sv *types.ResourceCollection if *v == nil { - sv = &types.RecommendationRelatedEvent{} + sv = &types.ResourceCollection{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RecommendationRelatedEventName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "CloudFormation": + if err := awsRestjson1_deserializeDocumentCloudFormationCollection(&sv.CloudFormation, value); err != nil { + return err } - case "Resources": - if err := awsRestjson1_deserializeDocumentRecommendationRelatedEventResources(&sv.Resources, value); err != nil { + case "Tags": + if err := awsRestjson1_deserializeDocumentTagCollections(&sv.Tags, value); err != nil { return err } @@ -7733,7 +8842,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedEvent(v **types.Recomm return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedEventResource(v **types.RecommendationRelatedEventResource, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceCollectionFilter(v **types.ResourceCollectionFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7746,31 +8855,81 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedEventResource(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RecommendationRelatedEventResource + var sv *types.ResourceCollectionFilter if *v == nil { - sv = &types.RecommendationRelatedEventResource{} + sv = &types.ResourceCollectionFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": + case "CloudFormation": + if err := awsRestjson1_deserializeDocumentCloudFormationCollectionFilter(&sv.CloudFormation, value); err != nil { + return err + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentTagCollectionFilters(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, 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.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } 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 RecommendationRelatedEventResourceName to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessageString to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "Type": + case "ResourceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RecommendationRelatedEventResourceType to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) } - sv.Type = ptr.String(jtv) + sv.ResourceId = ptr.String(jtv) + } + + case "ResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) } default: @@ -7782,7 +8941,7 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedEventResource(v **type return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedEventResources(v *[]types.RecommendationRelatedEventResource, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceCollection(v **types.ServiceCollection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7790,33 +8949,35 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedEventResources(v *[]ty 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.RecommendationRelatedEventResource + var sv *types.ServiceCollection if *v == nil { - cv = []types.RecommendationRelatedEventResource{} + sv = &types.ServiceCollection{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.RecommendationRelatedEventResource - destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendationRelatedEventResource(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ServiceNames": + if err := awsRestjson1_deserializeDocumentServiceNames(&sv.ServiceNames, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentRecommendationRelatedEvents(v *[]types.RecommendationRelatedEvent, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceHealth(v **types.ServiceHealth, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7824,33 +8985,44 @@ func awsRestjson1_deserializeDocumentRecommendationRelatedEvents(v *[]types.Reco 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.RecommendationRelatedEvent + var sv *types.ServiceHealth if *v == nil { - cv = []types.RecommendationRelatedEvent{} + sv = &types.ServiceHealth{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.RecommendationRelatedEvent - destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendationRelatedEvent(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Insight": + if err := awsRestjson1_deserializeDocumentServiceInsightHealth(&sv.Insight, value); err != nil { + return err + } + + case "ServiceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) + } + sv.ServiceName = types.ServiceName(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentRecommendations(v *[]types.Recommendation, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceHealths(v *[]types.ServiceHealth, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7863,17 +9035,17 @@ func awsRestjson1_deserializeDocumentRecommendations(v *[]types.Recommendation, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Recommendation + var cv []types.ServiceHealth if *v == nil { - cv = []types.Recommendation{} + cv = []types.ServiceHealth{} } else { cv = *v } for _, value := range shape { - var col types.Recommendation + var col types.ServiceHealth destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendation(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentServiceHealth(&destAddr, value); err != nil { return err } col = *destAddr @@ -7884,7 +9056,7 @@ func awsRestjson1_deserializeDocumentRecommendations(v *[]types.Recommendation, return nil } -func awsRestjson1_deserializeDocumentRelatedAnomalySourceDetails(v *[]types.RecommendationRelatedAnomalySourceDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceInsightHealth(v **types.ServiceInsightHealth, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7892,33 +9064,56 @@ func awsRestjson1_deserializeDocumentRelatedAnomalySourceDetails(v *[]types.Reco 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.RecommendationRelatedAnomalySourceDetail + var sv *types.ServiceInsightHealth if *v == nil { - cv = []types.RecommendationRelatedAnomalySourceDetail{} + sv = &types.ServiceInsightHealth{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.RecommendationRelatedAnomalySourceDetail - destAddr := &col - if err := awsRestjson1_deserializeDocumentRecommendationRelatedAnomalySourceDetail(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "OpenProactiveInsights": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumOpenProactiveInsights to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.OpenProactiveInsights = int32(i64) + } + + case "OpenReactiveInsights": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumOpenReactiveInsights to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.OpenReactiveInsights = int32(i64) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentResourceCollection(v **types.ResourceCollection, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceIntegrationConfig(v **types.ServiceIntegrationConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7931,17 +9126,17 @@ func awsRestjson1_deserializeDocumentResourceCollection(v **types.ResourceCollec return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceCollection + var sv *types.ServiceIntegrationConfig if *v == nil { - sv = &types.ResourceCollection{} + sv = &types.ServiceIntegrationConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "CloudFormation": - if err := awsRestjson1_deserializeDocumentCloudFormationCollection(&sv.CloudFormation, value); err != nil { + case "OpsCenter": + if err := awsRestjson1_deserializeDocumentOpsCenterIntegration(&sv.OpsCenter, value); err != nil { return err } @@ -7954,7 +9149,43 @@ func awsRestjson1_deserializeDocumentResourceCollection(v **types.ResourceCollec return nil } -func awsRestjson1_deserializeDocumentResourceCollectionFilter(v **types.ResourceCollectionFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceNames(v *[]types.ServiceName, 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.ServiceName + if *v == nil { + cv = []types.ServiceName{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ServiceName + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) + } + col = types.ServiceName(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7967,18 +9198,22 @@ func awsRestjson1_deserializeDocumentResourceCollectionFilter(v **types.Resource return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceCollectionFilter + var sv *types.ServiceQuotaExceededException if *v == nil { - sv = &types.ResourceCollectionFilter{} + sv = &types.ServiceQuotaExceededException{} } else { sv = *v } for key, value := range shape { switch key { - case "CloudFormation": - if err := awsRestjson1_deserializeDocumentCloudFormationCollectionFilter(&sv.CloudFormation, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -7990,7 +9225,7 @@ func awsRestjson1_deserializeDocumentResourceCollectionFilter(v **types.Resource return nil } -func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceResourceCost(v **types.ServiceResourceCost, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8003,40 +9238,112 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceNotFoundException + var sv *types.ServiceResourceCost if *v == nil { - sv = &types.ResourceNotFoundException{} + sv = &types.ServiceResourceCost{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Cost": if value != nil { - jtv, ok := value.(string) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Cost = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Cost = f64 + + default: + return fmt.Errorf("expected Cost to be a JSON Number, got %T instead", value) + + } + } + + case "Count": + if value != nil { + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ErrorMessageString to be of type string, got %T instead", value) + return fmt.Errorf("expected CostEstimationServiceResourceCount to be json.Number, got %T instead", value) } - sv.Message = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Count = int32(i64) } - case "ResourceId": + case "State": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceIdString to be of type string, got %T instead", value) + return fmt.Errorf("expected CostEstimationServiceResourceState to be of type string, got %T instead", value) } - sv.ResourceId = ptr.String(jtv) + sv.State = types.CostEstimationServiceResourceState(jtv) } - case "ResourceType": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceIdType to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + case "UnitCost": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UnitCost = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.UnitCost = f64 + + default: + return fmt.Errorf("expected Cost to be a JSON Number, got %T instead", value) + } - sv.ResourceType = ptr.String(jtv) } default: @@ -8048,7 +9355,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentServiceCollection(v **types.ServiceCollection, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceResourceCosts(v *[]types.ServiceResourceCost, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8056,35 +9363,33 @@ func awsRestjson1_deserializeDocumentServiceCollection(v **types.ServiceCollecti 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.ServiceCollection + var cv []types.ServiceResourceCost if *v == nil { - sv = &types.ServiceCollection{} + cv = []types.ServiceResourceCost{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ServiceNames": - if err := awsRestjson1_deserializeDocumentServiceNames(&sv.ServiceNames, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ServiceResourceCost + destAddr := &col + if err := awsRestjson1_deserializeDocumentServiceResourceCost(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentServiceHealth(v **types.ServiceHealth, value interface{}) error { +func awsRestjson1_deserializeDocumentSnsChannelConfig(v **types.SnsChannelConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8097,27 +9402,22 @@ func awsRestjson1_deserializeDocumentServiceHealth(v **types.ServiceHealth, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceHealth + var sv *types.SnsChannelConfig if *v == nil { - sv = &types.ServiceHealth{} + sv = &types.SnsChannelConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "Insight": - if err := awsRestjson1_deserializeDocumentServiceInsightHealth(&sv.Insight, value); err != nil { - return err - } - - case "ServiceName": + case "TopicArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) + return fmt.Errorf("expected TopicArn to be of type string, got %T instead", value) } - sv.ServiceName = types.ServiceName(jtv) + sv.TopicArn = ptr.String(jtv) } default: @@ -8129,7 +9429,7 @@ func awsRestjson1_deserializeDocumentServiceHealth(v **types.ServiceHealth, valu return nil } -func awsRestjson1_deserializeDocumentServiceHealths(v *[]types.ServiceHealth, value interface{}) error { +func awsRestjson1_deserializeDocumentStackNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8142,20 +9442,22 @@ func awsRestjson1_deserializeDocumentServiceHealths(v *[]types.ServiceHealth, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ServiceHealth + var cv []string if *v == nil { - cv = []types.ServiceHealth{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ServiceHealth - destAddr := &col - if err := awsRestjson1_deserializeDocumentServiceHealth(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StackName to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -8163,7 +9465,7 @@ func awsRestjson1_deserializeDocumentServiceHealths(v *[]types.ServiceHealth, va return nil } -func awsRestjson1_deserializeDocumentServiceInsightHealth(v **types.ServiceInsightHealth, value interface{}) error { +func awsRestjson1_deserializeDocumentTagCollection(v **types.TagCollection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8176,39 +9478,27 @@ func awsRestjson1_deserializeDocumentServiceInsightHealth(v **types.ServiceInsig return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceInsightHealth + var sv *types.TagCollection if *v == nil { - sv = &types.ServiceInsightHealth{} + sv = &types.TagCollection{} } else { sv = *v } for key, value := range shape { switch key { - case "OpenProactiveInsights": + case "AppBoundaryKey": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NumOpenProactiveInsights to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected AppBoundaryKey to be of type string, got %T instead", value) } - sv.OpenProactiveInsights = int32(i64) + sv.AppBoundaryKey = ptr.String(jtv) } - case "OpenReactiveInsights": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected NumOpenReactiveInsights to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.OpenReactiveInsights = int32(i64) + case "TagValues": + if err := awsRestjson1_deserializeDocumentTagValues(&sv.TagValues, value); err != nil { + return err } default: @@ -8220,7 +9510,7 @@ func awsRestjson1_deserializeDocumentServiceInsightHealth(v **types.ServiceInsig return nil } -func awsRestjson1_deserializeDocumentServiceIntegrationConfig(v **types.ServiceIntegrationConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentTagCollectionFilter(v **types.TagCollectionFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8233,17 +9523,26 @@ func awsRestjson1_deserializeDocumentServiceIntegrationConfig(v **types.ServiceI return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceIntegrationConfig + var sv *types.TagCollectionFilter if *v == nil { - sv = &types.ServiceIntegrationConfig{} + sv = &types.TagCollectionFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "OpsCenter": - if err := awsRestjson1_deserializeDocumentOpsCenterIntegration(&sv.OpsCenter, value); err != nil { + case "AppBoundaryKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AppBoundaryKey to be of type string, got %T instead", value) + } + sv.AppBoundaryKey = ptr.String(jtv) + } + + case "TagValues": + if err := awsRestjson1_deserializeDocumentTagValues(&sv.TagValues, value); err != nil { return err } @@ -8256,7 +9555,7 @@ func awsRestjson1_deserializeDocumentServiceIntegrationConfig(v **types.ServiceI return nil } -func awsRestjson1_deserializeDocumentServiceNames(v *[]types.ServiceName, value interface{}) error { +func awsRestjson1_deserializeDocumentTagCollectionFilters(v *[]types.TagCollectionFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8269,22 +9568,20 @@ func awsRestjson1_deserializeDocumentServiceNames(v *[]types.ServiceName, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ServiceName + var cv []types.TagCollectionFilter if *v == nil { - cv = []types.ServiceName{} + cv = []types.TagCollectionFilter{} } else { cv = *v } for _, value := range shape { - var col types.ServiceName - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ServiceName to be of type string, got %T instead", value) - } - col = types.ServiceName(jtv) + var col types.TagCollectionFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentTagCollectionFilter(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -8292,7 +9589,7 @@ func awsRestjson1_deserializeDocumentServiceNames(v *[]types.ServiceName, value return nil } -func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { +func awsRestjson1_deserializeDocumentTagCollections(v *[]types.TagCollection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8300,39 +9597,33 @@ func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.Ser 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.ServiceQuotaExceededException + var cv []types.TagCollection if *v == nil { - sv = &types.ServiceQuotaExceededException{} + cv = []types.TagCollection{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessageString to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.TagCollection + destAddr := &col + if err := awsRestjson1_deserializeDocumentTagCollection(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentServiceResourceCost(v **types.ServiceResourceCost, value interface{}) error { +func awsRestjson1_deserializeDocumentTagCostEstimationResourceCollectionFilter(v **types.TagCostEstimationResourceCollectionFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8345,112 +9636,27 @@ func awsRestjson1_deserializeDocumentServiceResourceCost(v **types.ServiceResour return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceResourceCost + var sv *types.TagCostEstimationResourceCollectionFilter if *v == nil { - sv = &types.ServiceResourceCost{} + sv = &types.TagCostEstimationResourceCollectionFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Cost": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Cost = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Cost = f64 - - default: - return fmt.Errorf("expected Cost to be a JSON Number, got %T instead", value) - - } - } - - case "Count": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected CostEstimationServiceResourceCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Count = int32(i64) - } - - case "State": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CostEstimationServiceResourceState to be of type string, got %T instead", value) - } - sv.State = types.CostEstimationServiceResourceState(jtv) - } - - case "Type": + case "AppBoundaryKey": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + return fmt.Errorf("expected AppBoundaryKey to be of type string, got %T instead", value) } - sv.Type = ptr.String(jtv) + sv.AppBoundaryKey = ptr.String(jtv) } - case "UnitCost": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UnitCost = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.UnitCost = f64 - - default: - return fmt.Errorf("expected Cost to be a JSON Number, got %T instead", value) - - } + case "TagValues": + if err := awsRestjson1_deserializeDocumentCostEstimationTagValues(&sv.TagValues, value); err != nil { + return err } default: @@ -8462,7 +9668,7 @@ func awsRestjson1_deserializeDocumentServiceResourceCost(v **types.ServiceResour return nil } -func awsRestjson1_deserializeDocumentServiceResourceCosts(v *[]types.ServiceResourceCost, value interface{}) error { +func awsRestjson1_deserializeDocumentTagCostEstimationResourceCollectionFilters(v *[]types.TagCostEstimationResourceCollectionFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8475,17 +9681,17 @@ func awsRestjson1_deserializeDocumentServiceResourceCosts(v *[]types.ServiceReso return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ServiceResourceCost + var cv []types.TagCostEstimationResourceCollectionFilter if *v == nil { - cv = []types.ServiceResourceCost{} + cv = []types.TagCostEstimationResourceCollectionFilter{} } else { cv = *v } for _, value := range shape { - var col types.ServiceResourceCost + var col types.TagCostEstimationResourceCollectionFilter destAddr := &col - if err := awsRestjson1_deserializeDocumentServiceResourceCost(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTagCostEstimationResourceCollectionFilter(&destAddr, value); err != nil { return err } col = *destAddr @@ -8496,7 +9702,7 @@ func awsRestjson1_deserializeDocumentServiceResourceCosts(v *[]types.ServiceReso return nil } -func awsRestjson1_deserializeDocumentSnsChannelConfig(v **types.SnsChannelConfig, value interface{}) error { +func awsRestjson1_deserializeDocumentTagHealth(v **types.TagHealth, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8509,22 +9715,36 @@ func awsRestjson1_deserializeDocumentSnsChannelConfig(v **types.SnsChannelConfig return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SnsChannelConfig + var sv *types.TagHealth if *v == nil { - sv = &types.SnsChannelConfig{} + sv = &types.TagHealth{} } else { sv = *v } for key, value := range shape { switch key { - case "TopicArn": + case "AppBoundaryKey": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TopicArn to be of type string, got %T instead", value) + return fmt.Errorf("expected AppBoundaryKey to be of type string, got %T instead", value) } - sv.TopicArn = ptr.String(jtv) + sv.AppBoundaryKey = ptr.String(jtv) + } + + case "Insight": + if err := awsRestjson1_deserializeDocumentInsightHealth(&sv.Insight, value); err != nil { + return err + } + + case "TagValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + sv.TagValue = ptr.String(jtv) } default: @@ -8536,7 +9756,41 @@ func awsRestjson1_deserializeDocumentSnsChannelConfig(v **types.SnsChannelConfig return nil } -func awsRestjson1_deserializeDocumentStackNames(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentTagHealths(v *[]types.TagHealth, 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.TagHealth + if *v == nil { + cv = []types.TagHealth{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TagHealth + destAddr := &col + if err := awsRestjson1_deserializeDocumentTagHealth(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTagValues(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8561,7 +9815,7 @@ func awsRestjson1_deserializeDocumentStackNames(v *[]string, value interface{}) if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StackName to be of type string, got %T instead", value) + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } col = jtv } diff --git a/service/devopsguru/serializers.go b/service/devopsguru/serializers.go index 08cc0254c43..12a72fbe2bb 100644 --- a/service/devopsguru/serializers.go +++ b/service/devopsguru/serializers.go @@ -1970,6 +1970,13 @@ func awsRestjson1_serializeDocumentCostEstimationResourceCollectionFilter(v *typ } } + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentTagCostEstimationResourceCollectionFilters(v.Tags, ok); err != nil { + return err + } + } + return nil } @@ -1984,6 +1991,17 @@ func awsRestjson1_serializeDocumentCostEstimationStackNames(v []string, value sm return nil } +func awsRestjson1_serializeDocumentCostEstimationTagValues(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_serializeDocumentEndTimeRange(v *types.EndTimeRange, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2246,6 +2264,13 @@ func awsRestjson1_serializeDocumentResourceCollection(v *types.ResourceCollectio } } + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentTagCollections(v.Tags, ok); err != nil { + return err + } + } + return nil } @@ -2395,6 +2420,81 @@ func awsRestjson1_serializeDocumentStartTimeRange(v *types.StartTimeRange, value return nil } +func awsRestjson1_serializeDocumentTagCollection(v *types.TagCollection, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AppBoundaryKey != nil { + ok := object.Key("AppBoundaryKey") + ok.String(*v.AppBoundaryKey) + } + + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentTagValues(v.TagValues, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentTagCollections(v []types.TagCollection, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTagCollection(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentTagCostEstimationResourceCollectionFilter(v *types.TagCostEstimationResourceCollectionFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AppBoundaryKey != nil { + ok := object.Key("AppBoundaryKey") + ok.String(*v.AppBoundaryKey) + } + + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentCostEstimationTagValues(v.TagValues, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentTagCostEstimationResourceCollectionFilters(v []types.TagCostEstimationResourceCollectionFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTagCostEstimationResourceCollectionFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentTagValues(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_serializeDocumentUpdateCloudFormationCollectionFilter(v *types.UpdateCloudFormationCollectionFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2420,6 +2520,13 @@ func awsRestjson1_serializeDocumentUpdateResourceCollectionFilter(v *types.Updat } } + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentUpdateTagCollectionFilters(v.Tags, ok); err != nil { + return err + } + } + return nil } @@ -2447,3 +2554,46 @@ func awsRestjson1_serializeDocumentUpdateStackNames(v []string, value smithyjson } return nil } + +func awsRestjson1_serializeDocumentUpdateTagCollectionFilter(v *types.UpdateTagCollectionFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AppBoundaryKey != nil { + ok := object.Key("AppBoundaryKey") + ok.String(*v.AppBoundaryKey) + } + + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentUpdateTagValues(v.TagValues, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentUpdateTagCollectionFilters(v []types.UpdateTagCollectionFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentUpdateTagCollectionFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentUpdateTagValues(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 +} diff --git a/service/devopsguru/types/enums.go b/service/devopsguru/types/enums.go index c47a0727cbf..d738a1f81f7 100644 --- a/service/devopsguru/types/enums.go +++ b/service/devopsguru/types/enums.go @@ -40,6 +40,24 @@ func (AnomalyStatus) Values() []AnomalyStatus { } } +type AnomalyType string + +// Enum values for AnomalyType +const ( + AnomalyTypeCausal AnomalyType = "CAUSAL" + AnomalyTypeContextual AnomalyType = "CONTEXTUAL" +) + +// Values returns all known values for AnomalyType. 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 (AnomalyType) Values() []AnomalyType { + return []AnomalyType{ + "CAUSAL", + "CONTEXTUAL", + } +} + type CloudWatchMetricDataStatusCode string // Enum values for CloudWatchMetricDataStatusCode @@ -331,6 +349,7 @@ type ResourceCollectionType string const ( ResourceCollectionTypeAwsCloudFormation ResourceCollectionType = "AWS_CLOUD_FORMATION" ResourceCollectionTypeAwsService ResourceCollectionType = "AWS_SERVICE" + ResourceCollectionTypeAwsTags ResourceCollectionType = "AWS_TAGS" ) // Values returns all known values for ResourceCollectionType. Note that this can @@ -340,6 +359,7 @@ func (ResourceCollectionType) Values() []ResourceCollectionType { return []ResourceCollectionType{ "AWS_CLOUD_FORMATION", "AWS_SERVICE", + "AWS_TAGS", } } @@ -430,10 +450,12 @@ type ValidationExceptionReason string // Enum values for ValidationExceptionReason const ( - ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "UNKNOWN_OPERATION" - ValidationExceptionReasonCannotParse ValidationExceptionReason = "CANNOT_PARSE" - ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" - ValidationExceptionReasonOther ValidationExceptionReason = "OTHER" + ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "UNKNOWN_OPERATION" + ValidationExceptionReasonCannotParse ValidationExceptionReason = "CANNOT_PARSE" + ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" + ValidationExceptionReasonOther ValidationExceptionReason = "OTHER" + ValidationExceptionReasonInvalidParameterCombination ValidationExceptionReason = "INVALID_PARAMETER_COMBINATION" + ValidationExceptionReasonParameterInconsistentWithServiceState ValidationExceptionReason = "PARAMETER_INCONSISTENT_WITH_SERVICE_STATE" ) // Values returns all known values for ValidationExceptionReason. Note that this @@ -445,5 +467,7 @@ func (ValidationExceptionReason) Values() []ValidationExceptionReason { "CANNOT_PARSE", "FIELD_VALIDATION_FAILED", "OTHER", + "INVALID_PARAMETER_COMBINATION", + "PARAMETER_INCONSISTENT_WITH_SERVICE_STATE", } } diff --git a/service/devopsguru/types/types.go b/service/devopsguru/types/types.go index 9780b1e47e0..88843ea8490 100644 --- a/service/devopsguru/types/types.go +++ b/service/devopsguru/types/types.go @@ -55,14 +55,33 @@ type AnomalyReportedTimeRange struct { noSmithyDocumentSerde } +// The Amazon Web Services resources in which DevOps Guru detected unusual behavior +// that resulted in the generation of an anomaly. When DevOps Guru detects multiple +// related anomalies, it creates and insight with details about the anomalous +// behavior and suggestions about how to correct the problem. +type AnomalyResource struct { + + // The name of the Amazon Web Services resource. + Name *string + + // The type of the Amazon Web Services resource. + Type *string + + noSmithyDocumentSerde +} + // Details about the source of the anomalous operational data that triggered the -// anomaly. The one supported source is Amazon CloudWatch metrics. +// anomaly. type AnomalySourceDetails struct { - // An array of CloudWatchMetricsDetail object that contains information about the - // analyzed metrics that displayed anomalous behavior. + // An array of CloudWatchMetricsDetail objects that contain information about + // analyzed CloudWatch metrics that show anomalous behavior. CloudWatchMetrics []CloudWatchMetricsDetail + // An array of PerformanceInsightsMetricsDetail objects that contain information + // about analyzed Performance Insights metrics that show anomalous behavior. + PerformanceInsightsMetrics []PerformanceInsightsMetricsDetail + noSmithyDocumentSerde } @@ -143,11 +162,11 @@ type CloudFormationHealth struct { // behavior. type CloudWatchMetricsDataSummary struct { - // This is enum of the status showing whether the metric value pair list has - // Partial or Complete data or there was an error. + // This is an enum of the status showing whether the metric value pair list has + // partial or complete data, or if there was an error. StatusCode CloudWatchMetricDataStatusCode - // This is a list of cloudwatch metric values at given timestamp. + // This is a list of Amazon CloudWatch metric values at given timestamp. TimestampMetricValuePairList []TimestampMetricValuePair noSmithyDocumentSerde @@ -185,7 +204,7 @@ type CloudWatchMetricsDetail struct { noSmithyDocumentSerde } -// The dimension of a Amazon CloudWatch metric that is used when DevOps Guru +// The dimension of am Amazon CloudWatch metric that is used when DevOps Guru // analyzes the resources in your account for operational problems and anomalous // behavior. A dimension is a name/value pair that is part of the identity of a // metric. A metric can have up to 10 dimensions. For more information, see @@ -214,6 +233,35 @@ type CostEstimationResourceCollectionFilter struct { // Services resources used to create a monthly estimate for DevOps Guru. CloudFormation *CloudFormationCostEstimationResourceCollectionFilter + // The Amazon Web Services tags used to filter the resource collection that is used + // for a cost estimate. Tags help you identify and organize your Amazon Web + // Services resources. Many Amazon Web Services services support tagging, so you + // can assign the same tag to resources from different services to indicate that + // the resources are related. For example, you can assign the same tag to an Amazon + // DynamoDB table resource that you assign to an Lambda function. For more + // information about using tags, see the Tagging best practices + // (https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + // whitepaper. Each Amazon Web Services tag has two parts. + // + // * A tag key (for + // example, CostCenter, Environment, Project, or Secret). Tag keys are + // case-sensitive. + // + // * An optional field known as a tag value (for example, + // 111122223333, Production, or a team name). Omitting the tag value is the same as + // using an empty string. Like tag keys, tag values are case-sensitive. + // + // Together + // these are known as key-value pairs. The string used for a key in a tag that you + // use to define your resource coverage must begin with the prefix Devops-guru-. + // The tag key might be Devops-guru-deployment-application or + // Devops-guru-rds-application. While keys are case-sensitive, the case of key + // characters don't matter to DevOps Guru. For example, DevOps Guru works with a + // key named devops-guru-rds and a key named DevOps-Guru-RDS. Possible key/value + // pairs in your application might be Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + Tags []TagCostEstimationResourceCollectionFilter + noSmithyDocumentSerde } @@ -264,11 +312,13 @@ type Event struct { // The name of the event. Name *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // An EventResource object that contains information about the resource that @@ -380,11 +430,13 @@ type ListEventsFilters struct { // An ID of an insight that is related to the events you want to filter for. InsightId *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection noSmithyDocumentSerde @@ -522,6 +574,298 @@ type OpsCenterIntegrationConfig struct { noSmithyDocumentSerde } +// A logical grouping of Performance Insights metrics for a related subject area. +// For example, the db.sql dimension group consists of the following dimensions: +// db.sql.id, db.sql.db_id, db.sql.statement, and db.sql.tokenized_id. Each +// response element returns a maximum of 500 bytes. For larger elements, such as +// SQL statements, only the first 500 bytes are returned. Amazon RDS Performance +// Insights enables you to monitor and explore different dimensions of database +// load based on data captured from a running DB instance. DB load is measured as +// average active sessions. Performance Insights provides the data to API consumers +// as a two-dimensional time-series dataset. The time dimension provides DB load +// data for each time point in the queried time range. Each time point decomposes +// overall load in relation to the requested dimensions, measured at that time +// point. Examples include SQL, Wait event, User, and Host. +// +// * To learn more about +// Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora +// User Guide +// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html). +// +// * +// To learn more about Performance Insights and Amazon RDS DB instances, go to the +// Amazon RDS User Guide +// (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html). +type PerformanceInsightsMetricDimensionGroup struct { + + // A list of specific dimensions from a dimension group. If this parameter is not + // present, then it signifies that all of the dimensions in the group were + // requested or are present in the response. Valid values for elements in the + // Dimensions array are: + // + // * db.application.name - The name of the application that + // is connected to the database (only Aurora PostgreSQL and RDS PostgreSQL) + // + // * + // db.host.id - The host ID of the connected client (all engines) + // + // * db.host.name - + // The host name of the connected client (all engines) + // + // * db.name - The name of the + // database to which the client is connected (only Aurora PostgreSQL, Amazon RDS + // PostgreSQL, Aurora MySQL, Amazon RDS MySQL, and MariaDB) + // + // * db.session_type.name + // - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL) + // + // * + // db.sql.id - The SQL ID generated by Performance Insights (all engines) + // + // * + // db.sql.db_id - The SQL ID generated by the database (all engines) + // + // * + // db.sql.statement - The SQL text that is being executed (all engines) + // + // * + // db.sql.tokenized_id + // + // * db.sql_tokenized.id - The SQL digest ID generated by + // Performance Insights (all engines) + // + // * db.sql_tokenized.db_id - SQL digest ID + // generated by the database (all engines) + // + // * db.sql_tokenized.statement - The SQL + // digest text (all engines) + // + // * db.user.id - The ID of the user logged in to the + // database (all engines) + // + // * db.user.name - The name of the user logged in to the + // database (all engines) + // + // * db.wait_event.name - The event for which the backend + // is waiting (all engines) + // + // * db.wait_event.type - The type of event for which the + // backend is waiting (all engines) + // + // * db.wait_event_type.name - The name of the + // event type for which the backend is waiting (all engines) + Dimensions []string + + // The name of the dimension group. Its valid values are: + // + // * db - The name of the + // database to which the client is connected (only Aurora PostgreSQL, Amazon RDS + // PostgreSQL, Aurora MySQL, Amazon RDS MySQL, and MariaDB) + // + // * db.application - The + // name of the application that is connected to the database (only Aurora + // PostgreSQL and RDS PostgreSQL) + // + // * db.host - The host name of the connected + // client (all engines) + // + // * db.session_type - The type of the current session (only + // Aurora PostgreSQL and RDS PostgreSQL) + // + // * db.sql - The SQL that is currently + // executing (all engines) + // + // * db.sql_tokenized - The SQL digest (all engines) + // + // * + // db.wait_event - The event for which the database backend is waiting (all + // engines) + // + // * db.wait_event_type - The type of event for which the database + // backend is waiting (all engines) + // + // * db.user - The user logged in to the database + // (all engines) + Group *string + + // The maximum number of items to fetch for this dimension group. + Limit *int32 + + noSmithyDocumentSerde +} + +// A single query to be processed. Use these parameters to query the Performance +// Insights GetResourceMetrics API to retrieve the metrics for an anomaly. For more +// information, see GetResourceMetrics +// (https://docs.aws.amazon.com/performance-insights/latest/APIReference/API_GetResourceMetrics.html) +// in the Amazon RDS Performance Insights API Reference. Amazon RDS Performance +// Insights enables you to monitor and explore different dimensions of database +// load based on data captured from a running DB instance. DB load is measured as +// average active sessions. Performance Insights provides the data to API consumers +// as a two-dimensional time-series dataset. The time dimension provides DB load +// data for each time point in the queried time range. Each time point decomposes +// overall load in relation to the requested dimensions, measured at that time +// point. Examples include SQL, Wait event, User, and Host. +// +// * To learn more about +// Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora +// User Guide +// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html). +// +// * +// To learn more about Performance Insights and Amazon RDS DB instances, go to the +// Amazon RDS User Guide +// (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html). +type PerformanceInsightsMetricQuery struct { + + // One or more filters to apply to a Performance Insights GetResourceMetrics API + // query. Restrictions: + // + // * Any number of filters by the same dimension, as + // specified in the GroupBy parameter. + // + // * A single filter for any other dimension + // in this dimension group. + Filter map[string]string + + // The specification for how to aggregate the data points from a Performance + // Insights GetResourceMetrics API query. The Performance Insights query returns + // all of the dimensions within that group, unless you provide the names of + // specific dimensions within that group. You can also request that Performance + // Insights return a limited number of values for a dimension. + GroupBy *PerformanceInsightsMetricDimensionGroup + + // The name of the meteric used used when querying an Performance Insights + // GetResourceMetrics API for anomaly metrics. Valid values for Metric are: + // + // * + // db.load.avg - a scaled representation of the number of active sessions for the + // database engine. + // + // * db.sampledload.avg - the raw number of active sessions for + // the database engine. + // + // If the number of active sessions is less than an internal + // Performance Insights threshold, db.load.avg and db.sampledload.avg are the same + // value. If the number of active sessions is greater than the internal threshold, + // Performance Insights samples the active sessions, with db.load.avg showing the + // scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg + // less than db.load.avg. For most use cases, you can query db.load.avg only. + Metric *string + + noSmithyDocumentSerde +} + +// Details about Performance Insights metrics. Amazon RDS Performance Insights +// enables you to monitor and explore different dimensions of database load based +// on data captured from a running DB instance. DB load is measured as average +// active sessions. Performance Insights provides the data to API consumers as a +// two-dimensional time-series dataset. The time dimension provides DB load data +// for each time point in the queried time range. Each time point decomposes +// overall load in relation to the requested dimensions, measured at that time +// point. Examples include SQL, Wait event, User, and Host. +// +// * To learn more about +// Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora +// User Guide +// (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html). +// +// * +// To learn more about Performance Insights and Amazon RDS DB instances, go to the +// Amazon RDS User Guide +// (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html). +type PerformanceInsightsMetricsDetail struct { + + // The name used for a specific Performance Insights metric. + MetricDisplayName *string + + // A single query to be processed for the metric. For more information, see + // PerformanceInsightsMetricQuery + // (https://docs.aws.amazon.com/devops-guru/latest/APIReference/API_PerformanceInsightsMetricQuery.html). + MetricQuery *PerformanceInsightsMetricQuery + + // For more information, see PerformanceInsightsReferenceData + // (https://docs.aws.amazon.com/devops-guru/latest/APIReference/API_PerformanceInsightsReferenceData.html). + ReferenceData []PerformanceInsightsReferenceData + + // The metric statistics during the anomalous period detected by DevOps Guru; + StatsAtAnomaly []PerformanceInsightsStat + + // Typical metric statistics that are not considered anomalous. When DevOps Guru + // analyzes metrics, it compares them to StatsAtBaseline to help determine if they + // are anomalous. + StatsAtBaseline []PerformanceInsightsStat + + // The unit of measure for a metric. For example, a session or a process. + Unit *string + + noSmithyDocumentSerde +} + +// Reference scalar values and other metrics that DevOps Guru displays on a graph +// in its console along with the actual metrics it analyzed. Compare these +// reference values to your actual metrics to help you understand anomalous +// behavior that DevOps Guru detected. +type PerformanceInsightsReferenceComparisonValues struct { + + // A metric that DevOps Guru compares to actual metric values. This reference + // metric is used to determine if an actual metric should be considered anomalous. + ReferenceMetric *PerformanceInsightsReferenceMetric + + // A scalar value DevOps Guru for a metric that DevOps Guru compares to actual + // metric values. This reference value is used to determine if an actual metric + // value should be considered anomalous. + ReferenceScalar *PerformanceInsightsReferenceScalar + + noSmithyDocumentSerde +} + +// Reference data used to evaluate Performance Insights to determine if its +// performance is anomalous or not. +type PerformanceInsightsReferenceData struct { + + // The specific reference values used to evaluate the Performance Insights. For + // more information, see PerformanceInsightsReferenceComparisonValues + // (https://docs.aws.amazon.com/devops-guru/latest/APIReference/API_PerformanceInsightsReferenceComparisonValues.html). + ComparisonValues *PerformanceInsightsReferenceComparisonValues + + // The name of the reference data. + Name *string + + noSmithyDocumentSerde +} + +// Information about a reference metric used to evaluate Performance Insights. +type PerformanceInsightsReferenceMetric struct { + + // A query to be processed on the metric. + MetricQuery *PerformanceInsightsMetricQuery + + noSmithyDocumentSerde +} + +// A reference value to compare Performance Insights metrics against to determine +// if the metrics demonstrate anomalous behavior. +type PerformanceInsightsReferenceScalar struct { + + // The reference value. + Value *float64 + + noSmithyDocumentSerde +} + +// A statistic in a Performance Insights collection. +type PerformanceInsightsStat struct { + + // The statistic type. + Type *string + + // The value of the statistic. + Value *float64 + + noSmithyDocumentSerde +} + // The time range during which anomalous behavior in a proactive anomaly or an // insight is expected to occur. type PredictionTimeRange struct { @@ -541,8 +885,8 @@ type PredictionTimeRange struct { // Information about an anomaly. This object is returned by ListAnomalies. type ProactiveAnomaly struct { - // A AnomalyReportedTimeRange object that specifies the time range between when the - // anomaly is opened and the time when it is closed. + // An AnomalyReportedTimeRange object that specifies the time range between when + // the anomaly is opened and the time when it is closed. AnomalyReportedTimeRange *AnomalyReportedTimeRange // A time range that specifies when the observed unusual behavior in an anomaly @@ -565,14 +909,20 @@ type ProactiveAnomaly struct { // insight is expected to occur. PredictionTimeRange *PredictionTimeRange - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection - // The severity of a proactive anomaly. + // The severity of the anomaly. The severity of anomalies that generate an insight + // determine that insight's severity. For more information, see Understanding + // insight severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity AnomalySeverity // Details about the source of the analyzed operational data that triggered the @@ -591,8 +941,8 @@ type ProactiveAnomaly struct { // Details about a proactive anomaly. This object is returned by DescribeAnomaly. type ProactiveAnomalySummary struct { - // A AnomalyReportedTimeRange object that specifies the time range between when the - // anomaly is opened and the time when it is closed. + // An AnomalyReportedTimeRange object that specifies the time range between when + // the anomaly is opened and the time when it is closed. AnomalyReportedTimeRange *AnomalyReportedTimeRange // A time range that specifies when the observed unusual behavior in an anomaly @@ -615,14 +965,20 @@ type ProactiveAnomalySummary struct { // insight is expected to occur. PredictionTimeRange *PredictionTimeRange - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection - // The severity of the anomaly. + // The severity of the anomaly. The severity of anomalies that generate an insight + // determine that insight's severity. For more information, see Understanding + // insight severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity AnomalySeverity // Details about the source of the analyzed operational data that triggered the @@ -655,14 +1011,19 @@ type ProactiveInsight struct { // insight is expected to occur. PredictionTimeRange *PredictionTimeRange - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection - // The severity of the proactive insight. + // The severity of the insight. For more information, see Understanding insight + // severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity InsightSeverity // The ID of the Amazon Web Services System Manager OpsItem created for this @@ -679,6 +1040,10 @@ type ProactiveInsight struct { // Details about a proactive insight. This object is returned by DescribeInsight. type ProactiveInsightSummary struct { + // The Amazon Resource Names (ARNs) of the Amazon Web Services resources that + // generated this insight. + AssociatedResourceArns []string + // The ID of the proactive insight. Id *string @@ -693,17 +1058,22 @@ type ProactiveInsightSummary struct { // insight is expected to occur. PredictionTimeRange *PredictionTimeRange - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // A collection of the names of Amazon Web Services services. ServiceCollection *ServiceCollection - // The severity of the proactive insight. + // The severity of the insight. For more information, see Understanding insight + // severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity InsightSeverity // The status of the proactive insight. @@ -735,17 +1105,22 @@ type ProactiveOrganizationInsightSummary struct { // insight is expected to occur. PredictionTimeRange *PredictionTimeRange - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // A collection of the names of Amazon Web Services services. ServiceCollection *ServiceCollection - // An array of severity values used to search for insights. + // An array of severity values used to search for insights. For more information, + // see Understanding insight severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity InsightSeverity // An array of status values used to search for insights. @@ -757,10 +1132,14 @@ type ProactiveOrganizationInsightSummary struct { // Details about a reactive anomaly. This object is returned by ListAnomalies. type ReactiveAnomaly struct { - // A AnomalyReportedTimeRange object that specifies the time range between when the - // anomaly is opened and the time when it is closed. + // An AnomalyReportedTimeRange object that specifies the time range between when + // the anomaly is opened and the time when it is closed. AnomalyReportedTimeRange *AnomalyReportedTimeRange + // The Amazon Web Services resources in which anomalous behavior was detected by + // DevOps Guru. + AnomalyResources []AnomalyResource + // A time range that specifies when the observed unusual behavior in an anomaly // started and ended. This is different from AnomalyReportedTimeRange, which // specifies the time range when DevOps Guru opens and then closes an anomaly. @@ -770,17 +1149,33 @@ type ReactiveAnomaly struct { // related anomalies. AssociatedInsightId *string + // The ID of the causal anomaly that is associated with this reactive anomaly. The + // ID of a `CAUSAL` anomaly is always `NULL`. + CausalAnomalyId *string + + // A description of the reactive anomaly. + Description *string + // The ID of the reactive anomaly. Id *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // The name of the reactive anomaly. + Name *string + + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection - // The severity of the anomaly. + // The severity of the anomaly. The severity of anomalies that generate an insight + // determine that insight's severity. For more information, see Understanding + // insight severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity AnomalySeverity // Details about the source of the analyzed operational data that triggered the @@ -790,16 +1185,29 @@ type ReactiveAnomaly struct { // The status of the anomaly. Status AnomalyStatus + // The type of the reactive anomaly. It can be one of the following types. + // + // * + // CAUSAL - the anomaly can cause a new insight. + // + // * CONTEXTUAL - the anomaly + // contains additional information about an insight or its causal anomaly. + Type AnomalyType + noSmithyDocumentSerde } // Details about a reactive anomaly. This object is returned by DescribeAnomaly. type ReactiveAnomalySummary struct { - // A AnomalyReportedTimeRange object that specifies the time range between when the - // anomaly is opened and the time when it is closed. + // An AnomalyReportedTimeRange object that specifies the time range between when + // the anomaly is opened and the time when it is closed. AnomalyReportedTimeRange *AnomalyReportedTimeRange + // The Amazon Web Services resources in which anomalous behavior was detected by + // DevOps Guru. + AnomalyResources []AnomalyResource + // A time range that specifies when the observed unusual behavior in an anomaly // started and ended. This is different from AnomalyReportedTimeRange, which // specifies the time range when DevOps Guru opens and then closes an anomaly. @@ -809,17 +1217,33 @@ type ReactiveAnomalySummary struct { // related anomalies. AssociatedInsightId *string + // The ID of the causal anomaly that is associated with this reactive anomaly. The + // ID of a `CAUSAL` anomaly is always `NULL`. + CausalAnomalyId *string + + // A description of the reactive anomaly. + Description *string + // The ID of the reactive anomaly. Id *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // The name of the reactive anomaly. + Name *string + + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection - // The severity of the reactive anomaly. + // The severity of the anomaly. The severity of anomalies that generate an insight + // determine that insight's severity. For more information, see Understanding + // insight severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity AnomalySeverity // Details about the source of the analyzed operational data that triggered the @@ -829,6 +1253,15 @@ type ReactiveAnomalySummary struct { // The status of the reactive anomaly. Status AnomalyStatus + // The type of the reactive anomaly. It can be one of the following types. + // + // * + // CAUSAL - the anomaly can cause a new insight. + // + // * CONTEXTUAL - the anomaly + // contains additional information about an insight or its causal anomaly. + Type AnomalyType + noSmithyDocumentSerde } @@ -845,14 +1278,19 @@ type ReactiveInsight struct { // The name of a reactive insight. Name *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection - // The severity of a reactive insight. + // The severity of the insight. For more information, see Understanding insight + // severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity InsightSeverity // The ID of the Amazon Web Services System Manager OpsItem created for this @@ -870,6 +1308,10 @@ type ReactiveInsight struct { // DescribeInsight. type ReactiveInsightSummary struct { + // The Amazon Resource Names (ARNs) of the Amazon Web Services resources that + // generated this insight. + AssociatedResourceArns []string + // The ID of a reactive summary. Id *string @@ -880,17 +1322,22 @@ type ReactiveInsightSummary struct { // The name of a reactive insight. Name *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // A collection of the names of Amazon Web Services services. ServiceCollection *ServiceCollection - // The severity of a reactive insight. + // The severity of the insight. For more information, see Understanding insight + // severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity InsightSeverity // The status of a reactive insight. @@ -919,17 +1366,22 @@ type ReactiveOrganizationInsightSummary struct { // The ID of the organizational unit. OrganizationalUnitId *string - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // A collection of the names of Amazon Web Services services. ServiceCollection *ServiceCollection - // An array of severity values used to search for insights. + // An array of severity values used to search for insights. For more information, + // see Understanding insight severities + // (https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities) + // in the Amazon DevOps Guru User Guide. Severity InsightSeverity // An array of status values used to search for insights. @@ -968,6 +1420,9 @@ type Recommendation struct { // Information about an anomaly that is related to a recommendation. type RecommendationRelatedAnomaly struct { + // The ID of an anomaly that generated the insight with this recommendation. + AnomalyId *string + // An array of objects that represent resources in which DevOps Guru detected // anomalous behavior. Each object contains the name and type of the resource. Resources []RecommendationRelatedAnomalyResource @@ -985,7 +1440,13 @@ type RecommendationRelatedAnomalyResource struct { // The name of the resource. Name *string - // The type of the resource. + // The type of the resource. Resource types take the same form that is used by + // Amazon Web Services CloudFormation resource type identifiers, + // service-provider::service-name::data-type-name. For example, + // AWS::RDS::DBCluster. For more information, see Amazon Web Services resource and + // property types reference + // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) + // in the Amazon Web Services CloudFormation User Guide. Type *string noSmithyDocumentSerde @@ -1045,11 +1506,13 @@ type RecommendationRelatedEventResource struct { noSmithyDocumentSerde } -// A collection of Amazon Web Services resources supported by DevOps Guru. The one -// type of Amazon Web Services resource collection supported is Amazon Web Services -// CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon -// Web Services resources that are defined in the stacks. You can specify up to 500 -// Amazon Web Services CloudFormation stacks. +// A collection of Amazon Web Services resources supported by DevOps Guru. The two +// types of Amazon Web Services resource collections supported are Amazon Web +// Services CloudFormation stacks and Amazon Web Services resources that contain +// the same Amazon Web Services tag. DevOps Guru can be configured to analyze the +// Amazon Web Services resources that are defined in the stacks or that are tagged +// using the same tag key. You can specify up to 500 Amazon Web Services +// CloudFormation stacks. type ResourceCollection struct { // An array of the names of Amazon Web Services CloudFormation stacks. The stacks @@ -1057,6 +1520,35 @@ type ResourceCollection struct { // up to 500 Amazon Web Services CloudFormation stacks. CloudFormation *CloudFormationCollection + // The Amazon Web Services tags that are used by resources in the resource + // collection. Tags help you identify and organize your Amazon Web Services + // resources. Many Amazon Web Services services support tagging, so you can assign + // the same tag to resources from different services to indicate that the resources + // are related. For example, you can assign the same tag to an Amazon DynamoDB + // table resource that you assign to an Lambda function. For more information about + // using tags, see the Tagging best practices + // (https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + // whitepaper. Each Amazon Web Services tag has two parts. + // + // * A tag key (for + // example, CostCenter, Environment, Project, or Secret). Tag keys are + // case-sensitive. + // + // * An optional field known as a tag value (for example, + // 111122223333, Production, or a team name). Omitting the tag value is the same as + // using an empty string. Like tag keys, tag values are case-sensitive. + // + // Together + // these are known as key-value pairs. The string used for a key in a tag that you + // use to define your resource coverage must begin with the prefix Devops-guru-. + // The tag key might be Devops-guru-deployment-application or + // Devops-guru-rds-application. While keys are case-sensitive, the case of key + // characters don't matter to DevOps Guru. For example, DevOps Guru works with a + // key named devops-guru-rds and a key named DevOps-Guru-RDS. Possible key/value + // pairs in your application might be Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + Tags []TagCollection + noSmithyDocumentSerde } @@ -1071,6 +1563,35 @@ type ResourceCollectionFilter struct { // the Amazon Web Services CloudFormation User Guide. CloudFormation *CloudFormationCollectionFilter + // The Amazon Web Services tags used to filter the resources in the resource + // collection. Tags help you identify and organize your Amazon Web Services + // resources. Many Amazon Web Services services support tagging, so you can assign + // the same tag to resources from different services to indicate that the resources + // are related. For example, you can assign the same tag to an Amazon DynamoDB + // table resource that you assign to an Lambda function. For more information about + // using tags, see the Tagging best practices + // (https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + // whitepaper. Each Amazon Web Services tag has two parts. + // + // * A tag key (for + // example, CostCenter, Environment, Project, or Secret). Tag keys are + // case-sensitive. + // + // * An optional field known as a tag value (for example, + // 111122223333, Production, or a team name). Omitting the tag value is the same as + // using an empty string. Like tag keys, tag values are case-sensitive. + // + // Together + // these are known as key-value pairs. The string used for a key in a tag that you + // use to define your resource coverage must begin with the prefix Devops-guru-. + // The tag key might be Devops-guru-deployment-application or + // Devops-guru-rds-application. While keys are case-sensitive, the case of key + // characters don't matter to DevOps Guru. For example, DevOps Guru works with a + // key named devops-guru-rds and a key named DevOps-Guru-RDS. Possible key/value + // pairs in your application might be Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + Tags []TagCollectionFilter + noSmithyDocumentSerde } @@ -1078,11 +1599,13 @@ type ResourceCollectionFilter struct { // used to search for insights. type SearchInsightsFilters struct { - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // A collection of the names of Amazon Web Services services. @@ -1101,11 +1624,13 @@ type SearchInsightsFilters struct { // called. type SearchOrganizationInsightsFilters struct { - // A collection of Amazon Web Services resources supported by DevOps Guru. The one - // type of Amazon Web Services resource collection supported is Amazon Web Services - // CloudFormation stacks. DevOps Guru can be configured to analyze only the Amazon - // Web Services resources that are defined in the stacks. You can specify up to 500 - // Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services resources supported by DevOps Guru. The two + // types of Amazon Web Services resource collections supported are Amazon Web + // Services CloudFormation stacks and Amazon Web Services resources that contain + // the same Amazon Web Services tag. DevOps Guru can be configured to analyze the + // Amazon Web Services resources that are defined in the stacks or that are tagged + // using the same tag key. You can specify up to 500 Amazon Web Services + // CloudFormation stacks. ResourceCollection *ResourceCollection // A collection of the names of Amazon Web Services services. @@ -1233,6 +1758,166 @@ type StartTimeRange struct { noSmithyDocumentSerde } +// A collection of Amazon Web Services stags. Tags help you identify and organize +// your Amazon Web Services resources. Many Amazon Web Services services support +// tagging, so you can assign the same tag to resources from different services to +// indicate that the resources are related. For example, you can assign the same +// tag to an Amazon DynamoDB table resource that you assign to an Lambda function. +// For more information about using tags, see the Tagging best practices +// (https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) +// whitepaper. Each Amazon Web Services tag has two parts. +// +// * A tag key (for +// example, CostCenter, Environment, Project, or Secret). Tag keys are +// case-sensitive. +// +// * An optional field known as a tag value (for example, +// 111122223333, Production, or a team name). Omitting the tag value is the same as +// using an empty string. Like tag keys, tag values are case-sensitive. +// +// Together +// these are known as key-value pairs. The string used for a key in a tag that you +// use to define your resource coverage must begin with the prefix Devops-guru-. +// The tag key might be Devops-guru-deployment-application or +// Devops-guru-rds-application. While keys are case-sensitive, the case of key +// characters don't matter to DevOps Guru. For example, DevOps Guru works with a +// key named devops-guru-rds and a key named DevOps-Guru-RDS. Possible key/value +// pairs in your application might be Devops-Guru-production-application/RDS or +// Devops-Guru-production-application/containers. +type TagCollection struct { + + // An Amazon Web Services tag key that is used to identify the Amazon Web Services + // resources that DevOps Guru analyzes. All Amazon Web Services resources in your + // account and Region tagged with this key make up your DevOps Guru application and + // analysis boundary. The string used for a key in a tag that you use to define + // your resource coverage must begin with the prefix Devops-guru-. The tag key + // might be Devops-guru-deployment-application or Devops-guru-rds-application. + // While keys are case-sensitive, the case of key characters don't matter to DevOps + // Guru. For example, DevOps Guru works with a key named devops-guru-rds and a key + // named DevOps-Guru-RDS. Possible key/value pairs in your application might be + // Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + // + // This member is required. + AppBoundaryKey *string + + // The values in an Amazon Web Services tag collection. The tag's value is an + // optional field used to associate a string with the tag key (for example, + // 111122223333, Production, or a team name). The key and value are the tag's key + // pair. Omitting the tag value is the same as using an empty string. Like tag + // keys, tag values are case-sensitive. You can specify a maximum of 256 characters + // for a tag value. + // + // This member is required. + TagValues []string + + noSmithyDocumentSerde +} + +// A collection of Amazon Web Services tags used to filter insights. This is used +// to return insights generated from only resources that contain the tags in the +// tag collection. +type TagCollectionFilter struct { + + // An Amazon Web Services tag key that is used to identify the Amazon Web Services + // resources that DevOps Guru analyzes. All Amazon Web Services resources in your + // account and Region tagged with this key make up your DevOps Guru application and + // analysis boundary. The string used for a key in a tag that you use to define + // your resource coverage must begin with the prefix Devops-guru-. The tag key + // might be Devops-guru-deployment-application or Devops-guru-rds-application. + // While keys are case-sensitive, the case of key characters don't matter to DevOps + // Guru. For example, DevOps Guru works with a key named devops-guru-rds and a key + // named DevOps-Guru-RDS. Possible key/value pairs in your application might be + // Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + // + // This member is required. + AppBoundaryKey *string + + // The values in an Amazon Web Services tag collection. The tag's value is an + // optional field used to associate a string with the tag key (for example, + // 111122223333, Production, or a team name). The key and value are the tag's key + // pair. Omitting the tag value is the same as using an empty string. Like tag + // keys, tag values are case-sensitive. You can specify a maximum of 256 characters + // for a tag value. + // + // This member is required. + TagValues []string + + noSmithyDocumentSerde +} + +// Information about a collection of Amazon Web Services resources that are +// identified by an Amazon Web Services tag. This collection of resources is used +// to create a monthly cost estimate for DevOps Guru to analyze Amazon Web Services +// resources. The maximum number of tags you can specify for a cost estimate is +// one. The estimate created is for the cost to analyze the Amazon Web Services +// resources defined by the tag. For more information, see Stacks +// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html) in +// the Amazon Web Services CloudFormation User Guide. +type TagCostEstimationResourceCollectionFilter struct { + + // An Amazon Web Services tag key that is used to identify the Amazon Web Services + // resources that DevOps Guru analyzes. All Amazon Web Services resources in your + // account and Region tagged with this key make up your DevOps Guru application and + // analysis boundary. The string used for a key in a tag that you use to define + // your resource coverage must begin with the prefix Devops-guru-. The tag key + // might be Devops-guru-deployment-application or Devops-guru-rds-application. + // While keys are case-sensitive, the case of key characters don't matter to DevOps + // Guru. For example, DevOps Guru works with a key named devops-guru-rds and a key + // named DevOps-Guru-RDS. Possible key/value pairs in your application might be + // Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + // + // This member is required. + AppBoundaryKey *string + + // The values in an Amazon Web Services tag collection. The tag's value is an + // optional field used to associate a string with the tag key (for example, + // 111122223333, Production, or a team name). The key and value are the tag's key + // pair. Omitting the tag value is the same as using an empty string. Like tag + // keys, tag values are case-sensitive. You can specify a maximum of 256 characters + // for a tag value. + // + // This member is required. + TagValues []string + + noSmithyDocumentSerde +} + +// Information about the health of Amazon Web Services resources in your account +// that are specified by an Amazon Web Services tag key. +type TagHealth struct { + + // An Amazon Web Services tag key that is used to identify the Amazon Web Services + // resources that DevOps Guru analyzes. All Amazon Web Services resources in your + // account and Region tagged with this key make up your DevOps Guru application and + // analysis boundary. The string used for a key in a tag that you use to define + // your resource coverage must begin with the prefix Devops-guru-. The tag key + // might be Devops-guru-deployment-application or Devops-guru-rds-application. + // While keys are case-sensitive, the case of key characters don't matter to DevOps + // Guru. For example, DevOps Guru works with a key named devops-guru-rds and a key + // named DevOps-Guru-RDS. Possible key/value pairs in your application might be + // Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + AppBoundaryKey *string + + // Information about the health of the Amazon Web Services resources in your + // account that are specified by an Amazon Web Services tag, including the number + // of open proactive, open reactive insights, and the Mean Time to Recover (MTTR) + // of closed insights. + Insight *InsightHealth + + // The value in an Amazon Web Services tag. The tag's value is an optional field + // used to associate a string with the tag key (for example, 111122223333, + // Production, or a team name). The key and value are the tag's key pair. Omitting + // the tag value is the same as using an empty string. Like tag keys, tag values + // are case-sensitive. You can specify a maximum of 256 characters for a tag value. + TagValue *string + + noSmithyDocumentSerde +} + // A pair that contains metric values at the respective timestamp. type TimestampMetricValuePair struct { @@ -1261,10 +1946,39 @@ type UpdateCloudFormationCollectionFilter struct { // resources. type UpdateResourceCollectionFilter struct { - // An collection of Amazon Web Services CloudFormation stacks. You can specify up - // to 500 Amazon Web Services CloudFormation stacks. + // A collection of Amazon Web Services CloudFormation stacks. You can specify up to + // 500 Amazon Web Services CloudFormation stacks. CloudFormation *UpdateCloudFormationCollectionFilter + // The updated Amazon Web Services tags used to filter the resources in the + // resource collection. Tags help you identify and organize your Amazon Web + // Services resources. Many Amazon Web Services services support tagging, so you + // can assign the same tag to resources from different services to indicate that + // the resources are related. For example, you can assign the same tag to an Amazon + // DynamoDB table resource that you assign to an Lambda function. For more + // information about using tags, see the Tagging best practices + // (https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf) + // whitepaper. Each Amazon Web Services tag has two parts. + // + // * A tag key (for + // example, CostCenter, Environment, Project, or Secret). Tag keys are + // case-sensitive. + // + // * An optional field known as a tag value (for example, + // 111122223333, Production, or a team name). Omitting the tag value is the same as + // using an empty string. Like tag keys, tag values are case-sensitive. + // + // Together + // these are known as key-value pairs. The string used for a key in a tag that you + // use to define your resource coverage must begin with the prefix Devops-guru-. + // The tag key might be Devops-guru-deployment-application or + // Devops-guru-rds-application. While keys are case-sensitive, the case of key + // characters don't matter to DevOps Guru. For example, DevOps Guru works with a + // key named devops-guru-rds and a key named DevOps-Guru-RDS. Possible key/value + // pairs in your application might be Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + Tags []UpdateTagCollectionFilter + noSmithyDocumentSerde } @@ -1279,6 +1993,38 @@ type UpdateServiceIntegrationConfig struct { noSmithyDocumentSerde } +// A new collection of Amazon Web Services resources that are defined by an Amazon +// Web Services tag or tag key/value pair. +type UpdateTagCollectionFilter struct { + + // An Amazon Web Services tag key that is used to identify the Amazon Web Services + // resources that DevOps Guru analyzes. All Amazon Web Services resources in your + // account and Region tagged with this key make up your DevOps Guru application and + // analysis boundary. The string used for a key in a tag that you use to define + // your resource coverage must begin with the prefix Devops-guru-. The tag key + // might be Devops-guru-deployment-application or Devops-guru-rds-application. + // While keys are case-sensitive, the case of key characters don't matter to DevOps + // Guru. For example, DevOps Guru works with a key named devops-guru-rds and a key + // named DevOps-Guru-RDS. Possible key/value pairs in your application might be + // Devops-Guru-production-application/RDS or + // Devops-Guru-production-application/containers. + // + // This member is required. + AppBoundaryKey *string + + // The values in an Amazon Web Services tag collection. The tag's value is an + // optional field used to associate a string with the tag key (for example, + // 111122223333, Production, or a team name). The key and value are the tag's key + // pair. Omitting the tag value is the same as using an empty string. Like tag + // keys, tag values are case-sensitive. You can specify a maximum of 256 characters + // for a tag value. + // + // This member is required. + TagValues []string + + noSmithyDocumentSerde +} + // The field associated with the validation exception. type ValidationExceptionField struct { diff --git a/service/devopsguru/validators.go b/service/devopsguru/validators.go index d3c913cfc8b..fdf4a585f62 100644 --- a/service/devopsguru/validators.go +++ b/service/devopsguru/validators.go @@ -466,6 +466,23 @@ func addOpUpdateServiceIntegrationValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpUpdateServiceIntegration{}, middleware.After) } +func validateCostEstimationResourceCollectionFilter(v *types.CostEstimationResourceCollectionFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CostEstimationResourceCollectionFilter"} + if v.Tags != nil { + if err := validateTagCostEstimationResourceCollectionFilters(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateEventTimeRange(v *types.EventTimeRange) error { if v == nil { return nil @@ -494,6 +511,11 @@ func validateListEventsFilters(v *types.ListEventsFilters) error { invalidParams.AddNested("EventTimeRange", err.(smithy.InvalidParamsError)) } } + if v.ResourceCollection != nil { + if err := validateResourceCollection(v.ResourceCollection); err != nil { + invalidParams.AddNested("ResourceCollection", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -594,6 +616,179 @@ func validateNotificationChannelConfig(v *types.NotificationChannelConfig) error } } +func validateResourceCollection(v *types.ResourceCollection) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ResourceCollection"} + if v.Tags != nil { + if err := validateTagCollections(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSearchInsightsFilters(v *types.SearchInsightsFilters) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SearchInsightsFilters"} + if v.ResourceCollection != nil { + if err := validateResourceCollection(v.ResourceCollection); err != nil { + invalidParams.AddNested("ResourceCollection", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSearchOrganizationInsightsFilters(v *types.SearchOrganizationInsightsFilters) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SearchOrganizationInsightsFilters"} + if v.ResourceCollection != nil { + if err := validateResourceCollection(v.ResourceCollection); err != nil { + invalidParams.AddNested("ResourceCollection", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTagCollection(v *types.TagCollection) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagCollection"} + if v.AppBoundaryKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("AppBoundaryKey")) + } + if v.TagValues == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagValues")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTagCollections(v []types.TagCollection) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagCollections"} + for i := range v { + if err := validateTagCollection(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTagCostEstimationResourceCollectionFilter(v *types.TagCostEstimationResourceCollectionFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagCostEstimationResourceCollectionFilter"} + if v.AppBoundaryKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("AppBoundaryKey")) + } + if v.TagValues == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagValues")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTagCostEstimationResourceCollectionFilters(v []types.TagCostEstimationResourceCollectionFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagCostEstimationResourceCollectionFilters"} + for i := range v { + if err := validateTagCostEstimationResourceCollectionFilter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateUpdateResourceCollectionFilter(v *types.UpdateResourceCollectionFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateResourceCollectionFilter"} + if v.Tags != nil { + if err := validateUpdateTagCollectionFilters(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateUpdateTagCollectionFilter(v *types.UpdateTagCollectionFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTagCollectionFilter"} + if v.AppBoundaryKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("AppBoundaryKey")) + } + if v.TagValues == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagValues")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateUpdateTagCollectionFilters(v []types.UpdateTagCollectionFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTagCollectionFilters"} + for i := range v { + if err := validateUpdateTagCollectionFilter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAddNotificationChannelInput(v *AddNotificationChannelInput) error { if v == nil { return nil @@ -828,6 +1023,11 @@ func validateOpSearchInsightsInput(v *SearchInsightsInput) error { if v.StartTimeRange == nil { invalidParams.Add(smithy.NewErrParamRequired("StartTimeRange")) } + if v.Filters != nil { + if err := validateSearchInsightsFilters(v.Filters); err != nil { + invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) + } + } if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } @@ -849,6 +1049,11 @@ func validateOpSearchOrganizationInsightsInput(v *SearchOrganizationInsightsInpu if v.StartTimeRange == nil { invalidParams.Add(smithy.NewErrParamRequired("StartTimeRange")) } + if v.Filters != nil { + if err := validateSearchOrganizationInsightsFilters(v.Filters); err != nil { + invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) + } + } if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } @@ -866,6 +1071,10 @@ func validateOpStartCostEstimationInput(v *StartCostEstimationInput) error { invalidParams := smithy.InvalidParamsError{Context: "StartCostEstimationInput"} if v.ResourceCollection == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceCollection")) + } else if v.ResourceCollection != nil { + if err := validateCostEstimationResourceCollectionFilter(v.ResourceCollection); err != nil { + invalidParams.AddNested("ResourceCollection", err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams @@ -884,6 +1093,10 @@ func validateOpUpdateResourceCollectionInput(v *UpdateResourceCollectionInput) e } if v.ResourceCollection == nil { invalidParams.Add(smithy.NewErrParamRequired("ResourceCollection")) + } else if v.ResourceCollection != nil { + if err := validateUpdateResourceCollectionFilter(v.ResourceCollection); err != nil { + invalidParams.AddNested("ResourceCollection", err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go index c78b69aa39c..e1ee332733c 100644 --- a/service/directconnect/api_op_AllocatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePrivateVirtualInterface.go @@ -113,6 +113,9 @@ type AllocatePrivateVirtualInterfaceOutput struct { // Applies to public virtual interfaces. RouteFilterPrefixes []types.RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []types.Tag diff --git a/service/directconnect/api_op_AllocatePublicVirtualInterface.go b/service/directconnect/api_op_AllocatePublicVirtualInterface.go index 953729a9de5..ba16b641161 100644 --- a/service/directconnect/api_op_AllocatePublicVirtualInterface.go +++ b/service/directconnect/api_op_AllocatePublicVirtualInterface.go @@ -118,6 +118,9 @@ type AllocatePublicVirtualInterfaceOutput struct { // Applies to public virtual interfaces. RouteFilterPrefixes []types.RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []types.Tag diff --git a/service/directconnect/api_op_AssociateVirtualInterface.go b/service/directconnect/api_op_AssociateVirtualInterface.go index dc5279fd58e..0b5bf7ff401 100644 --- a/service/directconnect/api_op_AssociateVirtualInterface.go +++ b/service/directconnect/api_op_AssociateVirtualInterface.go @@ -114,6 +114,9 @@ type AssociateVirtualInterfaceOutput struct { // Applies to public virtual interfaces. RouteFilterPrefixes []types.RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []types.Tag diff --git a/service/directconnect/api_op_CreatePrivateVirtualInterface.go b/service/directconnect/api_op_CreatePrivateVirtualInterface.go index 41338dca313..d31769ab670 100644 --- a/service/directconnect/api_op_CreatePrivateVirtualInterface.go +++ b/service/directconnect/api_op_CreatePrivateVirtualInterface.go @@ -116,6 +116,9 @@ type CreatePrivateVirtualInterfaceOutput struct { // Applies to public virtual interfaces. RouteFilterPrefixes []types.RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []types.Tag diff --git a/service/directconnect/api_op_CreatePublicVirtualInterface.go b/service/directconnect/api_op_CreatePublicVirtualInterface.go index 3a2c22d54df..24a7ed56517 100644 --- a/service/directconnect/api_op_CreatePublicVirtualInterface.go +++ b/service/directconnect/api_op_CreatePublicVirtualInterface.go @@ -109,6 +109,9 @@ type CreatePublicVirtualInterfaceOutput struct { // Applies to public virtual interfaces. RouteFilterPrefixes []types.RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []types.Tag diff --git a/service/directconnect/api_op_DescribeRouterConfiguration.go b/service/directconnect/api_op_DescribeRouterConfiguration.go index 83a16158ab0..3fb31829279 100644 --- a/service/directconnect/api_op_DescribeRouterConfiguration.go +++ b/service/directconnect/api_op_DescribeRouterConfiguration.go @@ -53,7 +53,7 @@ type DescribeRouterConfigurationOutput struct { // The ID assigned to the virtual interface. VirtualInterfaceId *string - // The name of the virtual interface assigned by the customer network. + // Provides the details about a virtual interface's router. VirtualInterfaceName *string // Metadata pertaining to the operation's result. diff --git a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go index cc5d96830f3..b3c0d229621 100644 --- a/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go +++ b/service/directconnect/api_op_UpdateVirtualInterfaceAttributes.go @@ -41,10 +41,16 @@ type UpdateVirtualInterfaceAttributesInput struct { // This member is required. VirtualInterfaceId *string + // Indicates whether to enable or disable SiteLink. + EnableSiteLink *bool + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 and // 9001. The default value is 1500. Mtu *int32 + // The name of the virtual private interface. + VirtualInterfaceName *string + noSmithyDocumentSerde } @@ -110,6 +116,9 @@ type UpdateVirtualInterfaceAttributesOutput struct { // Applies to public virtual interfaces. RouteFilterPrefixes []types.RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []types.Tag diff --git a/service/directconnect/deserializers.go b/service/directconnect/deserializers.go index 8eddbf26689..088c3bb84ba 100644 --- a/service/directconnect/deserializers.go +++ b/service/directconnect/deserializers.go @@ -10107,6 +10107,15 @@ func awsAwsjson11_deserializeDocumentVirtualInterface(v **types.VirtualInterface return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -11052,6 +11061,15 @@ func awsAwsjson11_deserializeOpDocumentAllocatePrivateVirtualInterfaceOutput(v * return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -11312,6 +11330,15 @@ func awsAwsjson11_deserializeOpDocumentAllocatePublicVirtualInterfaceOutput(v ** return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -12117,6 +12144,15 @@ func awsAwsjson11_deserializeOpDocumentAssociateVirtualInterfaceOutput(v **Assoc return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -13338,6 +13374,15 @@ func awsAwsjson11_deserializeOpDocumentCreatePrivateVirtualInterfaceOutput(v **C return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -13598,6 +13643,15 @@ func awsAwsjson11_deserializeOpDocumentCreatePublicVirtualInterfaceOutput(v **Cr return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -16279,6 +16333,15 @@ func awsAwsjson11_deserializeOpDocumentUpdateVirtualInterfaceAttributesOutput(v return err } + case "siteLinkEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected SiteLinkEnabled to be of type *bool, got %T instead", value) + } + sv.SiteLinkEnabled = ptr.Bool(jtv) + } + case "tags": if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err diff --git a/service/directconnect/serializers.go b/service/directconnect/serializers.go index f129cb4129f..8f78a52a38f 100644 --- a/service/directconnect/serializers.go +++ b/service/directconnect/serializers.go @@ -3542,6 +3542,11 @@ func awsAwsjson11_serializeDocumentNewPrivateVirtualInterface(v *types.NewPrivat ok.String(*v.DirectConnectGatewayId) } + if v.EnableSiteLink != nil { + ok := object.Key("enableSiteLink") + ok.Boolean(*v.EnableSiteLink) + } + if v.Mtu != nil { ok := object.Key("mtu") ok.Integer(*v.Mtu) @@ -3772,6 +3777,11 @@ func awsAwsjson11_serializeDocumentNewTransitVirtualInterface(v *types.NewTransi ok.String(*v.DirectConnectGatewayId) } + if v.EnableSiteLink != nil { + ok := object.Key("enableSiteLink") + ok.Boolean(*v.EnableSiteLink) + } + if v.Mtu != nil { ok := object.Key("mtu") ok.Integer(*v.Mtu) @@ -5206,6 +5216,11 @@ func awsAwsjson11_serializeOpDocumentUpdateVirtualInterfaceAttributesInput(v *Up object := value.Object() defer object.Close() + if v.EnableSiteLink != nil { + ok := object.Key("enableSiteLink") + ok.Boolean(*v.EnableSiteLink) + } + if v.Mtu != nil { ok := object.Key("mtu") ok.Integer(*v.Mtu) @@ -5216,5 +5231,10 @@ func awsAwsjson11_serializeOpDocumentUpdateVirtualInterfaceAttributesInput(v *Up ok.String(*v.VirtualInterfaceId) } + if v.VirtualInterfaceName != nil { + ok := object.Key("virtualInterfaceName") + ok.String(*v.VirtualInterfaceName) + } + return nil } diff --git a/service/directconnect/types/types.go b/service/directconnect/types/types.go index 53a21525ca4..2bcc41fd213 100644 --- a/service/directconnect/types/types.go +++ b/service/directconnect/types/types.go @@ -690,6 +690,9 @@ type NewPrivateVirtualInterface struct { // The ID of the Direct Connect gateway. DirectConnectGatewayId *string + // Indicates whether to enable or disable SiteLink. + EnableSiteLink *bool + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 and // 9001. The default value is 1500. Mtu *int32 @@ -858,6 +861,9 @@ type NewTransitVirtualInterface struct { // The ID of the Direct Connect gateway. DirectConnectGatewayId *string + // Indicates whether to enable or disable SiteLink. + EnableSiteLink *bool + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 and // 9001. The default value is 1500. Mtu *int32 @@ -1063,6 +1069,9 @@ type VirtualInterface struct { // Applies to public virtual interfaces. RouteFilterPrefixes []RouteFilterPrefix + // Indicates whether SiteLink is enabled. + SiteLinkEnabled *bool + // The tags associated with the virtual interface. Tags []Tag diff --git a/service/dynamodb/api_op_CreateTable.go b/service/dynamodb/api_op_CreateTable.go index 28be2e8d5b0..80a8118fc17 100644 --- a/service/dynamodb/api_op_CreateTable.go +++ b/service/dynamodb/api_op_CreateTable.go @@ -214,6 +214,10 @@ type CreateTableInput struct { // written to the stream. StreamSpecification *types.StreamSpecification + // The table class of the new table. Valid values are STANDARD and + // STANDARD_INFREQUENT_ACCESS. + TableClass types.TableClass + // A list of key-value pairs to label the table. For more information, see Tagging // for DynamoDB // (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html). diff --git a/service/dynamodb/api_op_UpdateTable.go b/service/dynamodb/api_op_UpdateTable.go index 962068dee33..6622cbdfdd2 100644 --- a/service/dynamodb/api_op_UpdateTable.go +++ b/service/dynamodb/api_op_UpdateTable.go @@ -115,6 +115,10 @@ type UpdateTableInput struct { // stream. StreamSpecification *types.StreamSpecification + // The table class of the table to be updated. Valid values are STANDARD and + // STANDARD_INFREQUENT_ACCESS. + TableClass types.TableClass + noSmithyDocumentSerde } diff --git a/service/dynamodb/deserializers.go b/service/dynamodb/deserializers.go index 85a0d34104b..971db0177cc 100644 --- a/service/dynamodb/deserializers.go +++ b/service/dynamodb/deserializers.go @@ -12243,6 +12243,11 @@ func awsAwsjson10_deserializeDocumentReplicaDescription(v **types.ReplicaDescrip sv.ReplicaStatusPercentProgress = ptr.String(jtv) } + case "ReplicaTableClassSummary": + if err := awsAwsjson10_deserializeDocumentTableClassSummary(&sv.ReplicaTableClassSummary, value); err != nil { + return err + } + default: _, _ = key, value @@ -12737,6 +12742,11 @@ func awsAwsjson10_deserializeDocumentReplicaSettingsDescription(v **types.Replic sv.ReplicaStatus = types.ReplicaStatus(jtv) } + case "ReplicaTableClassSummary": + if err := awsAwsjson10_deserializeDocumentTableClassSummary(&sv.ReplicaTableClassSummary, value); err != nil { + return err + } + default: _, _ = key, value @@ -13437,6 +13447,62 @@ func awsAwsjson10_deserializeDocumentTableAutoScalingDescription(v **types.Table return nil } +func awsAwsjson10_deserializeDocumentTableClassSummary(v **types.TableClassSummary, 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.TableClassSummary + if *v == nil { + sv = &types.TableClassSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LastUpdateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdateDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Date to be a JSON Number, got %T instead", value) + + } + } + + case "TableClass": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableClass to be of type string, got %T instead", value) + } + sv.TableClass = types.TableClass(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13579,6 +13645,11 @@ func awsAwsjson10_deserializeDocumentTableDescription(v **types.TableDescription sv.TableArn = ptr.String(jtv) } + case "TableClassSummary": + if err := awsAwsjson10_deserializeDocumentTableClassSummary(&sv.TableClassSummary, value); err != nil { + return err + } + case "TableId": if value != nil { jtv, ok := value.(string) diff --git a/service/dynamodb/serializers.go b/service/dynamodb/serializers.go index da95ff53126..13b0dea08e7 100644 --- a/service/dynamodb/serializers.go +++ b/service/dynamodb/serializers.go @@ -3214,6 +3214,11 @@ func awsAwsjson10_serializeDocumentCreateReplicationGroupMemberAction(v *types.C ok.String(*v.RegionName) } + if len(v.TableClassOverride) > 0 { + ok := object.Key("TableClassOverride") + ok.String(string(v.TableClassOverride)) + } + return nil } @@ -4177,6 +4182,11 @@ func awsAwsjson10_serializeDocumentReplicaSettingsUpdate(v *types.ReplicaSetting ok.Long(*v.ReplicaProvisionedReadCapacityUnits) } + if len(v.ReplicaTableClass) > 0 { + ok := object.Key("ReplicaTableClass") + ok.String(string(v.ReplicaTableClass)) + } + return nil } @@ -4546,6 +4556,11 @@ func awsAwsjson10_serializeDocumentUpdateReplicationGroupMemberAction(v *types.U ok.String(*v.RegionName) } + if len(v.TableClassOverride) > 0 { + ok := object.Key("TableClassOverride") + ok.String(string(v.TableClassOverride)) + } + return nil } @@ -4739,6 +4754,11 @@ func awsAwsjson10_serializeOpDocumentCreateTableInput(v *CreateTableInput, value } } + if len(v.TableClass) > 0 { + ok := object.Key("TableClass") + ok.String(string(v.TableClass)) + } + if v.TableName != nil { ok := object.Key("TableName") ok.String(*v.TableName) @@ -6009,6 +6029,11 @@ func awsAwsjson10_serializeOpDocumentUpdateTableInput(v *UpdateTableInput, value } } + if len(v.TableClass) > 0 { + ok := object.Key("TableClass") + ok.String(string(v.TableClass)) + } + if v.TableName != nil { ok := object.Key("TableName") ok.String(*v.TableName) diff --git a/service/dynamodb/types/enums.go b/service/dynamodb/types/enums.go index 9bc776c757c..e3c80b4abc8 100644 --- a/service/dynamodb/types/enums.go +++ b/service/dynamodb/types/enums.go @@ -651,6 +651,24 @@ func (StreamViewType) Values() []StreamViewType { } } +type TableClass string + +// Enum values for TableClass +const ( + TableClassStandard TableClass = "STANDARD" + TableClassStandardInfrequentAccess TableClass = "STANDARD_INFREQUENT_ACCESS" +) + +// Values returns all known values for TableClass. 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 (TableClass) Values() []TableClass { + return []TableClass{ + "STANDARD", + "STANDARD_INFREQUENT_ACCESS", + } +} + type TableStatus string // Enum values for TableStatus diff --git a/service/dynamodb/types/types.go b/service/dynamodb/types/types.go index 2cf6a5f6c6b..af5f1ddd2ee 100644 --- a/service/dynamodb/types/types.go +++ b/service/dynamodb/types/types.go @@ -917,6 +917,10 @@ type CreateReplicationGroupMemberAction struct { // table's provisioned throughput settings. ProvisionedThroughputOverride *ProvisionedThroughputOverride + // Replica-specific table class. If not specified, uses the source table's table + // class. + TableClassOverride TableClass + noSmithyDocumentSerde } @@ -2175,6 +2179,9 @@ type ReplicaDescription struct { // percentage. ReplicaStatusPercentProgress *string + // Contains details of the table class. + ReplicaTableClassSummary *TableClassSummary + noSmithyDocumentSerde } @@ -2359,6 +2366,9 @@ type ReplicaSettingsDescription struct { // * ACTIVE - The Region is ready for use. ReplicaStatus ReplicaStatus + // Contains details of the table class. + ReplicaTableClassSummary *TableClassSummary + noSmithyDocumentSerde } @@ -2384,6 +2394,10 @@ type ReplicaSettingsUpdate struct { // in the Amazon DynamoDB Developer Guide. ReplicaProvisionedReadCapacityUnits *int64 + // Replica-specific table class. If not specified, uses the source table's table + // class. + ReplicaTableClass TableClass + noSmithyDocumentSerde } @@ -2646,6 +2660,19 @@ type TableAutoScalingDescription struct { noSmithyDocumentSerde } +// Contains details of the table class. +type TableClassSummary struct { + + // The date and time at which the table class was last updated. + LastUpdateDateTime *time.Time + + // The table class of the specified table. Valid values are STANDARD and + // STANDARD_INFREQUENT_ACCESS. + TableClass TableClass + + noSmithyDocumentSerde +} + // Represents the properties of a table. type TableDescription struct { @@ -2867,6 +2894,9 @@ type TableDescription struct { // The Amazon Resource Name (ARN) that uniquely identifies the table. TableArn *string + // Contains details of the table class. + TableClassSummary *TableClassSummary + // Unique identifier for the table for which the backup was created. TableId *string @@ -3073,6 +3103,10 @@ type UpdateReplicationGroupMemberAction struct { // table's provisioned throughput settings. ProvisionedThroughputOverride *ProvisionedThroughputOverride + // Replica-specific table class. If not specified, uses the source table's table + // class. + TableClassOverride TableClass + noSmithyDocumentSerde } diff --git a/service/ec2/api_op_AllocateIpamPoolCidr.go b/service/ec2/api_op_AllocateIpamPoolCidr.go new file mode 100644 index 00000000000..a87f35cb133 --- /dev/null +++ b/service/ec2/api_op_AllocateIpamPoolCidr.go @@ -0,0 +1,209 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Allocate a CIDR from an IPAM pool. In IPAM, an allocation is a CIDR assignment +// from an IPAM pool to another resource or IPAM pool. For more information, see +// Allocate CIDRs in the Amazon VPC IPAM User Guide. +func (c *Client) AllocateIpamPoolCidr(ctx context.Context, params *AllocateIpamPoolCidrInput, optFns ...func(*Options)) (*AllocateIpamPoolCidrOutput, error) { + if params == nil { + params = &AllocateIpamPoolCidrInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AllocateIpamPoolCidr", params, optFns, c.addOperationAllocateIpamPoolCidrMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AllocateIpamPoolCidrOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AllocateIpamPoolCidrInput struct { + + // The ID of the IPAM pool from which you would like to allocate a CIDR. + // + // This member is required. + IpamPoolId *string + + // The CIDR you would like to allocate from the IPAM pool. Note the following: + // + // * + // If there is no DefaultNetmaskLength allocation rule set on the pool, you must + // specify either the NetmaskLength or the CIDR. + // + // * If the DefaultNetmaskLength + // allocation rule is set on the pool, you can specify either the NetmaskLength or + // the CIDR and the DefaultNetmaskLength allocation rule will be ignored. + // + // Possible + // values: Any available IPv4 or IPv6 CIDR. + Cidr *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. For more information, see Ensuring Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string + + // A description for the allocation. + Description *string + + // Exclude a particular CIDR range from being returned by the pool. + DisallowedCidrs []string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The netmask length of the CIDR you would like to allocate from the IPAM pool. + // Note the following: + // + // * If there is no DefaultNetmaskLength allocation rule set + // on the pool, you must specify either the NetmaskLength or the CIDR. + // + // * If the + // DefaultNetmaskLength allocation rule is set on the pool, you can specify either + // the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will + // be ignored. + // + // Possible netmask lengths for IPv4 addresses are 0 - 32. Possible + // netmask lengths for IPv6 addresses are 0 - 128. + NetmaskLength *int32 + + // A preview of the next available CIDR in a pool. + PreviewNextCidr *bool + + noSmithyDocumentSerde +} + +type AllocateIpamPoolCidrOutput struct { + + // Information about the allocation created. + IpamPoolAllocation *types.IpamPoolAllocation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAllocateIpamPoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpAllocateIpamPoolCidr{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpAllocateIpamPoolCidr{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opAllocateIpamPoolCidrMiddleware(stack, options); err != nil { + return err + } + if err = addOpAllocateIpamPoolCidrValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAllocateIpamPoolCidr(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpAllocateIpamPoolCidr struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpAllocateIpamPoolCidr) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpAllocateIpamPoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*AllocateIpamPoolCidrInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *AllocateIpamPoolCidrInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opAllocateIpamPoolCidrMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpAllocateIpamPoolCidr{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opAllocateIpamPoolCidr(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "AllocateIpamPoolCidr", + } +} diff --git a/service/ec2/api_op_AssociateVpcCidrBlock.go b/service/ec2/api_op_AssociateVpcCidrBlock.go index 919b3c5c8f7..0139599eeb5 100644 --- a/service/ec2/api_op_AssociateVpcCidrBlock.go +++ b/service/ec2/api_op_AssociateVpcCidrBlock.go @@ -51,6 +51,16 @@ type AssociateVpcCidrBlockInput struct { // An IPv4 CIDR block to associate with the VPC. CidrBlock *string + // Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more information + // about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC + // IPAM User Guide. + Ipv4IpamPoolId *string + + // The netmask length of the IPv4 CIDR you would like to associate from an Amazon + // VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is + // IPAM? in the Amazon VPC IPAM User Guide. + Ipv4NetmaskLength *int32 + // An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in // the request. To let Amazon choose the IPv6 CIDR block for you, omit this // parameter. @@ -62,6 +72,16 @@ type AssociateVpcCidrBlockInput struct { // CIDR block association per network border group. Ipv6CidrBlockNetworkBorderGroup *string + // Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more + // information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the + // Amazon VPC IPAM User Guide. + Ipv6IpamPoolId *string + + // The netmask length of the IPv6 CIDR you would like to associate from an Amazon + // VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is + // IPAM? in the Amazon VPC IPAM User Guide. + Ipv6NetmaskLength *int32 + // The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Ipv6Pool *string diff --git a/service/ec2/api_op_CreateIpam.go b/service/ec2/api_op_CreateIpam.go new file mode 100644 index 00000000000..ee79b178af8 --- /dev/null +++ b/service/ec2/api_op_CreateIpam.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create an IPAM. Amazon VCP IP Address Manager (IPAM) is a VPC feature that you +// can use to automate your IP address management workflows including assigning, +// tracking, troubleshooting, and auditing IP addresses across Amazon Web Services +// Regions and accounts throughout your Amazon Web Services Organization. For more +// information, see Create an IPAM in the Amazon VPC IPAM User Guide. +func (c *Client) CreateIpam(ctx context.Context, params *CreateIpamInput, optFns ...func(*Options)) (*CreateIpamOutput, error) { + if params == nil { + params = &CreateIpamInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateIpam", params, optFns, c.addOperationCreateIpamMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateIpamOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateIpamInput struct { + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. For more information, see Ensuring Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string + + // A description for the IPAM. + Description *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The operating Regions for the IPAM. Operating Regions are Amazon Web Services + // Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only + // discovers and monitors resources in the Amazon Web Services Regions you select + // as operating Regions. For more information about operating Regions, see Create + // an IPAM in the Amazon VPC IPAM User Guide. + OperatingRegions []types.AddIpamOperatingRegion + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type CreateIpamOutput struct { + + // Information about the IPAM created. + Ipam *types.Ipam + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateIpamMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpam{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpam{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateIpamMiddleware(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpam(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateIpam struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateIpam) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateIpam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateIpamInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateIpamMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpam{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateIpam(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateIpam", + } +} diff --git a/service/ec2/api_op_CreateIpamPool.go b/service/ec2/api_op_CreateIpamPool.go new file mode 100644 index 00000000000..cc158df99cd --- /dev/null +++ b/service/ec2/api_op_CreateIpamPool.go @@ -0,0 +1,245 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a +// pool is a collection of contiguous IP addresses CIDRs. Pools enable you to +// organize your IP addresses according to your routing and security needs. For +// example, if you have separate routing and security needs for development and +// production applications, you can create a pool for each. For more information, +// see Create a top-level pool in the Amazon VPC IPAM User Guide. +func (c *Client) CreateIpamPool(ctx context.Context, params *CreateIpamPoolInput, optFns ...func(*Options)) (*CreateIpamPoolOutput, error) { + if params == nil { + params = &CreateIpamPoolInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateIpamPool", params, optFns, c.addOperationCreateIpamPoolMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateIpamPoolOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateIpamPoolInput struct { + + // The ID of the scope in which you would like to create the IPAM pool. + // + // This member is required. + IpamScopeId *string + + // The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 + // protocol for a pool. + AddressFamily types.AddressFamily + + // The default netmask length for allocations added to this pool. If, for example, + // the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new + // allocations will default to 10.0.0.0/16. + AllocationDefaultNetmaskLength *int32 + + // The maximum netmask length possible for CIDR allocations in this IPAM pool to be + // compliant. The maximum netmask length must be greater than the minimum netmask + // length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask + // lengths for IPv6 addresses are 0 - 128. + AllocationMaxNetmaskLength *int32 + + // The minimum netmask length required for CIDR allocations in this IPAM pool to be + // compliant. The minimum netmask length must be less than the maximum netmask + // length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask + // lengths for IPv6 addresses are 0 - 128. + AllocationMinNetmaskLength *int32 + + // Tags that are required for resources that use CIDRs from this IPAM pool. + // Resources that do not have these tags will not be allowed to allocate space from + // the pool. If the resources have their tags changed after they have allocated + // space or if the allocation tagging requirements are changed on the pool, the + // resource may be marked as noncompliant. + AllocationResourceTags []types.RequestIpamResourceTag + + // If selected, IPAM will continuously look for resources within the CIDR range of + // this pool and automatically import them as allocations into your IPAM. The CIDRs + // that will be allocated for these resources must not already be allocated to + // other resources in order for the import to succeed. IPAM will import a CIDR + // regardless of its compliance with the pool's allocation rules, so a resource + // might be imported and subsequently marked as noncompliant. If IPAM discovers + // multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM + // discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of + // them only. A locale must be set on the pool for this feature to work. + AutoImport *bool + + // Limits which service in Amazon Web Services that the pool can be used in. "ec2", + // for example, allows users to use space for Elastic IP addresses and VPCs. + AwsService types.IpamPoolAwsService + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. For more information, see Ensuring Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string + + // A description for the IPAM pool. + Description *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // In IPAM, the locale is the Amazon Web Services Region where you want to make an + // IPAM pool available for allocations. Only resources in the same Region as the + // locale of the pool can get IP address allocations from the pool. You can only + // allocate a CIDR for a VPC, for example, from an IPAM pool that shares a locale + // with the VPC’s Region. Note that once you choose a Locale for a pool, you cannot + // modify it. If you do not choose a locale, resources in Regions others than the + // IPAM's home region cannot use CIDRs from this pool. Possible values: Any Amazon + // Web Services Region, such as us-east-1. + Locale *string + + // Determines if the pool is publicly advertisable. This option is not available + // for pools with AddressFamily set to ipv4. + PubliclyAdvertisable *bool + + // The ID of the source IPAM pool. Use this option to create a pool within an + // existing pool. Note that the CIDR you provision for the pool within the source + // pool must be available in the source pool's CIDR range. + SourceIpamPoolId *string + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type CreateIpamPoolOutput struct { + + // Information about the IPAM pool created. + IpamPool *types.IpamPool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateIpamPoolMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpamPool{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpamPool{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateIpamPoolMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateIpamPoolValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpamPool(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateIpamPool struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateIpamPool) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateIpamPool) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateIpamPoolInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamPoolInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateIpamPoolMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpamPool{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateIpamPool(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateIpamPool", + } +} diff --git a/service/ec2/api_op_CreateIpamScope.go b/service/ec2/api_op_CreateIpamScope.go new file mode 100644 index 00000000000..62107bcf898 --- /dev/null +++ b/service/ec2/api_op_CreateIpamScope.go @@ -0,0 +1,184 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create an IPAM scope. In IPAM, a scope is the highest-level container within +// IPAM. An IPAM contains two default scopes. Each scope represents the IP space +// for a single network. The private scope is intended for all private IP address +// space. The public scope is intended for all public IP address space. Scopes +// enable you to reuse IP addresses across multiple unconnected networks without +// causing IP address overlap or conflict. For more information, see Add a scope in +// the Amazon VPC IPAM User Guide. +func (c *Client) CreateIpamScope(ctx context.Context, params *CreateIpamScopeInput, optFns ...func(*Options)) (*CreateIpamScopeOutput, error) { + if params == nil { + params = &CreateIpamScopeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateIpamScope", params, optFns, c.addOperationCreateIpamScopeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateIpamScopeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateIpamScopeInput struct { + + // The ID of the IPAM for which you're creating this scope. + // + // This member is required. + IpamId *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. For more information, see Ensuring Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string + + // A description for the scope you're creating. + Description *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type CreateIpamScopeOutput struct { + + // Information about the created scope. + IpamScope *types.IpamScope + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpamScope{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpamScope{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateIpamScopeMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateIpamScopeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpamScope(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateIpamScope struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateIpamScope) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateIpamScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateIpamScopeInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamScopeInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateIpamScopeMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpamScope{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateIpamScope(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateIpamScope", + } +} diff --git a/service/ec2/api_op_CreateNetworkInsightsAccessScope.go b/service/ec2/api_op_CreateNetworkInsightsAccessScope.go new file mode 100644 index 00000000000..f1067366751 --- /dev/null +++ b/service/ec2/api_op_CreateNetworkInsightsAccessScope.go @@ -0,0 +1,183 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a Network Access Scope. Amazon Web Services Network Access Analyzer +// enables cloud networking and cloud operations teams to verify that their +// networks on Amazon Web Services conform to their network security and governance +// objectives. For more information, see the Amazon Web Services Network Access +// Analyzer Guide +// (https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/). +func (c *Client) CreateNetworkInsightsAccessScope(ctx context.Context, params *CreateNetworkInsightsAccessScopeInput, optFns ...func(*Options)) (*CreateNetworkInsightsAccessScopeOutput, error) { + if params == nil { + params = &CreateNetworkInsightsAccessScopeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInsightsAccessScope", params, optFns, c.addOperationCreateNetworkInsightsAccessScopeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateNetworkInsightsAccessScopeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateNetworkInsightsAccessScopeInput struct { + + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see How to ensure idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + // + // This member is required. + ClientToken *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The paths to exclude. + ExcludePaths []types.AccessScopePathRequest + + // The paths to match. + MatchPaths []types.AccessScopePathRequest + + // The tags to apply. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type CreateNetworkInsightsAccessScopeOutput struct { + + // The Network Access Scope. + NetworkInsightsAccessScope *types.NetworkInsightsAccessScope + + // The Network Access Scope content. + NetworkInsightsAccessScopeContent *types.NetworkInsightsAccessScopeContent + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateNetworkInsightsAccessScopeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInsightsAccessScope{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkInsightsAccessScope{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateNetworkInsightsAccessScopeMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateNetworkInsightsAccessScopeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkInsightsAccessScope(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateNetworkInsightsAccessScope struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateNetworkInsightsAccessScope) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateNetworkInsightsAccessScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateNetworkInsightsAccessScopeInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkInsightsAccessScopeInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateNetworkInsightsAccessScopeMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkInsightsAccessScope{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateNetworkInsightsAccessScope(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateNetworkInsightsAccessScope", + } +} diff --git a/service/ec2/api_op_CreatePublicIpv4Pool.go b/service/ec2/api_op_CreatePublicIpv4Pool.go new file mode 100644 index 00000000000..f1ac0e52a4d --- /dev/null +++ b/service/ec2/api_op_CreatePublicIpv4Pool.go @@ -0,0 +1,130 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool +// required for the public IPv4 CIDRs that you own and bring to Amazon Web Services +// to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, +// use IPAM pools only. To monitor the status of pool creation, use +// DescribePublicIpv4Pools +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePublicIpv4Pools.html). +func (c *Client) CreatePublicIpv4Pool(ctx context.Context, params *CreatePublicIpv4PoolInput, optFns ...func(*Options)) (*CreatePublicIpv4PoolOutput, error) { + if params == nil { + params = &CreatePublicIpv4PoolInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreatePublicIpv4Pool", params, optFns, c.addOperationCreatePublicIpv4PoolMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreatePublicIpv4PoolOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreatePublicIpv4PoolInput struct { + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type CreatePublicIpv4PoolOutput struct { + + // The ID of the public IPv4 pool. + PoolId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreatePublicIpv4PoolMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreatePublicIpv4Pool{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreatePublicIpv4Pool{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePublicIpv4Pool(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreatePublicIpv4Pool(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreatePublicIpv4Pool", + } +} diff --git a/service/ec2/api_op_CreateVpc.go b/service/ec2/api_op_CreateVpc.go index 9335754fba4..2881cce075b 100644 --- a/service/ec2/api_op_CreateVpc.go +++ b/service/ec2/api_op_CreateVpc.go @@ -47,18 +47,16 @@ func (c *Client) CreateVpc(ctx context.Context, params *CreateVpcInput, optFns . type CreateVpcInput struct { - // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. - // We modify the specified CIDR block to its canonical form; for example, if you - // specify 100.68.0.18/18, we modify it to 100.68.0.0/18. - // - // This member is required. - CidrBlock *string - // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the // VPC. You cannot specify the range of IP addresses, or the size of the CIDR // block. AmazonProvidedIpv6CidrBlock *bool + // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16. + // We modify the specified CIDR block to its canonical form; for example, if you + // specify 100.68.0.18/18, we modify it to 100.68.0.0/18. + CidrBlock *string + // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is @@ -74,6 +72,15 @@ type CreateVpcInput struct { // only. Default: default InstanceTenancy types.Tenancy + // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. For + // more information, see What is IPAM? in the Amazon VPC IPAM User Guide. + Ipv4IpamPoolId *string + + // The netmask length of the IPv4 CIDR you want to allocate to this VPC from an + // Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see + // What is IPAM? in the Amazon VPC IPAM User Guide. + Ipv4NetmaskLength *int32 + // The IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool // in the request. To let Amazon choose the IPv6 CIDR block for you, omit this // parameter. @@ -84,6 +91,19 @@ type CreateVpcInput struct { // AmazonProvidedIpv6CidrBlock to true to use this parameter. Ipv6CidrBlockNetworkBorderGroup *string + // The ID of an IPv6 IPAM pool which will be used to allocate this VPC an IPv6 + // CIDR. IPAM is a VPC feature that you can use to automate your IP address + // management workflows including assigning, tracking, troubleshooting, and + // auditing IP addresses across Amazon Web Services Regions and accounts throughout + // your Amazon Web Services Organization. For more information, see What is IPAM? + // in the Amazon VPC IPAM User Guide. + Ipv6IpamPoolId *string + + // The netmask length of the IPv6 CIDR you want to allocate to this VPC from an + // Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see + // What is IPAM? in the Amazon VPC IPAM User Guide. + Ipv6NetmaskLength *int32 + // The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Ipv6Pool *string @@ -149,9 +169,6 @@ func (c *Client) addOperationCreateVpcMiddlewares(stack *middleware.Stack, optio if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } - if err = addOpCreateVpcValidationMiddleware(stack); err != nil { - return err - } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpc(options.Region), middleware.Before); err != nil { return err } diff --git a/service/ec2/api_op_DeleteIpam.go b/service/ec2/api_op_DeleteIpam.go new file mode 100644 index 00000000000..b1c2922b721 --- /dev/null +++ b/service/ec2/api_op_DeleteIpam.go @@ -0,0 +1,134 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete an IPAM. Deleting an IPAM removes all monitored data associated with the +// IPAM including the historical data for CIDRs. You cannot delete an IPAM if there +// are CIDRs provisioned to pools or if there are allocations in the pools within +// the IPAM. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html). +// To release allocations, see ReleaseIpamPoolAllocation +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html). +// For more information, see Delete an IPAM in the Amazon VPC IPAM User Guide. +func (c *Client) DeleteIpam(ctx context.Context, params *DeleteIpamInput, optFns ...func(*Options)) (*DeleteIpamOutput, error) { + if params == nil { + params = &DeleteIpamInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteIpam", params, optFns, c.addOperationDeleteIpamMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteIpamOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteIpamInput struct { + + // The ID of the IPAM to delete. + // + // This member is required. + IpamId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteIpamOutput struct { + + // Information about the results of the deletion. + Ipam *types.Ipam + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteIpamMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpam{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpam{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteIpamValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpam(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteIpam(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteIpam", + } +} diff --git a/service/ec2/api_op_DeleteIpamPool.go b/service/ec2/api_op_DeleteIpamPool.go new file mode 100644 index 00000000000..05c259d75a7 --- /dev/null +++ b/service/ec2/api_op_DeleteIpamPool.go @@ -0,0 +1,133 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete an IPAM pool. You cannot delete an IPAM pool if there are allocations in +// it or CIDRs provisioned to it. To release allocations, see +// ReleaseIpamPoolAllocation +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html). +// To deprovision pool CIDRs, see DeprovisionIpamPoolCidr +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html). +// For more information, see Delete a pool in the Amazon VPC IPAM User Guide. +func (c *Client) DeleteIpamPool(ctx context.Context, params *DeleteIpamPoolInput, optFns ...func(*Options)) (*DeleteIpamPoolOutput, error) { + if params == nil { + params = &DeleteIpamPoolInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteIpamPool", params, optFns, c.addOperationDeleteIpamPoolMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteIpamPoolOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteIpamPoolInput struct { + + // The ID of the pool to delete. + // + // This member is required. + IpamPoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteIpamPoolOutput struct { + + // Information about the results of the deletion. + IpamPool *types.IpamPool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteIpamPoolMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamPool{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamPool{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteIpamPoolValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamPool(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteIpamPool(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteIpamPool", + } +} diff --git a/service/ec2/api_op_DeleteIpamScope.go b/service/ec2/api_op_DeleteIpamScope.go new file mode 100644 index 00000000000..b83f914ad74 --- /dev/null +++ b/service/ec2/api_op_DeleteIpamScope.go @@ -0,0 +1,128 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete the scope for an IPAM. You cannot delete the default scopes. For more +// information, see Delete a scope in the Amazon VPC IPAM User Guide. +func (c *Client) DeleteIpamScope(ctx context.Context, params *DeleteIpamScopeInput, optFns ...func(*Options)) (*DeleteIpamScopeOutput, error) { + if params == nil { + params = &DeleteIpamScopeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteIpamScope", params, optFns, c.addOperationDeleteIpamScopeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteIpamScopeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteIpamScopeInput struct { + + // The ID of the scope to delete. + // + // This member is required. + IpamScopeId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteIpamScopeOutput struct { + + // Information about the results of the deletion. + IpamScope *types.IpamScope + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamScope{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamScope{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteIpamScopeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamScope(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteIpamScope(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteIpamScope", + } +} diff --git a/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go b/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go new file mode 100644 index 00000000000..4ee1601cc3c --- /dev/null +++ b/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go @@ -0,0 +1,126 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the specified Network Access Scope. +func (c *Client) DeleteNetworkInsightsAccessScope(ctx context.Context, params *DeleteNetworkInsightsAccessScopeInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAccessScopeOutput, error) { + if params == nil { + params = &DeleteNetworkInsightsAccessScopeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAccessScope", params, optFns, c.addOperationDeleteNetworkInsightsAccessScopeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteNetworkInsightsAccessScopeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteNetworkInsightsAccessScopeInput struct { + + // The ID of the Network Access Scope. + // + // This member is required. + NetworkInsightsAccessScopeId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteNetworkInsightsAccessScopeOutput struct { + + // The ID of the Network Access Scope. + NetworkInsightsAccessScopeId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteNetworkInsightsAccessScopeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsAccessScope{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteNetworkInsightsAccessScopeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScope(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScope(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteNetworkInsightsAccessScope", + } +} diff --git a/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go b/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go new file mode 100644 index 00000000000..f5274a37310 --- /dev/null +++ b/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go @@ -0,0 +1,126 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the specified Network Access Scope analysis. +func (c *Client) DeleteNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *DeleteNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAccessScopeAnalysisOutput, error) { + if params == nil { + params = &DeleteNetworkInsightsAccessScopeAnalysisInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAccessScopeAnalysis", params, optFns, c.addOperationDeleteNetworkInsightsAccessScopeAnalysisMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteNetworkInsightsAccessScopeAnalysisOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteNetworkInsightsAccessScopeAnalysisInput struct { + + // The ID of the Network Access Scope analysis. + // + // This member is required. + NetworkInsightsAccessScopeAnalysisId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteNetworkInsightsAccessScopeAnalysisOutput struct { + + // The ID of the Network Access Scope analysis. + NetworkInsightsAccessScopeAnalysisId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteNetworkInsightsAccessScopeAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsAccessScopeAnalysis{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteNetworkInsightsAccessScopeAnalysisValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScopeAnalysis(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScopeAnalysis(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeleteNetworkInsightsAccessScopeAnalysis", + } +} diff --git a/service/ec2/api_op_DeletePublicIpv4Pool.go b/service/ec2/api_op_DeletePublicIpv4Pool.go new file mode 100644 index 00000000000..f6ca4f89884 --- /dev/null +++ b/service/ec2/api_op_DeletePublicIpv4Pool.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required +// for the public IPv4 CIDRs that you own and bring to Amazon Web Services to +// manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use +// IPAM pools only. +func (c *Client) DeletePublicIpv4Pool(ctx context.Context, params *DeletePublicIpv4PoolInput, optFns ...func(*Options)) (*DeletePublicIpv4PoolOutput, error) { + if params == nil { + params = &DeletePublicIpv4PoolInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeletePublicIpv4Pool", params, optFns, c.addOperationDeletePublicIpv4PoolMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeletePublicIpv4PoolOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeletePublicIpv4PoolInput struct { + + // The ID of the public IPv4 pool you want to delete. + // + // This member is required. + PoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeletePublicIpv4PoolOutput struct { + + // Information about the result of deleting the public IPv4 pool. + ReturnValue *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeletePublicIpv4PoolMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeletePublicIpv4Pool{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeletePublicIpv4Pool{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeletePublicIpv4PoolValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePublicIpv4Pool(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeletePublicIpv4Pool(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeletePublicIpv4Pool", + } +} diff --git a/service/ec2/api_op_DeprovisionIpamPoolCidr.go b/service/ec2/api_op_DeprovisionIpamPoolCidr.go new file mode 100644 index 00000000000..bb2642b45bb --- /dev/null +++ b/service/ec2/api_op_DeprovisionIpamPoolCidr.go @@ -0,0 +1,133 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from +// a pool that has a source pool, the CIDR is recycled back into the source pool. +// For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User +// Guide. +func (c *Client) DeprovisionIpamPoolCidr(ctx context.Context, params *DeprovisionIpamPoolCidrInput, optFns ...func(*Options)) (*DeprovisionIpamPoolCidrOutput, error) { + if params == nil { + params = &DeprovisionIpamPoolCidrInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeprovisionIpamPoolCidr", params, optFns, c.addOperationDeprovisionIpamPoolCidrMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeprovisionIpamPoolCidrOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeprovisionIpamPoolCidrInput struct { + + // The ID of the pool that has the CIDR you want to deprovision. + // + // This member is required. + IpamPoolId *string + + // The CIDR which you want to deprovision from the pool. + Cidr *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeprovisionIpamPoolCidrOutput struct { + + // The deprovisioned pool CIDR. + IpamPoolCidr *types.IpamPoolCidr + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeprovisionIpamPoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionIpamPoolCidr{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeprovisionIpamPoolCidr{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeprovisionIpamPoolCidrValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeprovisionIpamPoolCidr(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeprovisionIpamPoolCidr(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeprovisionIpamPoolCidr", + } +} diff --git a/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go b/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go new file mode 100644 index 00000000000..a35c9999247 --- /dev/null +++ b/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go @@ -0,0 +1,134 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deprovision a CIDR from a public IPv4 pool. +func (c *Client) DeprovisionPublicIpv4PoolCidr(ctx context.Context, params *DeprovisionPublicIpv4PoolCidrInput, optFns ...func(*Options)) (*DeprovisionPublicIpv4PoolCidrOutput, error) { + if params == nil { + params = &DeprovisionPublicIpv4PoolCidrInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeprovisionPublicIpv4PoolCidr", params, optFns, c.addOperationDeprovisionPublicIpv4PoolCidrMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeprovisionPublicIpv4PoolCidrOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeprovisionPublicIpv4PoolCidrInput struct { + + // The CIDR you want to deprovision from the pool. + // + // This member is required. + Cidr *string + + // The ID of the pool that you want to deprovision the CIDR from. + // + // This member is required. + PoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DeprovisionPublicIpv4PoolCidrOutput struct { + + // The deprovisioned CIDRs. + DeprovisionedAddresses []string + + // The ID of the pool that you deprovisioned the CIDR from. + PoolId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeprovisionPublicIpv4PoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionPublicIpv4PoolCidr{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeprovisionPublicIpv4PoolCidrValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeprovisionPublicIpv4PoolCidr(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeprovisionPublicIpv4PoolCidr(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DeprovisionPublicIpv4PoolCidr", + } +} diff --git a/service/ec2/api_op_DescribeIpamPools.go b/service/ec2/api_op_DescribeIpamPools.go new file mode 100644 index 00000000000..70cb371f6f5 --- /dev/null +++ b/service/ec2/api_op_DescribeIpamPools.go @@ -0,0 +1,224 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get information about your IPAM pools. +func (c *Client) DescribeIpamPools(ctx context.Context, params *DescribeIpamPoolsInput, optFns ...func(*Options)) (*DescribeIpamPoolsOutput, error) { + if params == nil { + params = &DescribeIpamPoolsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeIpamPools", params, optFns, c.addOperationDescribeIpamPoolsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeIpamPoolsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeIpamPoolsInput struct { + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters for the request. For more information about filtering, see + // Filtering CLI output + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + Filters []types.Filter + + // The IDs of the IPAM pools you would like information on. + IpamPoolIds []string + + // The maximum number of results to return in the request. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeIpamPoolsOutput struct { + + // Information about the IPAM pools. + IpamPools []types.IpamPool + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeIpamPoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamPools{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamPools{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamPools(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeIpamPoolsAPIClient is a client that implements the DescribeIpamPools +// operation. +type DescribeIpamPoolsAPIClient interface { + DescribeIpamPools(context.Context, *DescribeIpamPoolsInput, ...func(*Options)) (*DescribeIpamPoolsOutput, error) +} + +var _ DescribeIpamPoolsAPIClient = (*Client)(nil) + +// DescribeIpamPoolsPaginatorOptions is the paginator options for DescribeIpamPools +type DescribeIpamPoolsPaginatorOptions struct { + // The maximum number of results to return in the request. + 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 +} + +// DescribeIpamPoolsPaginator is a paginator for DescribeIpamPools +type DescribeIpamPoolsPaginator struct { + options DescribeIpamPoolsPaginatorOptions + client DescribeIpamPoolsAPIClient + params *DescribeIpamPoolsInput + nextToken *string + firstPage bool +} + +// NewDescribeIpamPoolsPaginator returns a new DescribeIpamPoolsPaginator +func NewDescribeIpamPoolsPaginator(client DescribeIpamPoolsAPIClient, params *DescribeIpamPoolsInput, optFns ...func(*DescribeIpamPoolsPaginatorOptions)) *DescribeIpamPoolsPaginator { + if params == nil { + params = &DescribeIpamPoolsInput{} + } + + options := DescribeIpamPoolsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeIpamPoolsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeIpamPoolsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeIpamPools page. +func (p *DescribeIpamPoolsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamPoolsOutput, 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.DescribeIpamPools(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_opDescribeIpamPools(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeIpamPools", + } +} diff --git a/service/ec2/api_op_DescribeIpamScopes.go b/service/ec2/api_op_DescribeIpamScopes.go new file mode 100644 index 00000000000..8c0918aa4fe --- /dev/null +++ b/service/ec2/api_op_DescribeIpamScopes.go @@ -0,0 +1,225 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get information about your IPAM scopes. +func (c *Client) DescribeIpamScopes(ctx context.Context, params *DescribeIpamScopesInput, optFns ...func(*Options)) (*DescribeIpamScopesOutput, error) { + if params == nil { + params = &DescribeIpamScopesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeIpamScopes", params, optFns, c.addOperationDescribeIpamScopesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeIpamScopesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeIpamScopesInput struct { + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters for the request. For more information about filtering, see + // Filtering CLI output + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + Filters []types.Filter + + // The IDs of the scopes you want information on. + IpamScopeIds []string + + // The maximum number of results to return in the request. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeIpamScopesOutput struct { + + // The scopes you want information on. + IpamScopes []types.IpamScope + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeIpamScopesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamScopes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamScopes{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamScopes(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeIpamScopesAPIClient is a client that implements the DescribeIpamScopes +// operation. +type DescribeIpamScopesAPIClient interface { + DescribeIpamScopes(context.Context, *DescribeIpamScopesInput, ...func(*Options)) (*DescribeIpamScopesOutput, error) +} + +var _ DescribeIpamScopesAPIClient = (*Client)(nil) + +// DescribeIpamScopesPaginatorOptions is the paginator options for +// DescribeIpamScopes +type DescribeIpamScopesPaginatorOptions struct { + // The maximum number of results to return in the request. + 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 +} + +// DescribeIpamScopesPaginator is a paginator for DescribeIpamScopes +type DescribeIpamScopesPaginator struct { + options DescribeIpamScopesPaginatorOptions + client DescribeIpamScopesAPIClient + params *DescribeIpamScopesInput + nextToken *string + firstPage bool +} + +// NewDescribeIpamScopesPaginator returns a new DescribeIpamScopesPaginator +func NewDescribeIpamScopesPaginator(client DescribeIpamScopesAPIClient, params *DescribeIpamScopesInput, optFns ...func(*DescribeIpamScopesPaginatorOptions)) *DescribeIpamScopesPaginator { + if params == nil { + params = &DescribeIpamScopesInput{} + } + + options := DescribeIpamScopesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeIpamScopesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeIpamScopesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeIpamScopes page. +func (p *DescribeIpamScopesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamScopesOutput, 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.DescribeIpamScopes(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_opDescribeIpamScopes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeIpamScopes", + } +} diff --git a/service/ec2/api_op_DescribeIpams.go b/service/ec2/api_op_DescribeIpams.go new file mode 100644 index 00000000000..1ab227b3a87 --- /dev/null +++ b/service/ec2/api_op_DescribeIpams.go @@ -0,0 +1,224 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get information about your IPAM pools. For more information, see What is IPAM? +// in the Amazon VPC IPAM User Guide. +func (c *Client) DescribeIpams(ctx context.Context, params *DescribeIpamsInput, optFns ...func(*Options)) (*DescribeIpamsOutput, error) { + if params == nil { + params = &DescribeIpamsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeIpams", params, optFns, c.addOperationDescribeIpamsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeIpamsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeIpamsInput struct { + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters for the request. For more information about filtering, see + // Filtering CLI output + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + Filters []types.Filter + + // The IDs of the IPAMs you want information on. + IpamIds []string + + // The maximum number of results to return in the request. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeIpamsOutput struct { + + // Information about the IPAMs. + Ipams []types.Ipam + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeIpamsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpams{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpams{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpams(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeIpamsAPIClient is a client that implements the DescribeIpams operation. +type DescribeIpamsAPIClient interface { + DescribeIpams(context.Context, *DescribeIpamsInput, ...func(*Options)) (*DescribeIpamsOutput, error) +} + +var _ DescribeIpamsAPIClient = (*Client)(nil) + +// DescribeIpamsPaginatorOptions is the paginator options for DescribeIpams +type DescribeIpamsPaginatorOptions struct { + // The maximum number of results to return in the request. + 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 +} + +// DescribeIpamsPaginator is a paginator for DescribeIpams +type DescribeIpamsPaginator struct { + options DescribeIpamsPaginatorOptions + client DescribeIpamsAPIClient + params *DescribeIpamsInput + nextToken *string + firstPage bool +} + +// NewDescribeIpamsPaginator returns a new DescribeIpamsPaginator +func NewDescribeIpamsPaginator(client DescribeIpamsAPIClient, params *DescribeIpamsInput, optFns ...func(*DescribeIpamsPaginatorOptions)) *DescribeIpamsPaginator { + if params == nil { + params = &DescribeIpamsInput{} + } + + options := DescribeIpamsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeIpamsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeIpamsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeIpams page. +func (p *DescribeIpamsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamsOutput, 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.DescribeIpams(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_opDescribeIpams(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeIpams", + } +} diff --git a/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go b/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go new file mode 100644 index 00000000000..5f02afba0d0 --- /dev/null +++ b/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go @@ -0,0 +1,239 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Describes the specified Network Access Scope analyses. +func (c *Client) DescribeNetworkInsightsAccessScopeAnalyses(ctx context.Context, params *DescribeNetworkInsightsAccessScopeAnalysesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, error) { + if params == nil { + params = &DescribeNetworkInsightsAccessScopeAnalysesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAccessScopeAnalyses", params, optFns, c.addOperationDescribeNetworkInsightsAccessScopeAnalysesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeNetworkInsightsAccessScopeAnalysesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeNetworkInsightsAccessScopeAnalysesInput struct { + + // Filters the results based on the start time. The analysis must have started on + // or after this time. + AnalysisStartTimeBegin *time.Time + + // Filters the results based on the start time. The analysis must have started on + // or before this time. + AnalysisStartTimeEnd *time.Time + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // There are no supported filters. + Filters []types.Filter + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + + // The IDs of the Network Access Scope analyses. + NetworkInsightsAccessScopeAnalysisIds []string + + // The ID of the Network Access Scope. + NetworkInsightsAccessScopeId *string + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeNetworkInsightsAccessScopeAnalysesOutput struct { + + // The Network Access Scope analyses. + NetworkInsightsAccessScopeAnalyses []types.NetworkInsightsAccessScopeAnalysis + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeNetworkInsightsAccessScopeAnalysesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsAccessScopeAnalyses{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInsightsAccessScopeAnalyses(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeNetworkInsightsAccessScopeAnalysesAPIClient is a client that implements +// the DescribeNetworkInsightsAccessScopeAnalyses operation. +type DescribeNetworkInsightsAccessScopeAnalysesAPIClient interface { + DescribeNetworkInsightsAccessScopeAnalyses(context.Context, *DescribeNetworkInsightsAccessScopeAnalysesInput, ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, error) +} + +var _ DescribeNetworkInsightsAccessScopeAnalysesAPIClient = (*Client)(nil) + +// DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions is the paginator +// options for DescribeNetworkInsightsAccessScopeAnalyses +type DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions struct { + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + 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 +} + +// DescribeNetworkInsightsAccessScopeAnalysesPaginator is a paginator for +// DescribeNetworkInsightsAccessScopeAnalyses +type DescribeNetworkInsightsAccessScopeAnalysesPaginator struct { + options DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions + client DescribeNetworkInsightsAccessScopeAnalysesAPIClient + params *DescribeNetworkInsightsAccessScopeAnalysesInput + nextToken *string + firstPage bool +} + +// NewDescribeNetworkInsightsAccessScopeAnalysesPaginator returns a new +// DescribeNetworkInsightsAccessScopeAnalysesPaginator +func NewDescribeNetworkInsightsAccessScopeAnalysesPaginator(client DescribeNetworkInsightsAccessScopeAnalysesAPIClient, params *DescribeNetworkInsightsAccessScopeAnalysesInput, optFns ...func(*DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions)) *DescribeNetworkInsightsAccessScopeAnalysesPaginator { + if params == nil { + params = &DescribeNetworkInsightsAccessScopeAnalysesInput{} + } + + options := DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeNetworkInsightsAccessScopeAnalysesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeNetworkInsightsAccessScopeAnalysesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeNetworkInsightsAccessScopeAnalyses page. +func (p *DescribeNetworkInsightsAccessScopeAnalysesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, 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.DescribeNetworkInsightsAccessScopeAnalyses(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_opDescribeNetworkInsightsAccessScopeAnalyses(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeNetworkInsightsAccessScopeAnalyses", + } +} diff --git a/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go b/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go new file mode 100644 index 00000000000..baa5cbf6d7a --- /dev/null +++ b/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go @@ -0,0 +1,227 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the specified Network Access Scopes. +func (c *Client) DescribeNetworkInsightsAccessScopes(ctx context.Context, params *DescribeNetworkInsightsAccessScopesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, error) { + if params == nil { + params = &DescribeNetworkInsightsAccessScopesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAccessScopes", params, optFns, c.addOperationDescribeNetworkInsightsAccessScopesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeNetworkInsightsAccessScopesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeNetworkInsightsAccessScopesInput struct { + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // There are no supported filters. + Filters []types.Filter + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + + // The IDs of the Network Access Scopes. + NetworkInsightsAccessScopeIds []string + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeNetworkInsightsAccessScopesOutput struct { + + // The Network Access Scopes. + NetworkInsightsAccessScopes []types.NetworkInsightsAccessScope + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeNetworkInsightsAccessScopesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsAccessScopes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInsightsAccessScopes(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeNetworkInsightsAccessScopesAPIClient is a client that implements the +// DescribeNetworkInsightsAccessScopes operation. +type DescribeNetworkInsightsAccessScopesAPIClient interface { + DescribeNetworkInsightsAccessScopes(context.Context, *DescribeNetworkInsightsAccessScopesInput, ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, error) +} + +var _ DescribeNetworkInsightsAccessScopesAPIClient = (*Client)(nil) + +// DescribeNetworkInsightsAccessScopesPaginatorOptions is the paginator options for +// DescribeNetworkInsightsAccessScopes +type DescribeNetworkInsightsAccessScopesPaginatorOptions struct { + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + 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 +} + +// DescribeNetworkInsightsAccessScopesPaginator is a paginator for +// DescribeNetworkInsightsAccessScopes +type DescribeNetworkInsightsAccessScopesPaginator struct { + options DescribeNetworkInsightsAccessScopesPaginatorOptions + client DescribeNetworkInsightsAccessScopesAPIClient + params *DescribeNetworkInsightsAccessScopesInput + nextToken *string + firstPage bool +} + +// NewDescribeNetworkInsightsAccessScopesPaginator returns a new +// DescribeNetworkInsightsAccessScopesPaginator +func NewDescribeNetworkInsightsAccessScopesPaginator(client DescribeNetworkInsightsAccessScopesAPIClient, params *DescribeNetworkInsightsAccessScopesInput, optFns ...func(*DescribeNetworkInsightsAccessScopesPaginatorOptions)) *DescribeNetworkInsightsAccessScopesPaginator { + if params == nil { + params = &DescribeNetworkInsightsAccessScopesInput{} + } + + options := DescribeNetworkInsightsAccessScopesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeNetworkInsightsAccessScopesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeNetworkInsightsAccessScopesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeNetworkInsightsAccessScopes page. +func (p *DescribeNetworkInsightsAccessScopesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, 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.DescribeNetworkInsightsAccessScopes(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_opDescribeNetworkInsightsAccessScopes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeNetworkInsightsAccessScopes", + } +} diff --git a/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go b/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go new file mode 100644 index 00000000000..6dbd4bfb382 --- /dev/null +++ b/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go @@ -0,0 +1,127 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disable the IPAM account. For more information, see Enable integration with +// Organizations in the Amazon VPC IPAM User Guide. +func (c *Client) DisableIpamOrganizationAdminAccount(ctx context.Context, params *DisableIpamOrganizationAdminAccountInput, optFns ...func(*Options)) (*DisableIpamOrganizationAdminAccountOutput, error) { + if params == nil { + params = &DisableIpamOrganizationAdminAccountInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisableIpamOrganizationAdminAccount", params, optFns, c.addOperationDisableIpamOrganizationAdminAccountMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisableIpamOrganizationAdminAccountOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisableIpamOrganizationAdminAccountInput struct { + + // The Organizations member account ID that you want to disable as IPAM account. + // + // This member is required. + DelegatedAdminAccountId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type DisableIpamOrganizationAdminAccountOutput struct { + + // The result of disabling the IPAM account. + Success *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisableIpamOrganizationAdminAccountMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDisableIpamOrganizationAdminAccount{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisableIpamOrganizationAdminAccountValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableIpamOrganizationAdminAccount(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisableIpamOrganizationAdminAccount(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DisableIpamOrganizationAdminAccount", + } +} diff --git a/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go b/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go new file mode 100644 index 00000000000..6eeddae5594 --- /dev/null +++ b/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Enable an Organizations member account as the IPAM admin account. You cannot +// select the Organizations management account as the IPAM admin account. For more +// information, see Enable integration with Organizations in the Amazon VPC IPAM +// User Guide. +func (c *Client) EnableIpamOrganizationAdminAccount(ctx context.Context, params *EnableIpamOrganizationAdminAccountInput, optFns ...func(*Options)) (*EnableIpamOrganizationAdminAccountOutput, error) { + if params == nil { + params = &EnableIpamOrganizationAdminAccountInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "EnableIpamOrganizationAdminAccount", params, optFns, c.addOperationEnableIpamOrganizationAdminAccountMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*EnableIpamOrganizationAdminAccountOutput) + out.ResultMetadata = metadata + return out, nil +} + +type EnableIpamOrganizationAdminAccountInput struct { + + // The Organizations member account ID that you want to enable as the IPAM account. + // + // This member is required. + DelegatedAdminAccountId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type EnableIpamOrganizationAdminAccountOutput struct { + + // The result of enabling the IPAM account. + Success *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationEnableIpamOrganizationAdminAccountMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpEnableIpamOrganizationAdminAccount{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpEnableIpamOrganizationAdminAccountValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableIpamOrganizationAdminAccount(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opEnableIpamOrganizationAdminAccount(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "EnableIpamOrganizationAdminAccount", + } +} diff --git a/service/ec2/api_op_GetIpamAddressHistory.go b/service/ec2/api_op_GetIpamAddressHistory.go new file mode 100644 index 00000000000..ebf1258f908 --- /dev/null +++ b/service/ec2/api_op_GetIpamAddressHistory.go @@ -0,0 +1,250 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieve historical information about a CIDR within an IPAM scope. For more +// information, see View the history of IP addresses in the Amazon VPC IPAM User +// Guide. +func (c *Client) GetIpamAddressHistory(ctx context.Context, params *GetIpamAddressHistoryInput, optFns ...func(*Options)) (*GetIpamAddressHistoryOutput, error) { + if params == nil { + params = &GetIpamAddressHistoryInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetIpamAddressHistory", params, optFns, c.addOperationGetIpamAddressHistoryMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetIpamAddressHistoryOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetIpamAddressHistoryInput struct { + + // The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address + // range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. + // You will not get records for any subnets within the /16 CIDR. + // + // This member is required. + Cidr *string + + // The ID of the IPAM scope that the CIDR is in. + // + // This member is required. + IpamScopeId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The end of the time period for which you are looking for history. If you omit + // this option, it will default to the current time. + EndTime *time.Time + + // The maximum number of historical results you would like returned per page. + // Defaults to 100. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + // The start of the time period for which you are looking for history. If you omit + // this option, it will default to the value of EndTime. + StartTime *time.Time + + // The ID of the VPC you want your history records filtered by. + VpcId *string + + noSmithyDocumentSerde +} + +type GetIpamAddressHistoryOutput struct { + + // A historical record for a CIDR within an IPAM scope. If the CIDR is associated + // with an EC2 instance, you will see an object in the response for the instance + // and one for the network interface. + HistoryRecords []types.IpamAddressHistoryRecord + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetIpamAddressHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamAddressHistory{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamAddressHistory{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetIpamAddressHistoryValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamAddressHistory(options.Region), middleware.Before); 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 + } + return nil +} + +// GetIpamAddressHistoryAPIClient is a client that implements the +// GetIpamAddressHistory operation. +type GetIpamAddressHistoryAPIClient interface { + GetIpamAddressHistory(context.Context, *GetIpamAddressHistoryInput, ...func(*Options)) (*GetIpamAddressHistoryOutput, error) +} + +var _ GetIpamAddressHistoryAPIClient = (*Client)(nil) + +// GetIpamAddressHistoryPaginatorOptions is the paginator options for +// GetIpamAddressHistory +type GetIpamAddressHistoryPaginatorOptions struct { + // The maximum number of historical results you would like returned per page. + // Defaults to 100. + 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 +} + +// GetIpamAddressHistoryPaginator is a paginator for GetIpamAddressHistory +type GetIpamAddressHistoryPaginator struct { + options GetIpamAddressHistoryPaginatorOptions + client GetIpamAddressHistoryAPIClient + params *GetIpamAddressHistoryInput + nextToken *string + firstPage bool +} + +// NewGetIpamAddressHistoryPaginator returns a new GetIpamAddressHistoryPaginator +func NewGetIpamAddressHistoryPaginator(client GetIpamAddressHistoryAPIClient, params *GetIpamAddressHistoryInput, optFns ...func(*GetIpamAddressHistoryPaginatorOptions)) *GetIpamAddressHistoryPaginator { + if params == nil { + params = &GetIpamAddressHistoryInput{} + } + + options := GetIpamAddressHistoryPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetIpamAddressHistoryPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetIpamAddressHistoryPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetIpamAddressHistory page. +func (p *GetIpamAddressHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamAddressHistoryOutput, 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.GetIpamAddressHistory(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_opGetIpamAddressHistory(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetIpamAddressHistory", + } +} diff --git a/service/ec2/api_op_GetIpamPoolAllocations.go b/service/ec2/api_op_GetIpamPoolAllocations.go new file mode 100644 index 00000000000..30814977c73 --- /dev/null +++ b/service/ec2/api_op_GetIpamPoolAllocations.go @@ -0,0 +1,233 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get a list of all the CIDR allocations in an IPAM pool. +func (c *Client) GetIpamPoolAllocations(ctx context.Context, params *GetIpamPoolAllocationsInput, optFns ...func(*Options)) (*GetIpamPoolAllocationsOutput, error) { + if params == nil { + params = &GetIpamPoolAllocationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetIpamPoolAllocations", params, optFns, c.addOperationGetIpamPoolAllocationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetIpamPoolAllocationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetIpamPoolAllocationsInput struct { + + // The ID of the IPAM pool you want to see the allocations for. + // + // This member is required. + IpamPoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters for the request. For more information about filtering, see + // Filtering CLI output + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + Filters []types.Filter + + // The ID of the allocation. + IpamPoolAllocationId *string + + // The maximum number of results you would like returned per page. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type GetIpamPoolAllocationsOutput struct { + + // The IPAM pool allocations you want information on. + IpamPoolAllocations []types.IpamPoolAllocation + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetIpamPoolAllocationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamPoolAllocations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamPoolAllocations{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetIpamPoolAllocationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamPoolAllocations(options.Region), middleware.Before); 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 + } + return nil +} + +// GetIpamPoolAllocationsAPIClient is a client that implements the +// GetIpamPoolAllocations operation. +type GetIpamPoolAllocationsAPIClient interface { + GetIpamPoolAllocations(context.Context, *GetIpamPoolAllocationsInput, ...func(*Options)) (*GetIpamPoolAllocationsOutput, error) +} + +var _ GetIpamPoolAllocationsAPIClient = (*Client)(nil) + +// GetIpamPoolAllocationsPaginatorOptions is the paginator options for +// GetIpamPoolAllocations +type GetIpamPoolAllocationsPaginatorOptions struct { + // The maximum number of results you would like returned per page. + 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 +} + +// GetIpamPoolAllocationsPaginator is a paginator for GetIpamPoolAllocations +type GetIpamPoolAllocationsPaginator struct { + options GetIpamPoolAllocationsPaginatorOptions + client GetIpamPoolAllocationsAPIClient + params *GetIpamPoolAllocationsInput + nextToken *string + firstPage bool +} + +// NewGetIpamPoolAllocationsPaginator returns a new GetIpamPoolAllocationsPaginator +func NewGetIpamPoolAllocationsPaginator(client GetIpamPoolAllocationsAPIClient, params *GetIpamPoolAllocationsInput, optFns ...func(*GetIpamPoolAllocationsPaginatorOptions)) *GetIpamPoolAllocationsPaginator { + if params == nil { + params = &GetIpamPoolAllocationsInput{} + } + + options := GetIpamPoolAllocationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetIpamPoolAllocationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetIpamPoolAllocationsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetIpamPoolAllocations page. +func (p *GetIpamPoolAllocationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamPoolAllocationsOutput, 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.GetIpamPoolAllocations(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_opGetIpamPoolAllocations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetIpamPoolAllocations", + } +} diff --git a/service/ec2/api_op_GetIpamPoolCidrs.go b/service/ec2/api_op_GetIpamPoolCidrs.go new file mode 100644 index 00000000000..f08772d86c8 --- /dev/null +++ b/service/ec2/api_op_GetIpamPoolCidrs.go @@ -0,0 +1,229 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get the CIDRs provisioned to an IPAM pool. +func (c *Client) GetIpamPoolCidrs(ctx context.Context, params *GetIpamPoolCidrsInput, optFns ...func(*Options)) (*GetIpamPoolCidrsOutput, error) { + if params == nil { + params = &GetIpamPoolCidrsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetIpamPoolCidrs", params, optFns, c.addOperationGetIpamPoolCidrsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetIpamPoolCidrsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetIpamPoolCidrsInput struct { + + // The ID of the IPAM pool you want the CIDR for. + // + // This member is required. + IpamPoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters for the request. For more information about filtering, see + // Filtering CLI output + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + Filters []types.Filter + + // The maximum number of results to return in the request. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type GetIpamPoolCidrsOutput struct { + + // Information about the CIDRs provisioned to an IPAM pool. + IpamPoolCidrs []types.IpamPoolCidr + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetIpamPoolCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamPoolCidrs{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamPoolCidrs{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetIpamPoolCidrsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamPoolCidrs(options.Region), middleware.Before); 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 + } + return nil +} + +// GetIpamPoolCidrsAPIClient is a client that implements the GetIpamPoolCidrs +// operation. +type GetIpamPoolCidrsAPIClient interface { + GetIpamPoolCidrs(context.Context, *GetIpamPoolCidrsInput, ...func(*Options)) (*GetIpamPoolCidrsOutput, error) +} + +var _ GetIpamPoolCidrsAPIClient = (*Client)(nil) + +// GetIpamPoolCidrsPaginatorOptions is the paginator options for GetIpamPoolCidrs +type GetIpamPoolCidrsPaginatorOptions struct { + // The maximum number of results to return in the request. + 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 +} + +// GetIpamPoolCidrsPaginator is a paginator for GetIpamPoolCidrs +type GetIpamPoolCidrsPaginator struct { + options GetIpamPoolCidrsPaginatorOptions + client GetIpamPoolCidrsAPIClient + params *GetIpamPoolCidrsInput + nextToken *string + firstPage bool +} + +// NewGetIpamPoolCidrsPaginator returns a new GetIpamPoolCidrsPaginator +func NewGetIpamPoolCidrsPaginator(client GetIpamPoolCidrsAPIClient, params *GetIpamPoolCidrsInput, optFns ...func(*GetIpamPoolCidrsPaginatorOptions)) *GetIpamPoolCidrsPaginator { + if params == nil { + params = &GetIpamPoolCidrsInput{} + } + + options := GetIpamPoolCidrsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetIpamPoolCidrsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetIpamPoolCidrsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetIpamPoolCidrs page. +func (p *GetIpamPoolCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamPoolCidrsOutput, 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.GetIpamPoolCidrs(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_opGetIpamPoolCidrs(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetIpamPoolCidrs", + } +} diff --git a/service/ec2/api_op_GetIpamResourceCidrs.go b/service/ec2/api_op_GetIpamResourceCidrs.go new file mode 100644 index 00000000000..727ddeee65c --- /dev/null +++ b/service/ec2/api_op_GetIpamResourceCidrs.go @@ -0,0 +1,245 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get information about the resources in a scope. +func (c *Client) GetIpamResourceCidrs(ctx context.Context, params *GetIpamResourceCidrsInput, optFns ...func(*Options)) (*GetIpamResourceCidrsOutput, error) { + if params == nil { + params = &GetIpamResourceCidrsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetIpamResourceCidrs", params, optFns, c.addOperationGetIpamResourceCidrsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetIpamResourceCidrsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetIpamResourceCidrsInput struct { + + // The ID of the scope that the resource is in. + // + // This member is required. + IpamScopeId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // One or more filters for the request. For more information about filtering, see + // Filtering CLI output + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html). + Filters []types.Filter + + // The ID of the IPAM pool that the resource is in. + IpamPoolId *string + + // The maximum number of results to return in the request. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + // The ID of the resource. + ResourceId *string + + // The ID of the Amazon Web Services account that owns the resource. + ResourceOwner *string + + // A tag on an IPAM resource. + ResourceTag *types.RequestIpamResourceTag + + // The resource type. + ResourceType types.IpamResourceType + + noSmithyDocumentSerde +} + +type GetIpamResourceCidrsOutput struct { + + // The resource CIDRs. + IpamResourceCidrs []types.IpamResourceCidr + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetIpamResourceCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamResourceCidrs{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamResourceCidrs{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetIpamResourceCidrsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamResourceCidrs(options.Region), middleware.Before); 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 + } + return nil +} + +// GetIpamResourceCidrsAPIClient is a client that implements the +// GetIpamResourceCidrs operation. +type GetIpamResourceCidrsAPIClient interface { + GetIpamResourceCidrs(context.Context, *GetIpamResourceCidrsInput, ...func(*Options)) (*GetIpamResourceCidrsOutput, error) +} + +var _ GetIpamResourceCidrsAPIClient = (*Client)(nil) + +// GetIpamResourceCidrsPaginatorOptions is the paginator options for +// GetIpamResourceCidrs +type GetIpamResourceCidrsPaginatorOptions struct { + // The maximum number of results to return in the request. + 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 +} + +// GetIpamResourceCidrsPaginator is a paginator for GetIpamResourceCidrs +type GetIpamResourceCidrsPaginator struct { + options GetIpamResourceCidrsPaginatorOptions + client GetIpamResourceCidrsAPIClient + params *GetIpamResourceCidrsInput + nextToken *string + firstPage bool +} + +// NewGetIpamResourceCidrsPaginator returns a new GetIpamResourceCidrsPaginator +func NewGetIpamResourceCidrsPaginator(client GetIpamResourceCidrsAPIClient, params *GetIpamResourceCidrsInput, optFns ...func(*GetIpamResourceCidrsPaginatorOptions)) *GetIpamResourceCidrsPaginator { + if params == nil { + params = &GetIpamResourceCidrsInput{} + } + + options := GetIpamResourceCidrsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetIpamResourceCidrsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetIpamResourceCidrsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetIpamResourceCidrs page. +func (p *GetIpamResourceCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamResourceCidrsOutput, 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.GetIpamResourceCidrs(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_opGetIpamResourceCidrs(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetIpamResourceCidrs", + } +} diff --git a/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go b/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go new file mode 100644 index 00000000000..ce4d8da6731 --- /dev/null +++ b/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the findings for the specified Network Access Scope analysis. +func (c *Client) GetNetworkInsightsAccessScopeAnalysisFindings(ctx context.Context, params *GetNetworkInsightsAccessScopeAnalysisFindingsInput, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) { + if params == nil { + params = &GetNetworkInsightsAccessScopeAnalysisFindingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetNetworkInsightsAccessScopeAnalysisFindings", params, optFns, c.addOperationGetNetworkInsightsAccessScopeAnalysisFindingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetNetworkInsightsAccessScopeAnalysisFindingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetNetworkInsightsAccessScopeAnalysisFindingsInput struct { + + // The ID of the Network Access Scope analysis. + // + // This member is required. + NetworkInsightsAccessScopeAnalysisId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type GetNetworkInsightsAccessScopeAnalysisFindingsOutput struct { + + // The findings associated with Network Access Scope Analysis. + AnalysisFindings []types.AccessScopeAnalysisFinding + + // The status of Network Access Scope Analysis. + AnalysisStatus types.AnalysisStatus + + // The ID of the Network Access Scope analysis. + NetworkInsightsAccessScopeAnalysisId *string + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetNetworkInsightsAccessScopeAnalysisFindingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetNetworkInsightsAccessScopeAnalysisFindings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetNetworkInsightsAccessScopeAnalysisFindingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeAnalysisFindings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeAnalysisFindings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetNetworkInsightsAccessScopeAnalysisFindings", + } +} diff --git a/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go b/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go new file mode 100644 index 00000000000..16d19fe0011 --- /dev/null +++ b/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go @@ -0,0 +1,127 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the content for the specified Network Access Scope. +func (c *Client) GetNetworkInsightsAccessScopeContent(ctx context.Context, params *GetNetworkInsightsAccessScopeContentInput, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeContentOutput, error) { + if params == nil { + params = &GetNetworkInsightsAccessScopeContentInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetNetworkInsightsAccessScopeContent", params, optFns, c.addOperationGetNetworkInsightsAccessScopeContentMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetNetworkInsightsAccessScopeContentOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetNetworkInsightsAccessScopeContentInput struct { + + // The ID of the Network Access Scope. + // + // This member is required. + NetworkInsightsAccessScopeId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type GetNetworkInsightsAccessScopeContentOutput struct { + + // The Network Access Scope content. + NetworkInsightsAccessScopeContent *types.NetworkInsightsAccessScopeContent + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetNetworkInsightsAccessScopeContentMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetNetworkInsightsAccessScopeContent{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetNetworkInsightsAccessScopeContentValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeContent(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeContent(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetNetworkInsightsAccessScopeContent", + } +} diff --git a/service/ec2/api_op_ModifyIpam.go b/service/ec2/api_op_ModifyIpam.go new file mode 100644 index 00000000000..58aa91798a6 --- /dev/null +++ b/service/ec2/api_op_ModifyIpam.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify the configurations of an IPAM. +func (c *Client) ModifyIpam(ctx context.Context, params *ModifyIpamInput, optFns ...func(*Options)) (*ModifyIpamOutput, error) { + if params == nil { + params = &ModifyIpamInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyIpam", params, optFns, c.addOperationModifyIpamMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyIpamOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyIpamInput struct { + + // The ID of the IPAM you want to modify. + // + // This member is required. + IpamId *string + + // Choose the operating Regions for the IPAM. Operating Regions are Amazon Web + // Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only + // discovers and monitors resources in the Amazon Web Services Regions you select + // as operating Regions. For more information about operating Regions, see Create + // an IPAM in the Amazon VPC IPAM User Guide. + AddOperatingRegions []types.AddIpamOperatingRegion + + // The description of the IPAM you want to modify. + Description *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The operating Regions to remove. + RemoveOperatingRegions []types.RemoveIpamOperatingRegion + + noSmithyDocumentSerde +} + +type ModifyIpamOutput struct { + + // The results of the modification. + Ipam *types.Ipam + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyIpamMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpam{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpam{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpModifyIpamValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpam(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opModifyIpam(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ModifyIpam", + } +} diff --git a/service/ec2/api_op_ModifyIpamPool.go b/service/ec2/api_op_ModifyIpamPool.go new file mode 100644 index 00000000000..bc28c15b8ff --- /dev/null +++ b/service/ec2/api_op_ModifyIpamPool.go @@ -0,0 +1,169 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify the configurations of an IPAM pool. For more information, see Modify a +// pool in the Amazon VPC IPAM User Guide. +func (c *Client) ModifyIpamPool(ctx context.Context, params *ModifyIpamPoolInput, optFns ...func(*Options)) (*ModifyIpamPoolOutput, error) { + if params == nil { + params = &ModifyIpamPoolInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyIpamPool", params, optFns, c.addOperationModifyIpamPoolMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyIpamPoolOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyIpamPoolInput struct { + + // The ID of the IPAM pool you want to modify. + // + // This member is required. + IpamPoolId *string + + // Add tag allocation rules to a pool. For more information about allocation rules, + // see Create a top-level pool in the Amazon VPC IPAM User Guide. + AddAllocationResourceTags []types.RequestIpamResourceTag + + // The default netmask length for allocations added to this pool. If, for example, + // the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new + // allocations will default to 10.0.0.0/16. + AllocationDefaultNetmaskLength *int32 + + // The maximum netmask length possible for CIDR allocations in this IPAM pool to be + // compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible + // netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must + // be greater than the minimum netmask length. + AllocationMaxNetmaskLength *int32 + + // The minimum netmask length required for CIDR allocations in this IPAM pool to be + // compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible + // netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must + // be less than the maximum netmask length. + AllocationMinNetmaskLength *int32 + + // If true, IPAM will continuously look for resources within the CIDR range of this + // pool and automatically import them as allocations into your IPAM. The CIDRs that + // will be allocated for these resources must not already be allocated to other + // resources in order for the import to succeed. IPAM will import a CIDR regardless + // of its compliance with the pool's allocation rules, so a resource might be + // imported and subsequently marked as noncompliant. If IPAM discovers multiple + // CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers + // multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only. + // A locale must be set on the pool for this feature to work. + AutoImport *bool + + // Clear the default netmask length allocation rule for this pool. + ClearAllocationDefaultNetmaskLength *bool + + // The description of the IPAM pool you want to modify. + Description *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // Remove tag allocation rules from a pool. + RemoveAllocationResourceTags []types.RequestIpamResourceTag + + noSmithyDocumentSerde +} + +type ModifyIpamPoolOutput struct { + + // The results of the modification. + IpamPool *types.IpamPool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyIpamPoolMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamPool{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamPool{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpModifyIpamPoolValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamPool(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opModifyIpamPool(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ModifyIpamPool", + } +} diff --git a/service/ec2/api_op_ModifyIpamResourceCidr.go b/service/ec2/api_op_ModifyIpamResourceCidr.go new file mode 100644 index 00000000000..e81f5c2af49 --- /dev/null +++ b/service/ec2/api_op_ModifyIpamResourceCidr.go @@ -0,0 +1,157 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify a resource CIDR. You can use this action to transfer resource CIDRs +// between scopes and ignore resource CIDRs that you do not want to manage. If set +// to false, the resource will not be tracked for overlap, it cannot be +// auto-imported into a pool, and it will be removed from any pool it has an +// allocation in. For more information, see Move resource CIDRs between scopes and +// Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide. +func (c *Client) ModifyIpamResourceCidr(ctx context.Context, params *ModifyIpamResourceCidrInput, optFns ...func(*Options)) (*ModifyIpamResourceCidrOutput, error) { + if params == nil { + params = &ModifyIpamResourceCidrInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyIpamResourceCidr", params, optFns, c.addOperationModifyIpamResourceCidrMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyIpamResourceCidrOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyIpamResourceCidrInput struct { + + // The ID of the current scope that the resource CIDR is in. + // + // This member is required. + CurrentIpamScopeId *string + + // Determines if the resource is monitored by IPAM. If a resource is monitored, the + // resource is discovered by IPAM and you can view details about the resource’s + // CIDR. + // + // This member is required. + Monitored *bool + + // The CIDR of the resource you want to modify. + // + // This member is required. + ResourceCidr *string + + // The ID of the resource you want to modify. + // + // This member is required. + ResourceId *string + + // The Amazon Web Services Region of the resource you want to modify. + // + // This member is required. + ResourceRegion *string + + // The ID of the scope you want to transfer the resource CIDR to. + DestinationIpamScopeId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type ModifyIpamResourceCidrOutput struct { + + // The CIDR for an IPAM resource. + IpamResourceCidr *types.IpamResourceCidr + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyIpamResourceCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamResourceCidr{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamResourceCidr{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpModifyIpamResourceCidrValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamResourceCidr(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opModifyIpamResourceCidr(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ModifyIpamResourceCidr", + } +} diff --git a/service/ec2/api_op_ModifyIpamScope.go b/service/ec2/api_op_ModifyIpamScope.go new file mode 100644 index 00000000000..87df9064763 --- /dev/null +++ b/service/ec2/api_op_ModifyIpamScope.go @@ -0,0 +1,130 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify an IPAM scope. +func (c *Client) ModifyIpamScope(ctx context.Context, params *ModifyIpamScopeInput, optFns ...func(*Options)) (*ModifyIpamScopeOutput, error) { + if params == nil { + params = &ModifyIpamScopeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyIpamScope", params, optFns, c.addOperationModifyIpamScopeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyIpamScopeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyIpamScopeInput struct { + + // The ID of the scope you want to modify. + // + // This member is required. + IpamScopeId *string + + // The description of the scope you want to modify. + Description *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type ModifyIpamScopeOutput struct { + + // The results of the modification. + IpamScope *types.IpamScope + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamScope{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamScope{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpModifyIpamScopeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamScope(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opModifyIpamScope(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ModifyIpamScope", + } +} diff --git a/service/ec2/api_op_ModifySubnetAttribute.go b/service/ec2/api_op_ModifySubnetAttribute.go index 5a0054c02ab..092c27dc024 100644 --- a/service/ec2/api_op_ModifySubnetAttribute.go +++ b/service/ec2/api_op_ModifySubnetAttribute.go @@ -11,7 +11,26 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Modifies a subnet attribute. You can only modify one attribute at a time. +// Modifies a subnet attribute. You can only modify one attribute at a time. Use +// this action to modify subnets on Amazon Web Services Outposts. +// +// * To modify a +// subnet on an Outpost rack, set both MapCustomerOwnedIpOnLaunch and +// CustomerOwnedIpv4Pool. These two parameters act as a single attribute. +// +// * To +// modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex or +// DisableLniAtDeviceIndex. +// +// For more information about Amazon Web Services +// Outposts, see the following: +// +// * Outpost servers +// (https://docs.aws.amazon.com/outposts/latest/userguide/how-servers-work.html) +// +// * +// Outpost racks +// (https://docs.aws.amazon.com/outposts/latest/userguide/how-racks-work.html) func (c *Client) ModifySubnetAttribute(ctx context.Context, params *ModifySubnetAttributeInput, optFns ...func(*Options)) (*ModifySubnetAttributeOutput, error) { if params == nil { params = &ModifySubnetAttributeInput{} @@ -46,10 +65,20 @@ type ModifySubnetAttributeInput struct { // this value when you specify true for MapCustomerOwnedIpOnLaunch. CustomerOwnedIpv4Pool *string + // Specify true to indicate that local network interfaces at the current position + // should be disabled. + DisableLniAtDeviceIndex *types.AttributeBooleanValue + // Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this // subnet should return synthetic IPv6 addresses for IPv4-only destinations. EnableDns64 *types.AttributeBooleanValue + // Indicates the device position for local network interfaces in this subnet. For + // example, 1 indicates local network interfaces in this subnet are the secondary + // network interface (eth1). A local network interface cannot be the primary + // network interface (eth0). + EnableLniAtDeviceIndex *int32 + // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA // records. EnableResourceNameDnsAAAARecordOnLaunch *types.AttributeBooleanValue diff --git a/service/ec2/api_op_MoveByoipCidrToIpam.go b/service/ec2/api_op_MoveByoipCidrToIpam.go new file mode 100644 index 00000000000..027ceab893b --- /dev/null +++ b/service/ec2/api_op_MoveByoipCidrToIpam.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Move an BYOIP IPv4 CIDR to IPAM from a public IPv4 pool. +func (c *Client) MoveByoipCidrToIpam(ctx context.Context, params *MoveByoipCidrToIpamInput, optFns ...func(*Options)) (*MoveByoipCidrToIpamOutput, error) { + if params == nil { + params = &MoveByoipCidrToIpamInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "MoveByoipCidrToIpam", params, optFns, c.addOperationMoveByoipCidrToIpamMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*MoveByoipCidrToIpamOutput) + out.ResultMetadata = metadata + return out, nil +} + +type MoveByoipCidrToIpamInput struct { + + // The BYOIP CIDR. + Cidr *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The IPAM pool ID. + IpamPoolId *string + + // The Amazon Web Services account ID of the owner of the IPAM pool. + IpamPoolOwner *string + + noSmithyDocumentSerde +} + +type MoveByoipCidrToIpamOutput struct { + + // Information about an address range that is provisioned for use with your Amazon + // Web Services resources through bring your own IP addresses (BYOIP). + ByoipCidr *types.ByoipCidr + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationMoveByoipCidrToIpamMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpMoveByoipCidrToIpam{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpMoveByoipCidrToIpam{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opMoveByoipCidrToIpam(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opMoveByoipCidrToIpam(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "MoveByoipCidrToIpam", + } +} diff --git a/service/ec2/api_op_ProvisionIpamPoolCidr.go b/service/ec2/api_op_ProvisionIpamPoolCidr.go new file mode 100644 index 00000000000..0510bb628ef --- /dev/null +++ b/service/ec2/api_op_ProvisionIpamPoolCidr.go @@ -0,0 +1,137 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provision a CIDR to an IPAM pool. You can use thsi action to provision new CIDRs +// to a top-level pool or to transfer a CIDR from a top-level pool to a pool within +// it. For more information, see Provision CIDRs to pools in the Amazon VPC IPAM +// User Guide. +func (c *Client) ProvisionIpamPoolCidr(ctx context.Context, params *ProvisionIpamPoolCidrInput, optFns ...func(*Options)) (*ProvisionIpamPoolCidrOutput, error) { + if params == nil { + params = &ProvisionIpamPoolCidrInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ProvisionIpamPoolCidr", params, optFns, c.addOperationProvisionIpamPoolCidrMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ProvisionIpamPoolCidrOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ProvisionIpamPoolCidrInput struct { + + // The ID of the IPAM pool to which you want to assign a CIDR. + // + // This member is required. + IpamPoolId *string + + // The CIDR you want to assign to the IPAM pool. + Cidr *string + + // A signed document that proves that you are authorized to bring a specified IP + // address range to Amazon using BYOIP. This option applies to public pools only. + CidrAuthorizationContext *types.IpamCidrAuthorizationContext + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type ProvisionIpamPoolCidrOutput struct { + + // Information about the provisioned CIDR. + IpamPoolCidr *types.IpamPoolCidr + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationProvisionIpamPoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionIpamPoolCidr{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpProvisionIpamPoolCidr{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpProvisionIpamPoolCidrValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionIpamPoolCidr(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opProvisionIpamPoolCidr(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ProvisionIpamPoolCidr", + } +} diff --git a/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go b/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go new file mode 100644 index 00000000000..31285fe1bb6 --- /dev/null +++ b/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go @@ -0,0 +1,142 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provision a CIDR to a public IPv4 pool. For more information about IPAM, see +// What is IPAM? in the Amazon VPC IPAM User Guide. +func (c *Client) ProvisionPublicIpv4PoolCidr(ctx context.Context, params *ProvisionPublicIpv4PoolCidrInput, optFns ...func(*Options)) (*ProvisionPublicIpv4PoolCidrOutput, error) { + if params == nil { + params = &ProvisionPublicIpv4PoolCidrInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ProvisionPublicIpv4PoolCidr", params, optFns, c.addOperationProvisionPublicIpv4PoolCidrMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ProvisionPublicIpv4PoolCidrOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ProvisionPublicIpv4PoolCidrInput struct { + + // The ID of the IPAM pool you would like to use to allocate this CIDR. + // + // This member is required. + IpamPoolId *string + + // The netmask length of the CIDR you would like to allocate to the public IPv4 + // pool. + // + // This member is required. + NetmaskLength *int32 + + // The ID of the public IPv4 pool you would like to use for this CIDR. + // + // This member is required. + PoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + noSmithyDocumentSerde +} + +type ProvisionPublicIpv4PoolCidrOutput struct { + + // Describes an address range of an IPv4 address pool. + PoolAddressRange *types.PublicIpv4PoolRange + + // The ID of the pool that you want to provision the CIDR to. + PoolId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationProvisionPublicIpv4PoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionPublicIpv4PoolCidr{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpProvisionPublicIpv4PoolCidrValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionPublicIpv4PoolCidr(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opProvisionPublicIpv4PoolCidr(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ProvisionPublicIpv4PoolCidr", + } +} diff --git a/service/ec2/api_op_ReleaseIpamPoolAllocation.go b/service/ec2/api_op_ReleaseIpamPoolAllocation.go new file mode 100644 index 00000000000..173b8a80d54 --- /dev/null +++ b/service/ec2/api_op_ReleaseIpamPoolAllocation.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Release an allocation within an IPAM pool. You can only use this action to +// release manual allocations. To remove an allocation for a resource without +// deleting the resource, set its monitored state to false using +// ModifyIpamResourceCidr +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyIpamResourceCidr.html). +// For more information, see Release an allocation in the Amazon VPC IPAM User +// Guide. +func (c *Client) ReleaseIpamPoolAllocation(ctx context.Context, params *ReleaseIpamPoolAllocationInput, optFns ...func(*Options)) (*ReleaseIpamPoolAllocationOutput, error) { + if params == nil { + params = &ReleaseIpamPoolAllocationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ReleaseIpamPoolAllocation", params, optFns, c.addOperationReleaseIpamPoolAllocationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ReleaseIpamPoolAllocationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ReleaseIpamPoolAllocationInput struct { + + // The CIDR of the allocation you want to release. + // + // This member is required. + Cidr *string + + // The ID of the IPAM pool which contains the allocation you want to release. + // + // This member is required. + IpamPoolId *string + + // A check for whether you have the required permissions for the action without + // actually making the request and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The ID of the allocation. + IpamPoolAllocationId *string + + noSmithyDocumentSerde +} + +type ReleaseIpamPoolAllocationOutput struct { + + // Indicates if the release was successful. + Success *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationReleaseIpamPoolAllocationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpReleaseIpamPoolAllocation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpReleaseIpamPoolAllocation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpReleaseIpamPoolAllocationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReleaseIpamPoolAllocation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opReleaseIpamPoolAllocation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "ReleaseIpamPoolAllocation", + } +} diff --git a/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go b/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go new file mode 100644 index 00000000000..513f334c7b2 --- /dev/null +++ b/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go @@ -0,0 +1,174 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Starts analyzing the specified Network Access Scope. +func (c *Client) StartNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *StartNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*Options)) (*StartNetworkInsightsAccessScopeAnalysisOutput, error) { + if params == nil { + params = &StartNetworkInsightsAccessScopeAnalysisInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartNetworkInsightsAccessScopeAnalysis", params, optFns, c.addOperationStartNetworkInsightsAccessScopeAnalysisMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartNetworkInsightsAccessScopeAnalysisOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartNetworkInsightsAccessScopeAnalysisInput struct { + + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see How to ensure idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + // + // This member is required. + ClientToken *string + + // The ID of the Network Access Scope. + // + // This member is required. + NetworkInsightsAccessScopeId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation. Otherwise, it is + // UnauthorizedOperation. + DryRun *bool + + // The tags to apply. + TagSpecifications []types.TagSpecification + + noSmithyDocumentSerde +} + +type StartNetworkInsightsAccessScopeAnalysisOutput struct { + + // The Network Access Scope analysis. + NetworkInsightsAccessScopeAnalysis *types.NetworkInsightsAccessScopeAnalysis + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartNetworkInsightsAccessScopeAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpStartNetworkInsightsAccessScopeAnalysis{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opStartNetworkInsightsAccessScopeAnalysisMiddleware(stack, options); err != nil { + return err + } + if err = addOpStartNetworkInsightsAccessScopeAnalysisValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartNetworkInsightsAccessScopeAnalysis(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*StartNetworkInsightsAccessScopeAnalysisInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *StartNetworkInsightsAccessScopeAnalysisInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opStartNetworkInsightsAccessScopeAnalysisMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opStartNetworkInsightsAccessScopeAnalysis(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "StartNetworkInsightsAccessScopeAnalysis", + } +} diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index a0ec8a54a74..828b839c5c5 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -843,6 +843,97 @@ func awsEc2query_deserializeOpErrorAllocateHosts(response *smithyhttp.Response, } } +type awsEc2query_deserializeOpAllocateIpamPoolCidr struct { +} + +func (*awsEc2query_deserializeOpAllocateIpamPoolCidr) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpAllocateIpamPoolCidr) 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, awsEc2query_deserializeOpErrorAllocateIpamPoolCidr(response, &metadata) + } + output := &AllocateIpamPoolCidrOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentAllocateIpamPoolCidrOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorAllocateIpamPoolCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpApplySecurityGroupsToClientVpnTargetNetwork struct { } @@ -5665,14 +5756,14 @@ func awsEc2query_deserializeOpErrorCreateInternetGateway(response *smithyhttp.Re } } -type awsEc2query_deserializeOpCreateKeyPair struct { +type awsEc2query_deserializeOpCreateIpam struct { } -func (*awsEc2query_deserializeOpCreateKeyPair) ID() string { +func (*awsEc2query_deserializeOpCreateIpam) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateKeyPair) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateIpam) 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) @@ -5686,9 +5777,9 @@ func (m *awsEc2query_deserializeOpCreateKeyPair) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateKeyPair(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateIpam(response, &metadata) } - output := &CreateKeyPairOutput{} + output := &CreateIpamOutput{} out.Result = output var buff [1024]byte @@ -5709,7 +5800,7 @@ func (m *awsEc2query_deserializeOpCreateKeyPair) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateKeyPairOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateIpamOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5723,7 +5814,7 @@ func (m *awsEc2query_deserializeOpCreateKeyPair) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateKeyPair(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateIpam(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)} @@ -5756,14 +5847,14 @@ func awsEc2query_deserializeOpErrorCreateKeyPair(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpCreateLaunchTemplate struct { +type awsEc2query_deserializeOpCreateIpamPool struct { } -func (*awsEc2query_deserializeOpCreateLaunchTemplate) ID() string { +func (*awsEc2query_deserializeOpCreateIpamPool) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateIpamPool) 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) @@ -5777,9 +5868,9 @@ func (m *awsEc2query_deserializeOpCreateLaunchTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateLaunchTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateIpamPool(response, &metadata) } - output := &CreateLaunchTemplateOutput{} + output := &CreateIpamPoolOutput{} out.Result = output var buff [1024]byte @@ -5800,7 +5891,7 @@ func (m *awsEc2query_deserializeOpCreateLaunchTemplate) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateLaunchTemplateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateIpamPoolOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5814,7 +5905,7 @@ func (m *awsEc2query_deserializeOpCreateLaunchTemplate) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateIpamPool(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)} @@ -5847,14 +5938,14 @@ func awsEc2query_deserializeOpErrorCreateLaunchTemplate(response *smithyhttp.Res } } -type awsEc2query_deserializeOpCreateLaunchTemplateVersion struct { +type awsEc2query_deserializeOpCreateIpamScope struct { } -func (*awsEc2query_deserializeOpCreateLaunchTemplateVersion) ID() string { +func (*awsEc2query_deserializeOpCreateIpamScope) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateLaunchTemplateVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateIpamScope) 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) @@ -5868,9 +5959,9 @@ func (m *awsEc2query_deserializeOpCreateLaunchTemplateVersion) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateIpamScope(response, &metadata) } - output := &CreateLaunchTemplateVersionOutput{} + output := &CreateIpamScopeOutput{} out.Result = output var buff [1024]byte @@ -5891,7 +5982,7 @@ func (m *awsEc2query_deserializeOpCreateLaunchTemplateVersion) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateLaunchTemplateVersionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateIpamScopeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5905,7 +5996,7 @@ func (m *awsEc2query_deserializeOpCreateLaunchTemplateVersion) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateIpamScope(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)} @@ -5938,14 +6029,14 @@ func awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(response *smithyh } } -type awsEc2query_deserializeOpCreateLocalGatewayRoute struct { +type awsEc2query_deserializeOpCreateKeyPair struct { } -func (*awsEc2query_deserializeOpCreateLocalGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpCreateKeyPair) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateLocalGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateKeyPair) 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) @@ -5959,9 +6050,9 @@ func (m *awsEc2query_deserializeOpCreateLocalGatewayRoute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateKeyPair(response, &metadata) } - output := &CreateLocalGatewayRouteOutput{} + output := &CreateKeyPairOutput{} out.Result = output var buff [1024]byte @@ -5982,7 +6073,7 @@ func (m *awsEc2query_deserializeOpCreateLocalGatewayRoute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateKeyPairOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5996,7 +6087,7 @@ func (m *awsEc2query_deserializeOpCreateLocalGatewayRoute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateKeyPair(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)} @@ -6029,14 +6120,14 @@ func awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(response *smithyhttp. } } -type awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation struct { +type awsEc2query_deserializeOpCreateLaunchTemplate struct { } -func (*awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string { +func (*awsEc2query_deserializeOpCreateLaunchTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateLaunchTemplate) 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) @@ -6050,9 +6141,9 @@ func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateLaunchTemplate(response, &metadata) } - output := &CreateLocalGatewayRouteTableVpcAssociationOutput{} + output := &CreateLaunchTemplateOutput{} out.Result = output var buff [1024]byte @@ -6073,7 +6164,7 @@ func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateLaunchTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6087,7 +6178,7 @@ func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateLaunchTemplate(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)} @@ -6120,14 +6211,14 @@ func awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(re } } -type awsEc2query_deserializeOpCreateManagedPrefixList struct { +type awsEc2query_deserializeOpCreateLaunchTemplateVersion struct { } -func (*awsEc2query_deserializeOpCreateManagedPrefixList) ID() string { +func (*awsEc2query_deserializeOpCreateLaunchTemplateVersion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateLaunchTemplateVersion) 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) @@ -6141,9 +6232,9 @@ func (m *awsEc2query_deserializeOpCreateManagedPrefixList) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateManagedPrefixList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(response, &metadata) } - output := &CreateManagedPrefixListOutput{} + output := &CreateLaunchTemplateVersionOutput{} out.Result = output var buff [1024]byte @@ -6164,7 +6255,7 @@ func (m *awsEc2query_deserializeOpCreateManagedPrefixList) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateManagedPrefixListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateLaunchTemplateVersionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6178,7 +6269,7 @@ func (m *awsEc2query_deserializeOpCreateManagedPrefixList) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(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)} @@ -6211,14 +6302,14 @@ func awsEc2query_deserializeOpErrorCreateManagedPrefixList(response *smithyhttp. } } -type awsEc2query_deserializeOpCreateNatGateway struct { +type awsEc2query_deserializeOpCreateLocalGatewayRoute struct { } -func (*awsEc2query_deserializeOpCreateNatGateway) ID() string { +func (*awsEc2query_deserializeOpCreateLocalGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateNatGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateLocalGatewayRoute) 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) @@ -6232,9 +6323,9 @@ func (m *awsEc2query_deserializeOpCreateNatGateway) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateNatGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(response, &metadata) } - output := &CreateNatGatewayOutput{} + output := &CreateLocalGatewayRouteOutput{} out.Result = output var buff [1024]byte @@ -6255,7 +6346,7 @@ func (m *awsEc2query_deserializeOpCreateNatGateway) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateNatGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6269,7 +6360,7 @@ func (m *awsEc2query_deserializeOpCreateNatGateway) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateNatGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(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)} @@ -6302,14 +6393,14 @@ func awsEc2query_deserializeOpErrorCreateNatGateway(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpCreateNetworkAcl struct { +type awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation struct { } -func (*awsEc2query_deserializeOpCreateNetworkAcl) ID() string { +func (*awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateNetworkAcl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6323,9 +6414,9 @@ func (m *awsEc2query_deserializeOpCreateNetworkAcl) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkAcl(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(response, &metadata) } - output := &CreateNetworkAclOutput{} + output := &CreateLocalGatewayRouteTableVpcAssociationOutput{} out.Result = output var buff [1024]byte @@ -6346,7 +6437,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkAcl) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateNetworkAclOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6360,75 +6451,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkAcl) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateNetworkAcl(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpCreateNetworkAclEntry struct { -} - -func (*awsEc2query_deserializeOpCreateNetworkAclEntry) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpCreateNetworkAclEntry) 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, awsEc2query_deserializeOpErrorCreateNetworkAclEntry(response, &metadata) - } - output := &CreateNetworkAclEntryOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorCreateNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(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)} @@ -6461,14 +6484,14 @@ func awsEc2query_deserializeOpErrorCreateNetworkAclEntry(response *smithyhttp.Re } } -type awsEc2query_deserializeOpCreateNetworkInsightsPath struct { +type awsEc2query_deserializeOpCreateManagedPrefixList struct { } -func (*awsEc2query_deserializeOpCreateNetworkInsightsPath) ID() string { +func (*awsEc2query_deserializeOpCreateManagedPrefixList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateNetworkInsightsPath) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateManagedPrefixList) 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) @@ -6482,9 +6505,9 @@ func (m *awsEc2query_deserializeOpCreateNetworkInsightsPath) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateManagedPrefixList(response, &metadata) } - output := &CreateNetworkInsightsPathOutput{} + output := &CreateManagedPrefixListOutput{} out.Result = output var buff [1024]byte @@ -6505,7 +6528,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkInsightsPath) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateNetworkInsightsPathOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateManagedPrefixListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6519,7 +6542,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkInsightsPath) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateManagedPrefixList(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)} @@ -6552,14 +6575,14 @@ func awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(response *smithyhtt } } -type awsEc2query_deserializeOpCreateNetworkInterface struct { +type awsEc2query_deserializeOpCreateNatGateway struct { } -func (*awsEc2query_deserializeOpCreateNetworkInterface) ID() string { +func (*awsEc2query_deserializeOpCreateNatGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateNetworkInterface) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNatGateway) 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) @@ -6573,9 +6596,9 @@ func (m *awsEc2query_deserializeOpCreateNetworkInterface) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInterface(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNatGateway(response, &metadata) } - output := &CreateNetworkInterfaceOutput{} + output := &CreateNatGatewayOutput{} out.Result = output var buff [1024]byte @@ -6596,7 +6619,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkInterface) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateNetworkInterfaceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateNatGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6610,7 +6633,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkInterface) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateNetworkInterface(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNatGateway(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)} @@ -6643,14 +6666,14 @@ func awsEc2query_deserializeOpErrorCreateNetworkInterface(response *smithyhttp.R } } -type awsEc2query_deserializeOpCreateNetworkInterfacePermission struct { +type awsEc2query_deserializeOpCreateNetworkAcl struct { } -func (*awsEc2query_deserializeOpCreateNetworkInterfacePermission) ID() string { +func (*awsEc2query_deserializeOpCreateNetworkAcl) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateNetworkInterfacePermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNetworkAcl) 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) @@ -6664,9 +6687,9 @@ func (m *awsEc2query_deserializeOpCreateNetworkInterfacePermission) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkAcl(response, &metadata) } - output := &CreateNetworkInterfacePermissionOutput{} + output := &CreateNetworkAclOutput{} out.Result = output var buff [1024]byte @@ -6687,7 +6710,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkInterfacePermission) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateNetworkInterfacePermissionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateNetworkAclOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6701,7 +6724,7 @@ func (m *awsEc2query_deserializeOpCreateNetworkInterfacePermission) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNetworkAcl(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)} @@ -6734,14 +6757,14 @@ func awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(response *sm } } -type awsEc2query_deserializeOpCreatePlacementGroup struct { +type awsEc2query_deserializeOpCreateNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpCreatePlacementGroup) ID() string { +func (*awsEc2query_deserializeOpCreateNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreatePlacementGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNetworkAclEntry) 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) @@ -6755,44 +6778,21 @@ func (m *awsEc2query_deserializeOpCreatePlacementGroup) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreatePlacementGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkAclEntry(response, &metadata) } - output := &CreatePlacementGroupOutput{} + output := &CreateNetworkAclEntryOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreatePlacementGroupOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreatePlacementGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNetworkAclEntry(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)} @@ -6825,14 +6825,14 @@ func awsEc2query_deserializeOpErrorCreatePlacementGroup(response *smithyhttp.Res } } -type awsEc2query_deserializeOpCreateReplaceRootVolumeTask struct { +type awsEc2query_deserializeOpCreateNetworkInsightsAccessScope struct { } -func (*awsEc2query_deserializeOpCreateReplaceRootVolumeTask) ID() string { +func (*awsEc2query_deserializeOpCreateNetworkInsightsAccessScope) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNetworkInsightsAccessScope) 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) @@ -6846,9 +6846,9 @@ func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInsightsAccessScope(response, &metadata) } - output := &CreateReplaceRootVolumeTaskOutput{} + output := &CreateNetworkInsightsAccessScopeOutput{} out.Result = output var buff [1024]byte @@ -6869,7 +6869,7 @@ func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateReplaceRootVolumeTaskOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateNetworkInsightsAccessScopeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6883,7 +6883,7 @@ func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNetworkInsightsAccessScope(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)} @@ -6916,14 +6916,14 @@ func awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(response *smithyh } } -type awsEc2query_deserializeOpCreateReservedInstancesListing struct { +type awsEc2query_deserializeOpCreateNetworkInsightsPath struct { } -func (*awsEc2query_deserializeOpCreateReservedInstancesListing) ID() string { +func (*awsEc2query_deserializeOpCreateNetworkInsightsPath) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateReservedInstancesListing) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNetworkInsightsPath) 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) @@ -6937,9 +6937,9 @@ func (m *awsEc2query_deserializeOpCreateReservedInstancesListing) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateReservedInstancesListing(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(response, &metadata) } - output := &CreateReservedInstancesListingOutput{} + output := &CreateNetworkInsightsPathOutput{} out.Result = output var buff [1024]byte @@ -6960,7 +6960,7 @@ func (m *awsEc2query_deserializeOpCreateReservedInstancesListing) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateReservedInstancesListingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateNetworkInsightsPathOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6974,7 +6974,7 @@ func (m *awsEc2query_deserializeOpCreateReservedInstancesListing) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateReservedInstancesListing(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(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)} @@ -7007,14 +7007,14 @@ func awsEc2query_deserializeOpErrorCreateReservedInstancesListing(response *smit } } -type awsEc2query_deserializeOpCreateRestoreImageTask struct { +type awsEc2query_deserializeOpCreateNetworkInterface struct { } -func (*awsEc2query_deserializeOpCreateRestoreImageTask) ID() string { +func (*awsEc2query_deserializeOpCreateNetworkInterface) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateRestoreImageTask) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNetworkInterface) 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) @@ -7028,9 +7028,9 @@ func (m *awsEc2query_deserializeOpCreateRestoreImageTask) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateRestoreImageTask(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInterface(response, &metadata) } - output := &CreateRestoreImageTaskOutput{} + output := &CreateNetworkInterfaceOutput{} out.Result = output var buff [1024]byte @@ -7051,7 +7051,7 @@ func (m *awsEc2query_deserializeOpCreateRestoreImageTask) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateRestoreImageTaskOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateNetworkInterfaceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7065,7 +7065,7 @@ func (m *awsEc2query_deserializeOpCreateRestoreImageTask) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateRestoreImageTask(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNetworkInterface(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)} @@ -7098,14 +7098,14 @@ func awsEc2query_deserializeOpErrorCreateRestoreImageTask(response *smithyhttp.R } } -type awsEc2query_deserializeOpCreateRoute struct { +type awsEc2query_deserializeOpCreateNetworkInterfacePermission struct { } -func (*awsEc2query_deserializeOpCreateRoute) ID() string { +func (*awsEc2query_deserializeOpCreateNetworkInterfacePermission) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateNetworkInterfacePermission) 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) @@ -7119,9 +7119,9 @@ func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(response, &metadata) } - output := &CreateRouteOutput{} + output := &CreateNetworkInterfacePermissionOutput{} out.Result = output var buff [1024]byte @@ -7142,7 +7142,7 @@ func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateNetworkInterfacePermissionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7156,7 +7156,7 @@ func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(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)} @@ -7189,14 +7189,14 @@ func awsEc2query_deserializeOpErrorCreateRoute(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpCreateRouteTable struct { +type awsEc2query_deserializeOpCreatePlacementGroup struct { } -func (*awsEc2query_deserializeOpCreateRouteTable) ID() string { +func (*awsEc2query_deserializeOpCreatePlacementGroup) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreatePlacementGroup) 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) @@ -7210,9 +7210,9 @@ func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreatePlacementGroup(response, &metadata) } - output := &CreateRouteTableOutput{} + output := &CreatePlacementGroupOutput{} out.Result = output var buff [1024]byte @@ -7233,7 +7233,7 @@ func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateRouteTableOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreatePlacementGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7247,7 +7247,7 @@ func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreatePlacementGroup(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)} @@ -7280,14 +7280,14 @@ func awsEc2query_deserializeOpErrorCreateRouteTable(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpCreateSecurityGroup struct { +type awsEc2query_deserializeOpCreatePublicIpv4Pool struct { } -func (*awsEc2query_deserializeOpCreateSecurityGroup) ID() string { +func (*awsEc2query_deserializeOpCreatePublicIpv4Pool) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreatePublicIpv4Pool) 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) @@ -7301,9 +7301,9 @@ func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSecurityGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreatePublicIpv4Pool(response, &metadata) } - output := &CreateSecurityGroupOutput{} + output := &CreatePublicIpv4PoolOutput{} out.Result = output var buff [1024]byte @@ -7324,7 +7324,7 @@ func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSecurityGroupOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreatePublicIpv4PoolOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7338,7 +7338,7 @@ func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSecurityGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreatePublicIpv4Pool(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)} @@ -7371,14 +7371,14 @@ func awsEc2query_deserializeOpErrorCreateSecurityGroup(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpCreateSnapshot struct { +type awsEc2query_deserializeOpCreateReplaceRootVolumeTask struct { } -func (*awsEc2query_deserializeOpCreateSnapshot) ID() string { +func (*awsEc2query_deserializeOpCreateReplaceRootVolumeTask) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) 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) @@ -7392,9 +7392,9 @@ func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(response, &metadata) } - output := &CreateSnapshotOutput{} + output := &CreateReplaceRootVolumeTaskOutput{} out.Result = output var buff [1024]byte @@ -7415,7 +7415,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSnapshotOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateReplaceRootVolumeTaskOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7429,7 +7429,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(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)} @@ -7462,14 +7462,14 @@ func awsEc2query_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpCreateSnapshots struct { +type awsEc2query_deserializeOpCreateReservedInstancesListing struct { } -func (*awsEc2query_deserializeOpCreateSnapshots) ID() string { +func (*awsEc2query_deserializeOpCreateReservedInstancesListing) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateReservedInstancesListing) 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) @@ -7483,9 +7483,9 @@ func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshots(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateReservedInstancesListing(response, &metadata) } - output := &CreateSnapshotsOutput{} + output := &CreateReservedInstancesListingOutput{} out.Result = output var buff [1024]byte @@ -7506,7 +7506,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSnapshotsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateReservedInstancesListingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7520,7 +7520,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateReservedInstancesListing(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)} @@ -7553,14 +7553,14 @@ func awsEc2query_deserializeOpErrorCreateSnapshots(response *smithyhttp.Response } } -type awsEc2query_deserializeOpCreateSpotDatafeedSubscription struct { +type awsEc2query_deserializeOpCreateRestoreImageTask struct { } -func (*awsEc2query_deserializeOpCreateSpotDatafeedSubscription) ID() string { +func (*awsEc2query_deserializeOpCreateRestoreImageTask) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateRestoreImageTask) 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) @@ -7574,9 +7574,9 @@ func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateRestoreImageTask(response, &metadata) } - output := &CreateSpotDatafeedSubscriptionOutput{} + output := &CreateRestoreImageTaskOutput{} out.Result = output var buff [1024]byte @@ -7597,7 +7597,7 @@ func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSpotDatafeedSubscriptionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateRestoreImageTaskOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7611,7 +7611,7 @@ func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateRestoreImageTask(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)} @@ -7644,14 +7644,14 @@ func awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response *smit } } -type awsEc2query_deserializeOpCreateStoreImageTask struct { +type awsEc2query_deserializeOpCreateRoute struct { } -func (*awsEc2query_deserializeOpCreateStoreImageTask) ID() string { +func (*awsEc2query_deserializeOpCreateRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateStoreImageTask) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateRoute) 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) @@ -7665,9 +7665,9 @@ func (m *awsEc2query_deserializeOpCreateStoreImageTask) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateStoreImageTask(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateRoute(response, &metadata) } - output := &CreateStoreImageTaskOutput{} + output := &CreateRouteOutput{} out.Result = output var buff [1024]byte @@ -7688,7 +7688,7 @@ func (m *awsEc2query_deserializeOpCreateStoreImageTask) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateStoreImageTaskOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7702,7 +7702,7 @@ func (m *awsEc2query_deserializeOpCreateStoreImageTask) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateStoreImageTask(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateRoute(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)} @@ -7735,14 +7735,14 @@ func awsEc2query_deserializeOpErrorCreateStoreImageTask(response *smithyhttp.Res } } -type awsEc2query_deserializeOpCreateSubnet struct { +type awsEc2query_deserializeOpCreateRouteTable struct { } -func (*awsEc2query_deserializeOpCreateSubnet) ID() string { +func (*awsEc2query_deserializeOpCreateRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateRouteTable) 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) @@ -7756,9 +7756,9 @@ func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSubnet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateRouteTable(response, &metadata) } - output := &CreateSubnetOutput{} + output := &CreateRouteTableOutput{} out.Result = output var buff [1024]byte @@ -7779,7 +7779,7 @@ func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSubnetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateRouteTableOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7793,7 +7793,7 @@ func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSubnet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateRouteTable(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)} @@ -7826,14 +7826,14 @@ func awsEc2query_deserializeOpErrorCreateSubnet(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpCreateSubnetCidrReservation struct { +type awsEc2query_deserializeOpCreateSecurityGroup struct { } -func (*awsEc2query_deserializeOpCreateSubnetCidrReservation) ID() string { +func (*awsEc2query_deserializeOpCreateSecurityGroup) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSecurityGroup) 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) @@ -7847,9 +7847,9 @@ func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSecurityGroup(response, &metadata) } - output := &CreateSubnetCidrReservationOutput{} + output := &CreateSecurityGroupOutput{} out.Result = output var buff [1024]byte @@ -7870,7 +7870,7 @@ func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSecurityGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7884,7 +7884,7 @@ func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSecurityGroup(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)} @@ -7917,14 +7917,14 @@ func awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response *smithyh } } -type awsEc2query_deserializeOpCreateTags struct { +type awsEc2query_deserializeOpCreateSnapshot struct { } -func (*awsEc2query_deserializeOpCreateTags) ID() string { +func (*awsEc2query_deserializeOpCreateSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7938,21 +7938,44 @@ func (m *awsEc2query_deserializeOpCreateTags) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshot(response, &metadata) } - output := &CreateTagsOutput{} + output := &CreateSnapshotOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateSnapshotOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7985,14 +8008,14 @@ func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, met } } -type awsEc2query_deserializeOpCreateTrafficMirrorFilter struct { +type awsEc2query_deserializeOpCreateSnapshots struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string { +func (*awsEc2query_deserializeOpCreateSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSnapshots) 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) @@ -8006,9 +8029,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshots(response, &metadata) } - output := &CreateTrafficMirrorFilterOutput{} + output := &CreateSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -8029,7 +8052,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSnapshotsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8043,7 +8066,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSnapshots(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)} @@ -8076,14 +8099,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response *smithyhtt } } -type awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpCreateSpotDatafeedSubscription struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpCreateSpotDatafeedSubscription) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) 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) @@ -8097,9 +8120,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response, &metadata) } - output := &CreateTrafficMirrorFilterRuleOutput{} + output := &CreateSpotDatafeedSubscriptionOutput{} out.Result = output var buff [1024]byte @@ -8120,7 +8143,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSpotDatafeedSubscriptionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8134,7 +8157,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(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)} @@ -8167,14 +8190,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpCreateTrafficMirrorSession struct { +type awsEc2query_deserializeOpCreateStoreImageTask struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpCreateStoreImageTask) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateStoreImageTask) 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) @@ -8188,9 +8211,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateStoreImageTask(response, &metadata) } - output := &CreateTrafficMirrorSessionOutput{} + output := &CreateStoreImageTaskOutput{} out.Result = output var buff [1024]byte @@ -8211,7 +8234,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateStoreImageTaskOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8225,7 +8248,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateStoreImageTask(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)} @@ -8258,14 +8281,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response *smithyht } } -type awsEc2query_deserializeOpCreateTrafficMirrorTarget struct { +type awsEc2query_deserializeOpCreateSubnet struct { } -func (*awsEc2query_deserializeOpCreateTrafficMirrorTarget) ID() string { +func (*awsEc2query_deserializeOpCreateSubnet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTrafficMirrorTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSubnet) 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) @@ -8279,9 +8302,9 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorTarget) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSubnet(response, &metadata) } - output := &CreateTrafficMirrorTargetOutput{} + output := &CreateSubnetOutput{} out.Result = output var buff [1024]byte @@ -8302,7 +8325,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorTarget) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorTargetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSubnetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8316,7 +8339,7 @@ func (m *awsEc2query_deserializeOpCreateTrafficMirrorTarget) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSubnet(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)} @@ -8349,14 +8372,14 @@ func awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(response *smithyhtt } } -type awsEc2query_deserializeOpCreateTransitGateway struct { +type awsEc2query_deserializeOpCreateSubnetCidrReservation struct { } -func (*awsEc2query_deserializeOpCreateTransitGateway) ID() string { +func (*awsEc2query_deserializeOpCreateSubnetCidrReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) 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) @@ -8370,9 +8393,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response, &metadata) } - output := &CreateTransitGatewayOutput{} + output := &CreateSubnetCidrReservationOutput{} out.Result = output var buff [1024]byte @@ -8393,7 +8416,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGateway) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8407,7 +8430,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGateway) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(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)} @@ -8440,14 +8463,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpCreateTransitGatewayConnect struct { +type awsEc2query_deserializeOpCreateTags struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayConnect) ID() string { +func (*awsEc2query_deserializeOpCreateTags) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayConnect) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTags) 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) @@ -8461,9 +8484,77 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayConnect) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata) } - output := &CreateTransitGatewayConnectOutput{} + output := &CreateTagsOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorCreateTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpCreateTrafficMirrorFilter struct { +} + +func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) 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, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata) + } + output := &CreateTrafficMirrorFilterOutput{} out.Result = output var buff [1024]byte @@ -8484,7 +8575,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayConnect) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayConnectOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8498,7 +8589,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayConnect) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(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)} @@ -8531,14 +8622,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(response *smithyh } } -type awsEc2query_deserializeOpCreateTransitGatewayConnectPeer struct { +type awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) 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) @@ -8552,9 +8643,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata) } - output := &CreateTransitGatewayConnectPeerOutput{} + output := &CreateTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -8575,7 +8666,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayConnectPeerOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8589,7 +8680,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(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)} @@ -8622,14 +8713,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(response *smi } } -type awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain struct { +type awsEc2query_deserializeOpCreateTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) 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) @@ -8643,9 +8734,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata) } - output := &CreateTransitGatewayMulticastDomainOutput{} + output := &CreateTrafficMirrorSessionOutput{} out.Result = output var buff [1024]byte @@ -8666,7 +8757,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayMulticastDomainOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8680,7 +8771,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(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)} @@ -8713,14 +8804,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(response } } -type awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpCreateTrafficMirrorTarget struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpCreateTrafficMirrorTarget) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTrafficMirrorTarget) 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) @@ -8734,9 +8825,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(response, &metadata) } - output := &CreateTransitGatewayPeeringAttachmentOutput{} + output := &CreateTrafficMirrorTargetOutput{} out.Result = output var buff [1024]byte @@ -8757,7 +8848,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPeeringAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorTargetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8771,7 +8862,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(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)} @@ -8804,14 +8895,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference struct { +type awsEc2query_deserializeOpCreateTransitGateway struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGateway) 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) @@ -8825,9 +8916,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGateway(response, &metadata) } - output := &CreateTransitGatewayPrefixListReferenceOutput{} + output := &CreateTransitGatewayOutput{} out.Result = output var buff [1024]byte @@ -8848,7 +8939,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPrefixListReferenceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8862,7 +8953,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGateway(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)} @@ -8895,14 +8986,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(respo } } -type awsEc2query_deserializeOpCreateTransitGatewayRoute struct { +type awsEc2query_deserializeOpCreateTransitGatewayConnect struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayConnect) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayConnect) 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) @@ -8916,9 +9007,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayRoute) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(response, &metadata) } - output := &CreateTransitGatewayRouteOutput{} + output := &CreateTransitGatewayConnectOutput{} out.Result = output var buff [1024]byte @@ -8939,7 +9030,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayRoute) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayConnectOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8953,7 +9044,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayRoute) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(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)} @@ -8986,14 +9077,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(response *smithyhtt } } -type awsEc2query_deserializeOpCreateTransitGatewayRouteTable struct { +type awsEc2query_deserializeOpCreateTransitGatewayConnectPeer struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayRouteTable) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) 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) @@ -9007,9 +9098,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTable) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(response, &metadata) } - output := &CreateTransitGatewayRouteTableOutput{} + output := &CreateTransitGatewayConnectPeerOutput{} out.Result = output var buff [1024]byte @@ -9030,7 +9121,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTable) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteTableOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayConnectPeerOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9044,7 +9135,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTable) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(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)} @@ -9077,14 +9168,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(response *smit } } -type awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain struct { } -func (*awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) 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) @@ -9098,9 +9189,9 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(response, &metadata) } - output := &CreateTransitGatewayVpcAttachmentOutput{} + output := &CreateTransitGatewayMulticastDomainOutput{} out.Result = output var buff [1024]byte @@ -9121,7 +9212,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayMulticastDomainOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9135,7 +9226,7 @@ func (m *awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(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)} @@ -9168,14 +9259,14 @@ func awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpCreateVolume struct { +type awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpCreateVolume) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) 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) @@ -9189,9 +9280,9 @@ func (m *awsEc2query_deserializeOpCreateVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(response, &metadata) } - output := &CreateVolumeOutput{} + output := &CreateTransitGatewayPeeringAttachmentOutput{} out.Result = output var buff [1024]byte @@ -9212,7 +9303,7 @@ func (m *awsEc2query_deserializeOpCreateVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPeeringAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9226,7 +9317,7 @@ func (m *awsEc2query_deserializeOpCreateVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(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)} @@ -9259,14 +9350,14 @@ func awsEc2query_deserializeOpErrorCreateVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpCreateVpc struct { +type awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference struct { } -func (*awsEc2query_deserializeOpCreateVpc) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) 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) @@ -9280,9 +9371,9 @@ func (m *awsEc2query_deserializeOpCreateVpc) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpc(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(response, &metadata) } - output := &CreateVpcOutput{} + output := &CreateTransitGatewayPrefixListReferenceOutput{} out.Result = output var buff [1024]byte @@ -9303,7 +9394,7 @@ func (m *awsEc2query_deserializeOpCreateVpc) HandleDeserialize(ctx context.Conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpcOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPrefixListReferenceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9317,7 +9408,7 @@ func (m *awsEc2query_deserializeOpCreateVpc) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(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)} @@ -9350,14 +9441,14 @@ func awsEc2query_deserializeOpErrorCreateVpc(response *smithyhttp.Response, meta } } -type awsEc2query_deserializeOpCreateVpcEndpoint struct { +type awsEc2query_deserializeOpCreateTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpCreateVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayRoute) 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) @@ -9371,9 +9462,9 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(response, &metadata) } - output := &CreateVpcEndpointOutput{} + output := &CreateTransitGatewayRouteOutput{} out.Result = output var buff [1024]byte @@ -9394,7 +9485,7 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9408,7 +9499,7 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(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)} @@ -9441,14 +9532,14 @@ func awsEc2query_deserializeOpErrorCreateVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpCreateTransitGatewayRouteTable struct { } -func (*awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTable) 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) @@ -9462,9 +9553,9 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(response, &metadata) } - output := &CreateVpcEndpointConnectionNotificationOutput{} + output := &CreateTransitGatewayRouteTableOutput{} out.Result = output var buff [1024]byte @@ -9485,7 +9576,7 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteTableOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9499,7 +9590,7 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(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)} @@ -9532,14 +9623,14 @@ func awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) 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) @@ -9553,9 +9644,9 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(response, &metadata) } - output := &CreateVpcEndpointServiceConfigurationOutput{} + output := &CreateTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -9576,7 +9667,7 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9590,7 +9681,7 @@ func (m *awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(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)} @@ -9623,14 +9714,14 @@ func awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpCreateVpcPeeringConnection struct { +type awsEc2query_deserializeOpCreateVolume struct { } -func (*awsEc2query_deserializeOpCreateVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpCreateVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVolume) 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) @@ -9644,9 +9735,9 @@ func (m *awsEc2query_deserializeOpCreateVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVolume(response, &metadata) } - output := &CreateVpcPeeringConnectionOutput{} + output := &CreateVolumeOutput{} out.Result = output var buff [1024]byte @@ -9667,7 +9758,7 @@ func (m *awsEc2query_deserializeOpCreateVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9681,7 +9772,7 @@ func (m *awsEc2query_deserializeOpCreateVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVolume(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)} @@ -9714,14 +9805,14 @@ func awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpCreateVpnConnection struct { +type awsEc2query_deserializeOpCreateVpc struct { } -func (*awsEc2query_deserializeOpCreateVpnConnection) ID() string { +func (*awsEc2query_deserializeOpCreateVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpc) 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) @@ -9735,9 +9826,9 @@ func (m *awsEc2query_deserializeOpCreateVpnConnection) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpnConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpc(response, &metadata) } - output := &CreateVpnConnectionOutput{} + output := &CreateVpcOutput{} out.Result = output var buff [1024]byte @@ -9758,7 +9849,7 @@ func (m *awsEc2query_deserializeOpCreateVpnConnection) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpnConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9772,7 +9863,7 @@ func (m *awsEc2query_deserializeOpCreateVpnConnection) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpc(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)} @@ -9805,14 +9896,14 @@ func awsEc2query_deserializeOpErrorCreateVpnConnection(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpCreateVpnConnectionRoute struct { +type awsEc2query_deserializeOpCreateVpcEndpoint struct { } -func (*awsEc2query_deserializeOpCreateVpnConnectionRoute) ID() string { +func (*awsEc2query_deserializeOpCreateVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpnConnectionRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpcEndpoint) 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) @@ -9826,21 +9917,44 @@ func (m *awsEc2query_deserializeOpCreateVpnConnectionRoute) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpoint(response, &metadata) } - output := &CreateVpnConnectionRouteOutput{} + output := &CreateVpcEndpointOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateVpcEndpointOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpcEndpoint(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)} @@ -9873,14 +9987,14 @@ func awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(response *smithyhttp } } -type awsEc2query_deserializeOpCreateVpnGateway struct { +type awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpCreateVpnGateway) ID() string { +func (*awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateVpnGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) 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) @@ -9894,9 +10008,9 @@ func (m *awsEc2query_deserializeOpCreateVpnGateway) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateVpnGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(response, &metadata) } - output := &CreateVpnGatewayOutput{} + output := &CreateVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -9917,7 +10031,7 @@ func (m *awsEc2query_deserializeOpCreateVpnGateway) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateVpnGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9931,7 +10045,7 @@ func (m *awsEc2query_deserializeOpCreateVpnGateway) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateVpnGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(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)} @@ -9964,14 +10078,14 @@ func awsEc2query_deserializeOpErrorCreateVpnGateway(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDeleteCarrierGateway struct { +type awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpDeleteCarrierGateway) ID() string { +func (*awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteCarrierGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) 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) @@ -9985,9 +10099,9 @@ func (m *awsEc2query_deserializeOpDeleteCarrierGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteCarrierGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(response, &metadata) } - output := &DeleteCarrierGatewayOutput{} + output := &CreateVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -10008,7 +10122,7 @@ func (m *awsEc2query_deserializeOpDeleteCarrierGateway) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteCarrierGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10022,7 +10136,7 @@ func (m *awsEc2query_deserializeOpDeleteCarrierGateway) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteCarrierGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(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)} @@ -10055,14 +10169,14 @@ func awsEc2query_deserializeOpErrorDeleteCarrierGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDeleteClientVpnEndpoint struct { +type awsEc2query_deserializeOpCreateVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpDeleteClientVpnEndpoint) ID() string { +func (*awsEc2query_deserializeOpCreateVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteClientVpnEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpcPeeringConnection) 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) @@ -10076,9 +10190,9 @@ func (m *awsEc2query_deserializeOpDeleteClientVpnEndpoint) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(response, &metadata) } - output := &DeleteClientVpnEndpointOutput{} + output := &CreateVpcPeeringConnectionOutput{} out.Result = output var buff [1024]byte @@ -10099,7 +10213,7 @@ func (m *awsEc2query_deserializeOpDeleteClientVpnEndpoint) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteClientVpnEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateVpcPeeringConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10113,7 +10227,98 @@ func (m *awsEc2query_deserializeOpDeleteClientVpnEndpoint) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpCreateVpnConnection struct { +} + +func (*awsEc2query_deserializeOpCreateVpnConnection) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateVpnConnection) 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, awsEc2query_deserializeOpErrorCreateVpnConnection(response, &metadata) + } + output := &CreateVpnConnectionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateVpnConnectionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorCreateVpnConnection(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)} @@ -10146,14 +10351,14 @@ func awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(response *smithyhttp. } } -type awsEc2query_deserializeOpDeleteClientVpnRoute struct { +type awsEc2query_deserializeOpCreateVpnConnectionRoute struct { } -func (*awsEc2query_deserializeOpDeleteClientVpnRoute) ID() string { +func (*awsEc2query_deserializeOpCreateVpnConnectionRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteClientVpnRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpnConnectionRoute) 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) @@ -10167,44 +10372,21 @@ func (m *awsEc2query_deserializeOpDeleteClientVpnRoute) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteClientVpnRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(response, &metadata) } - output := &DeleteClientVpnRouteOutput{} + output := &CreateVpnConnectionRouteOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteClientVpnRouteOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteClientVpnRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(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)} @@ -10237,14 +10419,14 @@ func awsEc2query_deserializeOpErrorDeleteClientVpnRoute(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDeleteCustomerGateway struct { +type awsEc2query_deserializeOpCreateVpnGateway struct { } -func (*awsEc2query_deserializeOpDeleteCustomerGateway) ID() string { +func (*awsEc2query_deserializeOpCreateVpnGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteCustomerGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateVpnGateway) 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) @@ -10258,21 +10440,44 @@ func (m *awsEc2query_deserializeOpDeleteCustomerGateway) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteCustomerGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateVpnGateway(response, &metadata) } - output := &DeleteCustomerGatewayOutput{} + output := &CreateVpnGatewayOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateVpnGatewayOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteCustomerGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateVpnGateway(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)} @@ -10305,14 +10510,14 @@ func awsEc2query_deserializeOpErrorDeleteCustomerGateway(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDeleteDhcpOptions struct { +type awsEc2query_deserializeOpDeleteCarrierGateway struct { } -func (*awsEc2query_deserializeOpDeleteDhcpOptions) ID() string { +func (*awsEc2query_deserializeOpDeleteCarrierGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteDhcpOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteCarrierGateway) 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) @@ -10326,21 +10531,44 @@ func (m *awsEc2query_deserializeOpDeleteDhcpOptions) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteDhcpOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteCarrierGateway(response, &metadata) } - output := &DeleteDhcpOptionsOutput{} + output := &DeleteCarrierGatewayOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteCarrierGatewayOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteDhcpOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteCarrierGateway(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)} @@ -10373,14 +10601,14 @@ func awsEc2query_deserializeOpErrorDeleteDhcpOptions(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway struct { +type awsEc2query_deserializeOpDeleteClientVpnEndpoint struct { } -func (*awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) ID() string { +func (*awsEc2query_deserializeOpDeleteClientVpnEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteClientVpnEndpoint) 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) @@ -10394,9 +10622,9 @@ func (m *awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(response, &metadata) } - output := &DeleteEgressOnlyInternetGatewayOutput{} + output := &DeleteClientVpnEndpointOutput{} out.Result = output var buff [1024]byte @@ -10417,7 +10645,7 @@ func (m *awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteEgressOnlyInternetGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteClientVpnEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10431,7 +10659,7 @@ func (m *awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(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)} @@ -10464,14 +10692,14 @@ func awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(response *smi } } -type awsEc2query_deserializeOpDeleteFleets struct { +type awsEc2query_deserializeOpDeleteClientVpnRoute struct { } -func (*awsEc2query_deserializeOpDeleteFleets) ID() string { +func (*awsEc2query_deserializeOpDeleteClientVpnRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteClientVpnRoute) 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) @@ -10485,9 +10713,9 @@ func (m *awsEc2query_deserializeOpDeleteFleets) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteFleets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteClientVpnRoute(response, &metadata) } - output := &DeleteFleetsOutput{} + output := &DeleteClientVpnRouteOutput{} out.Result = output var buff [1024]byte @@ -10508,7 +10736,7 @@ func (m *awsEc2query_deserializeOpDeleteFleets) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteFleetsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteClientVpnRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10522,7 +10750,7 @@ func (m *awsEc2query_deserializeOpDeleteFleets) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteClientVpnRoute(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)} @@ -10555,14 +10783,14 @@ func awsEc2query_deserializeOpErrorDeleteFleets(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpDeleteFlowLogs struct { +type awsEc2query_deserializeOpDeleteCustomerGateway struct { } -func (*awsEc2query_deserializeOpDeleteFlowLogs) ID() string { +func (*awsEc2query_deserializeOpDeleteCustomerGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteFlowLogs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteCustomerGateway) 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) @@ -10576,44 +10804,89 @@ func (m *awsEc2query_deserializeOpDeleteFlowLogs) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteFlowLogs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteCustomerGateway(response, &metadata) } - output := &DeleteFlowLogsOutput{} + output := &DeleteCustomerGatewayOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteFlowLogsOutput(&output, decoder) + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteCustomerGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) 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 + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsEc2query_deserializeOpDeleteDhcpOptions struct { +} + +func (*awsEc2query_deserializeOpDeleteDhcpOptions) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteDhcpOptions) 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, awsEc2query_deserializeOpErrorDeleteDhcpOptions(response, &metadata) + } + output := &DeleteDhcpOptionsOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteFlowLogs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteDhcpOptions(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)} @@ -10646,14 +10919,14 @@ func awsEc2query_deserializeOpErrorDeleteFlowLogs(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpDeleteFpgaImage struct { +type awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway struct { } -func (*awsEc2query_deserializeOpDeleteFpgaImage) ID() string { +func (*awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteFpgaImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) 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) @@ -10667,9 +10940,9 @@ func (m *awsEc2query_deserializeOpDeleteFpgaImage) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteFpgaImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(response, &metadata) } - output := &DeleteFpgaImageOutput{} + output := &DeleteEgressOnlyInternetGatewayOutput{} out.Result = output var buff [1024]byte @@ -10690,7 +10963,7 @@ func (m *awsEc2query_deserializeOpDeleteFpgaImage) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteEgressOnlyInternetGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10704,7 +10977,7 @@ func (m *awsEc2query_deserializeOpDeleteFpgaImage) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteFpgaImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(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)} @@ -10737,14 +11010,14 @@ func awsEc2query_deserializeOpErrorDeleteFpgaImage(response *smithyhttp.Response } } -type awsEc2query_deserializeOpDeleteInstanceEventWindow struct { +type awsEc2query_deserializeOpDeleteFleets struct { } -func (*awsEc2query_deserializeOpDeleteInstanceEventWindow) ID() string { +func (*awsEc2query_deserializeOpDeleteFleets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteFleets) 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) @@ -10758,9 +11031,9 @@ func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteFleets(response, &metadata) } - output := &DeleteInstanceEventWindowOutput{} + output := &DeleteFleetsOutput{} out.Result = output var buff [1024]byte @@ -10781,7 +11054,7 @@ func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteFleetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10795,7 +11068,7 @@ func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteFleets(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)} @@ -10828,14 +11101,14 @@ func awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response *smithyhtt } } -type awsEc2query_deserializeOpDeleteInternetGateway struct { +type awsEc2query_deserializeOpDeleteFlowLogs struct { } -func (*awsEc2query_deserializeOpDeleteInternetGateway) ID() string { +func (*awsEc2query_deserializeOpDeleteFlowLogs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteInternetGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteFlowLogs) 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) @@ -10849,21 +11122,44 @@ func (m *awsEc2query_deserializeOpDeleteInternetGateway) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteInternetGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteFlowLogs(response, &metadata) } - output := &DeleteInternetGatewayOutput{} + output := &DeleteFlowLogsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteFlowLogsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteInternetGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteFlowLogs(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)} @@ -10896,14 +11192,14 @@ func awsEc2query_deserializeOpErrorDeleteInternetGateway(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDeleteKeyPair struct { +type awsEc2query_deserializeOpDeleteFpgaImage struct { } -func (*awsEc2query_deserializeOpDeleteKeyPair) ID() string { +func (*awsEc2query_deserializeOpDeleteFpgaImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteKeyPair) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteFpgaImage) 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) @@ -10917,21 +11213,44 @@ func (m *awsEc2query_deserializeOpDeleteKeyPair) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteKeyPair(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteFpgaImage(response, &metadata) } - output := &DeleteKeyPairOutput{} + output := &DeleteFpgaImageOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteKeyPair(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteFpgaImage(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)} @@ -10964,14 +11283,14 @@ func awsEc2query_deserializeOpErrorDeleteKeyPair(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpDeleteLaunchTemplate struct { +type awsEc2query_deserializeOpDeleteInstanceEventWindow struct { } -func (*awsEc2query_deserializeOpDeleteLaunchTemplate) ID() string { +func (*awsEc2query_deserializeOpDeleteInstanceEventWindow) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) 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) @@ -10985,9 +11304,9 @@ func (m *awsEc2query_deserializeOpDeleteLaunchTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteLaunchTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response, &metadata) } - output := &DeleteLaunchTemplateOutput{} + output := &DeleteInstanceEventWindowOutput{} out.Result = output var buff [1024]byte @@ -11008,7 +11327,7 @@ func (m *awsEc2query_deserializeOpDeleteLaunchTemplate) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteLaunchTemplateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11022,7 +11341,7 @@ func (m *awsEc2query_deserializeOpDeleteLaunchTemplate) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(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)} @@ -11055,14 +11374,14 @@ func awsEc2query_deserializeOpErrorDeleteLaunchTemplate(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDeleteLaunchTemplateVersions struct { +type awsEc2query_deserializeOpDeleteInternetGateway struct { } -func (*awsEc2query_deserializeOpDeleteLaunchTemplateVersions) ID() string { +func (*awsEc2query_deserializeOpDeleteInternetGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteLaunchTemplateVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteInternetGateway) 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) @@ -11076,9 +11395,77 @@ func (m *awsEc2query_deserializeOpDeleteLaunchTemplateVersions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteInternetGateway(response, &metadata) } - output := &DeleteLaunchTemplateVersionsOutput{} + output := &DeleteInternetGatewayOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteInternetGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDeleteIpam struct { +} + +func (*awsEc2query_deserializeOpDeleteIpam) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteIpam) 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, awsEc2query_deserializeOpErrorDeleteIpam(response, &metadata) + } + output := &DeleteIpamOutput{} out.Result = output var buff [1024]byte @@ -11099,7 +11486,7 @@ func (m *awsEc2query_deserializeOpDeleteLaunchTemplateVersions) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteLaunchTemplateVersionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteIpamOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11113,7 +11500,7 @@ func (m *awsEc2query_deserializeOpDeleteLaunchTemplateVersions) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteIpam(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)} @@ -11146,14 +11533,14 @@ func awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(response *smithy } } -type awsEc2query_deserializeOpDeleteLocalGatewayRoute struct { +type awsEc2query_deserializeOpDeleteIpamPool struct { } -func (*awsEc2query_deserializeOpDeleteLocalGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpDeleteIpamPool) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteLocalGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteIpamPool) 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) @@ -11167,9 +11554,9 @@ func (m *awsEc2query_deserializeOpDeleteLocalGatewayRoute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteIpamPool(response, &metadata) } - output := &DeleteLocalGatewayRouteOutput{} + output := &DeleteIpamPoolOutput{} out.Result = output var buff [1024]byte @@ -11190,7 +11577,7 @@ func (m *awsEc2query_deserializeOpDeleteLocalGatewayRoute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteIpamPoolOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11204,7 +11591,7 @@ func (m *awsEc2query_deserializeOpDeleteLocalGatewayRoute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteIpamPool(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)} @@ -11237,14 +11624,14 @@ func awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(response *smithyhttp. } } -type awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation struct { +type awsEc2query_deserializeOpDeleteIpamScope struct { } -func (*awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) ID() string { +func (*awsEc2query_deserializeOpDeleteIpamScope) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteIpamScope) 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) @@ -11258,9 +11645,9 @@ func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteIpamScope(response, &metadata) } - output := &DeleteLocalGatewayRouteTableVpcAssociationOutput{} + output := &DeleteIpamScopeOutput{} out.Result = output var buff [1024]byte @@ -11281,7 +11668,7 @@ func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteIpamScopeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11295,7 +11682,7 @@ func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteIpamScope(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)} @@ -11328,14 +11715,14 @@ func awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(re } } -type awsEc2query_deserializeOpDeleteManagedPrefixList struct { +type awsEc2query_deserializeOpDeleteKeyPair struct { } -func (*awsEc2query_deserializeOpDeleteManagedPrefixList) ID() string { +func (*awsEc2query_deserializeOpDeleteKeyPair) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteKeyPair) 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) @@ -11349,9 +11736,77 @@ func (m *awsEc2query_deserializeOpDeleteManagedPrefixList) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteManagedPrefixList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteKeyPair(response, &metadata) } - output := &DeleteManagedPrefixListOutput{} + output := &DeleteKeyPairOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteKeyPair(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDeleteLaunchTemplate struct { +} + +func (*awsEc2query_deserializeOpDeleteLaunchTemplate) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteLaunchTemplate) 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, awsEc2query_deserializeOpErrorDeleteLaunchTemplate(response, &metadata) + } + output := &DeleteLaunchTemplateOutput{} out.Result = output var buff [1024]byte @@ -11372,7 +11827,7 @@ func (m *awsEc2query_deserializeOpDeleteManagedPrefixList) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteManagedPrefixListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteLaunchTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11386,7 +11841,7 @@ func (m *awsEc2query_deserializeOpDeleteManagedPrefixList) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteLaunchTemplate(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)} @@ -11419,14 +11874,14 @@ func awsEc2query_deserializeOpErrorDeleteManagedPrefixList(response *smithyhttp. } } -type awsEc2query_deserializeOpDeleteNatGateway struct { +type awsEc2query_deserializeOpDeleteLaunchTemplateVersions struct { } -func (*awsEc2query_deserializeOpDeleteNatGateway) ID() string { +func (*awsEc2query_deserializeOpDeleteLaunchTemplateVersions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteNatGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteLaunchTemplateVersions) 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) @@ -11440,9 +11895,9 @@ func (m *awsEc2query_deserializeOpDeleteNatGateway) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteNatGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(response, &metadata) } - output := &DeleteNatGatewayOutput{} + output := &DeleteLaunchTemplateVersionsOutput{} out.Result = output var buff [1024]byte @@ -11463,7 +11918,7 @@ func (m *awsEc2query_deserializeOpDeleteNatGateway) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteNatGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteLaunchTemplateVersionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11477,7 +11932,7 @@ func (m *awsEc2query_deserializeOpDeleteNatGateway) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteNatGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(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)} @@ -11510,14 +11965,14 @@ func awsEc2query_deserializeOpErrorDeleteNatGateway(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDeleteNetworkAcl struct { +type awsEc2query_deserializeOpDeleteLocalGatewayRoute struct { } -func (*awsEc2query_deserializeOpDeleteNetworkAcl) ID() string { +func (*awsEc2query_deserializeOpDeleteLocalGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteNetworkAcl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteLocalGatewayRoute) 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) @@ -11531,89 +11986,44 @@ func (m *awsEc2query_deserializeOpDeleteNetworkAcl) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkAcl(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(response, &metadata) } - output := &DeleteNetworkAclOutput{} + output := &DeleteLocalGatewayRouteOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDeleteNetworkAcl(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)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} - -type awsEc2query_deserializeOpDeleteNetworkAclEntry struct { -} -func (*awsEc2query_deserializeOpDeleteNetworkAclEntry) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpDeleteNetworkAclEntry) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteOutput(&output, decoder) 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, awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(response, &metadata) - } - output := &DeleteNetworkAclEntryOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(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)} @@ -11646,14 +12056,14 @@ func awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis struct { +type awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation struct { } -func (*awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) 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) @@ -11667,9 +12077,9 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(response, &metadata) } - output := &DeleteNetworkInsightsAnalysisOutput{} + output := &DeleteLocalGatewayRouteTableVpcAssociationOutput{} out.Result = output var buff [1024]byte @@ -11690,7 +12100,7 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11704,7 +12114,7 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(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)} @@ -11737,14 +12147,14 @@ func awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(response *smith } } -type awsEc2query_deserializeOpDeleteNetworkInsightsPath struct { +type awsEc2query_deserializeOpDeleteManagedPrefixList struct { } -func (*awsEc2query_deserializeOpDeleteNetworkInsightsPath) ID() string { +func (*awsEc2query_deserializeOpDeleteManagedPrefixList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteNetworkInsightsPath) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteManagedPrefixList) 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) @@ -11758,9 +12168,9 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInsightsPath) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteManagedPrefixList(response, &metadata) } - output := &DeleteNetworkInsightsPathOutput{} + output := &DeleteManagedPrefixListOutput{} out.Result = output var buff [1024]byte @@ -11781,7 +12191,7 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInsightsPath) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsPathOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteManagedPrefixListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11795,7 +12205,7 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInsightsPath) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteManagedPrefixList(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)} @@ -11828,14 +12238,14 @@ func awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(response *smithyhtt } } -type awsEc2query_deserializeOpDeleteNetworkInterface struct { +type awsEc2query_deserializeOpDeleteNatGateway struct { } -func (*awsEc2query_deserializeOpDeleteNetworkInterface) ID() string { +func (*awsEc2query_deserializeOpDeleteNatGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteNetworkInterface) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNatGateway) 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) @@ -11849,21 +12259,44 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInterface) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInterface(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNatGateway(response, &metadata) } - output := &DeleteNetworkInterfaceOutput{} + output := &DeleteNatGatewayOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteNatGatewayOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteNetworkInterface(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNatGateway(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)} @@ -11896,14 +12329,14 @@ func awsEc2query_deserializeOpErrorDeleteNetworkInterface(response *smithyhttp.R } } -type awsEc2query_deserializeOpDeleteNetworkInterfacePermission struct { +type awsEc2query_deserializeOpDeleteNetworkAcl struct { } -func (*awsEc2query_deserializeOpDeleteNetworkInterfacePermission) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkAcl) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteNetworkInterfacePermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkAcl) 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) @@ -11917,44 +12350,21 @@ func (m *awsEc2query_deserializeOpDeleteNetworkInterfacePermission) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkAcl(response, &metadata) } - output := &DeleteNetworkInterfacePermissionOutput{} + output := &DeleteNetworkAclOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteNetworkInterfacePermissionOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkAcl(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)} @@ -11987,14 +12397,14 @@ func awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(response *sm } } -type awsEc2query_deserializeOpDeletePlacementGroup struct { +type awsEc2query_deserializeOpDeleteNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpDeletePlacementGroup) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeletePlacementGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkAclEntry) 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) @@ -12008,9 +12418,9 @@ func (m *awsEc2query_deserializeOpDeletePlacementGroup) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeletePlacementGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(response, &metadata) } - output := &DeletePlacementGroupOutput{} + output := &DeleteNetworkAclEntryOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -12022,7 +12432,7 @@ func (m *awsEc2query_deserializeOpDeletePlacementGroup) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDeletePlacementGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(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)} @@ -12055,14 +12465,14 @@ func awsEc2query_deserializeOpErrorDeletePlacementGroup(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDeleteQueuedReservedInstances struct { +type awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope struct { } -func (*awsEc2query_deserializeOpDeleteQueuedReservedInstances) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteQueuedReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope) 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) @@ -12076,9 +12486,9 @@ func (m *awsEc2query_deserializeOpDeleteQueuedReservedInstances) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScope(response, &metadata) } - output := &DeleteQueuedReservedInstancesOutput{} + output := &DeleteNetworkInsightsAccessScopeOutput{} out.Result = output var buff [1024]byte @@ -12099,7 +12509,7 @@ func (m *awsEc2query_deserializeOpDeleteQueuedReservedInstances) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteQueuedReservedInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAccessScopeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12113,7 +12523,7 @@ func (m *awsEc2query_deserializeOpDeleteQueuedReservedInstances) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScope(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)} @@ -12146,14 +12556,14 @@ func awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(response *smith } } -type awsEc2query_deserializeOpDeleteRoute struct { +type awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis struct { } -func (*awsEc2query_deserializeOpDeleteRoute) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis) 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) @@ -12167,21 +12577,44 @@ func (m *awsEc2query_deserializeOpDeleteRoute) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScopeAnalysis(response, &metadata) } - output := &DeleteRouteOutput{} + output := &DeleteNetworkInsightsAccessScopeAnalysisOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAccessScopeAnalysisOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScopeAnalysis(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)} @@ -12214,14 +12647,14 @@ func awsEc2query_deserializeOpErrorDeleteRoute(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpDeleteRouteTable struct { +type awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis struct { } -func (*awsEc2query_deserializeOpDeleteRouteTable) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) 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) @@ -12235,21 +12668,44 @@ func (m *awsEc2query_deserializeOpDeleteRouteTable) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(response, &metadata) } - output := &DeleteRouteTableOutput{} + output := &DeleteNetworkInsightsAnalysisOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAnalysisOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(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)} @@ -12282,14 +12738,14 @@ func awsEc2query_deserializeOpErrorDeleteRouteTable(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDeleteSecurityGroup struct { +type awsEc2query_deserializeOpDeleteNetworkInsightsPath struct { } -func (*awsEc2query_deserializeOpDeleteSecurityGroup) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkInsightsPath) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteSecurityGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkInsightsPath) 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) @@ -12303,21 +12759,44 @@ func (m *awsEc2query_deserializeOpDeleteSecurityGroup) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteSecurityGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(response, &metadata) } - output := &DeleteSecurityGroupOutput{} + output := &DeleteNetworkInsightsPathOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsPathOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteSecurityGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(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)} @@ -12350,14 +12829,14 @@ func awsEc2query_deserializeOpErrorDeleteSecurityGroup(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDeleteSnapshot struct { +type awsEc2query_deserializeOpDeleteNetworkInterface struct { } -func (*awsEc2query_deserializeOpDeleteSnapshot) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkInterface) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkInterface) 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) @@ -12371,9 +12850,9 @@ func (m *awsEc2query_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteSnapshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInterface(response, &metadata) } - output := &DeleteSnapshotOutput{} + output := &DeleteNetworkInterfaceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -12385,7 +12864,7 @@ func (m *awsEc2query_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkInterface(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)} @@ -12418,14 +12897,14 @@ func awsEc2query_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpDeleteSpotDatafeedSubscription struct { +type awsEc2query_deserializeOpDeleteNetworkInterfacePermission struct { } -func (*awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) ID() string { +func (*awsEc2query_deserializeOpDeleteNetworkInterfacePermission) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteNetworkInterfacePermission) 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) @@ -12439,21 +12918,44 @@ func (m *awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(response, &metadata) } - output := &DeleteSpotDatafeedSubscriptionOutput{} + output := &DeleteNetworkInterfacePermissionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteNetworkInterfacePermissionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(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)} @@ -12486,14 +12988,14 @@ func awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(response *smit } } -type awsEc2query_deserializeOpDeleteSubnet struct { +type awsEc2query_deserializeOpDeletePlacementGroup struct { } -func (*awsEc2query_deserializeOpDeleteSubnet) ID() string { +func (*awsEc2query_deserializeOpDeletePlacementGroup) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteSubnet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeletePlacementGroup) 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) @@ -12507,9 +13009,9 @@ func (m *awsEc2query_deserializeOpDeleteSubnet) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeletePlacementGroup(response, &metadata) } - output := &DeleteSubnetOutput{} + output := &DeletePlacementGroupOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -12521,7 +13023,7 @@ func (m *awsEc2query_deserializeOpDeleteSubnet) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteSubnet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeletePlacementGroup(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)} @@ -12554,14 +13056,14 @@ func awsEc2query_deserializeOpErrorDeleteSubnet(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpDeleteSubnetCidrReservation struct { +type awsEc2query_deserializeOpDeletePublicIpv4Pool struct { } -func (*awsEc2query_deserializeOpDeleteSubnetCidrReservation) ID() string { +func (*awsEc2query_deserializeOpDeletePublicIpv4Pool) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeletePublicIpv4Pool) 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) @@ -12575,9 +13077,9 @@ func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeletePublicIpv4Pool(response, &metadata) } - output := &DeleteSubnetCidrReservationOutput{} + output := &DeletePublicIpv4PoolOutput{} out.Result = output var buff [1024]byte @@ -12598,7 +13100,7 @@ func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeletePublicIpv4PoolOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12612,7 +13114,7 @@ func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeletePublicIpv4Pool(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)} @@ -12645,14 +13147,14 @@ func awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response *smithyh } } -type awsEc2query_deserializeOpDeleteTags struct { +type awsEc2query_deserializeOpDeleteQueuedReservedInstances struct { } -func (*awsEc2query_deserializeOpDeleteTags) ID() string { +func (*awsEc2query_deserializeOpDeleteQueuedReservedInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteQueuedReservedInstances) 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) @@ -12666,21 +13168,44 @@ func (m *awsEc2query_deserializeOpDeleteTags) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTags(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(response, &metadata) } - output := &DeleteTagsOutput{} + output := &DeleteQueuedReservedInstancesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteQueuedReservedInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(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)} @@ -12713,14 +13238,14 @@ func awsEc2query_deserializeOpErrorDeleteTags(response *smithyhttp.Response, met } } -type awsEc2query_deserializeOpDeleteTrafficMirrorFilter struct { +type awsEc2query_deserializeOpDeleteRoute struct { } -func (*awsEc2query_deserializeOpDeleteTrafficMirrorFilter) ID() string { +func (*awsEc2query_deserializeOpDeleteRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteRoute) 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) @@ -12734,44 +13259,21 @@ func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilter) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteRoute(response, &metadata) } - output := &DeleteTrafficMirrorFilterOutput{} + output := &DeleteRouteOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteRoute(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)} @@ -12804,14 +13306,14 @@ func awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(response *smithyhtt } } -type awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpDeleteRouteTable struct { } -func (*awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpDeleteRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteRouteTable) 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) @@ -12825,44 +13327,21 @@ func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteRouteTable(response, &metadata) } - output := &DeleteTrafficMirrorFilterRuleOutput{} + output := &DeleteRouteTableOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterRuleOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteRouteTable(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)} @@ -12895,14 +13374,14 @@ func awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpDeleteTrafficMirrorSession struct { +type awsEc2query_deserializeOpDeleteSecurityGroup struct { } -func (*awsEc2query_deserializeOpDeleteTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpDeleteSecurityGroup) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteSecurityGroup) 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) @@ -12916,44 +13395,21 @@ func (m *awsEc2query_deserializeOpDeleteTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteSecurityGroup(response, &metadata) } - output := &DeleteTrafficMirrorSessionOutput{} + output := &DeleteSecurityGroupOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorSessionOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteSecurityGroup(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)} @@ -12986,14 +13442,14 @@ func awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(response *smithyht } } -type awsEc2query_deserializeOpDeleteTrafficMirrorTarget struct { +type awsEc2query_deserializeOpDeleteSnapshot struct { } -func (*awsEc2query_deserializeOpDeleteTrafficMirrorTarget) ID() string { +func (*awsEc2query_deserializeOpDeleteSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTrafficMirrorTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13007,44 +13463,21 @@ func (m *awsEc2query_deserializeOpDeleteTrafficMirrorTarget) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteSnapshot(response, &metadata) } - output := &DeleteTrafficMirrorTargetOutput{} + output := &DeleteSnapshotOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorTargetOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13077,14 +13510,14 @@ func awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(response *smithyhtt } } -type awsEc2query_deserializeOpDeleteTransitGateway struct { +type awsEc2query_deserializeOpDeleteSpotDatafeedSubscription struct { } -func (*awsEc2query_deserializeOpDeleteTransitGateway) ID() string { +func (*awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) 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) @@ -13098,44 +13531,21 @@ func (m *awsEc2query_deserializeOpDeleteTransitGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(response, &metadata) } - output := &DeleteTransitGatewayOutput{} + output := &DeleteSpotDatafeedSubscriptionOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(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)} @@ -13168,14 +13578,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDeleteTransitGatewayConnect struct { +type awsEc2query_deserializeOpDeleteSubnet struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayConnect) ID() string { +func (*awsEc2query_deserializeOpDeleteSubnet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnect) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteSubnet) 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) @@ -13189,44 +13599,21 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnect) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnet(response, &metadata) } - output := &DeleteTransitGatewayConnectOutput{} + output := &DeleteSubnetOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayConnectOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteSubnet(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)} @@ -13259,14 +13646,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(response *smithyh } } -type awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer struct { +type awsEc2query_deserializeOpDeleteSubnetCidrReservation struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) ID() string { +func (*awsEc2query_deserializeOpDeleteSubnetCidrReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) 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) @@ -13280,9 +13667,9 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response, &metadata) } - output := &DeleteTransitGatewayConnectPeerOutput{} + output := &DeleteSubnetCidrReservationOutput{} out.Result = output var buff [1024]byte @@ -13303,7 +13690,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayConnectPeerOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13317,7 +13704,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(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)} @@ -13350,14 +13737,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(response *smi } } -type awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain struct { +type awsEc2query_deserializeOpDeleteTags struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) ID() string { +func (*awsEc2query_deserializeOpDeleteTags) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTags) 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) @@ -13371,44 +13758,21 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTags(response, &metadata) } - output := &DeleteTransitGatewayMulticastDomainOutput{} + output := &DeleteTagsOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayMulticastDomainOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTags(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)} @@ -13441,14 +13805,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(response } } -type awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpDeleteTrafficMirrorFilter struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpDeleteTrafficMirrorFilter) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilter) 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) @@ -13462,9 +13826,9 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(response, &metadata) } - output := &DeleteTransitGatewayPeeringAttachmentOutput{} + output := &DeleteTrafficMirrorFilterOutput{} out.Result = output var buff [1024]byte @@ -13485,7 +13849,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPeeringAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13499,7 +13863,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(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)} @@ -13532,14 +13896,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference struct { +type awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) 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) @@ -13553,9 +13917,9 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(response, &metadata) } - output := &DeleteTransitGatewayPrefixListReferenceOutput{} + output := &DeleteTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -13576,7 +13940,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPrefixListReferenceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13590,7 +13954,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(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)} @@ -13623,14 +13987,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(respo } } -type awsEc2query_deserializeOpDeleteTransitGatewayRoute struct { +type awsEc2query_deserializeOpDeleteTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpDeleteTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTrafficMirrorSession) 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) @@ -13644,9 +14008,9 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayRoute) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(response, &metadata) } - output := &DeleteTransitGatewayRouteOutput{} + output := &DeleteTrafficMirrorSessionOutput{} out.Result = output var buff [1024]byte @@ -13667,7 +14031,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayRoute) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorSessionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13681,7 +14045,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayRoute) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(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)} @@ -13714,14 +14078,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(response *smithyhtt } } -type awsEc2query_deserializeOpDeleteTransitGatewayRouteTable struct { +type awsEc2query_deserializeOpDeleteTrafficMirrorTarget struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) ID() string { +func (*awsEc2query_deserializeOpDeleteTrafficMirrorTarget) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTrafficMirrorTarget) 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) @@ -13735,9 +14099,9 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(response, &metadata) } - output := &DeleteTransitGatewayRouteTableOutput{} + output := &DeleteTrafficMirrorTargetOutput{} out.Result = output var buff [1024]byte @@ -13758,7 +14122,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteTableOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorTargetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13772,7 +14136,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(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)} @@ -13805,14 +14169,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(response *smit } } -type awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpDeleteTransitGateway struct { } -func (*awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGateway) 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) @@ -13826,9 +14190,9 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGateway(response, &metadata) } - output := &DeleteTransitGatewayVpcAttachmentOutput{} + output := &DeleteTransitGatewayOutput{} out.Result = output var buff [1024]byte @@ -13849,7 +14213,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13863,7 +14227,7 @@ func (m *awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGateway(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)} @@ -13896,14 +14260,14 @@ func awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpDeleteVolume struct { +type awsEc2query_deserializeOpDeleteTransitGatewayConnect struct { } -func (*awsEc2query_deserializeOpDeleteVolume) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayConnect) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnect) 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) @@ -13917,89 +14281,44 @@ func (m *awsEc2query_deserializeOpDeleteVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(response, &metadata) } - output := &DeleteVolumeOutput{} + output := &DeleteTransitGatewayConnectOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDeleteVolume(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)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} - -type awsEc2query_deserializeOpDeleteVpc struct { -} - -func (*awsEc2query_deserializeOpDeleteVpc) ID() string { - return "OperationDeserializer" -} -func (m *awsEc2query_deserializeOpDeleteVpc) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayConnectOutput(&output, decoder) 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, awsEc2query_deserializeOpErrorDeleteVpc(response, &metadata) - } - output := &DeleteVpcOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 awsEc2query_deserializeOpErrorDeleteVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(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)} @@ -14032,14 +14351,14 @@ func awsEc2query_deserializeOpErrorDeleteVpc(response *smithyhttp.Response, meta } } -type awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications struct { +type awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer struct { } -func (*awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) 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) @@ -14053,9 +14372,9 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(response, &metadata) } - output := &DeleteVpcEndpointConnectionNotificationsOutput{} + output := &DeleteTransitGatewayConnectPeerOutput{} out.Result = output var buff [1024]byte @@ -14076,7 +14395,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointConnectionNotificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayConnectPeerOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14090,7 +14409,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(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)} @@ -14123,14 +14442,14 @@ func awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(resp } } -type awsEc2query_deserializeOpDeleteVpcEndpoints struct { +type awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain struct { } -func (*awsEc2query_deserializeOpDeleteVpcEndpoints) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVpcEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) 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) @@ -14144,9 +14463,9 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpoints) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpoints(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(response, &metadata) } - output := &DeleteVpcEndpointsOutput{} + output := &DeleteTransitGatewayMulticastDomainOutput{} out.Result = output var buff [1024]byte @@ -14167,7 +14486,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpoints) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayMulticastDomainOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14181,7 +14500,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpoints) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteVpcEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(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)} @@ -14214,14 +14533,14 @@ func awsEc2query_deserializeOpErrorDeleteVpcEndpoints(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations struct { +type awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) 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) @@ -14235,9 +14554,9 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(response, &metadata) } - output := &DeleteVpcEndpointServiceConfigurationsOutput{} + output := &DeleteTransitGatewayPeeringAttachmentOutput{} out.Result = output var buff [1024]byte @@ -14258,7 +14577,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) Handle } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointServiceConfigurationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPeeringAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14272,7 +14591,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) Handle return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(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)} @@ -14305,14 +14624,14 @@ func awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(respon } } -type awsEc2query_deserializeOpDeleteVpcPeeringConnection struct { +type awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference struct { } -func (*awsEc2query_deserializeOpDeleteVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) 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) @@ -14326,9 +14645,9 @@ func (m *awsEc2query_deserializeOpDeleteVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(response, &metadata) } - output := &DeleteVpcPeeringConnectionOutput{} + output := &DeleteTransitGatewayPrefixListReferenceOutput{} out.Result = output var buff [1024]byte @@ -14349,7 +14668,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeleteVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPrefixListReferenceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14363,7 +14682,7 @@ func (m *awsEc2query_deserializeOpDeleteVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(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)} @@ -14396,14 +14715,14 @@ func awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpDeleteVpnConnection struct { +type awsEc2query_deserializeOpDeleteTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpDeleteVpnConnection) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayRoute) 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) @@ -14417,89 +14736,44 @@ func (m *awsEc2query_deserializeOpDeleteVpnConnection) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(response, &metadata) } - output := &DeleteVpnConnectionOutput{} + output := &DeleteTransitGatewayRouteOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorDeleteVpnConnection(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)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} - -type awsEc2query_deserializeOpDeleteVpnConnectionRoute struct { -} -func (*awsEc2query_deserializeOpDeleteVpnConnectionRoute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpDeleteVpnConnectionRoute) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteOutput(&output, decoder) 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, awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(response, &metadata) - } - output := &DeleteVpnConnectionRouteOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(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)} @@ -14532,14 +14806,14 @@ func awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(response *smithyhttp } } -type awsEc2query_deserializeOpDeleteVpnGateway struct { +type awsEc2query_deserializeOpDeleteTransitGatewayRouteTable struct { } -func (*awsEc2query_deserializeOpDeleteVpnGateway) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeleteVpnGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) 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) @@ -14553,21 +14827,44 @@ func (m *awsEc2query_deserializeOpDeleteVpnGateway) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(response, &metadata) } - output := &DeleteVpnGatewayOutput{} + output := &DeleteTransitGatewayRouteTableOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteTableOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDeleteVpnGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(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)} @@ -14600,14 +14897,14 @@ func awsEc2query_deserializeOpErrorDeleteVpnGateway(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDeprovisionByoipCidr struct { +type awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpDeprovisionByoipCidr) ID() string { +func (*awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeprovisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) 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) @@ -14621,9 +14918,9 @@ func (m *awsEc2query_deserializeOpDeprovisionByoipCidr) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeprovisionByoipCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(response, &metadata) } - output := &DeprovisionByoipCidrOutput{} + output := &DeleteTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -14644,7 +14941,7 @@ func (m *awsEc2query_deserializeOpDeprovisionByoipCidr) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeprovisionByoipCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14658,7 +14955,7 @@ func (m *awsEc2query_deserializeOpDeprovisionByoipCidr) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDeprovisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(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)} @@ -14691,14 +14988,14 @@ func awsEc2query_deserializeOpErrorDeprovisionByoipCidr(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDeregisterImage struct { +type awsEc2query_deserializeOpDeleteVolume struct { } -func (*awsEc2query_deserializeOpDeregisterImage) ID() string { +func (*awsEc2query_deserializeOpDeleteVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeregisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVolume) 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) @@ -14712,9 +15009,9 @@ func (m *awsEc2query_deserializeOpDeregisterImage) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeregisterImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVolume(response, &metadata) } - output := &DeregisterImageOutput{} + output := &DeleteVolumeOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -14726,7 +15023,7 @@ func (m *awsEc2query_deserializeOpDeregisterImage) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorDeregisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVolume(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)} @@ -14759,14 +15056,14 @@ func awsEc2query_deserializeOpErrorDeregisterImage(response *smithyhttp.Response } } -type awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpDeleteVpc struct { } -func (*awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpDeleteVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpc) 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) @@ -14780,44 +15077,21 @@ func (m *awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpc(response, &metadata) } - output := &DeregisterInstanceEventNotificationAttributesOutput{} + output := &DeleteVpcOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeregisterInstanceEventNotificationAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpc(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)} @@ -14850,14 +15124,14 @@ func awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes } } -type awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) 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) @@ -14871,9 +15145,9 @@ func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(response, &metadata) } - output := &DeregisterTransitGatewayMulticastGroupMembersOutput{} + output := &DeleteVpcEndpointConnectionNotificationsOutput{} out.Result = output var buff [1024]byte @@ -14894,7 +15168,7 @@ func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeregisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointConnectionNotificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14908,7 +15182,7 @@ func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) return out, metadata, err } -func awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(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)} @@ -14941,14 +15215,14 @@ func awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers } } -type awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_deserializeOpDeleteVpcEndpoints struct { } -func (*awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_deserializeOpDeleteVpcEndpoints) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpcEndpoints) 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) @@ -14962,9 +15236,9 @@ func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpoints(response, &metadata) } - output := &DeregisterTransitGatewayMulticastGroupSourcesOutput{} + output := &DeleteVpcEndpointsOutput{} out.Result = output var buff [1024]byte @@ -14985,7 +15259,7 @@ func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDeregisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14999,7 +15273,7 @@ func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) return out, metadata, err } -func awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpcEndpoints(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)} @@ -15032,14 +15306,14 @@ func awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources } } -type awsEc2query_deserializeOpDescribeAccountAttributes struct { +type awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations struct { } -func (*awsEc2query_deserializeOpDescribeAccountAttributes) ID() string { +func (*awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeAccountAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) 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) @@ -15053,9 +15327,9 @@ func (m *awsEc2query_deserializeOpDescribeAccountAttributes) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeAccountAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(response, &metadata) } - output := &DescribeAccountAttributesOutput{} + output := &DeleteVpcEndpointServiceConfigurationsOutput{} out.Result = output var buff [1024]byte @@ -15076,7 +15350,7 @@ func (m *awsEc2query_deserializeOpDescribeAccountAttributes) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeAccountAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointServiceConfigurationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15090,7 +15364,7 @@ func (m *awsEc2query_deserializeOpDescribeAccountAttributes) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeAccountAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(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)} @@ -15123,14 +15397,14 @@ func awsEc2query_deserializeOpErrorDescribeAccountAttributes(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeAddresses struct { +type awsEc2query_deserializeOpDeleteVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpDescribeAddresses) ID() string { +func (*awsEc2query_deserializeOpDeleteVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeAddresses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpcPeeringConnection) 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) @@ -15144,9 +15418,9 @@ func (m *awsEc2query_deserializeOpDescribeAddresses) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeAddresses(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(response, &metadata) } - output := &DescribeAddressesOutput{} + output := &DeleteVpcPeeringConnectionOutput{} out.Result = output var buff [1024]byte @@ -15167,7 +15441,7 @@ func (m *awsEc2query_deserializeOpDescribeAddresses) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeAddressesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeleteVpcPeeringConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15181,7 +15455,7 @@ func (m *awsEc2query_deserializeOpDescribeAddresses) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeAddresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(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)} @@ -15214,14 +15488,14 @@ func awsEc2query_deserializeOpErrorDescribeAddresses(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpDescribeAddressesAttribute struct { +type awsEc2query_deserializeOpDeleteVpnConnection struct { } -func (*awsEc2query_deserializeOpDescribeAddressesAttribute) ID() string { +func (*awsEc2query_deserializeOpDeleteVpnConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeAddressesAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpnConnection) 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) @@ -15235,44 +15509,89 @@ func (m *awsEc2query_deserializeOpDescribeAddressesAttribute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeAddressesAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnConnection(response, &metadata) } - output := &DescribeAddressesAttributeOutput{} + output := &DeleteVpnConnectionOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeAddressesAttributeOutput(&output, decoder) + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) 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 + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsEc2query_deserializeOpDeleteVpnConnectionRoute struct { +} + +func (*awsEc2query_deserializeOpDeleteVpnConnectionRoute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteVpnConnectionRoute) 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, awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(response, &metadata) + } + output := &DeleteVpnConnectionRouteOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeAddressesAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(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)} @@ -15305,14 +15624,14 @@ func awsEc2query_deserializeOpErrorDescribeAddressesAttribute(response *smithyht } } -type awsEc2query_deserializeOpDescribeAggregateIdFormat struct { +type awsEc2query_deserializeOpDeleteVpnGateway struct { } -func (*awsEc2query_deserializeOpDescribeAggregateIdFormat) ID() string { +func (*awsEc2query_deserializeOpDeleteVpnGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeAggregateIdFormat) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeleteVpnGateway) 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) @@ -15326,44 +15645,21 @@ func (m *awsEc2query_deserializeOpDescribeAggregateIdFormat) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnGateway(response, &metadata) } - output := &DescribeAggregateIdFormatOutput{} + output := &DeleteVpnGatewayOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeAggregateIdFormatOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeleteVpnGateway(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)} @@ -15396,14 +15692,14 @@ func awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeAvailabilityZones struct { +type awsEc2query_deserializeOpDeprovisionByoipCidr struct { } -func (*awsEc2query_deserializeOpDescribeAvailabilityZones) ID() string { +func (*awsEc2query_deserializeOpDeprovisionByoipCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeAvailabilityZones) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeprovisionByoipCidr) 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) @@ -15417,9 +15713,9 @@ func (m *awsEc2query_deserializeOpDescribeAvailabilityZones) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeAvailabilityZones(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeprovisionByoipCidr(response, &metadata) } - output := &DescribeAvailabilityZonesOutput{} + output := &DeprovisionByoipCidrOutput{} out.Result = output var buff [1024]byte @@ -15440,7 +15736,7 @@ func (m *awsEc2query_deserializeOpDescribeAvailabilityZones) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeAvailabilityZonesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeprovisionByoipCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15454,7 +15750,7 @@ func (m *awsEc2query_deserializeOpDescribeAvailabilityZones) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeAvailabilityZones(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeprovisionByoipCidr(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)} @@ -15487,14 +15783,14 @@ func awsEc2query_deserializeOpErrorDescribeAvailabilityZones(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeBundleTasks struct { +type awsEc2query_deserializeOpDeprovisionIpamPoolCidr struct { } -func (*awsEc2query_deserializeOpDescribeBundleTasks) ID() string { +func (*awsEc2query_deserializeOpDeprovisionIpamPoolCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeBundleTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeprovisionIpamPoolCidr) 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) @@ -15508,9 +15804,9 @@ func (m *awsEc2query_deserializeOpDescribeBundleTasks) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeBundleTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeprovisionIpamPoolCidr(response, &metadata) } - output := &DescribeBundleTasksOutput{} + output := &DeprovisionIpamPoolCidrOutput{} out.Result = output var buff [1024]byte @@ -15531,7 +15827,7 @@ func (m *awsEc2query_deserializeOpDescribeBundleTasks) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeBundleTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeprovisionIpamPoolCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15545,7 +15841,7 @@ func (m *awsEc2query_deserializeOpDescribeBundleTasks) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeBundleTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeprovisionIpamPoolCidr(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)} @@ -15578,14 +15874,14 @@ func awsEc2query_deserializeOpErrorDescribeBundleTasks(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeByoipCidrs struct { +type awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr struct { } -func (*awsEc2query_deserializeOpDescribeByoipCidrs) ID() string { +func (*awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeByoipCidrs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr) 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) @@ -15599,9 +15895,9 @@ func (m *awsEc2query_deserializeOpDescribeByoipCidrs) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeByoipCidrs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeprovisionPublicIpv4PoolCidr(response, &metadata) } - output := &DescribeByoipCidrsOutput{} + output := &DeprovisionPublicIpv4PoolCidrOutput{} out.Result = output var buff [1024]byte @@ -15622,7 +15918,7 @@ func (m *awsEc2query_deserializeOpDescribeByoipCidrs) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeByoipCidrsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeprovisionPublicIpv4PoolCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15636,7 +15932,7 @@ func (m *awsEc2query_deserializeOpDescribeByoipCidrs) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeByoipCidrs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeprovisionPublicIpv4PoolCidr(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)} @@ -15669,14 +15965,14 @@ func awsEc2query_deserializeOpErrorDescribeByoipCidrs(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpDescribeCapacityReservationFleets struct { +type awsEc2query_deserializeOpDeregisterImage struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string { +func (*awsEc2query_deserializeOpDeregisterImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeregisterImage) 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) @@ -15690,44 +15986,21 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeregisterImage(response, &metadata) } - output := &DescribeCapacityReservationFleetsOutput{} + output := &DeregisterImageOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeregisterImage(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)} @@ -15760,14 +16033,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *s } } -type awsEc2query_deserializeOpDescribeCapacityReservations struct { +type awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string { +func (*awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) 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) @@ -15781,9 +16054,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes(response, &metadata) } - output := &DescribeCapacityReservationsOutput{} + output := &DeregisterInstanceEventNotificationAttributesOutput{} out.Result = output var buff [1024]byte @@ -15804,7 +16077,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeregisterInstanceEventNotificationAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15818,7 +16091,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes(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)} @@ -15851,14 +16124,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithy } } -type awsEc2query_deserializeOpDescribeCarrierGateways struct { +type awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string { +func (*awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) 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) @@ -15872,9 +16145,9 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers(response, &metadata) } - output := &DescribeCarrierGatewaysOutput{} + output := &DeregisterTransitGatewayMulticastGroupMembersOutput{} out.Result = output var buff [1024]byte @@ -15895,7 +16168,7 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeregisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15909,7 +16182,7 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers(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)} @@ -15942,14 +16215,14 @@ func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeClassicLinkInstances struct { +type awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_deserializeOpDescribeClassicLinkInstances) ID() string { +func (*awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) 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) @@ -15963,9 +16236,9 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources(response, &metadata) } - output := &DescribeClassicLinkInstancesOutput{} + output := &DeregisterTransitGatewayMulticastGroupSourcesOutput{} out.Result = output var buff [1024]byte @@ -15986,7 +16259,7 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDeregisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16000,7 +16273,7 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources(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)} @@ -16033,14 +16306,14 @@ func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithy } } -type awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules struct { +type awsEc2query_deserializeOpDescribeAccountAttributes struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) ID() string { +func (*awsEc2query_deserializeOpDescribeAccountAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeAccountAttributes) 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) @@ -16054,9 +16327,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeAccountAttributes(response, &metadata) } - output := &DescribeClientVpnAuthorizationRulesOutput{} + output := &DescribeAccountAttributesOutput{} out.Result = output var buff [1024]byte @@ -16077,7 +16350,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeAccountAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16091,7 +16364,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeAccountAttributes(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)} @@ -16124,14 +16397,14 @@ func awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response } } -type awsEc2query_deserializeOpDescribeClientVpnConnections struct { +type awsEc2query_deserializeOpDescribeAddresses struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeAddresses) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeAddresses) 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) @@ -16145,9 +16418,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnConnections) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeAddresses(response, &metadata) } - output := &DescribeClientVpnConnectionsOutput{} + output := &DescribeAddressesOutput{} out.Result = output var buff [1024]byte @@ -16168,7 +16441,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnConnections) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeAddressesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16182,7 +16455,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnConnections) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeAddresses(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)} @@ -16215,14 +16488,14 @@ func awsEc2query_deserializeOpErrorDescribeClientVpnConnections(response *smithy } } -type awsEc2query_deserializeOpDescribeClientVpnEndpoints struct { +type awsEc2query_deserializeOpDescribeAddressesAttribute struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnEndpoints) ID() string { +func (*awsEc2query_deserializeOpDescribeAddressesAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeAddressesAttribute) 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) @@ -16236,9 +16509,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnEndpoints) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeAddressesAttribute(response, &metadata) } - output := &DescribeClientVpnEndpointsOutput{} + output := &DescribeAddressesAttributeOutput{} out.Result = output var buff [1024]byte @@ -16259,7 +16532,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnEndpoints) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnEndpointsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeAddressesAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16273,7 +16546,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnEndpoints) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeAddressesAttribute(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)} @@ -16306,14 +16579,14 @@ func awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(response *smithyht } } -type awsEc2query_deserializeOpDescribeClientVpnRoutes struct { +type awsEc2query_deserializeOpDescribeAggregateIdFormat struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnRoutes) ID() string { +func (*awsEc2query_deserializeOpDescribeAggregateIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeAggregateIdFormat) 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) @@ -16327,9 +16600,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnRoutes) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(response, &metadata) } - output := &DescribeClientVpnRoutesOutput{} + output := &DescribeAggregateIdFormatOutput{} out.Result = output var buff [1024]byte @@ -16350,7 +16623,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnRoutes) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeAggregateIdFormatOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16364,7 +16637,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnRoutes) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(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)} @@ -16397,14 +16670,14 @@ func awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeClientVpnTargetNetworks struct { +type awsEc2query_deserializeOpDescribeAvailabilityZones struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) ID() string { +func (*awsEc2query_deserializeOpDescribeAvailabilityZones) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeAvailabilityZones) 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) @@ -16418,9 +16691,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeAvailabilityZones(response, &metadata) } - output := &DescribeClientVpnTargetNetworksOutput{} + output := &DescribeAvailabilityZonesOutput{} out.Result = output var buff [1024]byte @@ -16441,7 +16714,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnTargetNetworksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeAvailabilityZonesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16455,7 +16728,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeAvailabilityZones(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)} @@ -16488,14 +16761,14 @@ func awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(response *smi } } -type awsEc2query_deserializeOpDescribeCoipPools struct { +type awsEc2query_deserializeOpDescribeBundleTasks struct { } -func (*awsEc2query_deserializeOpDescribeCoipPools) ID() string { +func (*awsEc2query_deserializeOpDescribeBundleTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCoipPools) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeBundleTasks) 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) @@ -16509,9 +16782,9 @@ func (m *awsEc2query_deserializeOpDescribeCoipPools) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCoipPools(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeBundleTasks(response, &metadata) } - output := &DescribeCoipPoolsOutput{} + output := &DescribeBundleTasksOutput{} out.Result = output var buff [1024]byte @@ -16532,7 +16805,7 @@ func (m *awsEc2query_deserializeOpDescribeCoipPools) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCoipPoolsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeBundleTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16546,7 +16819,7 @@ func (m *awsEc2query_deserializeOpDescribeCoipPools) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCoipPools(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeBundleTasks(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)} @@ -16579,14 +16852,14 @@ func awsEc2query_deserializeOpErrorDescribeCoipPools(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpDescribeConversionTasks struct { +type awsEc2query_deserializeOpDescribeByoipCidrs struct { } -func (*awsEc2query_deserializeOpDescribeConversionTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeByoipCidrs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeConversionTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeByoipCidrs) 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) @@ -16600,9 +16873,9 @@ func (m *awsEc2query_deserializeOpDescribeConversionTasks) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeConversionTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeByoipCidrs(response, &metadata) } - output := &DescribeConversionTasksOutput{} + output := &DescribeByoipCidrsOutput{} out.Result = output var buff [1024]byte @@ -16623,7 +16896,7 @@ func (m *awsEc2query_deserializeOpDescribeConversionTasks) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeConversionTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeByoipCidrsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16637,7 +16910,7 @@ func (m *awsEc2query_deserializeOpDescribeConversionTasks) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeConversionTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeByoipCidrs(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)} @@ -16670,14 +16943,14 @@ func awsEc2query_deserializeOpErrorDescribeConversionTasks(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeCustomerGateways struct { +type awsEc2query_deserializeOpDescribeCapacityReservationFleets struct { } -func (*awsEc2query_deserializeOpDescribeCustomerGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCustomerGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) 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) @@ -16691,9 +16964,9 @@ func (m *awsEc2query_deserializeOpDescribeCustomerGateways) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCustomerGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata) } - output := &DescribeCustomerGatewaysOutput{} + output := &DescribeCapacityReservationFleetsOutput{} out.Result = output var buff [1024]byte @@ -16714,7 +16987,7 @@ func (m *awsEc2query_deserializeOpDescribeCustomerGateways) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCustomerGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16728,7 +17001,7 @@ func (m *awsEc2query_deserializeOpDescribeCustomerGateways) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCustomerGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(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)} @@ -16761,14 +17034,14 @@ func awsEc2query_deserializeOpErrorDescribeCustomerGateways(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeDhcpOptions struct { +type awsEc2query_deserializeOpDescribeCapacityReservations struct { } -func (*awsEc2query_deserializeOpDescribeDhcpOptions) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeDhcpOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityReservations) 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) @@ -16782,9 +17055,9 @@ func (m *awsEc2query_deserializeOpDescribeDhcpOptions) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeDhcpOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata) } - output := &DescribeDhcpOptionsOutput{} + output := &DescribeCapacityReservationsOutput{} out.Result = output var buff [1024]byte @@ -16805,7 +17078,7 @@ func (m *awsEc2query_deserializeOpDescribeDhcpOptions) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeDhcpOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16819,7 +17092,7 @@ func (m *awsEc2query_deserializeOpDescribeDhcpOptions) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeDhcpOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityReservations(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)} @@ -16852,14 +17125,14 @@ func awsEc2query_deserializeOpErrorDescribeDhcpOptions(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways struct { +type awsEc2query_deserializeOpDescribeCarrierGateways struct { } -func (*awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCarrierGateways) 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) @@ -16873,9 +17146,9 @@ func (m *awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata) } - output := &DescribeEgressOnlyInternetGatewaysOutput{} + output := &DescribeCarrierGatewaysOutput{} out.Result = output var buff [1024]byte @@ -16896,7 +17169,7 @@ func (m *awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeEgressOnlyInternetGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16910,7 +17183,7 @@ func (m *awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) HandleDese return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCarrierGateways(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)} @@ -16943,14 +17216,14 @@ func awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(response * } } -type awsEc2query_deserializeOpDescribeElasticGpus struct { +type awsEc2query_deserializeOpDescribeClassicLinkInstances struct { } -func (*awsEc2query_deserializeOpDescribeElasticGpus) ID() string { +func (*awsEc2query_deserializeOpDescribeClassicLinkInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeElasticGpus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) 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) @@ -16964,9 +17237,9 @@ func (m *awsEc2query_deserializeOpDescribeElasticGpus) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeElasticGpus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response, &metadata) } - output := &DescribeElasticGpusOutput{} + output := &DescribeClassicLinkInstancesOutput{} out.Result = output var buff [1024]byte @@ -16987,7 +17260,7 @@ func (m *awsEc2query_deserializeOpDescribeElasticGpus) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeElasticGpusOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17001,7 +17274,7 @@ func (m *awsEc2query_deserializeOpDescribeElasticGpus) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeElasticGpus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(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)} @@ -17034,14 +17307,14 @@ func awsEc2query_deserializeOpErrorDescribeElasticGpus(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeExportImageTasks struct { +type awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules struct { } -func (*awsEc2query_deserializeOpDescribeExportImageTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeExportImageTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) 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) @@ -17055,9 +17328,9 @@ func (m *awsEc2query_deserializeOpDescribeExportImageTasks) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeExportImageTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response, &metadata) } - output := &DescribeExportImageTasksOutput{} + output := &DescribeClientVpnAuthorizationRulesOutput{} out.Result = output var buff [1024]byte @@ -17078,7 +17351,7 @@ func (m *awsEc2query_deserializeOpDescribeExportImageTasks) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeExportImageTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17092,7 +17365,7 @@ func (m *awsEc2query_deserializeOpDescribeExportImageTasks) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeExportImageTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(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)} @@ -17125,14 +17398,14 @@ func awsEc2query_deserializeOpErrorDescribeExportImageTasks(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeExportTasks struct { +type awsEc2query_deserializeOpDescribeClientVpnConnections struct { } -func (*awsEc2query_deserializeOpDescribeExportTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeClientVpnConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeExportTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeClientVpnConnections) 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) @@ -17146,9 +17419,9 @@ func (m *awsEc2query_deserializeOpDescribeExportTasks) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeExportTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnConnections(response, &metadata) } - output := &DescribeExportTasksOutput{} + output := &DescribeClientVpnConnectionsOutput{} out.Result = output var buff [1024]byte @@ -17169,7 +17442,7 @@ func (m *awsEc2query_deserializeOpDescribeExportTasks) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeExportTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeClientVpnConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17183,7 +17456,7 @@ func (m *awsEc2query_deserializeOpDescribeExportTasks) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeExportTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeClientVpnConnections(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)} @@ -17216,14 +17489,14 @@ func awsEc2query_deserializeOpErrorDescribeExportTasks(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeFastSnapshotRestores struct { +type awsEc2query_deserializeOpDescribeClientVpnEndpoints struct { } -func (*awsEc2query_deserializeOpDescribeFastSnapshotRestores) ID() string { +func (*awsEc2query_deserializeOpDescribeClientVpnEndpoints) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFastSnapshotRestores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeClientVpnEndpoints) 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) @@ -17237,9 +17510,9 @@ func (m *awsEc2query_deserializeOpDescribeFastSnapshotRestores) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(response, &metadata) } - output := &DescribeFastSnapshotRestoresOutput{} + output := &DescribeClientVpnEndpointsOutput{} out.Result = output var buff [1024]byte @@ -17260,7 +17533,7 @@ func (m *awsEc2query_deserializeOpDescribeFastSnapshotRestores) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFastSnapshotRestoresOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeClientVpnEndpointsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17274,7 +17547,7 @@ func (m *awsEc2query_deserializeOpDescribeFastSnapshotRestores) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(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)} @@ -17307,14 +17580,14 @@ func awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(response *smithy } } -type awsEc2query_deserializeOpDescribeFleetHistory struct { +type awsEc2query_deserializeOpDescribeClientVpnRoutes struct { } -func (*awsEc2query_deserializeOpDescribeFleetHistory) ID() string { +func (*awsEc2query_deserializeOpDescribeClientVpnRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFleetHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeClientVpnRoutes) 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) @@ -17328,9 +17601,9 @@ func (m *awsEc2query_deserializeOpDescribeFleetHistory) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFleetHistory(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(response, &metadata) } - output := &DescribeFleetHistoryOutput{} + output := &DescribeClientVpnRoutesOutput{} out.Result = output var buff [1024]byte @@ -17351,7 +17624,7 @@ func (m *awsEc2query_deserializeOpDescribeFleetHistory) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeClientVpnRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17365,7 +17638,7 @@ func (m *awsEc2query_deserializeOpDescribeFleetHistory) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFleetHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(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)} @@ -17398,14 +17671,14 @@ func awsEc2query_deserializeOpErrorDescribeFleetHistory(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeFleetInstances struct { +type awsEc2query_deserializeOpDescribeClientVpnTargetNetworks struct { } -func (*awsEc2query_deserializeOpDescribeFleetInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFleetInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) 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) @@ -17419,9 +17692,9 @@ func (m *awsEc2query_deserializeOpDescribeFleetInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFleetInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(response, &metadata) } - output := &DescribeFleetInstancesOutput{} + output := &DescribeClientVpnTargetNetworksOutput{} out.Result = output var buff [1024]byte @@ -17442,7 +17715,7 @@ func (m *awsEc2query_deserializeOpDescribeFleetInstances) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFleetInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeClientVpnTargetNetworksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17456,7 +17729,7 @@ func (m *awsEc2query_deserializeOpDescribeFleetInstances) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFleetInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(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)} @@ -17489,14 +17762,14 @@ func awsEc2query_deserializeOpErrorDescribeFleetInstances(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeFleets struct { +type awsEc2query_deserializeOpDescribeCoipPools struct { } -func (*awsEc2query_deserializeOpDescribeFleets) ID() string { +func (*awsEc2query_deserializeOpDescribeCoipPools) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCoipPools) 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) @@ -17510,9 +17783,9 @@ func (m *awsEc2query_deserializeOpDescribeFleets) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFleets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCoipPools(response, &metadata) } - output := &DescribeFleetsOutput{} + output := &DescribeCoipPoolsOutput{} out.Result = output var buff [1024]byte @@ -17533,7 +17806,7 @@ func (m *awsEc2query_deserializeOpDescribeFleets) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFleetsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCoipPoolsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17547,7 +17820,7 @@ func (m *awsEc2query_deserializeOpDescribeFleets) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCoipPools(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)} @@ -17580,14 +17853,14 @@ func awsEc2query_deserializeOpErrorDescribeFleets(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpDescribeFlowLogs struct { +type awsEc2query_deserializeOpDescribeConversionTasks struct { } -func (*awsEc2query_deserializeOpDescribeFlowLogs) ID() string { +func (*awsEc2query_deserializeOpDescribeConversionTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFlowLogs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeConversionTasks) 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) @@ -17601,9 +17874,9 @@ func (m *awsEc2query_deserializeOpDescribeFlowLogs) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFlowLogs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeConversionTasks(response, &metadata) } - output := &DescribeFlowLogsOutput{} + output := &DescribeConversionTasksOutput{} out.Result = output var buff [1024]byte @@ -17624,7 +17897,7 @@ func (m *awsEc2query_deserializeOpDescribeFlowLogs) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFlowLogsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeConversionTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17638,7 +17911,7 @@ func (m *awsEc2query_deserializeOpDescribeFlowLogs) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFlowLogs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeConversionTasks(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)} @@ -17671,14 +17944,14 @@ func awsEc2query_deserializeOpErrorDescribeFlowLogs(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDescribeFpgaImageAttribute struct { +type awsEc2query_deserializeOpDescribeCustomerGateways struct { } -func (*awsEc2query_deserializeOpDescribeFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribeCustomerGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCustomerGateways) 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) @@ -17692,9 +17965,9 @@ func (m *awsEc2query_deserializeOpDescribeFpgaImageAttribute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCustomerGateways(response, &metadata) } - output := &DescribeFpgaImageAttributeOutput{} + output := &DescribeCustomerGatewaysOutput{} out.Result = output var buff [1024]byte @@ -17715,7 +17988,7 @@ func (m *awsEc2query_deserializeOpDescribeFpgaImageAttribute) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFpgaImageAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCustomerGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17729,7 +18002,7 @@ func (m *awsEc2query_deserializeOpDescribeFpgaImageAttribute) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCustomerGateways(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)} @@ -17762,14 +18035,14 @@ func awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(response *smithyht } } -type awsEc2query_deserializeOpDescribeFpgaImages struct { +type awsEc2query_deserializeOpDescribeDhcpOptions struct { } -func (*awsEc2query_deserializeOpDescribeFpgaImages) ID() string { +func (*awsEc2query_deserializeOpDescribeDhcpOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeFpgaImages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeDhcpOptions) 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) @@ -17783,9 +18056,9 @@ func (m *awsEc2query_deserializeOpDescribeFpgaImages) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeFpgaImages(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeDhcpOptions(response, &metadata) } - output := &DescribeFpgaImagesOutput{} + output := &DescribeDhcpOptionsOutput{} out.Result = output var buff [1024]byte @@ -17806,7 +18079,7 @@ func (m *awsEc2query_deserializeOpDescribeFpgaImages) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeFpgaImagesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeDhcpOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17820,7 +18093,7 @@ func (m *awsEc2query_deserializeOpDescribeFpgaImages) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeFpgaImages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeDhcpOptions(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)} @@ -17853,14 +18126,14 @@ func awsEc2query_deserializeOpErrorDescribeFpgaImages(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpDescribeHostReservationOfferings struct { +type awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways struct { } -func (*awsEc2query_deserializeOpDescribeHostReservationOfferings) ID() string { +func (*awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeHostReservationOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) 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) @@ -17874,9 +18147,9 @@ func (m *awsEc2query_deserializeOpDescribeHostReservationOfferings) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(response, &metadata) } - output := &DescribeHostReservationOfferingsOutput{} + output := &DescribeEgressOnlyInternetGatewaysOutput{} out.Result = output var buff [1024]byte @@ -17897,7 +18170,7 @@ func (m *awsEc2query_deserializeOpDescribeHostReservationOfferings) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeHostReservationOfferingsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeEgressOnlyInternetGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17911,7 +18184,7 @@ func (m *awsEc2query_deserializeOpDescribeHostReservationOfferings) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(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)} @@ -17944,14 +18217,14 @@ func awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(response *sm } } -type awsEc2query_deserializeOpDescribeHostReservations struct { +type awsEc2query_deserializeOpDescribeElasticGpus struct { } -func (*awsEc2query_deserializeOpDescribeHostReservations) ID() string { +func (*awsEc2query_deserializeOpDescribeElasticGpus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeHostReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeElasticGpus) 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) @@ -17965,9 +18238,9 @@ func (m *awsEc2query_deserializeOpDescribeHostReservations) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeHostReservations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeElasticGpus(response, &metadata) } - output := &DescribeHostReservationsOutput{} + output := &DescribeElasticGpusOutput{} out.Result = output var buff [1024]byte @@ -17988,7 +18261,7 @@ func (m *awsEc2query_deserializeOpDescribeHostReservations) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeHostReservationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeElasticGpusOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18002,7 +18275,7 @@ func (m *awsEc2query_deserializeOpDescribeHostReservations) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeHostReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeElasticGpus(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)} @@ -18035,14 +18308,14 @@ func awsEc2query_deserializeOpErrorDescribeHostReservations(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeHosts struct { +type awsEc2query_deserializeOpDescribeExportImageTasks struct { } -func (*awsEc2query_deserializeOpDescribeHosts) ID() string { +func (*awsEc2query_deserializeOpDescribeExportImageTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeExportImageTasks) 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) @@ -18056,9 +18329,9 @@ func (m *awsEc2query_deserializeOpDescribeHosts) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeExportImageTasks(response, &metadata) } - output := &DescribeHostsOutput{} + output := &DescribeExportImageTasksOutput{} out.Result = output var buff [1024]byte @@ -18079,7 +18352,7 @@ func (m *awsEc2query_deserializeOpDescribeHosts) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeExportImageTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18093,7 +18366,7 @@ func (m *awsEc2query_deserializeOpDescribeHosts) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeExportImageTasks(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)} @@ -18126,14 +18399,14 @@ func awsEc2query_deserializeOpErrorDescribeHosts(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations struct { +type awsEc2query_deserializeOpDescribeExportTasks struct { } -func (*awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) ID() string { +func (*awsEc2query_deserializeOpDescribeExportTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeExportTasks) 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) @@ -18147,9 +18420,9 @@ func (m *awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeExportTasks(response, &metadata) } - output := &DescribeIamInstanceProfileAssociationsOutput{} + output := &DescribeExportTasksOutput{} out.Result = output var buff [1024]byte @@ -18170,7 +18443,7 @@ func (m *awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) Handle } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeIamInstanceProfileAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeExportTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18184,7 +18457,7 @@ func (m *awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) Handle return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeExportTasks(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)} @@ -18217,14 +18490,14 @@ func awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(respon } } -type awsEc2query_deserializeOpDescribeIdentityIdFormat struct { +type awsEc2query_deserializeOpDescribeFastSnapshotRestores struct { } -func (*awsEc2query_deserializeOpDescribeIdentityIdFormat) ID() string { +func (*awsEc2query_deserializeOpDescribeFastSnapshotRestores) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeIdentityIdFormat) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFastSnapshotRestores) 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) @@ -18238,9 +18511,9 @@ func (m *awsEc2query_deserializeOpDescribeIdentityIdFormat) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(response, &metadata) } - output := &DescribeIdentityIdFormatOutput{} + output := &DescribeFastSnapshotRestoresOutput{} out.Result = output var buff [1024]byte @@ -18261,7 +18534,7 @@ func (m *awsEc2query_deserializeOpDescribeIdentityIdFormat) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeIdentityIdFormatOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFastSnapshotRestoresOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18275,7 +18548,7 @@ func (m *awsEc2query_deserializeOpDescribeIdentityIdFormat) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(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)} @@ -18308,14 +18581,14 @@ func awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeIdFormat struct { +type awsEc2query_deserializeOpDescribeFleetHistory struct { } -func (*awsEc2query_deserializeOpDescribeIdFormat) ID() string { +func (*awsEc2query_deserializeOpDescribeFleetHistory) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeIdFormat) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFleetHistory) 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) @@ -18329,9 +18602,9 @@ func (m *awsEc2query_deserializeOpDescribeIdFormat) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeIdFormat(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFleetHistory(response, &metadata) } - output := &DescribeIdFormatOutput{} + output := &DescribeFleetHistoryOutput{} out.Result = output var buff [1024]byte @@ -18352,7 +18625,7 @@ func (m *awsEc2query_deserializeOpDescribeIdFormat) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeIdFormatOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18366,7 +18639,7 @@ func (m *awsEc2query_deserializeOpDescribeIdFormat) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeIdFormat(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFleetHistory(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)} @@ -18399,14 +18672,14 @@ func awsEc2query_deserializeOpErrorDescribeIdFormat(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDescribeImageAttribute struct { +type awsEc2query_deserializeOpDescribeFleetInstances struct { } -func (*awsEc2query_deserializeOpDescribeImageAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribeFleetInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFleetInstances) 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) @@ -18420,9 +18693,9 @@ func (m *awsEc2query_deserializeOpDescribeImageAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFleetInstances(response, &metadata) } - output := &DescribeImageAttributeOutput{} + output := &DescribeFleetInstancesOutput{} out.Result = output var buff [1024]byte @@ -18443,7 +18716,7 @@ func (m *awsEc2query_deserializeOpDescribeImageAttribute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeImageAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFleetInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18457,7 +18730,7 @@ func (m *awsEc2query_deserializeOpDescribeImageAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFleetInstances(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)} @@ -18490,14 +18763,14 @@ func awsEc2query_deserializeOpErrorDescribeImageAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeImages struct { +type awsEc2query_deserializeOpDescribeFleets struct { } -func (*awsEc2query_deserializeOpDescribeImages) ID() string { +func (*awsEc2query_deserializeOpDescribeFleets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeImages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFleets) 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) @@ -18511,9 +18784,9 @@ func (m *awsEc2query_deserializeOpDescribeImages) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeImages(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFleets(response, &metadata) } - output := &DescribeImagesOutput{} + output := &DescribeFleetsOutput{} out.Result = output var buff [1024]byte @@ -18534,7 +18807,7 @@ func (m *awsEc2query_deserializeOpDescribeImages) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeImagesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFleetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18548,7 +18821,7 @@ func (m *awsEc2query_deserializeOpDescribeImages) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeImages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFleets(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)} @@ -18581,14 +18854,14 @@ func awsEc2query_deserializeOpErrorDescribeImages(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpDescribeImportImageTasks struct { +type awsEc2query_deserializeOpDescribeFlowLogs struct { } -func (*awsEc2query_deserializeOpDescribeImportImageTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeFlowLogs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeImportImageTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFlowLogs) 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) @@ -18602,9 +18875,9 @@ func (m *awsEc2query_deserializeOpDescribeImportImageTasks) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeImportImageTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFlowLogs(response, &metadata) } - output := &DescribeImportImageTasksOutput{} + output := &DescribeFlowLogsOutput{} out.Result = output var buff [1024]byte @@ -18625,7 +18898,7 @@ func (m *awsEc2query_deserializeOpDescribeImportImageTasks) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeImportImageTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFlowLogsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18639,7 +18912,7 @@ func (m *awsEc2query_deserializeOpDescribeImportImageTasks) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeImportImageTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFlowLogs(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)} @@ -18672,14 +18945,14 @@ func awsEc2query_deserializeOpErrorDescribeImportImageTasks(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeImportSnapshotTasks struct { +type awsEc2query_deserializeOpDescribeFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpDescribeImportSnapshotTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeImportSnapshotTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFpgaImageAttribute) 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) @@ -18693,9 +18966,9 @@ func (m *awsEc2query_deserializeOpDescribeImportSnapshotTasks) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(response, &metadata) } - output := &DescribeImportSnapshotTasksOutput{} + output := &DescribeFpgaImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -18716,7 +18989,7 @@ func (m *awsEc2query_deserializeOpDescribeImportSnapshotTasks) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeImportSnapshotTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFpgaImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18730,7 +19003,7 @@ func (m *awsEc2query_deserializeOpDescribeImportSnapshotTasks) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(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)} @@ -18763,14 +19036,14 @@ func awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(response *smithyh } } -type awsEc2query_deserializeOpDescribeInstanceAttribute struct { +type awsEc2query_deserializeOpDescribeFpgaImages struct { } -func (*awsEc2query_deserializeOpDescribeInstanceAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribeFpgaImages) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeFpgaImages) 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) @@ -18784,9 +19057,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceAttribute) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeFpgaImages(response, &metadata) } - output := &DescribeInstanceAttributeOutput{} + output := &DescribeFpgaImagesOutput{} out.Result = output var buff [1024]byte @@ -18807,7 +19080,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceAttribute) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeFpgaImagesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18821,7 +19094,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceAttribute) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeFpgaImages(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)} @@ -18854,14 +19127,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceAttribute(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeInstanceCreditSpecifications struct { +type awsEc2query_deserializeOpDescribeHostReservationOfferings struct { } -func (*awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) ID() string { +func (*awsEc2query_deserializeOpDescribeHostReservationOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeHostReservationOfferings) 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) @@ -18875,9 +19148,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(response, &metadata) } - output := &DescribeInstanceCreditSpecificationsOutput{} + output := &DescribeHostReservationOfferingsOutput{} out.Result = output var buff [1024]byte @@ -18898,7 +19171,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeHostReservationOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18912,7 +19185,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(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)} @@ -18945,14 +19218,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(response } } -type awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpDescribeHostReservations struct { } -func (*awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpDescribeHostReservations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeHostReservations) 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) @@ -18966,9 +19239,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeHostReservations(response, &metadata) } - output := &DescribeInstanceEventNotificationAttributesOutput{} + output := &DescribeHostReservationsOutput{} out.Result = output var buff [1024]byte @@ -18989,7 +19262,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeHostReservationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19003,7 +19276,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeHostReservations(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)} @@ -19036,14 +19309,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpDescribeInstanceEventWindows struct { +type awsEc2query_deserializeOpDescribeHosts struct { } -func (*awsEc2query_deserializeOpDescribeInstanceEventWindows) ID() string { +func (*awsEc2query_deserializeOpDescribeHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeHosts) 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) @@ -19057,9 +19330,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeHosts(response, &metadata) } - output := &DescribeInstanceEventWindowsOutput{} + output := &DescribeHostsOutput{} out.Result = output var buff [1024]byte @@ -19080,7 +19353,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeHostsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19094,7 +19367,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeHosts(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)} @@ -19127,14 +19400,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response *smithy } } -type awsEc2query_deserializeOpDescribeInstances struct { +type awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations struct { } -func (*awsEc2query_deserializeOpDescribeInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) 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) @@ -19148,9 +19421,9 @@ func (m *awsEc2query_deserializeOpDescribeInstances) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(response, &metadata) } - output := &DescribeInstancesOutput{} + output := &DescribeIamInstanceProfileAssociationsOutput{} out.Result = output var buff [1024]byte @@ -19171,7 +19444,7 @@ func (m *awsEc2query_deserializeOpDescribeInstances) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIamInstanceProfileAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19185,7 +19458,7 @@ func (m *awsEc2query_deserializeOpDescribeInstances) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(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)} @@ -19218,14 +19491,14 @@ func awsEc2query_deserializeOpErrorDescribeInstances(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpDescribeInstanceStatus struct { +type awsEc2query_deserializeOpDescribeIdentityIdFormat struct { } -func (*awsEc2query_deserializeOpDescribeInstanceStatus) ID() string { +func (*awsEc2query_deserializeOpDescribeIdentityIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIdentityIdFormat) 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) @@ -19239,9 +19512,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceStatus) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(response, &metadata) } - output := &DescribeInstanceStatusOutput{} + output := &DescribeIdentityIdFormatOutput{} out.Result = output var buff [1024]byte @@ -19262,7 +19535,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceStatus) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceStatusOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIdentityIdFormatOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19276,7 +19549,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceStatus) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(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)} @@ -19309,14 +19582,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceStatus(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeInstanceTypeOfferings struct { +type awsEc2query_deserializeOpDescribeIdFormat struct { } -func (*awsEc2query_deserializeOpDescribeInstanceTypeOfferings) ID() string { +func (*awsEc2query_deserializeOpDescribeIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceTypeOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIdFormat) 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) @@ -19330,9 +19603,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceTypeOfferings) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIdFormat(response, &metadata) } - output := &DescribeInstanceTypeOfferingsOutput{} + output := &DescribeIdFormatOutput{} out.Result = output var buff [1024]byte @@ -19353,7 +19626,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceTypeOfferings) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIdFormatOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19367,7 +19640,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceTypeOfferings) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIdFormat(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)} @@ -19400,14 +19673,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(response *smith } } -type awsEc2query_deserializeOpDescribeInstanceTypes struct { +type awsEc2query_deserializeOpDescribeImageAttribute struct { } -func (*awsEc2query_deserializeOpDescribeInstanceTypes) ID() string { +func (*awsEc2query_deserializeOpDescribeImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInstanceTypes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeImageAttribute) 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) @@ -19421,9 +19694,9 @@ func (m *awsEc2query_deserializeOpDescribeInstanceTypes) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTypes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeImageAttribute(response, &metadata) } - output := &DescribeInstanceTypesOutput{} + output := &DescribeImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -19444,7 +19717,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceTypes) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19458,7 +19731,7 @@ func (m *awsEc2query_deserializeOpDescribeInstanceTypes) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInstanceTypes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeImageAttribute(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)} @@ -19491,14 +19764,14 @@ func awsEc2query_deserializeOpErrorDescribeInstanceTypes(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDescribeInternetGateways struct { +type awsEc2query_deserializeOpDescribeImages struct { } -func (*awsEc2query_deserializeOpDescribeInternetGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeImages) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeInternetGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeImages) 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) @@ -19512,9 +19785,9 @@ func (m *awsEc2query_deserializeOpDescribeInternetGateways) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeInternetGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeImages(response, &metadata) } - output := &DescribeInternetGatewaysOutput{} + output := &DescribeImagesOutput{} out.Result = output var buff [1024]byte @@ -19535,7 +19808,7 @@ func (m *awsEc2query_deserializeOpDescribeInternetGateways) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeImagesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19549,7 +19822,7 @@ func (m *awsEc2query_deserializeOpDescribeInternetGateways) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeInternetGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeImages(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)} @@ -19582,14 +19855,14 @@ func awsEc2query_deserializeOpErrorDescribeInternetGateways(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeIpv6Pools struct { +type awsEc2query_deserializeOpDescribeImportImageTasks struct { } -func (*awsEc2query_deserializeOpDescribeIpv6Pools) ID() string { +func (*awsEc2query_deserializeOpDescribeImportImageTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeIpv6Pools) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeImportImageTasks) 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) @@ -19603,9 +19876,9 @@ func (m *awsEc2query_deserializeOpDescribeIpv6Pools) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeIpv6Pools(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeImportImageTasks(response, &metadata) } - output := &DescribeIpv6PoolsOutput{} + output := &DescribeImportImageTasksOutput{} out.Result = output var buff [1024]byte @@ -19626,7 +19899,7 @@ func (m *awsEc2query_deserializeOpDescribeIpv6Pools) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeIpv6PoolsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeImportImageTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19640,7 +19913,7 @@ func (m *awsEc2query_deserializeOpDescribeIpv6Pools) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeIpv6Pools(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeImportImageTasks(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)} @@ -19673,14 +19946,14 @@ func awsEc2query_deserializeOpErrorDescribeIpv6Pools(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpDescribeKeyPairs struct { +type awsEc2query_deserializeOpDescribeImportSnapshotTasks struct { } -func (*awsEc2query_deserializeOpDescribeKeyPairs) ID() string { +func (*awsEc2query_deserializeOpDescribeImportSnapshotTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeKeyPairs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeImportSnapshotTasks) 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) @@ -19694,9 +19967,9 @@ func (m *awsEc2query_deserializeOpDescribeKeyPairs) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeKeyPairs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(response, &metadata) } - output := &DescribeKeyPairsOutput{} + output := &DescribeImportSnapshotTasksOutput{} out.Result = output var buff [1024]byte @@ -19717,7 +19990,7 @@ func (m *awsEc2query_deserializeOpDescribeKeyPairs) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeKeyPairsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeImportSnapshotTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19731,7 +20004,7 @@ func (m *awsEc2query_deserializeOpDescribeKeyPairs) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeKeyPairs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(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)} @@ -19764,14 +20037,14 @@ func awsEc2query_deserializeOpErrorDescribeKeyPairs(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDescribeLaunchTemplates struct { +type awsEc2query_deserializeOpDescribeInstanceAttribute struct { } -func (*awsEc2query_deserializeOpDescribeLaunchTemplates) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLaunchTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceAttribute) 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) @@ -19785,9 +20058,9 @@ func (m *awsEc2query_deserializeOpDescribeLaunchTemplates) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLaunchTemplates(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceAttribute(response, &metadata) } - output := &DescribeLaunchTemplatesOutput{} + output := &DescribeInstanceAttributeOutput{} out.Result = output var buff [1024]byte @@ -19808,7 +20081,7 @@ func (m *awsEc2query_deserializeOpDescribeLaunchTemplates) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLaunchTemplatesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19822,7 +20095,7 @@ func (m *awsEc2query_deserializeOpDescribeLaunchTemplates) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLaunchTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceAttribute(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)} @@ -19855,14 +20128,14 @@ func awsEc2query_deserializeOpErrorDescribeLaunchTemplates(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeLaunchTemplateVersions struct { +type awsEc2query_deserializeOpDescribeInstanceCreditSpecifications struct { } -func (*awsEc2query_deserializeOpDescribeLaunchTemplateVersions) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLaunchTemplateVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) 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) @@ -19876,9 +20149,9 @@ func (m *awsEc2query_deserializeOpDescribeLaunchTemplateVersions) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(response, &metadata) } - output := &DescribeLaunchTemplateVersionsOutput{} + output := &DescribeInstanceCreditSpecificationsOutput{} out.Result = output var buff [1024]byte @@ -19899,7 +20172,7 @@ func (m *awsEc2query_deserializeOpDescribeLaunchTemplateVersions) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLaunchTemplateVersionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19913,7 +20186,7 @@ func (m *awsEc2query_deserializeOpDescribeLaunchTemplateVersions) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(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)} @@ -19946,14 +20219,14 @@ func awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(response *smit } } -type awsEc2query_deserializeOpDescribeLocalGatewayRouteTables struct { +type awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) 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) @@ -19967,9 +20240,9 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(response, &metadata) } - output := &DescribeLocalGatewayRouteTablesOutput{} + output := &DescribeInstanceEventNotificationAttributesOutput{} out.Result = output var buff [1024]byte @@ -19990,7 +20263,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTablesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20004,7 +20277,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(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)} @@ -20037,14 +20310,14 @@ func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(response *smi } } -type awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations struct { +type awsEc2query_deserializeOpDescribeInstanceEventWindows struct { } -func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceEventWindows) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) 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) @@ -20058,9 +20331,9 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterface } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response, &metadata) } - output := &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput{} + output := &DescribeInstanceEventWindowsOutput{} out.Result = output var buff [1024]byte @@ -20081,7 +20354,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterface } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20095,7 +20368,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterface return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(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)} @@ -20128,14 +20401,14 @@ func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfac } } -type awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations struct { +type awsEc2query_deserializeOpDescribeInstances struct { } -func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) ID() string { +func (*awsEc2query_deserializeOpDescribeInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstances) 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) @@ -20149,9 +20422,9 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstances(response, &metadata) } - output := &DescribeLocalGatewayRouteTableVpcAssociationsOutput{} + output := &DescribeInstancesOutput{} out.Result = output var buff [1024]byte @@ -20172,7 +20445,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20186,7 +20459,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstances(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)} @@ -20219,14 +20492,14 @@ func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations } } -type awsEc2query_deserializeOpDescribeLocalGateways struct { +type awsEc2query_deserializeOpDescribeInstanceStatus struct { } -func (*awsEc2query_deserializeOpDescribeLocalGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLocalGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceStatus) 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) @@ -20240,9 +20513,9 @@ func (m *awsEc2query_deserializeOpDescribeLocalGateways) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceStatus(response, &metadata) } - output := &DescribeLocalGatewaysOutput{} + output := &DescribeInstanceStatusOutput{} out.Result = output var buff [1024]byte @@ -20263,7 +20536,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGateways) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLocalGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceStatusOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20277,7 +20550,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGateways) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLocalGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceStatus(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)} @@ -20310,14 +20583,14 @@ func awsEc2query_deserializeOpErrorDescribeLocalGateways(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups struct { +type awsEc2query_deserializeOpDescribeInstanceTypeOfferings struct { } -func (*awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceTypeOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceTypeOfferings) 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) @@ -20331,9 +20604,9 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(response, &metadata) } - output := &DescribeLocalGatewayVirtualInterfaceGroupsOutput{} + output := &DescribeInstanceTypeOfferingsOutput{} out.Result = output var buff [1024]byte @@ -20354,7 +20627,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20368,7 +20641,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(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)} @@ -20401,14 +20674,14 @@ func awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(re } } -type awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces struct { +type awsEc2query_deserializeOpDescribeInstanceTypes struct { } -func (*awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) ID() string { +func (*awsEc2query_deserializeOpDescribeInstanceTypes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInstanceTypes) 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) @@ -20422,9 +20695,9 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTypes(response, &metadata) } - output := &DescribeLocalGatewayVirtualInterfacesOutput{} + output := &DescribeInstanceTypesOutput{} out.Result = output var buff [1024]byte @@ -20445,7 +20718,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfacesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20459,7 +20732,7 @@ func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInstanceTypes(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)} @@ -20492,14 +20765,14 @@ func awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(respons } } -type awsEc2query_deserializeOpDescribeManagedPrefixLists struct { +type awsEc2query_deserializeOpDescribeInternetGateways struct { } -func (*awsEc2query_deserializeOpDescribeManagedPrefixLists) ID() string { +func (*awsEc2query_deserializeOpDescribeInternetGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeManagedPrefixLists) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeInternetGateways) 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) @@ -20513,9 +20786,9 @@ func (m *awsEc2query_deserializeOpDescribeManagedPrefixLists) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeInternetGateways(response, &metadata) } - output := &DescribeManagedPrefixListsOutput{} + output := &DescribeInternetGatewaysOutput{} out.Result = output var buff [1024]byte @@ -20536,7 +20809,7 @@ func (m *awsEc2query_deserializeOpDescribeManagedPrefixLists) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeManagedPrefixListsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20550,7 +20823,7 @@ func (m *awsEc2query_deserializeOpDescribeManagedPrefixLists) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeInternetGateways(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)} @@ -20583,14 +20856,14 @@ func awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(response *smithyht } } -type awsEc2query_deserializeOpDescribeMovingAddresses struct { +type awsEc2query_deserializeOpDescribeIpamPools struct { } -func (*awsEc2query_deserializeOpDescribeMovingAddresses) ID() string { +func (*awsEc2query_deserializeOpDescribeIpamPools) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeMovingAddresses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIpamPools) 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) @@ -20604,9 +20877,9 @@ func (m *awsEc2query_deserializeOpDescribeMovingAddresses) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeMovingAddresses(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamPools(response, &metadata) } - output := &DescribeMovingAddressesOutput{} + output := &DescribeIpamPoolsOutput{} out.Result = output var buff [1024]byte @@ -20627,7 +20900,7 @@ func (m *awsEc2query_deserializeOpDescribeMovingAddresses) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeMovingAddressesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIpamPoolsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20641,7 +20914,7 @@ func (m *awsEc2query_deserializeOpDescribeMovingAddresses) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeMovingAddresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIpamPools(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)} @@ -20674,14 +20947,14 @@ func awsEc2query_deserializeOpErrorDescribeMovingAddresses(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeNatGateways struct { +type awsEc2query_deserializeOpDescribeIpams struct { } -func (*awsEc2query_deserializeOpDescribeNatGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeIpams) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNatGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIpams) 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) @@ -20695,9 +20968,9 @@ func (m *awsEc2query_deserializeOpDescribeNatGateways) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNatGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIpams(response, &metadata) } - output := &DescribeNatGatewaysOutput{} + output := &DescribeIpamsOutput{} out.Result = output var buff [1024]byte @@ -20718,7 +20991,7 @@ func (m *awsEc2query_deserializeOpDescribeNatGateways) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNatGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIpamsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20732,7 +21005,7 @@ func (m *awsEc2query_deserializeOpDescribeNatGateways) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNatGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIpams(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)} @@ -20765,14 +21038,14 @@ func awsEc2query_deserializeOpErrorDescribeNatGateways(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeNetworkAcls struct { +type awsEc2query_deserializeOpDescribeIpamScopes struct { } -func (*awsEc2query_deserializeOpDescribeNetworkAcls) ID() string { +func (*awsEc2query_deserializeOpDescribeIpamScopes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNetworkAcls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIpamScopes) 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) @@ -20786,9 +21059,9 @@ func (m *awsEc2query_deserializeOpDescribeNetworkAcls) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkAcls(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamScopes(response, &metadata) } - output := &DescribeNetworkAclsOutput{} + output := &DescribeIpamScopesOutput{} out.Result = output var buff [1024]byte @@ -20809,7 +21082,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkAcls) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNetworkAclsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIpamScopesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20823,7 +21096,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkAcls) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNetworkAcls(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIpamScopes(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)} @@ -20856,14 +21129,14 @@ func awsEc2query_deserializeOpErrorDescribeNetworkAcls(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses struct { +type awsEc2query_deserializeOpDescribeIpv6Pools struct { } -func (*awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) ID() string { +func (*awsEc2query_deserializeOpDescribeIpv6Pools) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeIpv6Pools) 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) @@ -20877,9 +21150,9 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeIpv6Pools(response, &metadata) } - output := &DescribeNetworkInsightsAnalysesOutput{} + output := &DescribeIpv6PoolsOutput{} out.Result = output var buff [1024]byte @@ -20900,7 +21173,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAnalysesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeIpv6PoolsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20914,7 +21187,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeIpv6Pools(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)} @@ -20947,14 +21220,14 @@ func awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(response *smi } } -type awsEc2query_deserializeOpDescribeNetworkInsightsPaths struct { +type awsEc2query_deserializeOpDescribeKeyPairs struct { } -func (*awsEc2query_deserializeOpDescribeNetworkInsightsPaths) ID() string { +func (*awsEc2query_deserializeOpDescribeKeyPairs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNetworkInsightsPaths) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeKeyPairs) 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) @@ -20968,9 +21241,9 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInsightsPaths) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeKeyPairs(response, &metadata) } - output := &DescribeNetworkInsightsPathsOutput{} + output := &DescribeKeyPairsOutput{} out.Result = output var buff [1024]byte @@ -20991,7 +21264,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInsightsPaths) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsPathsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeKeyPairsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21005,7 +21278,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInsightsPaths) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeKeyPairs(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)} @@ -21038,14 +21311,14 @@ func awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(response *smithy } } -type awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpDescribeLaunchTemplates struct { } -func (*awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribeLaunchTemplates) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLaunchTemplates) 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) @@ -21059,9 +21332,9 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLaunchTemplates(response, &metadata) } - output := &DescribeNetworkInterfaceAttributeOutput{} + output := &DescribeLaunchTemplatesOutput{} out.Result = output var buff [1024]byte @@ -21082,7 +21355,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfaceAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLaunchTemplatesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21096,7 +21369,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLaunchTemplates(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)} @@ -21129,14 +21402,14 @@ func awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(response *s } } -type awsEc2query_deserializeOpDescribeNetworkInterfacePermissions struct { +type awsEc2query_deserializeOpDescribeLaunchTemplateVersions struct { } -func (*awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) ID() string { +func (*awsEc2query_deserializeOpDescribeLaunchTemplateVersions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLaunchTemplateVersions) 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) @@ -21150,9 +21423,9 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(response, &metadata) } - output := &DescribeNetworkInterfacePermissionsOutput{} + output := &DescribeLaunchTemplateVersionsOutput{} out.Result = output var buff [1024]byte @@ -21173,7 +21446,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfacePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLaunchTemplateVersionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21187,7 +21460,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(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)} @@ -21220,14 +21493,14 @@ func awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(response } } -type awsEc2query_deserializeOpDescribeNetworkInterfaces struct { +type awsEc2query_deserializeOpDescribeLocalGatewayRouteTables struct { } -func (*awsEc2query_deserializeOpDescribeNetworkInterfaces) ID() string { +func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeNetworkInterfaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) 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) @@ -21241,9 +21514,9 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfaces) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(response, &metadata) } - output := &DescribeNetworkInterfacesOutput{} + output := &DescribeLocalGatewayRouteTablesOutput{} out.Result = output var buff [1024]byte @@ -21264,7 +21537,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfaces) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfacesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTablesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21278,7 +21551,7 @@ func (m *awsEc2query_deserializeOpDescribeNetworkInterfaces) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(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)} @@ -21311,14 +21584,14 @@ func awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(response *smithyhtt } } -type awsEc2query_deserializeOpDescribePlacementGroups struct { +type awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations struct { } -func (*awsEc2query_deserializeOpDescribePlacementGroups) ID() string { +func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribePlacementGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) 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) @@ -21332,9 +21605,9 @@ func (m *awsEc2query_deserializeOpDescribePlacementGroups) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribePlacementGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(response, &metadata) } - output := &DescribePlacementGroupsOutput{} + output := &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput{} out.Result = output var buff [1024]byte @@ -21355,7 +21628,7 @@ func (m *awsEc2query_deserializeOpDescribePlacementGroups) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribePlacementGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21369,7 +21642,7 @@ func (m *awsEc2query_deserializeOpDescribePlacementGroups) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribePlacementGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(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)} @@ -21402,14 +21675,14 @@ func awsEc2query_deserializeOpErrorDescribePlacementGroups(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribePrefixLists struct { +type awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations struct { } -func (*awsEc2query_deserializeOpDescribePrefixLists) ID() string { +func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribePrefixLists) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) 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) @@ -21423,9 +21696,9 @@ func (m *awsEc2query_deserializeOpDescribePrefixLists) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribePrefixLists(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations(response, &metadata) } - output := &DescribePrefixListsOutput{} + output := &DescribeLocalGatewayRouteTableVpcAssociationsOutput{} out.Result = output var buff [1024]byte @@ -21446,7 +21719,7 @@ func (m *awsEc2query_deserializeOpDescribePrefixLists) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribePrefixListsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21460,7 +21733,7 @@ func (m *awsEc2query_deserializeOpDescribePrefixLists) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribePrefixLists(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations(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)} @@ -21493,14 +21766,14 @@ func awsEc2query_deserializeOpErrorDescribePrefixLists(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribePrincipalIdFormat struct { +type awsEc2query_deserializeOpDescribeLocalGateways struct { } -func (*awsEc2query_deserializeOpDescribePrincipalIdFormat) ID() string { +func (*awsEc2query_deserializeOpDescribeLocalGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribePrincipalIdFormat) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLocalGateways) 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) @@ -21514,9 +21787,9 @@ func (m *awsEc2query_deserializeOpDescribePrincipalIdFormat) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGateways(response, &metadata) } - output := &DescribePrincipalIdFormatOutput{} + output := &DescribeLocalGatewaysOutput{} out.Result = output var buff [1024]byte @@ -21537,7 +21810,7 @@ func (m *awsEc2query_deserializeOpDescribePrincipalIdFormat) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribePrincipalIdFormatOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLocalGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21551,7 +21824,7 @@ func (m *awsEc2query_deserializeOpDescribePrincipalIdFormat) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLocalGateways(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)} @@ -21584,14 +21857,14 @@ func awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(response *smithyhtt } } -type awsEc2query_deserializeOpDescribePublicIpv4Pools struct { +type awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups struct { } -func (*awsEc2query_deserializeOpDescribePublicIpv4Pools) ID() string { +func (*awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribePublicIpv4Pools) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) 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) @@ -21605,9 +21878,9 @@ func (m *awsEc2query_deserializeOpDescribePublicIpv4Pools) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(response, &metadata) } - output := &DescribePublicIpv4PoolsOutput{} + output := &DescribeLocalGatewayVirtualInterfaceGroupsOutput{} out.Result = output var buff [1024]byte @@ -21628,7 +21901,7 @@ func (m *awsEc2query_deserializeOpDescribePublicIpv4Pools) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribePublicIpv4PoolsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21642,7 +21915,7 @@ func (m *awsEc2query_deserializeOpDescribePublicIpv4Pools) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(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)} @@ -21675,14 +21948,14 @@ func awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeRegions struct { +type awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces struct { } -func (*awsEc2query_deserializeOpDescribeRegions) ID() string { +func (*awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeRegions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) 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) @@ -21696,9 +21969,9 @@ func (m *awsEc2query_deserializeOpDescribeRegions) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeRegions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(response, &metadata) } - output := &DescribeRegionsOutput{} + output := &DescribeLocalGatewayVirtualInterfacesOutput{} out.Result = output var buff [1024]byte @@ -21719,7 +21992,7 @@ func (m *awsEc2query_deserializeOpDescribeRegions) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeRegionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfacesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21733,7 +22006,7 @@ func (m *awsEc2query_deserializeOpDescribeRegions) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeRegions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(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)} @@ -21766,14 +22039,14 @@ func awsEc2query_deserializeOpErrorDescribeRegions(response *smithyhttp.Response } } -type awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks struct { +type awsEc2query_deserializeOpDescribeManagedPrefixLists struct { } -func (*awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeManagedPrefixLists) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeManagedPrefixLists) 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) @@ -21787,9 +22060,9 @@ func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(response, &metadata) } - output := &DescribeReplaceRootVolumeTasksOutput{} + output := &DescribeManagedPrefixListsOutput{} out.Result = output var buff [1024]byte @@ -21810,7 +22083,7 @@ func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeReplaceRootVolumeTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeManagedPrefixListsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21824,7 +22097,7 @@ func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(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)} @@ -21857,14 +22130,14 @@ func awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(response *smit } } -type awsEc2query_deserializeOpDescribeReservedInstances struct { +type awsEc2query_deserializeOpDescribeMovingAddresses struct { } -func (*awsEc2query_deserializeOpDescribeReservedInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeMovingAddresses) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeMovingAddresses) 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) @@ -21878,9 +22151,9 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstances) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeMovingAddresses(response, &metadata) } - output := &DescribeReservedInstancesOutput{} + output := &DescribeMovingAddressesOutput{} out.Result = output var buff [1024]byte @@ -21901,7 +22174,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstances) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeMovingAddressesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21915,7 +22188,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstances) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeMovingAddresses(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)} @@ -21948,14 +22221,14 @@ func awsEc2query_deserializeOpErrorDescribeReservedInstances(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeReservedInstancesListings struct { +type awsEc2query_deserializeOpDescribeNatGateways struct { } -func (*awsEc2query_deserializeOpDescribeReservedInstancesListings) ID() string { +func (*awsEc2query_deserializeOpDescribeNatGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeReservedInstancesListings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNatGateways) 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) @@ -21969,9 +22242,9 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesListings) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNatGateways(response, &metadata) } - output := &DescribeReservedInstancesListingsOutput{} + output := &DescribeNatGatewaysOutput{} out.Result = output var buff [1024]byte @@ -21992,7 +22265,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesListings) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesListingsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNatGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22006,7 +22279,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesListings) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNatGateways(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)} @@ -22039,14 +22312,14 @@ func awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(response *s } } -type awsEc2query_deserializeOpDescribeReservedInstancesModifications struct { +type awsEc2query_deserializeOpDescribeNetworkAcls struct { } -func (*awsEc2query_deserializeOpDescribeReservedInstancesModifications) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkAcls) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeReservedInstancesModifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkAcls) 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) @@ -22060,9 +22333,9 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesModifications) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkAcls(response, &metadata) } - output := &DescribeReservedInstancesModificationsOutput{} + output := &DescribeNetworkAclsOutput{} out.Result = output var buff [1024]byte @@ -22083,7 +22356,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesModifications) Handle } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesModificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkAclsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22097,7 +22370,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesModifications) Handle return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkAcls(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)} @@ -22130,14 +22403,14 @@ func awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(respon } } -type awsEc2query_deserializeOpDescribeReservedInstancesOfferings struct { +type awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses struct { } -func (*awsEc2query_deserializeOpDescribeReservedInstancesOfferings) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeReservedInstancesOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses) 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) @@ -22151,9 +22424,9 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesOfferings) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopeAnalyses(response, &metadata) } - output := &DescribeReservedInstancesOfferingsOutput{} + output := &DescribeNetworkInsightsAccessScopeAnalysesOutput{} out.Result = output var buff [1024]byte @@ -22174,7 +22447,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesOfferings) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesOfferingsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAccessScopeAnalysesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22188,7 +22461,7 @@ func (m *awsEc2query_deserializeOpDescribeReservedInstancesOfferings) HandleDese return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopeAnalyses(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)} @@ -22221,14 +22494,14 @@ func awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(response * } } -type awsEc2query_deserializeOpDescribeRouteTables struct { +type awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes struct { } -func (*awsEc2query_deserializeOpDescribeRouteTables) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeRouteTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes) 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) @@ -22242,9 +22515,9 @@ func (m *awsEc2query_deserializeOpDescribeRouteTables) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeRouteTables(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopes(response, &metadata) } - output := &DescribeRouteTablesOutput{} + output := &DescribeNetworkInsightsAccessScopesOutput{} out.Result = output var buff [1024]byte @@ -22265,7 +22538,7 @@ func (m *awsEc2query_deserializeOpDescribeRouteTables) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeRouteTablesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAccessScopesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22279,7 +22552,7 @@ func (m *awsEc2query_deserializeOpDescribeRouteTables) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeRouteTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopes(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)} @@ -22312,14 +22585,14 @@ func awsEc2query_deserializeOpErrorDescribeRouteTables(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDescribeScheduledInstanceAvailability struct { +type awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses struct { } -func (*awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) 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) @@ -22333,9 +22606,9 @@ func (m *awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(response, &metadata) } - output := &DescribeScheduledInstanceAvailabilityOutput{} + output := &DescribeNetworkInsightsAnalysesOutput{} out.Result = output var buff [1024]byte @@ -22356,7 +22629,7 @@ func (m *awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeScheduledInstanceAvailabilityOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAnalysesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22370,7 +22643,7 @@ func (m *awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(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)} @@ -22403,14 +22676,14 @@ func awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(respons } } -type awsEc2query_deserializeOpDescribeScheduledInstances struct { +type awsEc2query_deserializeOpDescribeNetworkInsightsPaths struct { } -func (*awsEc2query_deserializeOpDescribeScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInsightsPaths) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInsightsPaths) 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) @@ -22424,9 +22697,9 @@ func (m *awsEc2query_deserializeOpDescribeScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(response, &metadata) } - output := &DescribeScheduledInstancesOutput{} + output := &DescribeNetworkInsightsPathsOutput{} out.Result = output var buff [1024]byte @@ -22447,7 +22720,7 @@ func (m *awsEc2query_deserializeOpDescribeScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsPathsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22461,7 +22734,7 @@ func (m *awsEc2query_deserializeOpDescribeScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(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)} @@ -22494,14 +22767,14 @@ func awsEc2query_deserializeOpErrorDescribeScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpDescribeSecurityGroupReferences struct { +type awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpDescribeSecurityGroupReferences) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSecurityGroupReferences) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) 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) @@ -22515,9 +22788,9 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroupReferences) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(response, &metadata) } - output := &DescribeSecurityGroupReferencesOutput{} + output := &DescribeNetworkInterfaceAttributeOutput{} out.Result = output var buff [1024]byte @@ -22538,7 +22811,7 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroupReferences) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupReferencesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfaceAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22552,7 +22825,7 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroupReferences) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(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)} @@ -22585,14 +22858,14 @@ func awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(response *smi } } -type awsEc2query_deserializeOpDescribeSecurityGroupRules struct { +type awsEc2query_deserializeOpDescribeNetworkInterfacePermissions struct { } -func (*awsEc2query_deserializeOpDescribeSecurityGroupRules) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSecurityGroupRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) 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) @@ -22606,9 +22879,9 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroupRules) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(response, &metadata) } - output := &DescribeSecurityGroupRulesOutput{} + output := &DescribeNetworkInterfacePermissionsOutput{} out.Result = output var buff [1024]byte @@ -22629,7 +22902,7 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroupRules) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupRulesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfacePermissionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22643,7 +22916,7 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroupRules) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(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)} @@ -22676,14 +22949,14 @@ func awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(response *smithyht } } -type awsEc2query_deserializeOpDescribeSecurityGroups struct { +type awsEc2query_deserializeOpDescribeNetworkInterfaces struct { } -func (*awsEc2query_deserializeOpDescribeSecurityGroups) ID() string { +func (*awsEc2query_deserializeOpDescribeNetworkInterfaces) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSecurityGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeNetworkInterfaces) 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) @@ -22697,9 +22970,9 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroups) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(response, &metadata) } - output := &DescribeSecurityGroupsOutput{} + output := &DescribeNetworkInterfacesOutput{} out.Result = output var buff [1024]byte @@ -22720,7 +22993,7 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroups) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfacesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22734,7 +23007,7 @@ func (m *awsEc2query_deserializeOpDescribeSecurityGroups) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSecurityGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(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)} @@ -22767,14 +23040,14 @@ func awsEc2query_deserializeOpErrorDescribeSecurityGroups(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeSnapshotAttribute struct { +type awsEc2query_deserializeOpDescribePlacementGroups struct { } -func (*awsEc2query_deserializeOpDescribeSnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribePlacementGroups) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribePlacementGroups) 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) @@ -22788,9 +23061,9 @@ func (m *awsEc2query_deserializeOpDescribeSnapshotAttribute) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribePlacementGroups(response, &metadata) } - output := &DescribeSnapshotAttributeOutput{} + output := &DescribePlacementGroupsOutput{} out.Result = output var buff [1024]byte @@ -22811,7 +23084,7 @@ func (m *awsEc2query_deserializeOpDescribeSnapshotAttribute) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSnapshotAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribePlacementGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22825,7 +23098,7 @@ func (m *awsEc2query_deserializeOpDescribeSnapshotAttribute) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribePlacementGroups(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)} @@ -22858,14 +23131,14 @@ func awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeSnapshots struct { +type awsEc2query_deserializeOpDescribePrefixLists struct { } -func (*awsEc2query_deserializeOpDescribeSnapshots) ID() string { +func (*awsEc2query_deserializeOpDescribePrefixLists) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribePrefixLists) 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) @@ -22879,9 +23152,9 @@ func (m *awsEc2query_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshots(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribePrefixLists(response, &metadata) } - output := &DescribeSnapshotsOutput{} + output := &DescribePrefixListsOutput{} out.Result = output var buff [1024]byte @@ -22902,7 +23175,7 @@ func (m *awsEc2query_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSnapshotsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribePrefixListsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22916,7 +23189,7 @@ func (m *awsEc2query_deserializeOpDescribeSnapshots) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribePrefixLists(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)} @@ -22949,14 +23222,14 @@ func awsEc2query_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpDescribeSnapshotTierStatus struct { +type awsEc2query_deserializeOpDescribePrincipalIdFormat struct { } -func (*awsEc2query_deserializeOpDescribeSnapshotTierStatus) ID() string { +func (*awsEc2query_deserializeOpDescribePrincipalIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSnapshotTierStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribePrincipalIdFormat) 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) @@ -22970,9 +23243,9 @@ func (m *awsEc2query_deserializeOpDescribeSnapshotTierStatus) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(response, &metadata) } - output := &DescribeSnapshotTierStatusOutput{} + output := &DescribePrincipalIdFormatOutput{} out.Result = output var buff [1024]byte @@ -22993,7 +23266,7 @@ func (m *awsEc2query_deserializeOpDescribeSnapshotTierStatus) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSnapshotTierStatusOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribePrincipalIdFormatOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23007,7 +23280,7 @@ func (m *awsEc2query_deserializeOpDescribeSnapshotTierStatus) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(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)} @@ -23040,14 +23313,14 @@ func awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(response *smithyht } } -type awsEc2query_deserializeOpDescribeSpotDatafeedSubscription struct { +type awsEc2query_deserializeOpDescribePublicIpv4Pools struct { } -func (*awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) ID() string { +func (*awsEc2query_deserializeOpDescribePublicIpv4Pools) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribePublicIpv4Pools) 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) @@ -23061,9 +23334,9 @@ func (m *awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(response, &metadata) } - output := &DescribeSpotDatafeedSubscriptionOutput{} + output := &DescribePublicIpv4PoolsOutput{} out.Result = output var buff [1024]byte @@ -23084,7 +23357,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSpotDatafeedSubscriptionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribePublicIpv4PoolsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23098,7 +23371,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(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)} @@ -23131,14 +23404,14 @@ func awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(response *sm } } -type awsEc2query_deserializeOpDescribeSpotFleetInstances struct { +type awsEc2query_deserializeOpDescribeRegions struct { } -func (*awsEc2query_deserializeOpDescribeSpotFleetInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeRegions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSpotFleetInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeRegions) 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) @@ -23152,9 +23425,9 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeRegions(response, &metadata) } - output := &DescribeSpotFleetInstancesOutput{} + output := &DescribeRegionsOutput{} out.Result = output var buff [1024]byte @@ -23175,7 +23448,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSpotFleetInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeRegionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23189,7 +23462,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeRegions(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)} @@ -23222,14 +23495,14 @@ func awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(response *smithyht } } -type awsEc2query_deserializeOpDescribeSpotFleetRequestHistory struct { +type awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks struct { } -func (*awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) ID() string { +func (*awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) 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) @@ -23243,9 +23516,9 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(response, &metadata) } - output := &DescribeSpotFleetRequestHistoryOutput{} + output := &DescribeReplaceRootVolumeTasksOutput{} out.Result = output var buff [1024]byte @@ -23266,7 +23539,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeReplaceRootVolumeTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23280,7 +23553,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(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)} @@ -23313,14 +23586,14 @@ func awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(response *smi } } -type awsEc2query_deserializeOpDescribeSpotFleetRequests struct { +type awsEc2query_deserializeOpDescribeReservedInstances struct { } -func (*awsEc2query_deserializeOpDescribeSpotFleetRequests) ID() string { +func (*awsEc2query_deserializeOpDescribeReservedInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSpotFleetRequests) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeReservedInstances) 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) @@ -23334,9 +23607,9 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetRequests) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstances(response, &metadata) } - output := &DescribeSpotFleetRequestsOutput{} + output := &DescribeReservedInstancesOutput{} out.Result = output var buff [1024]byte @@ -23357,7 +23630,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetRequests) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23371,7 +23644,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotFleetRequests) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeReservedInstances(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)} @@ -23404,14 +23677,14 @@ func awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(response *smithyhtt } } -type awsEc2query_deserializeOpDescribeSpotInstanceRequests struct { +type awsEc2query_deserializeOpDescribeReservedInstancesListings struct { } -func (*awsEc2query_deserializeOpDescribeSpotInstanceRequests) ID() string { +func (*awsEc2query_deserializeOpDescribeReservedInstancesListings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSpotInstanceRequests) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeReservedInstancesListings) 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) @@ -23425,9 +23698,9 @@ func (m *awsEc2query_deserializeOpDescribeSpotInstanceRequests) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(response, &metadata) } - output := &DescribeSpotInstanceRequestsOutput{} + output := &DescribeReservedInstancesListingsOutput{} out.Result = output var buff [1024]byte @@ -23448,7 +23721,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotInstanceRequests) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesListingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23462,7 +23735,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotInstanceRequests) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(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)} @@ -23495,14 +23768,14 @@ func awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(response *smithy } } -type awsEc2query_deserializeOpDescribeSpotPriceHistory struct { +type awsEc2query_deserializeOpDescribeReservedInstancesModifications struct { } -func (*awsEc2query_deserializeOpDescribeSpotPriceHistory) ID() string { +func (*awsEc2query_deserializeOpDescribeReservedInstancesModifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSpotPriceHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeReservedInstancesModifications) 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) @@ -23516,9 +23789,9 @@ func (m *awsEc2query_deserializeOpDescribeSpotPriceHistory) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(response, &metadata) } - output := &DescribeSpotPriceHistoryOutput{} + output := &DescribeReservedInstancesModificationsOutput{} out.Result = output var buff [1024]byte @@ -23539,7 +23812,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotPriceHistory) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesModificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23553,7 +23826,7 @@ func (m *awsEc2query_deserializeOpDescribeSpotPriceHistory) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(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)} @@ -23586,14 +23859,14 @@ func awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(response *smithyhttp } } -type awsEc2query_deserializeOpDescribeStaleSecurityGroups struct { +type awsEc2query_deserializeOpDescribeReservedInstancesOfferings struct { } -func (*awsEc2query_deserializeOpDescribeStaleSecurityGroups) ID() string { +func (*awsEc2query_deserializeOpDescribeReservedInstancesOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeStaleSecurityGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeReservedInstancesOfferings) 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) @@ -23607,9 +23880,9 @@ func (m *awsEc2query_deserializeOpDescribeStaleSecurityGroups) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(response, &metadata) } - output := &DescribeStaleSecurityGroupsOutput{} + output := &DescribeReservedInstancesOfferingsOutput{} out.Result = output var buff [1024]byte @@ -23630,7 +23903,7 @@ func (m *awsEc2query_deserializeOpDescribeStaleSecurityGroups) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23644,7 +23917,7 @@ func (m *awsEc2query_deserializeOpDescribeStaleSecurityGroups) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(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)} @@ -23677,14 +23950,14 @@ func awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(response *smithyh } } -type awsEc2query_deserializeOpDescribeStoreImageTasks struct { +type awsEc2query_deserializeOpDescribeRouteTables struct { } -func (*awsEc2query_deserializeOpDescribeStoreImageTasks) ID() string { +func (*awsEc2query_deserializeOpDescribeRouteTables) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeRouteTables) 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) @@ -23698,9 +23971,9 @@ func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeStoreImageTasks(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeRouteTables(response, &metadata) } - output := &DescribeStoreImageTasksOutput{} + output := &DescribeRouteTablesOutput{} out.Result = output var buff [1024]byte @@ -23721,7 +23994,7 @@ func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeRouteTablesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23735,7 +24008,7 @@ func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeStoreImageTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeRouteTables(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)} @@ -23768,14 +24041,14 @@ func awsEc2query_deserializeOpErrorDescribeStoreImageTasks(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeSubnets struct { +type awsEc2query_deserializeOpDescribeScheduledInstanceAvailability struct { } -func (*awsEc2query_deserializeOpDescribeSubnets) ID() string { +func (*awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeSubnets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) 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) @@ -23789,9 +24062,9 @@ func (m *awsEc2query_deserializeOpDescribeSubnets) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeSubnets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(response, &metadata) } - output := &DescribeSubnetsOutput{} + output := &DescribeScheduledInstanceAvailabilityOutput{} out.Result = output var buff [1024]byte @@ -23812,7 +24085,7 @@ func (m *awsEc2query_deserializeOpDescribeSubnets) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeScheduledInstanceAvailabilityOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23826,7 +24099,7 @@ func (m *awsEc2query_deserializeOpDescribeSubnets) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeSubnets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(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)} @@ -23859,14 +24132,14 @@ func awsEc2query_deserializeOpErrorDescribeSubnets(response *smithyhttp.Response } } -type awsEc2query_deserializeOpDescribeTags struct { +type awsEc2query_deserializeOpDescribeScheduledInstances struct { } -func (*awsEc2query_deserializeOpDescribeTags) ID() string { +func (*awsEc2query_deserializeOpDescribeScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeScheduledInstances) 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) @@ -23880,9 +24153,9 @@ func (m *awsEc2query_deserializeOpDescribeTags) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTags(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeScheduledInstances(response, &metadata) } - output := &DescribeTagsOutput{} + output := &DescribeScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -23903,7 +24176,7 @@ func (m *awsEc2query_deserializeOpDescribeTags) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTagsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23917,7 +24190,7 @@ func (m *awsEc2query_deserializeOpDescribeTags) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeScheduledInstances(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)} @@ -23950,14 +24223,14 @@ func awsEc2query_deserializeOpErrorDescribeTags(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpDescribeTrafficMirrorFilters struct { +type awsEc2query_deserializeOpDescribeSecurityGroupReferences struct { } -func (*awsEc2query_deserializeOpDescribeTrafficMirrorFilters) ID() string { +func (*awsEc2query_deserializeOpDescribeSecurityGroupReferences) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilters) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSecurityGroupReferences) 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) @@ -23971,9 +24244,9 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilters) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(response, &metadata) } - output := &DescribeTrafficMirrorFiltersOutput{} + output := &DescribeSecurityGroupReferencesOutput{} out.Result = output var buff [1024]byte @@ -23994,7 +24267,7 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilters) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupReferencesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24008,7 +24281,7 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilters) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(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)} @@ -24041,14 +24314,14 @@ func awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(response *smithy } } -type awsEc2query_deserializeOpDescribeTrafficMirrorSessions struct { +type awsEc2query_deserializeOpDescribeSecurityGroupRules struct { } -func (*awsEc2query_deserializeOpDescribeTrafficMirrorSessions) ID() string { +func (*awsEc2query_deserializeOpDescribeSecurityGroupRules) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTrafficMirrorSessions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSecurityGroupRules) 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) @@ -24062,9 +24335,9 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorSessions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(response, &metadata) } - output := &DescribeTrafficMirrorSessionsOutput{} + output := &DescribeSecurityGroupRulesOutput{} out.Result = output var buff [1024]byte @@ -24085,7 +24358,7 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorSessions) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupRulesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24099,7 +24372,7 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorSessions) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(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)} @@ -24132,14 +24405,14 @@ func awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(response *smith } } -type awsEc2query_deserializeOpDescribeTrafficMirrorTargets struct { +type awsEc2query_deserializeOpDescribeSecurityGroups struct { } -func (*awsEc2query_deserializeOpDescribeTrafficMirrorTargets) ID() string { +func (*awsEc2query_deserializeOpDescribeSecurityGroups) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTrafficMirrorTargets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSecurityGroups) 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) @@ -24153,9 +24426,9 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorTargets) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroups(response, &metadata) } - output := &DescribeTrafficMirrorTargetsOutput{} + output := &DescribeSecurityGroupsOutput{} out.Result = output var buff [1024]byte @@ -24176,7 +24449,7 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorTargets) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24190,7 +24463,7 @@ func (m *awsEc2query_deserializeOpDescribeTrafficMirrorTargets) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSecurityGroups(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)} @@ -24223,14 +24496,14 @@ func awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(response *smithy } } -type awsEc2query_deserializeOpDescribeTransitGatewayAttachments struct { +type awsEc2query_deserializeOpDescribeSnapshotAttribute struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayAttachments) ID() string { +func (*awsEc2query_deserializeOpDescribeSnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayAttachments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSnapshotAttribute) 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) @@ -24244,9 +24517,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayAttachments) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(response, &metadata) } - output := &DescribeTransitGatewayAttachmentsOutput{} + output := &DescribeSnapshotAttributeOutput{} out.Result = output var buff [1024]byte @@ -24267,7 +24540,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayAttachments) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSnapshotAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24281,7 +24554,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayAttachments) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(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)} @@ -24314,14 +24587,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(response *s } } -type awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers struct { +type awsEc2query_deserializeOpDescribeSnapshots struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) ID() string { +func (*awsEc2query_deserializeOpDescribeSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24335,9 +24608,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshots(response, &metadata) } - output := &DescribeTransitGatewayConnectPeersOutput{} + output := &DescribeSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -24358,7 +24631,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSnapshotsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24372,7 +24645,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) HandleDese return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24405,14 +24678,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(response * } } -type awsEc2query_deserializeOpDescribeTransitGatewayConnects struct { +type awsEc2query_deserializeOpDescribeSnapshotTierStatus struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayConnects) ID() string { +func (*awsEc2query_deserializeOpDescribeSnapshotTierStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSnapshotTierStatus) 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) @@ -24426,9 +24699,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnects) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(response, &metadata) } - output := &DescribeTransitGatewayConnectsOutput{} + output := &DescribeSnapshotTierStatusOutput{} out.Result = output var buff [1024]byte @@ -24449,7 +24722,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnects) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSnapshotTierStatusOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24463,7 +24736,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnects) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(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)} @@ -24496,14 +24769,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(response *smit } } -type awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains struct { +type awsEc2query_deserializeOpDescribeSpotDatafeedSubscription struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) ID() string { +func (*awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) 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) @@ -24517,9 +24790,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(response, &metadata) } - output := &DescribeTransitGatewayMulticastDomainsOutput{} + output := &DescribeSpotDatafeedSubscriptionOutput{} out.Result = output var buff [1024]byte @@ -24540,7 +24813,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) Handle } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSpotDatafeedSubscriptionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24554,7 +24827,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) Handle return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(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)} @@ -24587,14 +24860,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(respon } } -type awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments struct { +type awsEc2query_deserializeOpDescribeSpotFleetInstances struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) ID() string { +func (*awsEc2query_deserializeOpDescribeSpotFleetInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSpotFleetInstances) 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) @@ -24608,9 +24881,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(response, &metadata) } - output := &DescribeTransitGatewayPeeringAttachmentsOutput{} + output := &DescribeSpotFleetInstancesOutput{} out.Result = output var buff [1024]byte @@ -24631,7 +24904,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSpotFleetInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24645,7 +24918,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(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)} @@ -24678,14 +24951,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(resp } } -type awsEc2query_deserializeOpDescribeTransitGatewayRouteTables struct { +type awsEc2query_deserializeOpDescribeSpotFleetRequestHistory struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) ID() string { +func (*awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) 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) @@ -24699,9 +24972,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(response, &metadata) } - output := &DescribeTransitGatewayRouteTablesOutput{} + output := &DescribeSpotFleetRequestHistoryOutput{} out.Result = output var buff [1024]byte @@ -24722,7 +24995,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24736,7 +25009,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(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)} @@ -24769,14 +25042,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(response *s } } -type awsEc2query_deserializeOpDescribeTransitGateways struct { +type awsEc2query_deserializeOpDescribeSpotFleetRequests struct { } -func (*awsEc2query_deserializeOpDescribeTransitGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeSpotFleetRequests) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSpotFleetRequests) 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) @@ -24790,9 +25063,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGateways) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(response, &metadata) } - output := &DescribeTransitGatewaysOutput{} + output := &DescribeSpotFleetRequestsOutput{} out.Result = output var buff [1024]byte @@ -24813,7 +25086,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGateways) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24827,7 +25100,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGateways) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(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)} @@ -24860,14 +25133,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGateways(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments struct { +type awsEc2query_deserializeOpDescribeSpotInstanceRequests struct { } -func (*awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) ID() string { +func (*awsEc2query_deserializeOpDescribeSpotInstanceRequests) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSpotInstanceRequests) 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) @@ -24881,9 +25154,9 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(response, &metadata) } - output := &DescribeTransitGatewayVpcAttachmentsOutput{} + output := &DescribeSpotInstanceRequestsOutput{} out.Result = output var buff [1024]byte @@ -24904,7 +25177,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24918,7 +25191,7 @@ func (m *awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(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)} @@ -24951,14 +25224,14 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(response } } -type awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations struct { +type awsEc2query_deserializeOpDescribeSpotPriceHistory struct { } -func (*awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) ID() string { +func (*awsEc2query_deserializeOpDescribeSpotPriceHistory) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSpotPriceHistory) 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) @@ -24972,9 +25245,9 @@ func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(response, &metadata) } - output := &DescribeTrunkInterfaceAssociationsOutput{} + output := &DescribeSpotPriceHistoryOutput{} out.Result = output var buff [1024]byte @@ -24995,7 +25268,7 @@ func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25009,7 +25282,7 @@ func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) HandleDese return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(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)} @@ -25042,14 +25315,14 @@ func awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(response * } } -type awsEc2query_deserializeOpDescribeVolumeAttribute struct { +type awsEc2query_deserializeOpDescribeStaleSecurityGroups struct { } -func (*awsEc2query_deserializeOpDescribeVolumeAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribeStaleSecurityGroups) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeStaleSecurityGroups) 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) @@ -25063,9 +25336,9 @@ func (m *awsEc2query_deserializeOpDescribeVolumeAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumeAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(response, &metadata) } - output := &DescribeVolumeAttributeOutput{} + output := &DescribeStaleSecurityGroupsOutput{} out.Result = output var buff [1024]byte @@ -25086,7 +25359,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumeAttribute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25100,7 +25373,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumeAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(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)} @@ -25133,14 +25406,14 @@ func awsEc2query_deserializeOpErrorDescribeVolumeAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeVolumes struct { +type awsEc2query_deserializeOpDescribeStoreImageTasks struct { } -func (*awsEc2query_deserializeOpDescribeVolumes) ID() string { +func (*awsEc2query_deserializeOpDescribeStoreImageTasks) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVolumes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) 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) @@ -25154,9 +25427,9 @@ func (m *awsEc2query_deserializeOpDescribeVolumes) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeStoreImageTasks(response, &metadata) } - output := &DescribeVolumesOutput{} + output := &DescribeStoreImageTasksOutput{} out.Result = output var buff [1024]byte @@ -25177,7 +25450,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumes) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVolumesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25191,7 +25464,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumes) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVolumes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeStoreImageTasks(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)} @@ -25224,14 +25497,14 @@ func awsEc2query_deserializeOpErrorDescribeVolumes(response *smithyhttp.Response } } -type awsEc2query_deserializeOpDescribeVolumesModifications struct { +type awsEc2query_deserializeOpDescribeSubnets struct { } -func (*awsEc2query_deserializeOpDescribeVolumesModifications) ID() string { +func (*awsEc2query_deserializeOpDescribeSubnets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVolumesModifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeSubnets) 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) @@ -25245,9 +25518,9 @@ func (m *awsEc2query_deserializeOpDescribeVolumesModifications) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumesModifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeSubnets(response, &metadata) } - output := &DescribeVolumesModificationsOutput{} + output := &DescribeSubnetsOutput{} out.Result = output var buff [1024]byte @@ -25268,7 +25541,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumesModifications) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25282,7 +25555,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumesModifications) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVolumesModifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeSubnets(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)} @@ -25315,14 +25588,14 @@ func awsEc2query_deserializeOpErrorDescribeVolumesModifications(response *smithy } } -type awsEc2query_deserializeOpDescribeVolumeStatus struct { +type awsEc2query_deserializeOpDescribeTags struct { } -func (*awsEc2query_deserializeOpDescribeVolumeStatus) ID() string { +func (*awsEc2query_deserializeOpDescribeTags) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVolumeStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_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) @@ -25336,9 +25609,9 @@ func (m *awsEc2query_deserializeOpDescribeVolumeStatus) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumeStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTags(response, &metadata) } - output := &DescribeVolumeStatusOutput{} + output := &DescribeTagsOutput{} out.Result = output var buff [1024]byte @@ -25359,7 +25632,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumeStatus) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTagsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25373,7 +25646,7 @@ func (m *awsEc2query_deserializeOpDescribeVolumeStatus) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVolumeStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_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)} @@ -25406,14 +25679,14 @@ func awsEc2query_deserializeOpErrorDescribeVolumeStatus(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcAttribute struct { +type awsEc2query_deserializeOpDescribeTrafficMirrorFilters struct { } -func (*awsEc2query_deserializeOpDescribeVpcAttribute) ID() string { +func (*awsEc2query_deserializeOpDescribeTrafficMirrorFilters) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilters) 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) @@ -25427,9 +25700,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcAttribute) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(response, &metadata) } - output := &DescribeVpcAttributeOutput{} + output := &DescribeTrafficMirrorFiltersOutput{} out.Result = output var buff [1024]byte @@ -25450,7 +25723,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcAttribute) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25464,7 +25737,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcAttribute) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(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)} @@ -25497,14 +25770,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcAttribute(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcClassicLink struct { +type awsEc2query_deserializeOpDescribeTrafficMirrorSessions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDescribeTrafficMirrorSessions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTrafficMirrorSessions) 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) @@ -25518,9 +25791,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(response, &metadata) } - output := &DescribeVpcClassicLinkOutput{} + output := &DescribeTrafficMirrorSessionsOutput{} out.Result = output var buff [1024]byte @@ -25541,7 +25814,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25555,7 +25828,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(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)} @@ -25588,14 +25861,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDescribeTrafficMirrorTargets struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDescribeTrafficMirrorTargets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTrafficMirrorTargets) 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) @@ -25609,9 +25882,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(response, &metadata) } - output := &DescribeVpcClassicLinkDnsSupportOutput{} + output := &DescribeTrafficMirrorTargetsOutput{} out.Result = output var buff [1024]byte @@ -25632,7 +25905,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25646,7 +25919,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(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)} @@ -25679,14 +25952,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *sm } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { +type awsEc2query_deserializeOpDescribeTransitGatewayAttachments struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayAttachments) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayAttachments) 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) @@ -25700,9 +25973,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(response, &metadata) } - output := &DescribeVpcEndpointConnectionNotificationsOutput{} + output := &DescribeTransitGatewayAttachmentsOutput{} out.Result = output var buff [1024]byte @@ -25723,7 +25996,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25737,7 +26010,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(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)} @@ -25770,14 +26043,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(re } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { +type awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) 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) @@ -25791,9 +26064,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(response, &metadata) } - output := &DescribeVpcEndpointConnectionsOutput{} + output := &DescribeTransitGatewayConnectPeersOutput{} out.Result = output var buff [1024]byte @@ -25814,7 +26087,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25828,7 +26101,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(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)} @@ -25861,14 +26134,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smit } } -type awsEc2query_deserializeOpDescribeVpcEndpoints struct { +type awsEc2query_deserializeOpDescribeTransitGatewayConnects struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayConnects) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnects) 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) @@ -25882,9 +26155,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(response, &metadata) } - output := &DescribeVpcEndpointsOutput{} + output := &DescribeTransitGatewayConnectsOutput{} out.Result = output var buff [1024]byte @@ -25905,7 +26178,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25919,7 +26192,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(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)} @@ -25952,14 +26225,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct { +type awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) 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) @@ -25973,9 +26246,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(response, &metadata) } - output := &DescribeVpcEndpointServiceConfigurationsOutput{} + output := &DescribeTransitGatewayMulticastDomainsOutput{} out.Result = output var buff [1024]byte @@ -25996,7 +26269,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26010,7 +26283,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(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)} @@ -26043,14 +26316,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(resp } } -type awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) 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) @@ -26064,9 +26337,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(response, &metadata) } - output := &DescribeVpcEndpointServicePermissionsOutput{} + output := &DescribeTransitGatewayPeeringAttachmentsOutput{} out.Result = output var buff [1024]byte @@ -26087,7 +26360,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26101,7 +26374,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(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)} @@ -26134,14 +26407,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(respons } } -type awsEc2query_deserializeOpDescribeVpcEndpointServices struct { +type awsEc2query_deserializeOpDescribeTransitGatewayRouteTables struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServices) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) 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) @@ -26155,9 +26428,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServices) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(response, &metadata) } - output := &DescribeVpcEndpointServicesOutput{} + output := &DescribeTransitGatewayRouteTablesOutput{} out.Result = output var buff [1024]byte @@ -26178,7 +26451,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServices) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26192,7 +26465,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServices) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(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)} @@ -26225,14 +26498,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(response *smithyh } } -type awsEc2query_deserializeOpDescribeVpcPeeringConnections struct { +type awsEc2query_deserializeOpDescribeTransitGateways struct { } -func (*awsEc2query_deserializeOpDescribeVpcPeeringConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcPeeringConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGateways) 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) @@ -26246,9 +26519,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcPeeringConnections) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGateways(response, &metadata) } - output := &DescribeVpcPeeringConnectionsOutput{} + output := &DescribeTransitGatewaysOutput{} out.Result = output var buff [1024]byte @@ -26269,7 +26542,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcPeeringConnections) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcPeeringConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26283,7 +26556,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcPeeringConnections) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGateways(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)} @@ -26316,14 +26589,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(response *smith } } -type awsEc2query_deserializeOpDescribeVpcs struct { +type awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments struct { } -func (*awsEc2query_deserializeOpDescribeVpcs) ID() string { +func (*awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) 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) @@ -26337,9 +26610,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcs) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(response, &metadata) } - output := &DescribeVpcsOutput{} + output := &DescribeTransitGatewayVpcAttachmentsOutput{} out.Result = output var buff [1024]byte @@ -26360,7 +26633,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcs) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26374,7 +26647,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcs) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(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)} @@ -26407,14 +26680,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcs(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpDescribeVpnConnections struct { +type awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations struct { } -func (*awsEc2query_deserializeOpDescribeVpnConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) 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) @@ -26428,9 +26701,9 @@ func (m *awsEc2query_deserializeOpDescribeVpnConnections) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpnConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(response, &metadata) } - output := &DescribeVpnConnectionsOutput{} + output := &DescribeTrunkInterfaceAssociationsOutput{} out.Result = output var buff [1024]byte @@ -26451,7 +26724,7 @@ func (m *awsEc2query_deserializeOpDescribeVpnConnections) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpnConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26465,7 +26738,7 @@ func (m *awsEc2query_deserializeOpDescribeVpnConnections) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(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)} @@ -26498,14 +26771,14 @@ func awsEc2query_deserializeOpErrorDescribeVpnConnections(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeVpnGateways struct { +type awsEc2query_deserializeOpDescribeVolumeAttribute struct { } -func (*awsEc2query_deserializeOpDescribeVpnGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeVolumeAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpnGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVolumeAttribute) 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) @@ -26519,9 +26792,9 @@ func (m *awsEc2query_deserializeOpDescribeVpnGateways) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpnGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumeAttribute(response, &metadata) } - output := &DescribeVpnGatewaysOutput{} + output := &DescribeVolumeAttributeOutput{} out.Result = output var buff [1024]byte @@ -26542,7 +26815,7 @@ func (m *awsEc2query_deserializeOpDescribeVpnGateways) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpnGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26556,7 +26829,7 @@ func (m *awsEc2query_deserializeOpDescribeVpnGateways) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpnGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVolumeAttribute(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)} @@ -26589,14 +26862,14 @@ func awsEc2query_deserializeOpErrorDescribeVpnGateways(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDetachClassicLinkVpc struct { +type awsEc2query_deserializeOpDescribeVolumes struct { } -func (*awsEc2query_deserializeOpDetachClassicLinkVpc) ID() string { +func (*awsEc2query_deserializeOpDescribeVolumes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDetachClassicLinkVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVolumes) 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) @@ -26610,9 +26883,9 @@ func (m *awsEc2query_deserializeOpDetachClassicLinkVpc) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDetachClassicLinkVpc(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumes(response, &metadata) } - output := &DetachClassicLinkVpcOutput{} + output := &DescribeVolumesOutput{} out.Result = output var buff [1024]byte @@ -26633,7 +26906,7 @@ func (m *awsEc2query_deserializeOpDetachClassicLinkVpc) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDetachClassicLinkVpcOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVolumesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26647,7 +26920,7 @@ func (m *awsEc2query_deserializeOpDetachClassicLinkVpc) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDetachClassicLinkVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVolumes(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)} @@ -26680,14 +26953,14 @@ func awsEc2query_deserializeOpErrorDetachClassicLinkVpc(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDetachInternetGateway struct { +type awsEc2query_deserializeOpDescribeVolumesModifications struct { } -func (*awsEc2query_deserializeOpDetachInternetGateway) ID() string { +func (*awsEc2query_deserializeOpDescribeVolumesModifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDetachInternetGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVolumesModifications) 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) @@ -26701,21 +26974,44 @@ func (m *awsEc2query_deserializeOpDetachInternetGateway) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDetachInternetGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumesModifications(response, &metadata) } - output := &DetachInternetGatewayOutput{} + output := &DescribeVolumesModificationsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDetachInternetGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVolumesModifications(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)} @@ -26748,14 +27044,14 @@ func awsEc2query_deserializeOpErrorDetachInternetGateway(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDetachNetworkInterface struct { +type awsEc2query_deserializeOpDescribeVolumeStatus struct { } -func (*awsEc2query_deserializeOpDetachNetworkInterface) ID() string { +func (*awsEc2query_deserializeOpDescribeVolumeStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDetachNetworkInterface) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVolumeStatus) 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) @@ -26769,21 +27065,44 @@ func (m *awsEc2query_deserializeOpDetachNetworkInterface) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDetachNetworkInterface(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumeStatus(response, &metadata) } - output := &DetachNetworkInterfaceOutput{} + output := &DescribeVolumeStatusOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDetachNetworkInterface(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVolumeStatus(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)} @@ -26816,14 +27135,14 @@ func awsEc2query_deserializeOpErrorDetachNetworkInterface(response *smithyhttp.R } } -type awsEc2query_deserializeOpDetachVolume struct { +type awsEc2query_deserializeOpDescribeVpcAttribute struct { } -func (*awsEc2query_deserializeOpDetachVolume) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDetachVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcAttribute) 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) @@ -26837,9 +27156,9 @@ func (m *awsEc2query_deserializeOpDetachVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDetachVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcAttribute(response, &metadata) } - output := &DetachVolumeOutput{} + output := &DescribeVpcAttributeOutput{} out.Result = output var buff [1024]byte @@ -26860,7 +27179,7 @@ func (m *awsEc2query_deserializeOpDetachVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDetachVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26874,7 +27193,7 @@ func (m *awsEc2query_deserializeOpDetachVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorDetachVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcAttribute(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)} @@ -26907,14 +27226,14 @@ func awsEc2query_deserializeOpErrorDetachVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpDetachVpnGateway struct { +type awsEc2query_deserializeOpDescribeVpcClassicLink struct { } -func (*awsEc2query_deserializeOpDetachVpnGateway) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDetachVpnGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) 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) @@ -26928,21 +27247,44 @@ func (m *awsEc2query_deserializeOpDetachVpnGateway) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDetachVpnGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) } - output := &DetachVpnGatewayOutput{} + output := &DescribeVpcClassicLinkOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorDetachVpnGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(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)} @@ -26975,14 +27317,14 @@ func awsEc2query_deserializeOpErrorDetachVpnGateway(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpDisableEbsEncryptionByDefault struct { +type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpDisableEbsEncryptionByDefault) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableEbsEncryptionByDefault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) 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) @@ -26996,9 +27338,9 @@ func (m *awsEc2query_deserializeOpDisableEbsEncryptionByDefault) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) } - output := &DisableEbsEncryptionByDefaultOutput{} + output := &DescribeVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -27019,7 +27361,7 @@ func (m *awsEc2query_deserializeOpDisableEbsEncryptionByDefault) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableEbsEncryptionByDefaultOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27033,7 +27375,7 @@ func (m *awsEc2query_deserializeOpDisableEbsEncryptionByDefault) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(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)} @@ -27066,14 +27408,14 @@ func awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(response *smith } } -type awsEc2query_deserializeOpDisableFastSnapshotRestores struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_deserializeOpDisableFastSnapshotRestores) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableFastSnapshotRestores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) 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) @@ -27087,9 +27429,9 @@ func (m *awsEc2query_deserializeOpDisableFastSnapshotRestores) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) } - output := &DisableFastSnapshotRestoresOutput{} + output := &DescribeVpcEndpointConnectionNotificationsOutput{} out.Result = output var buff [1024]byte @@ -27110,7 +27452,7 @@ func (m *awsEc2query_deserializeOpDisableFastSnapshotRestores) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableFastSnapshotRestoresOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27124,7 +27466,7 @@ func (m *awsEc2query_deserializeOpDisableFastSnapshotRestores) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(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)} @@ -27157,14 +27499,14 @@ func awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(response *smithyh } } -type awsEc2query_deserializeOpDisableImageDeprecation struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpDisableImageDeprecation) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableImageDeprecation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) 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) @@ -27178,9 +27520,9 @@ func (m *awsEc2query_deserializeOpDisableImageDeprecation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableImageDeprecation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) } - output := &DisableImageDeprecationOutput{} + output := &DescribeVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -27201,7 +27543,7 @@ func (m *awsEc2query_deserializeOpDisableImageDeprecation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableImageDeprecationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27215,7 +27557,7 @@ func (m *awsEc2query_deserializeOpDisableImageDeprecation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableImageDeprecation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(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)} @@ -27248,14 +27590,14 @@ func awsEc2query_deserializeOpErrorDisableImageDeprecation(response *smithyhttp. } } -type awsEc2query_deserializeOpDisableSerialConsoleAccess struct { +type awsEc2query_deserializeOpDescribeVpcEndpoints struct { } -func (*awsEc2query_deserializeOpDisableSerialConsoleAccess) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) 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) @@ -27269,9 +27611,9 @@ func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata) } - output := &DisableSerialConsoleAccessOutput{} + output := &DescribeVpcEndpointsOutput{} out.Result = output var buff [1024]byte @@ -27292,7 +27634,7 @@ func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableSerialConsoleAccessOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27306,7 +27648,7 @@ func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(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)} @@ -27339,14 +27681,14 @@ func awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(response *smithyht } } -type awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation struct { +type awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct { } -func (*awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) 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) @@ -27360,9 +27702,9 @@ func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) } - output := &DisableTransitGatewayRouteTablePropagationOutput{} + output := &DescribeVpcEndpointServiceConfigurationsOutput{} out.Result = output var buff [1024]byte @@ -27383,7 +27725,7 @@ func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableTransitGatewayRouteTablePropagationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27397,7 +27739,7 @@ func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(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)} @@ -27430,14 +27772,14 @@ func awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(re } } -type awsEc2query_deserializeOpDisableVgwRoutePropagation struct { +type awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions struct { } -func (*awsEc2query_deserializeOpDisableVgwRoutePropagation) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) 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) @@ -27451,21 +27793,44 @@ func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(response, &metadata) } - output := &DisableVgwRoutePropagationOutput{} + output := &DescribeVpcEndpointServicePermissionsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicePermissionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(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)} @@ -27498,14 +27863,14 @@ func awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response *smithyht } } -type awsEc2query_deserializeOpDisableVpcClassicLink struct { +type awsEc2query_deserializeOpDescribeVpcEndpointServices struct { } -func (*awsEc2query_deserializeOpDisableVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointServices) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointServices) 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) @@ -27519,9 +27884,9 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(response, &metadata) } - output := &DisableVpcClassicLinkOutput{} + output := &DescribeVpcEndpointServicesOutput{} out.Result = output var buff [1024]byte @@ -27542,7 +27907,7 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27556,7 +27921,7 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(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)} @@ -27589,14 +27954,14 @@ func awsEc2query_deserializeOpErrorDisableVpcClassicLink(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDescribeVpcPeeringConnections struct { } -func (*awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcPeeringConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcPeeringConnections) 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) @@ -27610,9 +27975,9 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(response, &metadata) } - output := &DisableVpcClassicLinkDnsSupportOutput{} + output := &DescribeVpcPeeringConnectionsOutput{} out.Result = output var buff [1024]byte @@ -27633,7 +27998,7 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcPeeringConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27647,7 +28012,7 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(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)} @@ -27680,14 +28045,14 @@ func awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response *smi } } -type awsEc2query_deserializeOpDisassociateAddress struct { +type awsEc2query_deserializeOpDescribeVpcs struct { } -func (*awsEc2query_deserializeOpDisassociateAddress) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcs) 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) @@ -27701,21 +28066,44 @@ func (m *awsEc2query_deserializeOpDisassociateAddress) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateAddress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcs(response, &metadata) } - output := &DisassociateAddressOutput{} + output := &DescribeVpcsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVpcsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcs(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)} @@ -27748,14 +28136,14 @@ func awsEc2query_deserializeOpErrorDisassociateAddress(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork struct { +type awsEc2query_deserializeOpDescribeVpnConnections struct { } -func (*awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) ID() string { +func (*awsEc2query_deserializeOpDescribeVpnConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpnConnections) 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) @@ -27769,9 +28157,9 @@ func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpnConnections(response, &metadata) } - output := &DisassociateClientVpnTargetNetworkOutput{} + output := &DescribeVpnConnectionsOutput{} out.Result = output var buff [1024]byte @@ -27792,7 +28180,7 @@ func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateClientVpnTargetNetworkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpnConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27806,7 +28194,7 @@ func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDese return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpnConnections(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)} @@ -27839,14 +28227,14 @@ func awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response * } } -type awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole struct { +type awsEc2query_deserializeOpDescribeVpnGateways struct { } -func (*awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) ID() string { +func (*awsEc2query_deserializeOpDescribeVpnGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpnGateways) 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) @@ -27860,9 +28248,9 @@ func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpnGateways(response, &metadata) } - output := &DisassociateEnclaveCertificateIamRoleOutput{} + output := &DescribeVpnGatewaysOutput{} out.Result = output var buff [1024]byte @@ -27883,7 +28271,7 @@ func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpnGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27897,7 +28285,7 @@ func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpnGateways(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)} @@ -27930,14 +28318,14 @@ func awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(respons } } -type awsEc2query_deserializeOpDisassociateIamInstanceProfile struct { +type awsEc2query_deserializeOpDetachClassicLinkVpc struct { } -func (*awsEc2query_deserializeOpDisassociateIamInstanceProfile) ID() string { +func (*awsEc2query_deserializeOpDetachClassicLinkVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDetachClassicLinkVpc) 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) @@ -27951,9 +28339,9 @@ func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDetachClassicLinkVpc(response, &metadata) } - output := &DisassociateIamInstanceProfileOutput{} + output := &DetachClassicLinkVpcOutput{} out.Result = output var buff [1024]byte @@ -27974,7 +28362,7 @@ func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDetachClassicLinkVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27988,7 +28376,7 @@ func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDetachClassicLinkVpc(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)} @@ -28021,14 +28409,14 @@ func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response *smit } } -type awsEc2query_deserializeOpDisassociateInstanceEventWindow struct { +type awsEc2query_deserializeOpDetachInternetGateway struct { } -func (*awsEc2query_deserializeOpDisassociateInstanceEventWindow) ID() string { +func (*awsEc2query_deserializeOpDetachInternetGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDetachInternetGateway) 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) @@ -28042,44 +28430,21 @@ func (m *awsEc2query_deserializeOpDisassociateInstanceEventWindow) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDetachInternetGateway(response, &metadata) } - output := &DisassociateInstanceEventWindowOutput{} + output := &DetachInternetGatewayOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDetachInternetGateway(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)} @@ -28112,14 +28477,14 @@ func awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response *smi } } -type awsEc2query_deserializeOpDisassociateRouteTable struct { +type awsEc2query_deserializeOpDetachNetworkInterface struct { } -func (*awsEc2query_deserializeOpDisassociateRouteTable) ID() string { +func (*awsEc2query_deserializeOpDetachNetworkInterface) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDetachNetworkInterface) 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) @@ -28133,9 +28498,9 @@ func (m *awsEc2query_deserializeOpDisassociateRouteTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDetachNetworkInterface(response, &metadata) } - output := &DisassociateRouteTableOutput{} + output := &DetachNetworkInterfaceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -28147,7 +28512,7 @@ func (m *awsEc2query_deserializeOpDisassociateRouteTable) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDetachNetworkInterface(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)} @@ -28180,14 +28545,14 @@ func awsEc2query_deserializeOpErrorDisassociateRouteTable(response *smithyhttp.R } } -type awsEc2query_deserializeOpDisassociateSubnetCidrBlock struct { +type awsEc2query_deserializeOpDetachVolume struct { } -func (*awsEc2query_deserializeOpDisassociateSubnetCidrBlock) ID() string { +func (*awsEc2query_deserializeOpDetachVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDetachVolume) 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) @@ -28201,9 +28566,9 @@ func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDetachVolume(response, &metadata) } - output := &DisassociateSubnetCidrBlockOutput{} + output := &DetachVolumeOutput{} out.Result = output var buff [1024]byte @@ -28224,7 +28589,7 @@ func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDetachVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28238,7 +28603,7 @@ func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDetachVolume(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)} @@ -28271,14 +28636,14 @@ func awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response *smithyh } } -type awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain struct { +type awsEc2query_deserializeOpDetachVpnGateway struct { } -func (*awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) ID() string { +func (*awsEc2query_deserializeOpDetachVpnGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDetachVpnGateway) 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) @@ -28292,44 +28657,21 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDetachVpnGateway(response, &metadata) } - output := &DisassociateTransitGatewayMulticastDomainOutput{} + output := &DetachVpnGatewayOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayMulticastDomainOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDetachVpnGateway(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)} @@ -28362,14 +28704,14 @@ func awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(res } } -type awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable struct { +type awsEc2query_deserializeOpDisableEbsEncryptionByDefault struct { } -func (*awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) ID() string { +func (*awsEc2query_deserializeOpDisableEbsEncryptionByDefault) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableEbsEncryptionByDefault) 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) @@ -28383,9 +28725,9 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(response, &metadata) } - output := &DisassociateTransitGatewayRouteTableOutput{} + output := &DisableEbsEncryptionByDefaultOutput{} out.Result = output var buff [1024]byte @@ -28406,7 +28748,7 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayRouteTableOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableEbsEncryptionByDefaultOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28420,7 +28762,7 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(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)} @@ -28453,14 +28795,14 @@ func awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response } } -type awsEc2query_deserializeOpDisassociateTrunkInterface struct { +type awsEc2query_deserializeOpDisableFastSnapshotRestores struct { } -func (*awsEc2query_deserializeOpDisassociateTrunkInterface) ID() string { +func (*awsEc2query_deserializeOpDisableFastSnapshotRestores) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableFastSnapshotRestores) 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) @@ -28474,9 +28816,9 @@ func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateTrunkInterface(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(response, &metadata) } - output := &DisassociateTrunkInterfaceOutput{} + output := &DisableFastSnapshotRestoresOutput{} out.Result = output var buff [1024]byte @@ -28497,7 +28839,7 @@ func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateTrunkInterfaceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableFastSnapshotRestoresOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28511,7 +28853,7 @@ func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateTrunkInterface(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(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)} @@ -28544,14 +28886,14 @@ func awsEc2query_deserializeOpErrorDisassociateTrunkInterface(response *smithyht } } -type awsEc2query_deserializeOpDisassociateVpcCidrBlock struct { +type awsEc2query_deserializeOpDisableImageDeprecation struct { } -func (*awsEc2query_deserializeOpDisassociateVpcCidrBlock) ID() string { +func (*awsEc2query_deserializeOpDisableImageDeprecation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableImageDeprecation) 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) @@ -28565,9 +28907,9 @@ func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableImageDeprecation(response, &metadata) } - output := &DisassociateVpcCidrBlockOutput{} + output := &DisableImageDeprecationOutput{} out.Result = output var buff [1024]byte @@ -28588,7 +28930,7 @@ func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateVpcCidrBlockOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableImageDeprecationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28602,7 +28944,7 @@ func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableImageDeprecation(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)} @@ -28635,14 +28977,14 @@ func awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response *smithyhttp } } -type awsEc2query_deserializeOpEnableEbsEncryptionByDefault struct { +type awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount struct { } -func (*awsEc2query_deserializeOpEnableEbsEncryptionByDefault) ID() string { +func (*awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount) 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) @@ -28656,9 +28998,9 @@ func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableIpamOrganizationAdminAccount(response, &metadata) } - output := &EnableEbsEncryptionByDefaultOutput{} + output := &DisableIpamOrganizationAdminAccountOutput{} out.Result = output var buff [1024]byte @@ -28679,7 +29021,7 @@ func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableIpamOrganizationAdminAccountOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28693,7 +29035,7 @@ func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableIpamOrganizationAdminAccount(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)} @@ -28726,14 +29068,14 @@ func awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response *smithy } } -type awsEc2query_deserializeOpEnableFastSnapshotRestores struct { +type awsEc2query_deserializeOpDisableSerialConsoleAccess struct { } -func (*awsEc2query_deserializeOpEnableFastSnapshotRestores) ID() string { +func (*awsEc2query_deserializeOpDisableSerialConsoleAccess) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) 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) @@ -28747,9 +29089,9 @@ func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(response, &metadata) } - output := &EnableFastSnapshotRestoresOutput{} + output := &DisableSerialConsoleAccessOutput{} out.Result = output var buff [1024]byte @@ -28770,7 +29112,7 @@ func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableFastSnapshotRestoresOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableSerialConsoleAccessOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28784,7 +29126,7 @@ func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(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)} @@ -28817,14 +29159,14 @@ func awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response *smithyht } } -type awsEc2query_deserializeOpEnableImageDeprecation struct { +type awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation struct { } -func (*awsEc2query_deserializeOpEnableImageDeprecation) ID() string { +func (*awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableImageDeprecation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) 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) @@ -28838,9 +29180,9 @@ func (m *awsEc2query_deserializeOpEnableImageDeprecation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableImageDeprecation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response, &metadata) } - output := &EnableImageDeprecationOutput{} + output := &DisableTransitGatewayRouteTablePropagationOutput{} out.Result = output var buff [1024]byte @@ -28861,7 +29203,7 @@ func (m *awsEc2query_deserializeOpEnableImageDeprecation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableImageDeprecationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableTransitGatewayRouteTablePropagationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28875,7 +29217,7 @@ func (m *awsEc2query_deserializeOpEnableImageDeprecation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableImageDeprecation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(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)} @@ -28908,14 +29250,14 @@ func awsEc2query_deserializeOpErrorEnableImageDeprecation(response *smithyhttp.R } } -type awsEc2query_deserializeOpEnableSerialConsoleAccess struct { +type awsEc2query_deserializeOpDisableVgwRoutePropagation struct { } -func (*awsEc2query_deserializeOpEnableSerialConsoleAccess) ID() string { +func (*awsEc2query_deserializeOpDisableVgwRoutePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) 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) @@ -28929,9 +29271,77 @@ func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response, &metadata) } - output := &EnableSerialConsoleAccessOutput{} + output := &DisableVgwRoutePropagationOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDisableVpcClassicLink struct { +} + +func (*awsEc2query_deserializeOpDisableVpcClassicLink) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDisableVpcClassicLink) 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, awsEc2query_deserializeOpErrorDisableVpcClassicLink(response, &metadata) + } + output := &DisableVpcClassicLinkOutput{} out.Result = output var buff [1024]byte @@ -28952,7 +29362,7 @@ func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableSerialConsoleAccessOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28966,7 +29376,7 @@ func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableVpcClassicLink(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)} @@ -28999,14 +29409,14 @@ func awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(response *smithyhtt } } -type awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation struct { +type awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) ID() string { +func (*awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) 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) @@ -29020,9 +29430,9 @@ func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response, &metadata) } - output := &EnableTransitGatewayRouteTablePropagationOutput{} + output := &DisableVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -29043,7 +29453,7 @@ func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) Han } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableTransitGatewayRouteTablePropagationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29057,7 +29467,7 @@ func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) Han return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(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)} @@ -29090,14 +29500,14 @@ func awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(res } } -type awsEc2query_deserializeOpEnableVgwRoutePropagation struct { +type awsEc2query_deserializeOpDisassociateAddress struct { } -func (*awsEc2query_deserializeOpEnableVgwRoutePropagation) ID() string { +func (*awsEc2query_deserializeOpDisassociateAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateAddress) 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) @@ -29111,9 +29521,9 @@ func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateAddress(response, &metadata) } - output := &EnableVgwRoutePropagationOutput{} + output := &DisassociateAddressOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -29125,7 +29535,7 @@ func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateAddress(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)} @@ -29158,14 +29568,14 @@ func awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response *smithyhtt } } -type awsEc2query_deserializeOpEnableVolumeIO struct { +type awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork struct { } -func (*awsEc2query_deserializeOpEnableVolumeIO) ID() string { +func (*awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVolumeIO) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) 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) @@ -29179,21 +29589,44 @@ func (m *awsEc2query_deserializeOpEnableVolumeIO) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVolumeIO(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response, &metadata) } - output := &EnableVolumeIOOutput{} + output := &DisassociateClientVpnTargetNetworkOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDisassociateClientVpnTargetNetworkOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableVolumeIO(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(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)} @@ -29226,14 +29659,14 @@ func awsEc2query_deserializeOpErrorEnableVolumeIO(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpEnableVpcClassicLink struct { +type awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole struct { } -func (*awsEc2query_deserializeOpEnableVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) 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) @@ -29247,9 +29680,9 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response, &metadata) } - output := &EnableVpcClassicLinkOutput{} + output := &DisassociateEnclaveCertificateIamRoleOutput{} out.Result = output var buff [1024]byte @@ -29270,7 +29703,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29284,7 +29717,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(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)} @@ -29317,14 +29750,14 @@ func awsEc2query_deserializeOpErrorEnableVpcClassicLink(response *smithyhttp.Res } } -type awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDisassociateIamInstanceProfile struct { } -func (*awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDisassociateIamInstanceProfile) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) 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) @@ -29338,9 +29771,9 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response, &metadata) } - output := &EnableVpcClassicLinkDnsSupportOutput{} + output := &DisassociateIamInstanceProfileOutput{} out.Result = output var buff [1024]byte @@ -29361,7 +29794,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29375,7 +29808,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(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)} @@ -29408,14 +29841,14 @@ func awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response *smit } } -type awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList struct { +type awsEc2query_deserializeOpDisassociateInstanceEventWindow struct { } -func (*awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) ID() string { +func (*awsEc2query_deserializeOpDisassociateInstanceEventWindow) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateInstanceEventWindow) 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) @@ -29429,9 +29862,9 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response, &metadata) } - output := &ExportClientVpnClientCertificateRevocationListOutput{} + output := &DisassociateInstanceEventWindowOutput{} out.Result = output var buff [1024]byte @@ -29452,7 +29885,7 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportClientVpnClientCertificateRevocationListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29466,7 +29899,7 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList return out, metadata, err } -func awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(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)} @@ -29499,14 +29932,14 @@ func awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationLis } } -type awsEc2query_deserializeOpExportClientVpnClientConfiguration struct { +type awsEc2query_deserializeOpDisassociateRouteTable struct { } -func (*awsEc2query_deserializeOpExportClientVpnClientConfiguration) ID() string { +func (*awsEc2query_deserializeOpDisassociateRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateRouteTable) 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) @@ -29520,44 +29953,21 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateRouteTable(response, &metadata) } - output := &ExportClientVpnClientConfigurationOutput{} + output := &DisassociateRouteTableOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportClientVpnClientConfigurationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateRouteTable(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)} @@ -29590,14 +30000,14 @@ func awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response * } } -type awsEc2query_deserializeOpExportImage struct { +type awsEc2query_deserializeOpDisassociateSubnetCidrBlock struct { } -func (*awsEc2query_deserializeOpExportImage) ID() string { +func (*awsEc2query_deserializeOpDisassociateSubnetCidrBlock) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) 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) @@ -29611,9 +30021,9 @@ func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response, &metadata) } - output := &ExportImageOutput{} + output := &DisassociateSubnetCidrBlockOutput{} out.Result = output var buff [1024]byte @@ -29634,7 +30044,7 @@ func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29648,7 +30058,7 @@ func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorExportImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(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)} @@ -29681,14 +30091,14 @@ func awsEc2query_deserializeOpErrorExportImage(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpExportTransitGatewayRoutes struct { +type awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain struct { } -func (*awsEc2query_deserializeOpExportTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) 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) @@ -29702,9 +30112,9 @@ func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response, &metadata) } - output := &ExportTransitGatewayRoutesOutput{} + output := &DisassociateTransitGatewayMulticastDomainOutput{} out.Result = output var buff [1024]byte @@ -29725,7 +30135,7 @@ func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayMulticastDomainOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29739,7 +30149,7 @@ func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(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)} @@ -29772,14 +30182,14 @@ func awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response *smithyht } } -type awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles struct { +type awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable struct { } -func (*awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string { +func (*awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) 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) @@ -29793,9 +30203,9 @@ func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response, &metadata) } - output := &GetAssociatedEnclaveCertificateIamRolesOutput{} + output := &DisassociateTransitGatewayRouteTableOutput{} out.Result = output var buff [1024]byte @@ -29816,7 +30226,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetAssociatedEnclaveCertificateIamRolesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayRouteTableOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29830,7 +30240,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(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)} @@ -29863,14 +30273,14 @@ func awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(respo } } -type awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs struct { +type awsEc2query_deserializeOpDisassociateTrunkInterface struct { } -func (*awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) ID() string { +func (*awsEc2query_deserializeOpDisassociateTrunkInterface) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) 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) @@ -29884,9 +30294,9 @@ func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateTrunkInterface(response, &metadata) } - output := &GetAssociatedIpv6PoolCidrsOutput{} + output := &DisassociateTrunkInterfaceOutput{} out.Result = output var buff [1024]byte @@ -29907,7 +30317,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetAssociatedIpv6PoolCidrsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateTrunkInterfaceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29921,7 +30331,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateTrunkInterface(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)} @@ -29954,14 +30364,14 @@ func awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response *smithyht } } -type awsEc2query_deserializeOpGetCapacityReservationUsage struct { +type awsEc2query_deserializeOpDisassociateVpcCidrBlock struct { } -func (*awsEc2query_deserializeOpGetCapacityReservationUsage) ID() string { +func (*awsEc2query_deserializeOpDisassociateVpcCidrBlock) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) 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) @@ -29975,9 +30385,9 @@ func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response, &metadata) } - output := &GetCapacityReservationUsageOutput{} + output := &DisassociateVpcCidrBlockOutput{} out.Result = output var buff [1024]byte @@ -29998,7 +30408,7 @@ func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateVpcCidrBlockOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30012,7 +30422,7 @@ func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(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)} @@ -30045,14 +30455,14 @@ func awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response *smithyh } } -type awsEc2query_deserializeOpGetCoipPoolUsage struct { +type awsEc2query_deserializeOpEnableEbsEncryptionByDefault struct { } -func (*awsEc2query_deserializeOpGetCoipPoolUsage) ID() string { +func (*awsEc2query_deserializeOpEnableEbsEncryptionByDefault) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) 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) @@ -30066,9 +30476,9 @@ func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetCoipPoolUsage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response, &metadata) } - output := &GetCoipPoolUsageOutput{} + output := &EnableEbsEncryptionByDefaultOutput{} out.Result = output var buff [1024]byte @@ -30089,7 +30499,7 @@ func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30103,7 +30513,7 @@ func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorGetCoipPoolUsage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(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)} @@ -30136,14 +30546,14 @@ func awsEc2query_deserializeOpErrorGetCoipPoolUsage(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpGetConsoleOutput struct { +type awsEc2query_deserializeOpEnableFastSnapshotRestores struct { } -func (*awsEc2query_deserializeOpGetConsoleOutput) ID() string { +func (*awsEc2query_deserializeOpEnableFastSnapshotRestores) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) 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) @@ -30157,9 +30567,9 @@ func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetConsoleOutput(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response, &metadata) } - output := &GetConsoleOutputOutput{} + output := &EnableFastSnapshotRestoresOutput{} out.Result = output var buff [1024]byte @@ -30180,7 +30590,7 @@ func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableFastSnapshotRestoresOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30194,7 +30604,7 @@ func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorGetConsoleOutput(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(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)} @@ -30227,14 +30637,14 @@ func awsEc2query_deserializeOpErrorGetConsoleOutput(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpGetConsoleScreenshot struct { +type awsEc2query_deserializeOpEnableImageDeprecation struct { } -func (*awsEc2query_deserializeOpGetConsoleScreenshot) ID() string { +func (*awsEc2query_deserializeOpEnableImageDeprecation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableImageDeprecation) 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) @@ -30248,9 +30658,9 @@ func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetConsoleScreenshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableImageDeprecation(response, &metadata) } - output := &GetConsoleScreenshotOutput{} + output := &EnableImageDeprecationOutput{} out.Result = output var buff [1024]byte @@ -30271,7 +30681,7 @@ func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableImageDeprecationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30285,7 +30695,7 @@ func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorGetConsoleScreenshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableImageDeprecation(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)} @@ -30318,14 +30728,14 @@ func awsEc2query_deserializeOpErrorGetConsoleScreenshot(response *smithyhttp.Res } } -type awsEc2query_deserializeOpGetDefaultCreditSpecification struct { +type awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount struct { } -func (*awsEc2query_deserializeOpGetDefaultCreditSpecification) ID() string { +func (*awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount) 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) @@ -30339,9 +30749,9 @@ func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableIpamOrganizationAdminAccount(response, &metadata) } - output := &GetDefaultCreditSpecificationOutput{} + output := &EnableIpamOrganizationAdminAccountOutput{} out.Result = output var buff [1024]byte @@ -30362,7 +30772,7 @@ func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetDefaultCreditSpecificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableIpamOrganizationAdminAccountOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30376,7 +30786,7 @@ func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableIpamOrganizationAdminAccount(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)} @@ -30409,14 +30819,14 @@ func awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response *smith } } -type awsEc2query_deserializeOpGetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpEnableSerialConsoleAccess struct { } -func (*awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpEnableSerialConsoleAccess) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) 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) @@ -30430,9 +30840,9 @@ func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(response, &metadata) } - output := &GetEbsDefaultKmsKeyIdOutput{} + output := &EnableSerialConsoleAccessOutput{} out.Result = output var buff [1024]byte @@ -30453,7 +30863,7 @@ func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableSerialConsoleAccessOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30467,7 +30877,7 @@ func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(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)} @@ -30500,14 +30910,14 @@ func awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response *smithyhttp.Re } } -type awsEc2query_deserializeOpGetEbsEncryptionByDefault struct { +type awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation struct { } -func (*awsEc2query_deserializeOpGetEbsEncryptionByDefault) ID() string { +func (*awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) 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) @@ -30521,9 +30931,9 @@ func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response, &metadata) } - output := &GetEbsEncryptionByDefaultOutput{} + output := &EnableTransitGatewayRouteTablePropagationOutput{} out.Result = output var buff [1024]byte @@ -30544,7 +30954,7 @@ func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableTransitGatewayRouteTablePropagationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30558,7 +30968,7 @@ func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(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)} @@ -30591,14 +31001,14 @@ func awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response *smithyhtt } } -type awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate struct { +type awsEc2query_deserializeOpEnableVgwRoutePropagation struct { } -func (*awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) ID() string { +func (*awsEc2query_deserializeOpEnableVgwRoutePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) 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) @@ -30612,44 +31022,89 @@ func (m *awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response, &metadata) } - output := &GetFlowLogsIntegrationTemplateOutput{} + output := &EnableVgwRoutePropagationOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetFlowLogsIntegrationTemplateOutput(&output, decoder) + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) 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 + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } + return genericError + + } +} + +type awsEc2query_deserializeOpEnableVolumeIO struct { +} + +func (*awsEc2query_deserializeOpEnableVolumeIO) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpEnableVolumeIO) 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, awsEc2query_deserializeOpErrorEnableVolumeIO(response, &metadata) + } + output := &EnableVolumeIOOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableVolumeIO(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)} @@ -30682,14 +31137,14 @@ func awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(response *smit } } -type awsEc2query_deserializeOpGetGroupsForCapacityReservation struct { +type awsEc2query_deserializeOpEnableVpcClassicLink struct { } -func (*awsEc2query_deserializeOpGetGroupsForCapacityReservation) ID() string { +func (*awsEc2query_deserializeOpEnableVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableVpcClassicLink) 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) @@ -30703,9 +31158,9 @@ func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLink(response, &metadata) } - output := &GetGroupsForCapacityReservationOutput{} + output := &EnableVpcClassicLinkOutput{} out.Result = output var buff [1024]byte @@ -30726,7 +31181,7 @@ func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30740,7 +31195,7 @@ func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableVpcClassicLink(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)} @@ -30773,14 +31228,14 @@ func awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response *smi } } -type awsEc2query_deserializeOpGetHostReservationPurchasePreview struct { +type awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpGetHostReservationPurchasePreview) ID() string { +func (*awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) 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) @@ -30794,9 +31249,9 @@ func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response, &metadata) } - output := &GetHostReservationPurchasePreviewOutput{} + output := &EnableVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -30817,7 +31272,7 @@ func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30831,7 +31286,7 @@ func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(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)} @@ -30864,14 +31319,14 @@ func awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response *s } } -type awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements struct { +type awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList struct { } -func (*awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) ID() string { +func (*awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) 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) @@ -30885,9 +31340,9 @@ func (m *awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response, &metadata) } - output := &GetInstanceTypesFromInstanceRequirementsOutput{} + output := &ExportClientVpnClientCertificateRevocationListOutput{} out.Result = output var buff [1024]byte @@ -30908,7 +31363,7 @@ func (m *awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportClientVpnClientCertificateRevocationListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30922,7 +31377,7 @@ func (m *awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(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)} @@ -30955,14 +31410,14 @@ func awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(resp } } -type awsEc2query_deserializeOpGetLaunchTemplateData struct { +type awsEc2query_deserializeOpExportClientVpnClientConfiguration struct { } -func (*awsEc2query_deserializeOpGetLaunchTemplateData) ID() string { +func (*awsEc2query_deserializeOpExportClientVpnClientConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) 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) @@ -30976,9 +31431,9 @@ func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetLaunchTemplateData(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response, &metadata) } - output := &GetLaunchTemplateDataOutput{} + output := &ExportClientVpnClientConfigurationOutput{} out.Result = output var buff [1024]byte @@ -30999,7 +31454,7 @@ func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportClientVpnClientConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31013,7 +31468,7 @@ func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetLaunchTemplateData(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(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)} @@ -31046,14 +31501,14 @@ func awsEc2query_deserializeOpErrorGetLaunchTemplateData(response *smithyhttp.Re } } -type awsEc2query_deserializeOpGetManagedPrefixListAssociations struct { +type awsEc2query_deserializeOpExportImage struct { } -func (*awsEc2query_deserializeOpGetManagedPrefixListAssociations) ID() string { +func (*awsEc2query_deserializeOpExportImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportImage) 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) @@ -31067,9 +31522,9 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportImage(response, &metadata) } - output := &GetManagedPrefixListAssociationsOutput{} + output := &ExportImageOutput{} out.Result = output var buff [1024]byte @@ -31090,7 +31545,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31104,7 +31559,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportImage(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)} @@ -31137,14 +31592,14 @@ func awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response *sm } } -type awsEc2query_deserializeOpGetManagedPrefixListEntries struct { +type awsEc2query_deserializeOpExportTransitGatewayRoutes struct { } -func (*awsEc2query_deserializeOpGetManagedPrefixListEntries) ID() string { +func (*awsEc2query_deserializeOpExportTransitGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) 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) @@ -31158,9 +31613,9 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response, &metadata) } - output := &GetManagedPrefixListEntriesOutput{} + output := &ExportTransitGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -31181,7 +31636,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportTransitGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31195,7 +31650,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(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)} @@ -31228,14 +31683,14 @@ func awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response *smithyh } } -type awsEc2query_deserializeOpGetPasswordData struct { +type awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles struct { } -func (*awsEc2query_deserializeOpGetPasswordData) ID() string { +func (*awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) 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) @@ -31249,9 +31704,9 @@ func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetPasswordData(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response, &metadata) } - output := &GetPasswordDataOutput{} + output := &GetAssociatedEnclaveCertificateIamRolesOutput{} out.Result = output var buff [1024]byte @@ -31272,7 +31727,7 @@ func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetPasswordDataOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetAssociatedEnclaveCertificateIamRolesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31286,7 +31741,7 @@ func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorGetPasswordData(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(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)} @@ -31319,14 +31774,14 @@ func awsEc2query_deserializeOpErrorGetPasswordData(response *smithyhttp.Response } } -type awsEc2query_deserializeOpGetReservedInstancesExchangeQuote struct { +type awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs struct { } -func (*awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) ID() string { +func (*awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) 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) @@ -31340,9 +31795,9 @@ func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response, &metadata) } - output := &GetReservedInstancesExchangeQuoteOutput{} + output := &GetAssociatedIpv6PoolCidrsOutput{} out.Result = output var buff [1024]byte @@ -31363,7 +31818,7 @@ func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetAssociatedIpv6PoolCidrsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31377,7 +31832,7 @@ func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(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)} @@ -31410,14 +31865,14 @@ func awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response *s } } -type awsEc2query_deserializeOpGetSerialConsoleAccessStatus struct { +type awsEc2query_deserializeOpGetCapacityReservationUsage struct { } -func (*awsEc2query_deserializeOpGetSerialConsoleAccessStatus) ID() string { +func (*awsEc2query_deserializeOpGetCapacityReservationUsage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) 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) @@ -31431,9 +31886,9 @@ func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response, &metadata) } - output := &GetSerialConsoleAccessStatusOutput{} + output := &GetCapacityReservationUsageOutput{} out.Result = output var buff [1024]byte @@ -31454,7 +31909,7 @@ func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31468,7 +31923,7 @@ func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetCapacityReservationUsage(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)} @@ -31501,14 +31956,14 @@ func awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response *smithy } } -type awsEc2query_deserializeOpGetSpotPlacementScores struct { +type awsEc2query_deserializeOpGetCoipPoolUsage struct { } -func (*awsEc2query_deserializeOpGetSpotPlacementScores) ID() string { +func (*awsEc2query_deserializeOpGetCoipPoolUsage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetSpotPlacementScores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetCoipPoolUsage) 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) @@ -31522,9 +31977,9 @@ func (m *awsEc2query_deserializeOpGetSpotPlacementScores) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetSpotPlacementScores(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetCoipPoolUsage(response, &metadata) } - output := &GetSpotPlacementScoresOutput{} + output := &GetCoipPoolUsageOutput{} out.Result = output var buff [1024]byte @@ -31545,7 +32000,7 @@ func (m *awsEc2query_deserializeOpGetSpotPlacementScores) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetSpotPlacementScoresOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31559,7 +32014,7 @@ func (m *awsEc2query_deserializeOpGetSpotPlacementScores) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorGetSpotPlacementScores(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetCoipPoolUsage(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)} @@ -31592,14 +32047,14 @@ func awsEc2query_deserializeOpErrorGetSpotPlacementScores(response *smithyhttp.R } } -type awsEc2query_deserializeOpGetSubnetCidrReservations struct { +type awsEc2query_deserializeOpGetConsoleOutput struct { } -func (*awsEc2query_deserializeOpGetSubnetCidrReservations) ID() string { +func (*awsEc2query_deserializeOpGetConsoleOutput) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetConsoleOutput) 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) @@ -31613,9 +32068,9 @@ func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetConsoleOutput(response, &metadata) } - output := &GetSubnetCidrReservationsOutput{} + output := &GetConsoleOutputOutput{} out.Result = output var buff [1024]byte @@ -31636,7 +32091,7 @@ func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31650,7 +32105,7 @@ func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetConsoleOutput(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)} @@ -31683,14 +32138,14 @@ func awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response *smithyhtt } } -type awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct { +type awsEc2query_deserializeOpGetConsoleScreenshot struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) ID() string { +func (*awsEc2query_deserializeOpGetConsoleScreenshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetConsoleScreenshot) 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) @@ -31704,9 +32159,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetConsoleScreenshot(response, &metadata) } - output := &GetTransitGatewayAttachmentPropagationsOutput{} + output := &GetConsoleScreenshotOutput{} out.Result = output var buff [1024]byte @@ -31727,7 +32182,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31741,7 +32196,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetConsoleScreenshot(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)} @@ -31774,14 +32229,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(respo } } -type awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpGetDefaultCreditSpecification struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpGetDefaultCreditSpecification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) 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) @@ -31795,9 +32250,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response, &metadata) } - output := &GetTransitGatewayMulticastDomainAssociationsOutput{} + output := &GetDefaultCreditSpecificationOutput{} out.Result = output var buff [1024]byte @@ -31818,7 +32273,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetDefaultCreditSpecificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31832,7 +32287,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(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)} @@ -31865,14 +32320,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations( } } -type awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences struct { +type awsEc2query_deserializeOpGetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) ID() string { +func (*awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) 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) @@ -31886,9 +32341,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response, &metadata) } - output := &GetTransitGatewayPrefixListReferencesOutput{} + output := &GetEbsDefaultKmsKeyIdOutput{} out.Result = output var buff [1024]byte @@ -31909,7 +32364,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayPrefixListReferencesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetEbsDefaultKmsKeyIdOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31923,7 +32378,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(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)} @@ -31956,14 +32411,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(respons } } -type awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations struct { +type awsEc2query_deserializeOpGetEbsEncryptionByDefault struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) ID() string { +func (*awsEc2query_deserializeOpGetEbsEncryptionByDefault) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) 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) @@ -31977,9 +32432,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response, &metadata) } - output := &GetTransitGatewayRouteTableAssociationsOutput{} + output := &GetEbsEncryptionByDefaultOutput{} out.Result = output var buff [1024]byte @@ -32000,7 +32455,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTableAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32014,7 +32469,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(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)} @@ -32047,14 +32502,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(respo } } -type awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations struct { +type awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) ID() string { +func (*awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) 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) @@ -32068,9 +32523,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(response, &metadata) } - output := &GetTransitGatewayRouteTablePropagationsOutput{} + output := &GetFlowLogsIntegrationTemplateOutput{} out.Result = output var buff [1024]byte @@ -32091,7 +32546,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTablePropagationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetFlowLogsIntegrationTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32105,7 +32560,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(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)} @@ -32138,14 +32593,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(respo } } -type awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration struct { +type awsEc2query_deserializeOpGetGroupsForCapacityReservation struct { } -func (*awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) ID() string { +func (*awsEc2query_deserializeOpGetGroupsForCapacityReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) 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) @@ -32159,9 +32614,9 @@ func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response, &metadata) } - output := &GetVpnConnectionDeviceSampleConfigurationOutput{} + output := &GetGroupsForCapacityReservationOutput{} out.Result = output var buff [1024]byte @@ -32182,7 +32637,7 @@ func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) Han } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetVpnConnectionDeviceSampleConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32196,7 +32651,7 @@ func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) Han return out, metadata, err } -func awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(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)} @@ -32229,14 +32684,14 @@ func awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(res } } -type awsEc2query_deserializeOpGetVpnConnectionDeviceTypes struct { +type awsEc2query_deserializeOpGetHostReservationPurchasePreview struct { } -func (*awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) ID() string { +func (*awsEc2query_deserializeOpGetHostReservationPurchasePreview) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) 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) @@ -32250,9 +32705,9 @@ func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response, &metadata) } - output := &GetVpnConnectionDeviceTypesOutput{} + output := &GetHostReservationPurchasePreviewOutput{} out.Result = output var buff [1024]byte @@ -32273,7 +32728,7 @@ func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetVpnConnectionDeviceTypesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32287,7 +32742,7 @@ func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(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)} @@ -32320,14 +32775,14 @@ func awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(response *smithyh } } -type awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList struct { +type awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements struct { } -func (*awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) ID() string { +func (*awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) 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) @@ -32341,9 +32796,9 @@ func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(response, &metadata) } - output := &ImportClientVpnClientCertificateRevocationListOutput{} + output := &GetInstanceTypesFromInstanceRequirementsOutput{} out.Result = output var buff [1024]byte @@ -32364,7 +32819,7 @@ func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocationListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32378,7 +32833,7 @@ func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList return out, metadata, err } -func awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(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)} @@ -32411,14 +32866,14 @@ func awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationLis } } -type awsEc2query_deserializeOpImportImage struct { +type awsEc2query_deserializeOpGetIpamAddressHistory struct { } -func (*awsEc2query_deserializeOpImportImage) ID() string { +func (*awsEc2query_deserializeOpGetIpamAddressHistory) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetIpamAddressHistory) 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) @@ -32432,9 +32887,9 @@ func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetIpamAddressHistory(response, &metadata) } - output := &ImportImageOutput{} + output := &GetIpamAddressHistoryOutput{} out.Result = output var buff [1024]byte @@ -32455,7 +32910,7 @@ func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetIpamAddressHistoryOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32469,7 +32924,7 @@ func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorImportImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetIpamAddressHistory(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)} @@ -32502,14 +32957,14 @@ func awsEc2query_deserializeOpErrorImportImage(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpImportInstance struct { +type awsEc2query_deserializeOpGetIpamPoolAllocations struct { } -func (*awsEc2query_deserializeOpImportInstance) ID() string { +func (*awsEc2query_deserializeOpGetIpamPoolAllocations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetIpamPoolAllocations) 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) @@ -32523,9 +32978,9 @@ func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportInstance(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetIpamPoolAllocations(response, &metadata) } - output := &ImportInstanceOutput{} + output := &GetIpamPoolAllocationsOutput{} out.Result = output var buff [1024]byte @@ -32546,7 +33001,7 @@ func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportInstanceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetIpamPoolAllocationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32560,7 +33015,7 @@ func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorImportInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetIpamPoolAllocations(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)} @@ -32593,14 +33048,14 @@ func awsEc2query_deserializeOpErrorImportInstance(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpImportKeyPair struct { +type awsEc2query_deserializeOpGetIpamPoolCidrs struct { } -func (*awsEc2query_deserializeOpImportKeyPair) ID() string { +func (*awsEc2query_deserializeOpGetIpamPoolCidrs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetIpamPoolCidrs) 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) @@ -32614,9 +33069,9 @@ func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportKeyPair(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetIpamPoolCidrs(response, &metadata) } - output := &ImportKeyPairOutput{} + output := &GetIpamPoolCidrsOutput{} out.Result = output var buff [1024]byte @@ -32637,7 +33092,7 @@ func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportKeyPairOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetIpamPoolCidrsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32651,7 +33106,7 @@ func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorImportKeyPair(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetIpamPoolCidrs(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)} @@ -32684,14 +33139,14 @@ func awsEc2query_deserializeOpErrorImportKeyPair(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpImportSnapshot struct { +type awsEc2query_deserializeOpGetIpamResourceCidrs struct { } -func (*awsEc2query_deserializeOpImportSnapshot) ID() string { +func (*awsEc2query_deserializeOpGetIpamResourceCidrs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetIpamResourceCidrs) 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) @@ -32705,9 +33160,9 @@ func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportSnapshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetIpamResourceCidrs(response, &metadata) } - output := &ImportSnapshotOutput{} + output := &GetIpamResourceCidrsOutput{} out.Result = output var buff [1024]byte @@ -32728,7 +33183,7 @@ func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportSnapshotOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetIpamResourceCidrsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32742,7 +33197,7 @@ func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorImportSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetIpamResourceCidrs(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)} @@ -32775,14 +33230,14 @@ func awsEc2query_deserializeOpErrorImportSnapshot(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpImportVolume struct { +type awsEc2query_deserializeOpGetLaunchTemplateData struct { } -func (*awsEc2query_deserializeOpImportVolume) ID() string { +func (*awsEc2query_deserializeOpGetLaunchTemplateData) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetLaunchTemplateData) 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) @@ -32796,9 +33251,9 @@ func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetLaunchTemplateData(response, &metadata) } - output := &ImportVolumeOutput{} + output := &GetLaunchTemplateDataOutput{} out.Result = output var buff [1024]byte @@ -32819,7 +33274,7 @@ func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32833,7 +33288,7 @@ func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorImportVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetLaunchTemplateData(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)} @@ -32866,14 +33321,14 @@ func awsEc2query_deserializeOpErrorImportVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpListSnapshotsInRecycleBin struct { +type awsEc2query_deserializeOpGetManagedPrefixListAssociations struct { } -func (*awsEc2query_deserializeOpListSnapshotsInRecycleBin) ID() string { +func (*awsEc2query_deserializeOpGetManagedPrefixListAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpListSnapshotsInRecycleBin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) 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) @@ -32887,9 +33342,9 @@ func (m *awsEc2query_deserializeOpListSnapshotsInRecycleBin) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response, &metadata) } - output := &ListSnapshotsInRecycleBinOutput{} + output := &GetManagedPrefixListAssociationsOutput{} out.Result = output var buff [1024]byte @@ -32910,7 +33365,7 @@ func (m *awsEc2query_deserializeOpListSnapshotsInRecycleBin) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentListSnapshotsInRecycleBinOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32924,7 +33379,7 @@ func (m *awsEc2query_deserializeOpListSnapshotsInRecycleBin) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(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)} @@ -32957,14 +33412,14 @@ func awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(response *smithyhtt } } -type awsEc2query_deserializeOpModifyAddressAttribute struct { +type awsEc2query_deserializeOpGetManagedPrefixListEntries struct { } -func (*awsEc2query_deserializeOpModifyAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpGetManagedPrefixListEntries) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) 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) @@ -32978,9 +33433,9 @@ func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyAddressAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response, &metadata) } - output := &ModifyAddressAttributeOutput{} + output := &GetManagedPrefixListEntriesOutput{} out.Result = output var buff [1024]byte @@ -33001,7 +33456,7 @@ func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyAddressAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33015,7 +33470,7 @@ func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(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)} @@ -33048,14 +33503,14 @@ func awsEc2query_deserializeOpErrorModifyAddressAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpModifyAvailabilityZoneGroup struct { +type awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings struct { } -func (*awsEc2query_deserializeOpModifyAvailabilityZoneGroup) ID() string { +func (*awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings) 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) @@ -33069,9 +33524,9 @@ func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeAnalysisFindings(response, &metadata) } - output := &ModifyAvailabilityZoneGroupOutput{} + output := &GetNetworkInsightsAccessScopeAnalysisFindingsOutput{} out.Result = output var buff [1024]byte @@ -33092,7 +33547,7 @@ func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetNetworkInsightsAccessScopeAnalysisFindingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33106,7 +33561,7 @@ func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeAnalysisFindings(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)} @@ -33139,14 +33594,14 @@ func awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response *smithyh } } -type awsEc2query_deserializeOpModifyCapacityReservation struct { +type awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent struct { } -func (*awsEc2query_deserializeOpModifyCapacityReservation) ID() string { +func (*awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent) 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) @@ -33160,9 +33615,9 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeContent(response, &metadata) } - output := &ModifyCapacityReservationOutput{} + output := &GetNetworkInsightsAccessScopeContentOutput{} out.Result = output var buff [1024]byte @@ -33183,7 +33638,7 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyCapacityReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetNetworkInsightsAccessScopeContentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33197,7 +33652,7 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeContent(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)} @@ -33230,14 +33685,14 @@ func awsEc2query_deserializeOpErrorModifyCapacityReservation(response *smithyhtt } } -type awsEc2query_deserializeOpModifyCapacityReservationFleet struct { +type awsEc2query_deserializeOpGetPasswordData struct { } -func (*awsEc2query_deserializeOpModifyCapacityReservationFleet) ID() string { +func (*awsEc2query_deserializeOpGetPasswordData) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyCapacityReservationFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetPasswordData) 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) @@ -33251,9 +33706,9 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservationFleet) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetPasswordData(response, &metadata) } - output := &ModifyCapacityReservationFleetOutput{} + output := &GetPasswordDataOutput{} out.Result = output var buff [1024]byte @@ -33274,7 +33729,7 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservationFleet) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyCapacityReservationFleetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetPasswordDataOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33288,7 +33743,7 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservationFleet) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetPasswordData(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)} @@ -33321,14 +33776,14 @@ func awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(response *smit } } -type awsEc2query_deserializeOpModifyClientVpnEndpoint struct { +type awsEc2query_deserializeOpGetReservedInstancesExchangeQuote struct { } -func (*awsEc2query_deserializeOpModifyClientVpnEndpoint) ID() string { +func (*awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) 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) @@ -33342,9 +33797,9 @@ func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response, &metadata) } - output := &ModifyClientVpnEndpointOutput{} + output := &GetReservedInstancesExchangeQuoteOutput{} out.Result = output var buff [1024]byte @@ -33365,7 +33820,7 @@ func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33379,7 +33834,7 @@ func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(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)} @@ -33412,14 +33867,14 @@ func awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyDefaultCreditSpecification struct { +type awsEc2query_deserializeOpGetSerialConsoleAccessStatus struct { } -func (*awsEc2query_deserializeOpModifyDefaultCreditSpecification) ID() string { +func (*awsEc2query_deserializeOpGetSerialConsoleAccessStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) 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) @@ -33433,9 +33888,9 @@ func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response, &metadata) } - output := &ModifyDefaultCreditSpecificationOutput{} + output := &GetSerialConsoleAccessStatusOutput{} out.Result = output var buff [1024]byte @@ -33456,7 +33911,7 @@ func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyDefaultCreditSpecificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33470,7 +33925,7 @@ func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(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)} @@ -33503,14 +33958,14 @@ func awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response *sm } } -type awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpGetSpotPlacementScores struct { } -func (*awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpGetSpotPlacementScores) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetSpotPlacementScores) 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) @@ -33524,9 +33979,9 @@ func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetSpotPlacementScores(response, &metadata) } - output := &ModifyEbsDefaultKmsKeyIdOutput{} + output := &GetSpotPlacementScoresOutput{} out.Result = output var buff [1024]byte @@ -33547,7 +34002,7 @@ func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetSpotPlacementScoresOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33561,7 +34016,7 @@ func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetSpotPlacementScores(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)} @@ -33594,14 +34049,14 @@ func awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response *smithyhttp } } -type awsEc2query_deserializeOpModifyFleet struct { +type awsEc2query_deserializeOpGetSubnetCidrReservations struct { } -func (*awsEc2query_deserializeOpModifyFleet) ID() string { +func (*awsEc2query_deserializeOpGetSubnetCidrReservations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) 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) @@ -33615,9 +34070,9 @@ func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response, &metadata) } - output := &ModifyFleetOutput{} + output := &GetSubnetCidrReservationsOutput{} out.Result = output var buff [1024]byte @@ -33638,7 +34093,7 @@ func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyFleetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33652,7 +34107,7 @@ func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetSubnetCidrReservations(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)} @@ -33685,14 +34140,14 @@ func awsEc2query_deserializeOpErrorModifyFleet(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpModifyFpgaImageAttribute struct { +type awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct { } -func (*awsEc2query_deserializeOpModifyFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) 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) @@ -33706,9 +34161,9 @@ func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response, &metadata) } - output := &ModifyFpgaImageAttributeOutput{} + output := &GetTransitGatewayAttachmentPropagationsOutput{} out.Result = output var buff [1024]byte @@ -33729,7 +34184,7 @@ func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33743,7 +34198,7 @@ func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(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)} @@ -33776,14 +34231,14 @@ func awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response *smithyhttp } } -type awsEc2query_deserializeOpModifyHosts struct { +type awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpModifyHosts) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) 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) @@ -33797,9 +34252,9 @@ func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &ModifyHostsOutput{} + output := &GetTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -33820,7 +34275,7 @@ func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33834,7 +34289,7 @@ func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(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)} @@ -33867,14 +34322,14 @@ func awsEc2query_deserializeOpErrorModifyHosts(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpModifyIdentityIdFormat struct { +type awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences struct { } -func (*awsEc2query_deserializeOpModifyIdentityIdFormat) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) 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) @@ -33888,89 +34343,44 @@ func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyIdentityIdFormat(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response, &metadata) } - output := &ModifyIdentityIdFormatOutput{} + output := &GetTransitGatewayPrefixListReferencesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorModifyIdentityIdFormat(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)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} - -type awsEc2query_deserializeOpModifyIdFormat struct { -} - -func (*awsEc2query_deserializeOpModifyIdFormat) ID() string { - return "OperationDeserializer" -} -func (m *awsEc2query_deserializeOpModifyIdFormat) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayPrefixListReferencesOutput(&output, decoder) 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, awsEc2query_deserializeOpErrorModifyIdFormat(response, &metadata) - } - output := &ModifyIdFormatOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 awsEc2query_deserializeOpErrorModifyIdFormat(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(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)} @@ -34003,14 +34413,14 @@ func awsEc2query_deserializeOpErrorModifyIdFormat(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpModifyImageAttribute struct { +type awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations struct { } -func (*awsEc2query_deserializeOpModifyImageAttribute) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) 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) @@ -34024,21 +34434,44 @@ func (m *awsEc2query_deserializeOpModifyImageAttribute) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response, &metadata) } - output := &ModifyImageAttributeOutput{} + output := &GetTransitGatewayRouteTableAssociationsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTableAssociationsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(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)} @@ -34071,14 +34504,14 @@ func awsEc2query_deserializeOpErrorModifyImageAttribute(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyInstanceAttribute struct { +type awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations struct { } -func (*awsEc2query_deserializeOpModifyInstanceAttribute) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) 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) @@ -34092,21 +34525,44 @@ func (m *awsEc2query_deserializeOpModifyInstanceAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response, &metadata) } - output := &ModifyInstanceAttributeOutput{} + output := &GetTransitGatewayRouteTablePropagationsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTablePropagationsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(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)} @@ -34139,14 +34595,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes struct { +type awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration struct { } -func (*awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) ID() string { +func (*awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) 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) @@ -34160,9 +34616,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(response, &metadata) } - output := &ModifyInstanceCapacityReservationAttributesOutput{} + output := &GetVpnConnectionDeviceSampleConfigurationOutput{} out.Result = output var buff [1024]byte @@ -34183,7 +34639,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetVpnConnectionDeviceSampleConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34197,7 +34653,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(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)} @@ -34230,14 +34686,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(r } } -type awsEc2query_deserializeOpModifyInstanceCreditSpecification struct { +type awsEc2query_deserializeOpGetVpnConnectionDeviceTypes struct { } -func (*awsEc2query_deserializeOpModifyInstanceCreditSpecification) ID() string { +func (*awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) 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) @@ -34251,9 +34707,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(response, &metadata) } - output := &ModifyInstanceCreditSpecificationOutput{} + output := &GetVpnConnectionDeviceTypesOutput{} out.Result = output var buff [1024]byte @@ -34274,7 +34730,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetVpnConnectionDeviceTypesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34288,7 +34744,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(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)} @@ -34321,14 +34777,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response *s } } -type awsEc2query_deserializeOpModifyInstanceEventStartTime struct { +type awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList struct { } -func (*awsEc2query_deserializeOpModifyInstanceEventStartTime) ID() string { +func (*awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) 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) @@ -34342,9 +34798,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response, &metadata) } - output := &ModifyInstanceEventStartTimeOutput{} + output := &ImportClientVpnClientCertificateRevocationListOutput{} out.Result = output var buff [1024]byte @@ -34365,7 +34821,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocationListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34379,7 +34835,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(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)} @@ -34412,14 +34868,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response *smithy } } -type awsEc2query_deserializeOpModifyInstanceEventWindow struct { +type awsEc2query_deserializeOpImportImage struct { } -func (*awsEc2query_deserializeOpModifyInstanceEventWindow) ID() string { +func (*awsEc2query_deserializeOpImportImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportImage) 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) @@ -34433,9 +34889,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportImage(response, &metadata) } - output := &ModifyInstanceEventWindowOutput{} + output := &ImportImageOutput{} out.Result = output var buff [1024]byte @@ -34456,7 +34912,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34470,7 +34926,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportImage(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)} @@ -34503,14 +34959,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response *smithyhtt } } -type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { +type awsEc2query_deserializeOpImportInstance struct { } -func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { +func (*awsEc2query_deserializeOpImportInstance) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportInstance) 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) @@ -34524,9 +34980,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportInstance(response, &metadata) } - output := &ModifyInstanceMetadataOptionsOutput{} + output := &ImportInstanceOutput{} out.Result = output var buff [1024]byte @@ -34547,7 +35003,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportInstanceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34561,7 +35017,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportInstance(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)} @@ -34594,14 +35050,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smith } } -type awsEc2query_deserializeOpModifyInstancePlacement struct { +type awsEc2query_deserializeOpImportKeyPair struct { } -func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { +func (*awsEc2query_deserializeOpImportKeyPair) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportKeyPair) 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) @@ -34615,9 +35071,9 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportKeyPair(response, &metadata) } - output := &ModifyInstancePlacementOutput{} + output := &ImportKeyPairOutput{} out.Result = output var buff [1024]byte @@ -34638,7 +35094,7 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportKeyPairOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34652,7 +35108,7 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportKeyPair(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)} @@ -34685,14 +35141,14 @@ func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyLaunchTemplate struct { +type awsEc2query_deserializeOpImportSnapshot struct { } -func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { +func (*awsEc2query_deserializeOpImportSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportSnapshot) 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) @@ -34706,9 +35162,9 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportSnapshot(response, &metadata) } - output := &ModifyLaunchTemplateOutput{} + output := &ImportSnapshotOutput{} out.Result = output var buff [1024]byte @@ -34729,7 +35185,7 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportSnapshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34743,7 +35199,7 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportSnapshot(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)} @@ -34776,14 +35232,14 @@ func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyManagedPrefixList struct { +type awsEc2query_deserializeOpImportVolume struct { } -func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { +func (*awsEc2query_deserializeOpImportVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportVolume) 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) @@ -34797,9 +35253,9 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportVolume(response, &metadata) } - output := &ModifyManagedPrefixListOutput{} + output := &ImportVolumeOutput{} out.Result = output var buff [1024]byte @@ -34820,7 +35276,7 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34834,75 +35290,7 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { -} - -func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) 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, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) - } - output := &ModifyNetworkInterfaceAttributeOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportVolume(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)} @@ -34935,14 +35323,14 @@ func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smi } } -type awsEc2query_deserializeOpModifyPrivateDnsNameOptions struct { +type awsEc2query_deserializeOpListSnapshotsInRecycleBin struct { } -func (*awsEc2query_deserializeOpModifyPrivateDnsNameOptions) ID() string { +func (*awsEc2query_deserializeOpListSnapshotsInRecycleBin) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyPrivateDnsNameOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpListSnapshotsInRecycleBin) 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) @@ -34956,9 +35344,9 @@ func (m *awsEc2query_deserializeOpModifyPrivateDnsNameOptions) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(response, &metadata) } - output := &ModifyPrivateDnsNameOptionsOutput{} + output := &ListSnapshotsInRecycleBinOutput{} out.Result = output var buff [1024]byte @@ -34979,7 +35367,7 @@ func (m *awsEc2query_deserializeOpModifyPrivateDnsNameOptions) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyPrivateDnsNameOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentListSnapshotsInRecycleBinOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34993,7 +35381,7 @@ func (m *awsEc2query_deserializeOpModifyPrivateDnsNameOptions) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(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)} @@ -35026,14 +35414,14 @@ func awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(response *smithyh } } -type awsEc2query_deserializeOpModifyReservedInstances struct { +type awsEc2query_deserializeOpModifyAddressAttribute struct { } -func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { +func (*awsEc2query_deserializeOpModifyAddressAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyAddressAttribute) 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) @@ -35047,9 +35435,9 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyAddressAttribute(response, &metadata) } - output := &ModifyReservedInstancesOutput{} + output := &ModifyAddressAttributeOutput{} out.Result = output var buff [1024]byte @@ -35070,7 +35458,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyAddressAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35084,7 +35472,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyAddressAttribute(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)} @@ -35117,14 +35505,14 @@ func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySecurityGroupRules struct { +type awsEc2query_deserializeOpModifyAvailabilityZoneGroup struct { } -func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string { +func (*awsEc2query_deserializeOpModifyAvailabilityZoneGroup) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) 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) @@ -35138,9 +35526,9 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response, &metadata) } - output := &ModifySecurityGroupRulesOutput{} + output := &ModifyAvailabilityZoneGroupOutput{} out.Result = output var buff [1024]byte @@ -35161,7 +35549,7 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35175,7 +35563,7 @@ func (m *awsEc2query_deserializeOpModifySecurityGroupRules) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(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)} @@ -35208,14 +35596,14 @@ func awsEc2query_deserializeOpErrorModifySecurityGroupRules(response *smithyhttp } } -type awsEc2query_deserializeOpModifySnapshotAttribute struct { +type awsEc2query_deserializeOpModifyCapacityReservation struct { } -func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyCapacityReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyCapacityReservation) 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) @@ -35229,21 +35617,44 @@ func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservation(response, &metadata) } - output := &ModifySnapshotAttributeOutput{} + output := &ModifyCapacityReservationOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyCapacityReservationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyCapacityReservation(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)} @@ -35276,14 +35687,14 @@ func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySnapshotTier struct { +type awsEc2query_deserializeOpModifyCapacityReservationFleet struct { } -func (*awsEc2query_deserializeOpModifySnapshotTier) ID() string { +func (*awsEc2query_deserializeOpModifyCapacityReservationFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySnapshotTier) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyCapacityReservationFleet) 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) @@ -35297,9 +35708,9 @@ func (m *awsEc2query_deserializeOpModifySnapshotTier) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotTier(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(response, &metadata) } - output := &ModifySnapshotTierOutput{} + output := &ModifyCapacityReservationFleetOutput{} out.Result = output var buff [1024]byte @@ -35320,7 +35731,7 @@ func (m *awsEc2query_deserializeOpModifySnapshotTier) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySnapshotTierOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyCapacityReservationFleetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35334,7 +35745,7 @@ func (m *awsEc2query_deserializeOpModifySnapshotTier) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySnapshotTier(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(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)} @@ -35367,14 +35778,14 @@ func awsEc2query_deserializeOpErrorModifySnapshotTier(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifySpotFleetRequest struct { +type awsEc2query_deserializeOpModifyClientVpnEndpoint struct { } -func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { +func (*awsEc2query_deserializeOpModifyClientVpnEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) 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) @@ -35388,9 +35799,9 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response, &metadata) } - output := &ModifySpotFleetRequestOutput{} + output := &ModifyClientVpnEndpointOutput{} out.Result = output var buff [1024]byte @@ -35411,7 +35822,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35425,7 +35836,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(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)} @@ -35458,14 +35869,14 @@ func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.R } } -type awsEc2query_deserializeOpModifySubnetAttribute struct { +type awsEc2query_deserializeOpModifyDefaultCreditSpecification struct { } -func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyDefaultCreditSpecification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) 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) @@ -35479,21 +35890,44 @@ func (m *awsEc2query_deserializeOpModifySubnetAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response, &metadata) } - output := &ModifySubnetAttributeOutput{} + output := &ModifyDefaultCreditSpecificationOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyDefaultCreditSpecificationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(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)} @@ -35526,14 +35960,14 @@ func awsEc2query_deserializeOpErrorModifySubnetAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { +type awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { +func (*awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) 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) @@ -35547,9 +35981,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response, &metadata) } - output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} + output := &ModifyEbsDefaultKmsKeyIdOutput{} out.Result = output var buff [1024]byte @@ -35570,7 +36004,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyEbsDefaultKmsKeyIdOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35584,7 +36018,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(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)} @@ -35617,14 +36051,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(resp } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpModifyFleet struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpModifyFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyFleet) 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) @@ -35638,9 +36072,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyFleet(response, &metadata) } - output := &ModifyTrafficMirrorFilterRuleOutput{} + output := &ModifyFleetOutput{} out.Result = output var buff [1024]byte @@ -35661,7 +36095,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyFleetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35675,7 +36109,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyFleet(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)} @@ -35708,14 +36142,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { +type awsEc2query_deserializeOpModifyFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpModifyFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) 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) @@ -35729,9 +36163,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response, &metadata) } - output := &ModifyTrafficMirrorSessionOutput{} + output := &ModifyFpgaImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -35752,7 +36186,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35766,7 +36200,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(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)} @@ -35799,14 +36233,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyht } } -type awsEc2query_deserializeOpModifyTransitGateway struct { +type awsEc2query_deserializeOpModifyHosts struct { } -func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { +func (*awsEc2query_deserializeOpModifyHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyHosts) 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) @@ -35820,9 +36254,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyHosts(response, &metadata) } - output := &ModifyTransitGatewayOutput{} + output := &ModifyHostsOutput{} out.Result = output var buff [1024]byte @@ -35843,7 +36277,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyHostsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35857,7 +36291,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyHosts(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)} @@ -35890,14 +36324,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { +type awsEc2query_deserializeOpModifyIdentityIdFormat struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_deserializeOpModifyIdentityIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) 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) @@ -35911,44 +36345,21 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIdentityIdFormat(response, &metadata) } - output := &ModifyTransitGatewayPrefixListReferenceOutput{} + output := &ModifyIdentityIdFormatOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIdentityIdFormat(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)} @@ -35981,14 +36392,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(respo } } -type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpModifyIdFormat struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpModifyIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIdFormat) 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) @@ -36002,44 +36413,21 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIdFormat(response, &metadata) } - output := &ModifyTransitGatewayVpcAttachmentOutput{} + output := &ModifyIdFormatOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIdFormat(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)} @@ -36072,14 +36460,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpModifyVolume struct { +type awsEc2query_deserializeOpModifyImageAttribute struct { } -func (*awsEc2query_deserializeOpModifyVolume) ID() string { +func (*awsEc2query_deserializeOpModifyImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyImageAttribute) 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) @@ -36093,44 +36481,21 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyImageAttribute(response, &metadata) } - output := &ModifyVolumeOutput{} + output := &ModifyImageAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyImageAttribute(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)} @@ -36163,14 +36528,14 @@ func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpModifyVolumeAttribute struct { +type awsEc2query_deserializeOpModifyInstanceAttribute struct { } -func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceAttribute) 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) @@ -36184,9 +36549,9 @@ func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceAttribute(response, &metadata) } - output := &ModifyVolumeAttributeOutput{} + output := &ModifyInstanceAttributeOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -36198,7 +36563,7 @@ func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceAttribute(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)} @@ -36231,14 +36596,14 @@ func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpModifyVpcAttribute struct { +type awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes struct { } -func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) 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) @@ -36252,21 +36617,44 @@ func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response, &metadata) } - output := &ModifyVpcAttributeOutput{} + output := &ModifyInstanceCapacityReservationAttributesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(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)} @@ -36299,14 +36687,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyInstanceCreditSpecification struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceCreditSpecification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) 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) @@ -36320,9 +36708,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyInstanceCreditSpecificationOutput{} out.Result = output var buff [1024]byte @@ -36343,7 +36731,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36357,7 +36745,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(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)} @@ -36390,14 +36778,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyInstanceEventStartTime struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceEventStartTime) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) 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) @@ -36411,9 +36799,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyInstanceEventStartTimeOutput{} out.Result = output var buff [1024]byte @@ -36434,7 +36822,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36448,7 +36836,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(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)} @@ -36481,14 +36869,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyInstanceEventWindow struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceEventWindow) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) 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) @@ -36502,9 +36890,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyInstanceEventWindowOutput{} out.Result = output var buff [1024]byte @@ -36525,7 +36913,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36539,7 +36927,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceEventWindow(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)} @@ -36572,14 +36960,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) 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) @@ -36593,9 +36981,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyInstanceMetadataOptionsOutput{} out.Result = output var buff [1024]byte @@ -36616,7 +37004,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36630,7 +37018,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(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)} @@ -36663,14 +37051,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyInstancePlacement struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstancePlacement) 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) @@ -36684,9 +37072,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyInstancePlacementOutput{} out.Result = output var buff [1024]byte @@ -36707,7 +37095,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36721,7 +37109,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstancePlacement(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)} @@ -36754,14 +37142,14 @@ func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *s } } -type awsEc2query_deserializeOpModifyVpcTenancy struct { +type awsEc2query_deserializeOpModifyIpam struct { } -func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { +func (*awsEc2query_deserializeOpModifyIpam) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIpam) 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) @@ -36775,9 +37163,9 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIpam(response, &metadata) } - output := &ModifyVpcTenancyOutput{} + output := &ModifyIpamOutput{} out.Result = output var buff [1024]byte @@ -36798,7 +37186,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyIpamOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36812,7 +37200,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIpam(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)} @@ -36845,14 +37233,14 @@ func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpModifyVpnConnection struct { +type awsEc2query_deserializeOpModifyIpamPool struct { } -func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { +func (*awsEc2query_deserializeOpModifyIpamPool) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIpamPool) 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) @@ -36866,9 +37254,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIpamPool(response, &metadata) } - output := &ModifyVpnConnectionOutput{} + output := &ModifyIpamPoolOutput{} out.Result = output var buff [1024]byte @@ -36889,7 +37277,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyIpamPoolOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36903,7 +37291,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIpamPool(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)} @@ -36936,14 +37324,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { +type awsEc2query_deserializeOpModifyIpamResourceCidr struct { } -func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyIpamResourceCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIpamResourceCidr) 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) @@ -36957,9 +37345,9 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIpamResourceCidr(response, &metadata) } - output := &ModifyVpnConnectionOptionsOutput{} + output := &ModifyIpamResourceCidrOutput{} out.Result = output var buff [1024]byte @@ -36980,7 +37368,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyIpamResourceCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36994,7 +37382,7 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIpamResourceCidr(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)} @@ -37027,14 +37415,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { +type awsEc2query_deserializeOpModifyIpamScope struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { +func (*awsEc2query_deserializeOpModifyIpamScope) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIpamScope) 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) @@ -37048,9 +37436,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIpamScope(response, &metadata) } - output := &ModifyVpnTunnelCertificateOutput{} + output := &ModifyIpamScopeOutput{} out.Result = output var buff [1024]byte @@ -37071,7 +37459,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyIpamScopeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37085,7 +37473,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIpamScope(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)} @@ -37118,14 +37506,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { +type awsEc2query_deserializeOpModifyLaunchTemplate struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { +func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyLaunchTemplate) 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) @@ -37139,9 +37527,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) } - output := &ModifyVpnTunnelOptionsOutput{} + output := &ModifyLaunchTemplateOutput{} out.Result = output var buff [1024]byte @@ -37162,7 +37550,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37176,7 +37564,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyLaunchTemplate(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)} @@ -37209,14 +37597,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.R } } -type awsEc2query_deserializeOpMonitorInstances struct { +type awsEc2query_deserializeOpModifyManagedPrefixList struct { } -func (*awsEc2query_deserializeOpMonitorInstances) ID() string { +func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyManagedPrefixList) 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) @@ -37230,9 +37618,9 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) } - output := &MonitorInstancesOutput{} + output := &ModifyManagedPrefixListOutput{} out.Result = output var buff [1024]byte @@ -37253,7 +37641,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37267,7 +37655,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyManagedPrefixList(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)} @@ -37300,14 +37688,14 @@ func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpMoveAddressToVpc struct { +type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { +func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) 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) @@ -37321,44 +37709,21 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) } - output := &MoveAddressToVpcOutput{} + output := &ModifyNetworkInterfaceAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(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)} @@ -37391,14 +37756,14 @@ func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpProvisionByoipCidr struct { +type awsEc2query_deserializeOpModifyPrivateDnsNameOptions struct { } -func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { +func (*awsEc2query_deserializeOpModifyPrivateDnsNameOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyPrivateDnsNameOptions) 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) @@ -37412,9 +37777,9 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(response, &metadata) } - output := &ProvisionByoipCidrOutput{} + output := &ModifyPrivateDnsNameOptionsOutput{} out.Result = output var buff [1024]byte @@ -37435,7 +37800,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyPrivateDnsNameOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37449,7 +37814,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(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)} @@ -37482,14 +37847,14 @@ func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpModifyReservedInstances struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyReservedInstances) 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) @@ -37503,9 +37868,9 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &ModifyReservedInstancesOutput{} out.Result = output var buff [1024]byte @@ -37526,7 +37891,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37540,7 +37905,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyReservedInstances(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)} @@ -37573,14 +37938,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpModifySecurityGroupRules struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySecurityGroupRules) 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) @@ -37594,9 +37959,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &ModifySecurityGroupRulesOutput{} out.Result = output var buff [1024]byte @@ -37617,7 +37982,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37631,7 +37996,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySecurityGroupRules(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)} @@ -37664,14 +38029,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpModifySnapshotAttribute struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySnapshotAttribute) 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) @@ -37685,44 +38050,21 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &ModifySnapshotAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySnapshotAttribute(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)} @@ -37755,14 +38097,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpModifySnapshotTier struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpModifySnapshotTier) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySnapshotTier) 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) @@ -37776,21 +38118,44 @@ func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotTier(response, &metadata) } - output := &RebootInstancesOutput{} + output := &ModifySnapshotTierOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifySnapshotTierOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySnapshotTier(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)} @@ -37823,14 +38188,14 @@ func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response } } -type awsEc2query_deserializeOpRegisterImage struct { +type awsEc2query_deserializeOpModifySpotFleetRequest struct { } -func (*awsEc2query_deserializeOpRegisterImage) ID() string { +func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySpotFleetRequest) 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) @@ -37844,9 +38209,9 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) } - output := &RegisterImageOutput{} + output := &ModifySpotFleetRequestOutput{} out.Result = output var buff [1024]byte @@ -37867,7 +38232,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37881,7 +38246,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySpotFleetRequest(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)} @@ -37914,14 +38279,14 @@ func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpModifySubnetAttribute struct { } -func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySubnetAttribute) 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) @@ -37935,44 +38300,21 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) } - output := &RegisterInstanceEventNotificationAttributesOutput{} + output := &ModifySubnetAttributeOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySubnetAttribute(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)} @@ -38005,14 +38347,14 @@ func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) 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) @@ -38026,9 +38368,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupMembersOutput{} + output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} out.Result = output var buff [1024]byte @@ -38049,7 +38391,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38063,7 +38405,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(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)} @@ -38096,14 +38438,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) 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) @@ -38117,9 +38459,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} + output := &ModifyTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -38140,7 +38482,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38154,7 +38496,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(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)} @@ -38187,14 +38529,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(r } } -type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) 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) @@ -38208,9 +38550,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) } - output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} + output := &ModifyTrafficMirrorSessionOutput{} out.Result = output var buff [1024]byte @@ -38231,7 +38573,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38245,7 +38587,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(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)} @@ -38278,14 +38620,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociatio } } -type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpModifyTransitGateway struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGateway) 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) @@ -38299,9 +38641,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) } - output := &RejectTransitGatewayPeeringAttachmentOutput{} + output := &ModifyTransitGatewayOutput{} out.Result = output var buff [1024]byte @@ -38322,7 +38664,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38336,7 +38678,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGateway(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)} @@ -38369,14 +38711,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) 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) @@ -38390,9 +38732,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) } - output := &RejectTransitGatewayVpcAttachmentOutput{} + output := &ModifyTransitGatewayPrefixListReferenceOutput{} out.Result = output var buff [1024]byte @@ -38413,7 +38755,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38427,7 +38769,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(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)} @@ -38460,14 +38802,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { +type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) 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) @@ -38481,9 +38823,9 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) } - output := &RejectVpcEndpointConnectionsOutput{} + output := &ModifyTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -38504,7 +38846,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38518,7 +38860,7 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(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)} @@ -38551,14 +38893,14 @@ func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithy } } -type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { +type awsEc2query_deserializeOpModifyVolume struct { } -func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpModifyVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolume) 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) @@ -38572,9 +38914,9 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) } - output := &RejectVpcPeeringConnectionOutput{} + output := &ModifyVolumeOutput{} out.Result = output var buff [1024]byte @@ -38595,7 +38937,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38609,7 +38951,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolume(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)} @@ -38642,14 +38984,14 @@ func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpReleaseAddress struct { +type awsEc2query_deserializeOpModifyVolumeAttribute struct { } -func (*awsEc2query_deserializeOpReleaseAddress) ID() string { +func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolumeAttribute) 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) @@ -38663,9 +39005,9 @@ func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) } - output := &ReleaseAddressOutput{} + output := &ModifyVolumeAttributeOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -38677,7 +39019,7 @@ func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolumeAttribute(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)} @@ -38710,14 +39052,14 @@ func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpReleaseHosts struct { +type awsEc2query_deserializeOpModifyVpcAttribute struct { } -func (*awsEc2query_deserializeOpReleaseHosts) ID() string { +func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcAttribute) 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) @@ -38731,9 +39073,77 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) } - output := &ReleaseHostsOutput{} + output := &ModifyVpcAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpModifyVpcEndpoint struct { +} + +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyVpcEndpoint) 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, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) + } + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -38754,7 +39164,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38768,7 +39178,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpoint(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)} @@ -38801,14 +39211,14 @@ func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) 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) @@ -38822,9 +39232,9 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ReplaceIamInstanceProfileAssociationOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -38845,7 +39255,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38859,7 +39269,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(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)} @@ -38892,14 +39302,14 @@ func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response } } -type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) 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) @@ -38913,9 +39323,9 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &ReplaceNetworkAclAssociationOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -38936,7 +39346,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -38950,7 +39360,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(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)} @@ -38983,14 +39393,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) 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) @@ -39004,21 +39414,44 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) } - output := &ReplaceNetworkAclEntryOutput{} + output := &ModifyVpcEndpointServicePermissionsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(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)} @@ -39051,14 +39484,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response *smithyhttp.R } } -type awsEc2query_deserializeOpReplaceRoute struct { +type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { } -func (*awsEc2query_deserializeOpReplaceRoute) ID() string { +func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) 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) @@ -39072,21 +39505,44 @@ func (m *awsEc2query_deserializeOpReplaceRoute) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) } - output := &ReplaceRouteOutput{} + output := &ModifyVpcPeeringConnectionOptionsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(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)} @@ -39119,14 +39575,14 @@ func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { +type awsEc2query_deserializeOpModifyVpcTenancy struct { } -func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { +func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcTenancy) 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) @@ -39140,9 +39596,9 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) } - output := &ReplaceRouteTableAssociationOutput{} + output := &ModifyVpcTenancyOutput{} out.Result = output var buff [1024]byte @@ -39163,7 +39619,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39177,7 +39633,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcTenancy(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)} @@ -39210,14 +39666,14 @@ func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { +type awsEc2query_deserializeOpModifyVpnConnection struct { } -func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnection) 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) @@ -39231,9 +39687,9 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) } - output := &ReplaceTransitGatewayRouteOutput{} + output := &ModifyVpnConnectionOutput{} out.Result = output var buff [1024]byte @@ -39254,7 +39710,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39268,7 +39724,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnection(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)} @@ -39301,14 +39757,14 @@ func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyht } } -type awsEc2query_deserializeOpReportInstanceStatus struct { +type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { } -func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) 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) @@ -39322,21 +39778,44 @@ func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) } - output := &ReportInstanceStatusOutput{} + output := &ModifyVpnConnectionOptionsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } } + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + return out, metadata, err } -func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(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)} @@ -39369,14 +39848,14 @@ func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Res } } -type awsEc2query_deserializeOpRequestSpotFleet struct { +type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { } -func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) 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) @@ -39390,9 +39869,100 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) } - output := &RequestSpotFleetOutput{} + output := &ModifyVpnTunnelCertificateOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { +} + +func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) 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, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) + } + output := &ModifyVpnTunnelOptionsOutput{} out.Result = output var buff [1024]byte @@ -39413,7 +39983,7 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39427,7 +39997,7 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(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)} @@ -39460,14 +40030,14 @@ func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpRequestSpotInstances struct { +type awsEc2query_deserializeOpMonitorInstances struct { } -func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { +func (*awsEc2query_deserializeOpMonitorInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMonitorInstances) 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) @@ -39481,9 +40051,9 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) } - output := &RequestSpotInstancesOutput{} + output := &MonitorInstancesOutput{} out.Result = output var buff [1024]byte @@ -39504,7 +40074,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39518,7 +40088,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMonitorInstances(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)} @@ -39551,14 +40121,14 @@ func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Res } } -type awsEc2query_deserializeOpResetAddressAttribute struct { +type awsEc2query_deserializeOpMoveAddressToVpc struct { } -func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMoveAddressToVpc) 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) @@ -39572,9 +40142,9 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) } - output := &ResetAddressAttributeOutput{} + output := &MoveAddressToVpcOutput{} out.Result = output var buff [1024]byte @@ -39595,7 +40165,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39609,7 +40179,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMoveAddressToVpc(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)} @@ -39642,14 +40212,14 @@ func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpMoveByoipCidrToIpam struct { } -func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpMoveByoipCidrToIpam) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMoveByoipCidrToIpam) 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) @@ -39663,9 +40233,9 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(response, &metadata) } - output := &ResetEbsDefaultKmsKeyIdOutput{} + output := &MoveByoipCidrToIpamOutput{} out.Result = output var buff [1024]byte @@ -39686,7 +40256,7 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveByoipCidrToIpamOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39700,7 +40270,7 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(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)} @@ -39733,14 +40303,14 @@ func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp. } } -type awsEc2query_deserializeOpResetFpgaImageAttribute struct { +type awsEc2query_deserializeOpProvisionByoipCidr struct { } -func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionByoipCidr) 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) @@ -39754,9 +40324,9 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) } - output := &ResetFpgaImageAttributeOutput{} + output := &ProvisionByoipCidrOutput{} out.Result = output var buff [1024]byte @@ -39777,7 +40347,7 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -39791,7 +40361,7 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionByoipCidr(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)} @@ -39824,14 +40394,14 @@ func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpResetImageAttribute struct { +type awsEc2query_deserializeOpProvisionIpamPoolCidr struct { } -func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { +func (*awsEc2query_deserializeOpProvisionIpamPoolCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionIpamPoolCidr) 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) @@ -39845,89 +40415,44 @@ func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(response, &metadata) } - output := &ResetImageAttributeOutput{} + output := &ProvisionIpamPoolCidrOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorResetImageAttribute(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)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} -type awsEc2query_deserializeOpResetInstanceAttribute struct { -} - -func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpResetInstanceAttribute) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentProvisionIpamPoolCidrOutput(&output, decoder) 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, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) - } - output := &ResetInstanceAttributeOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(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)} @@ -39960,14 +40485,14 @@ func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr struct { } -func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) 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) @@ -39981,89 +40506,44 @@ func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(response, &metadata) } - output := &ResetNetworkInterfaceAttributeOutput{} + output := &ProvisionPublicIpv4PoolCidrOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(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)} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - return genericError - } -} -type awsEc2query_deserializeOpResetSnapshotAttribute struct { -} - -func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpResetSnapshotAttribute) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(&output, decoder) 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, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) - } - output := &ResetSnapshotAttributeOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(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)} @@ -40096,14 +40576,14 @@ func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpRestoreAddressToClassic struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseHostReservation) 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) @@ -40117,9 +40597,9 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &RestoreAddressToClassicOutput{} + output := &PurchaseHostReservationOutput{} out.Result = output var buff [1024]byte @@ -40140,7 +40620,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40154,7 +40634,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseHostReservation(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)} @@ -40187,14 +40667,14 @@ func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp. } } -type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) 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) @@ -40208,9 +40688,9 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &RestoreManagedPrefixListVersionOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -40231,7 +40711,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40245,7 +40725,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(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)} @@ -40278,14 +40758,14 @@ func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smi } } -type awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) 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) @@ -40299,9 +40779,9 @@ func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &RestoreSnapshotFromRecycleBinOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -40322,7 +40802,7 @@ func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreSnapshotFromRecycleBinOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40336,7 +40816,7 @@ func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(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)} @@ -40369,14 +40849,14 @@ func awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response *smith } } -type awsEc2query_deserializeOpRestoreSnapshotTier struct { +type awsEc2query_deserializeOpRebootInstances struct { } -func (*awsEc2query_deserializeOpRestoreSnapshotTier) ID() string { +func (*awsEc2query_deserializeOpRebootInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreSnapshotTier) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRebootInstances) 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) @@ -40390,44 +40870,21 @@ func (m *awsEc2query_deserializeOpRestoreSnapshotTier) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreSnapshotTier(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) } - output := &RestoreSnapshotTierOutput{} + output := &RebootInstancesOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreSnapshotTierOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreSnapshotTier(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRebootInstances(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)} @@ -40460,14 +40917,14 @@ func awsEc2query_deserializeOpErrorRestoreSnapshotTier(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpRevokeClientVpnIngress struct { +type awsEc2query_deserializeOpRegisterImage struct { } -func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { +func (*awsEc2query_deserializeOpRegisterImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterImage) 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) @@ -40481,9 +40938,9 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) } - output := &RevokeClientVpnIngressOutput{} + output := &RegisterImageOutput{} out.Result = output var buff [1024]byte @@ -40504,7 +40961,7 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40518,7 +40975,7 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterImage(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)} @@ -40551,14 +41008,14 @@ func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.R } } -type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { +type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { +func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) 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) @@ -40572,9 +41029,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) } - output := &RevokeSecurityGroupEgressOutput{} + output := &RegisterInstanceEventNotificationAttributesOutput{} out.Result = output var buff [1024]byte @@ -40595,7 +41052,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40609,7 +41066,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(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)} @@ -40642,14 +41099,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhtt } } -type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) 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) @@ -40663,9 +41120,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) } - output := &RevokeSecurityGroupIngressOutput{} + output := &RegisterTransitGatewayMulticastGroupMembersOutput{} out.Result = output var buff [1024]byte @@ -40686,7 +41143,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40700,7 +41157,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(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)} @@ -40733,14 +41190,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyht } } -type awsEc2query_deserializeOpRunInstances struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_deserializeOpRunInstances) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) 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) @@ -40754,9 +41211,9 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) } - output := &RunInstancesOutput{} + output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} out.Result = output var buff [1024]byte @@ -40777,7 +41234,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40791,7 +41248,7 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(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)} @@ -40824,14 +41281,14 @@ func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpRunScheduledInstances struct { +type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) 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) @@ -40845,9 +41302,9 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &RunScheduledInstancesOutput{} + output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -40868,7 +41325,7 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40882,7 +41339,7 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(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)} @@ -40915,14 +41372,14 @@ func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Re } } -type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { +type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) 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) @@ -40936,9 +41393,9 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) } - output := &SearchLocalGatewayRoutesOutput{} + output := &RejectTransitGatewayPeeringAttachmentOutput{} out.Result = output var buff [1024]byte @@ -40959,7 +41416,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -40973,7 +41430,7 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(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)} @@ -41006,14 +41463,14 @@ func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp } } -type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { +type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) 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) @@ -41027,9 +41484,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) } - output := &SearchTransitGatewayMulticastGroupsOutput{} + output := &RejectTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -41050,7 +41507,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -41064,7 +41521,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(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)} @@ -41097,14 +41554,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response } } -type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { +type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) 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) @@ -41118,9 +41575,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) } - output := &SearchTransitGatewayRoutesOutput{} + output := &RejectVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -41141,7 +41598,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -41155,7 +41612,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(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)} @@ -41188,14 +41645,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyht } } -type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { +type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { +func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) 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) @@ -41209,21 +41666,44 @@ func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) } - output := &SendDiagnosticInterruptOutput{} + output := &RejectVpcPeeringConnectionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(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)} @@ -41256,14 +41736,14 @@ func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp. } } -type awsEc2query_deserializeOpStartInstances struct { +type awsEc2query_deserializeOpReleaseAddress struct { } -func (*awsEc2query_deserializeOpStartInstances) ID() string { +func (*awsEc2query_deserializeOpReleaseAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseAddress) 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) @@ -41277,44 +41757,21 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) } - output := &StartInstancesOutput{} + output := &ReleaseAddressOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseAddress(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)} @@ -41347,14 +41804,14 @@ func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { +type awsEc2query_deserializeOpReleaseHosts struct { } -func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_deserializeOpReleaseHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseHosts) 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) @@ -41368,9 +41825,9 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) } - output := &StartNetworkInsightsAnalysisOutput{} + output := &ReleaseHostsOutput{} out.Result = output var buff [1024]byte @@ -41391,7 +41848,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -41405,7 +41862,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseHosts(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)} @@ -41438,14 +41895,14 @@ func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithy } } -type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +type awsEc2query_deserializeOpReleaseIpamPoolAllocation struct { } -func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { +func (*awsEc2query_deserializeOpReleaseIpamPoolAllocation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseIpamPoolAllocation) 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) @@ -41459,9 +41916,9 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(response, &metadata) } - output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + output := &ReleaseIpamPoolAllocationOutput{} out.Result = output var buff [1024]byte @@ -41482,7 +41939,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReleaseIpamPoolAllocationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -41496,7 +41953,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) return out, metadata, err } -func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(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)} @@ -41529,105 +41986,14 @@ func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification } } -type awsEc2query_deserializeOpStopInstances struct { -} - -func (*awsEc2query_deserializeOpStopInstances) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpStopInstances) 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, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) - } - output := &StopInstancesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) - if err != nil { - return err - } - awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsEc2query_deserializeOpTerminateClientVpnConnections struct { +type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { } -func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string { +func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) 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) @@ -41641,9 +42007,9 @@ func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) } - output := &TerminateClientVpnConnectionsOutput{} + output := &ReplaceIamInstanceProfileAssociationOutput{} out.Result = output var buff [1024]byte @@ -41664,7 +42030,7 @@ func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -41678,7 +42044,7 @@ func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(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)} @@ -41711,14 +42077,14 @@ func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smith } } -type awsEc2query_deserializeOpTerminateInstances struct { +type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { } -func (*awsEc2query_deserializeOpTerminateInstances) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) 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) @@ -41732,9 +42098,9 @@ func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) } - output := &TerminateInstancesOutput{} + output := &ReplaceNetworkAclAssociationOutput{} out.Result = output var buff [1024]byte @@ -41755,7 +42121,7 @@ func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -41769,7 +42135,7 @@ func (m *awsEc2query_deserializeOpTerminateInstances) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(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)} @@ -41802,14 +42168,14 @@ func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpUnassignIpv6Addresses struct { +type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpUnassignIpv6Addresses) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) 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) @@ -41823,44 +42189,21 @@ func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) } - output := &UnassignIpv6AddressesOutput{} + output := &ReplaceNetworkAclEntryOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - return out, metadata, err } -func awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(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)} @@ -41893,14 +42236,14 @@ func awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response *smithyhttp.Re } } -type awsEc2query_deserializeOpUnassignPrivateIpAddresses struct { +type awsEc2query_deserializeOpReplaceRoute struct { } -func (*awsEc2query_deserializeOpUnassignPrivateIpAddresses) ID() string { +func (*awsEc2query_deserializeOpReplaceRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpUnassignPrivateIpAddresses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRoute) 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) @@ -41914,9 +42257,9 @@ func (m *awsEc2query_deserializeOpUnassignPrivateIpAddresses) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) } - output := &UnassignPrivateIpAddressesOutput{} + output := &ReplaceRouteOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -41928,7 +42271,7 @@ func (m *awsEc2query_deserializeOpUnassignPrivateIpAddresses) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRoute(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)} @@ -41961,14 +42304,14 @@ func awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(response *smithyht } } -type awsEc2query_deserializeOpUnmonitorInstances struct { +type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { } -func (*awsEc2query_deserializeOpUnmonitorInstances) ID() string { +func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpUnmonitorInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) 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) @@ -41982,9 +42325,9 @@ func (m *awsEc2query_deserializeOpUnmonitorInstances) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorUnmonitorInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) } - output := &UnmonitorInstancesOutput{} + output := &ReplaceRouteTableAssociationOutput{} out.Result = output var buff [1024]byte @@ -42005,7 +42348,7 @@ func (m *awsEc2query_deserializeOpUnmonitorInstances) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentUnmonitorInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -42019,7 +42362,7 @@ func (m *awsEc2query_deserializeOpUnmonitorInstances) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorUnmonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(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)} @@ -42052,14 +42395,14 @@ func awsEc2query_deserializeOpErrorUnmonitorInstances(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress struct { +type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) ID() string { +func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) 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) @@ -42073,9 +42416,9 @@ func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) } - output := &UpdateSecurityGroupRuleDescriptionsEgressOutput{} + output := &ReplaceTransitGatewayRouteOutput{} out.Result = output var buff [1024]byte @@ -42096,7 +42439,7 @@ func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) Han } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -42110,7 +42453,7 @@ func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) Han return out, metadata, err } -func awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(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)} @@ -42143,14 +42486,14 @@ func awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(res } } -type awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress struct { +type awsEc2query_deserializeOpReportInstanceStatus struct { } -func (*awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) ID() string { +func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReportInstanceStatus) 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) @@ -42164,44 +42507,21 @@ func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) } - output := &UpdateSecurityGroupRuleDescriptionsIngressOutput{} + output := &ReportInstanceStatusOutput{} out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngressOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReportInstanceStatus(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)} @@ -42234,14 +42554,14 @@ func awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(re } } -type awsEc2query_deserializeOpWithdrawByoipCidr struct { +type awsEc2query_deserializeOpRequestSpotFleet struct { } -func (*awsEc2query_deserializeOpWithdrawByoipCidr) ID() string { +func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpWithdrawByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotFleet) 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) @@ -42255,9 +42575,9 @@ func (m *awsEc2query_deserializeOpWithdrawByoipCidr) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorWithdrawByoipCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) } - output := &WithdrawByoipCidrOutput{} + output := &RequestSpotFleetOutput{} out.Result = output var buff [1024]byte @@ -42278,7 +42598,7 @@ func (m *awsEc2query_deserializeOpWithdrawByoipCidr) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentWithdrawByoipCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -42292,7 +42612,2963 @@ func (m *awsEc2query_deserializeOpWithdrawByoipCidr) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorWithdrawByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRequestSpotInstances struct { +} + +func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRequestSpotInstances) 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, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) + } + output := &RequestSpotInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetAddressAttribute struct { +} + +func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetAddressAttribute) 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, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) + } + output := &ResetAddressAttributeOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { +} + +func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) 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, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) + } + output := &ResetEbsDefaultKmsKeyIdOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetFpgaImageAttribute struct { +} + +func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) 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, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) + } + output := &ResetFpgaImageAttributeOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetImageAttribute struct { +} + +func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetImageAttribute) 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, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) + } + output := &ResetImageAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetInstanceAttribute struct { +} + +func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetInstanceAttribute) 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, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) + } + output := &ResetInstanceAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { +} + +func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) 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, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) + } + output := &ResetNetworkInterfaceAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpResetSnapshotAttribute struct { +} + +func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetSnapshotAttribute) 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, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) + } + output := &ResetSnapshotAttributeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRestoreAddressToClassic struct { +} + +func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRestoreAddressToClassic) 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, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) + } + output := &RestoreAddressToClassicOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { +} + +func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) 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, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) + } + output := &RestoreManagedPrefixListVersionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin struct { +} + +func (*awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) 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, awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response, &metadata) + } + output := &RestoreSnapshotFromRecycleBinOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRestoreSnapshotFromRecycleBinOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRestoreSnapshotTier struct { +} + +func (*awsEc2query_deserializeOpRestoreSnapshotTier) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRestoreSnapshotTier) 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, awsEc2query_deserializeOpErrorRestoreSnapshotTier(response, &metadata) + } + output := &RestoreSnapshotTierOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRestoreSnapshotTierOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRestoreSnapshotTier(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRevokeClientVpnIngress struct { +} + +func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) 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, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) + } + output := &RevokeClientVpnIngressOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { +} + +func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) 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, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) + } + output := &RevokeSecurityGroupEgressOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { +} + +func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) 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, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) + } + output := &RevokeSecurityGroupIngressOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRunInstances struct { +} + +func (*awsEc2query_deserializeOpRunInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRunInstances) 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, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) + } + output := &RunInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRunScheduledInstances struct { +} + +func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRunScheduledInstances) 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, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) + } + output := &RunScheduledInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { +} + +func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) 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, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) + } + output := &SearchLocalGatewayRoutesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { +} + +func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) 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, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + } + output := &SearchTransitGatewayMulticastGroupsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { +} + +func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) 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, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + } + output := &SearchTransitGatewayRoutesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { +} + +func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) 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, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) + } + output := &SendDiagnosticInterruptOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStartInstances struct { +} + +func (*awsEc2query_deserializeOpStartInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartInstances) 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, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) + } + output := &StartInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis struct { +} + +func (*awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) 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, awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(response, &metadata) + } + output := &StartNetworkInsightsAccessScopeAnalysisOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAccessScopeAnalysisOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { +} + +func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) 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, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + } + output := &StartNetworkInsightsAnalysisOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +} + +func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) 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, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + } + output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpStopInstances struct { +} + +func (*awsEc2query_deserializeOpStopInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStopInstances) 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, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) + } + output := &StopInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpTerminateClientVpnConnections struct { +} + +func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) 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, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata) + } + output := &TerminateClientVpnConnectionsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpTerminateInstances struct { +} + +func (*awsEc2query_deserializeOpTerminateInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpTerminateInstances) 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, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata) + } + output := &TerminateInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorTerminateInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpUnassignIpv6Addresses struct { +} + +func (*awsEc2query_deserializeOpUnassignIpv6Addresses) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) 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, awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response, &metadata) + } + output := &UnassignIpv6AddressesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpUnassignPrivateIpAddresses struct { +} + +func (*awsEc2query_deserializeOpUnassignPrivateIpAddresses) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpUnassignPrivateIpAddresses) 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, awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(response, &metadata) + } + output := &UnassignPrivateIpAddressesOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpUnmonitorInstances struct { +} + +func (*awsEc2query_deserializeOpUnmonitorInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpUnmonitorInstances) 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, awsEc2query_deserializeOpErrorUnmonitorInstances(response, &metadata) + } + output := &UnmonitorInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentUnmonitorInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorUnmonitorInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress struct { +} + +func (*awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) 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, awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(response, &metadata) + } + output := &UpdateSecurityGroupRuleDescriptionsEgressOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress struct { +} + +func (*awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) 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, awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(response, &metadata) + } + output := &UpdateSecurityGroupRuleDescriptionsIngressOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngressOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpWithdrawByoipCidr struct { +} + +func (*awsEc2query_deserializeOpWithdrawByoipCidr) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpWithdrawByoipCidr) 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, awsEc2query_deserializeOpErrorWithdrawByoipCidr(response, &metadata) + } + output := &WithdrawByoipCidrOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentWithdrawByoipCidrOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorWithdrawByoipCidr(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)} @@ -42329,9 +45605,1267 @@ func awsEc2query_deserializeDocumentAcceleratorCount(v **types.AcceleratorCount, if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AcceleratorCount + var sv *types.AcceleratorCount + if *v == nil { + sv = &types.AcceleratorCount{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("max", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Max = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("min", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Min = ptr.Int32(int32(i64)) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAcceleratorManufacturerSet(v *[]types.AcceleratorManufacturer, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AcceleratorManufacturer + if *v == nil { + sv = make([]types.AcceleratorManufacturer, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AcceleratorManufacturer + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = types.AcceleratorManufacturer(xtv) + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAcceleratorManufacturerSetUnwrapped(v *[]types.AcceleratorManufacturer, decoder smithyxml.NodeDecoder) error { + var sv []types.AcceleratorManufacturer + if *v == nil { + sv = make([]types.AcceleratorManufacturer, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AcceleratorManufacturer + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.AcceleratorManufacturer(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAcceleratorNameSet(v *[]types.AcceleratorName, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AcceleratorName + if *v == nil { + sv = make([]types.AcceleratorName, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AcceleratorName + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = types.AcceleratorName(xtv) + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAcceleratorNameSetUnwrapped(v *[]types.AcceleratorName, decoder smithyxml.NodeDecoder) error { + var sv []types.AcceleratorName + if *v == nil { + sv = make([]types.AcceleratorName, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AcceleratorName + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.AcceleratorName(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.AcceleratorTotalMemoryMiB, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AcceleratorTotalMemoryMiB + if *v == nil { + sv = &types.AcceleratorTotalMemoryMiB{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("max", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Max = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("min", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Min = ptr.Int32(int32(i64)) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAcceleratorTypeSet(v *[]types.AcceleratorType, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AcceleratorType + if *v == nil { + sv = make([]types.AcceleratorType, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AcceleratorType + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = types.AcceleratorType(xtv) + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAcceleratorTypeSetUnwrapped(v *[]types.AcceleratorType, decoder smithyxml.NodeDecoder) error { + var sv []types.AcceleratorType + if *v == nil { + sv = make([]types.AcceleratorType, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AcceleratorType + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.AcceleratorType(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAccessScopeAnalysisFinding(v **types.AccessScopeAnalysisFinding, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AccessScopeAnalysisFinding + if *v == nil { + sv = &types.AccessScopeAnalysisFinding{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("findingComponentSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPathComponentList(&sv.FindingComponents, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("findingId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FindingId = ptr.String(xtv) + } + + case strings.EqualFold("networkInsightsAccessScopeAnalysisId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeAnalysisId = ptr.String(xtv) + } + + case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccessScopeAnalysisFindingList(v *[]types.AccessScopeAnalysisFinding, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AccessScopeAnalysisFinding + if *v == nil { + sv = make([]types.AccessScopeAnalysisFinding, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AccessScopeAnalysisFinding + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAccessScopeAnalysisFinding(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccessScopeAnalysisFindingListUnwrapped(v *[]types.AccessScopeAnalysisFinding, decoder smithyxml.NodeDecoder) error { + var sv []types.AccessScopeAnalysisFinding + if *v == nil { + sv = make([]types.AccessScopeAnalysisFinding, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AccessScopeAnalysisFinding + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAccessScopeAnalysisFinding(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAccessScopePath(v **types.AccessScopePath, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AccessScopePath + if *v == nil { + sv = &types.AccessScopePath{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("destination", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPathStatement(&sv.Destination, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("source", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPathStatement(&sv.Source, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("throughResourceSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentThroughResourcesStatementList(&sv.ThroughResources, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccessScopePathList(v *[]types.AccessScopePath, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AccessScopePath + if *v == nil { + sv = make([]types.AccessScopePath, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AccessScopePath + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAccessScopePath(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccessScopePathListUnwrapped(v *[]types.AccessScopePath, decoder smithyxml.NodeDecoder) error { + var sv []types.AccessScopePath + if *v == nil { + sv = make([]types.AccessScopePath, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AccessScopePath + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAccessScopePath(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AccountAttribute + if *v == nil { + sv = &types.AccountAttribute{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("attributeName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AttributeName = ptr.String(xtv) + } + + case strings.EqualFold("attributeValueSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAccountAttributeValueList(&sv.AttributeValues, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccountAttributeList(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AccountAttribute + if *v == nil { + sv = make([]types.AccountAttribute, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AccountAttribute + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccountAttributeListUnwrapped(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountAttribute + if *v == nil { + sv = make([]types.AccountAttribute, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AccountAttribute + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AccountAttributeValue + if *v == nil { + sv = &types.AccountAttributeValue{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("attributeValue", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AttributeValue = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AccountAttributeValue + if *v == nil { + sv = make([]types.AccountAttributeValue, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AccountAttributeValue + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAccountAttributeValueListUnwrapped(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { + var sv []types.AccountAttributeValue + if *v == nil { + sv = make([]types.AccountAttributeValue, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AccountAttributeValue + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ActiveInstance + if *v == nil { + sv = &types.ActiveInstance{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceHealth", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceHealth = types.InstanceHealthStatus(xtv) + } + + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } + + case strings.EqualFold("spotInstanceRequestId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SpotInstanceRequestId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ActiveInstance + if *v == nil { + sv = make([]types.ActiveInstance, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.ActiveInstance + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentActiveInstanceSetUnwrapped(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ActiveInstance + if *v == nil { + sv = make([]types.ActiveInstance, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ActiveInstance + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Address + if *v == nil { + sv = &types.Address{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("allocationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AllocationId = ptr.String(xtv) + } + + case strings.EqualFold("associationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AssociationId = ptr.String(xtv) + } + + case strings.EqualFold("carrierIp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CarrierIp = ptr.String(xtv) + } + + case strings.EqualFold("customerOwnedIp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CustomerOwnedIp = ptr.String(xtv) + } + + case strings.EqualFold("customerOwnedIpv4Pool", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CustomerOwnedIpv4Pool = ptr.String(xtv) + } + + case strings.EqualFold("domain", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Domain = types.DomainType(xtv) + } + + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("networkBorderGroup", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkBorderGroup = ptr.String(xtv) + } + + case strings.EqualFold("networkInterfaceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInterfaceId = ptr.String(xtv) + } + + case strings.EqualFold("networkInterfaceOwnerId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInterfaceOwnerId = ptr.String(xtv) + } + + case strings.EqualFold("privateIpAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PrivateIpAddress = ptr.String(xtv) + } + + case strings.EqualFold("publicIp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PublicIp = ptr.String(xtv) + } + + case strings.EqualFold("publicIpv4Pool", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PublicIpv4Pool = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AddressAttribute if *v == nil { - sv = &types.AcceleratorCount{} + sv = &types.AddressAttribute{} } else { sv = *v } @@ -42347,7 +46881,7 @@ func awsEc2query_deserializeDocumentAcceleratorCount(v **types.AcceleratorCount, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("max", t.Name.Local): + case strings.EqualFold("allocationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42357,14 +46891,10 @@ func awsEc2query_deserializeDocumentAcceleratorCount(v **types.AcceleratorCount, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Max = ptr.Int32(int32(i64)) + sv.AllocationId = ptr.String(xtv) } - case strings.EqualFold("min", t.Name.Local): + case strings.EqualFold("ptrRecord", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42374,11 +46904,26 @@ func awsEc2query_deserializeDocumentAcceleratorCount(v **types.AcceleratorCount, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Min = ptr.Int32(int32(i64)) + sv.PtrRecord = ptr.String(xtv) + } + + case strings.EqualFold("ptrRecordUpdate", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPtrUpdateStatus(&sv.PtrRecordUpdate, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("publicIp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PublicIp = ptr.String(xtv) } default: @@ -42395,13 +46940,13 @@ func awsEc2query_deserializeDocumentAcceleratorCount(v **types.AcceleratorCount, return nil } -func awsEc2query_deserializeDocumentAcceleratorManufacturerSet(v *[]types.AcceleratorManufacturer, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAddressList(v *[]types.Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AcceleratorManufacturer + var sv []types.Address if *v == nil { - sv = make([]types.AcceleratorManufacturer, 0) + sv = make([]types.Address, 0) } else { sv = *v } @@ -42415,22 +46960,15 @@ func awsEc2query_deserializeDocumentAcceleratorManufacturerSet(v *[]types.Accele if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.AcceleratorManufacturer - val, err := decoder.Value() - if err != nil { + var col types.Address + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = types.AcceleratorManufacturer(xtv) - } + col = *destAddr sv = append(sv, col) default: @@ -42446,42 +46984,37 @@ func awsEc2query_deserializeDocumentAcceleratorManufacturerSet(v *[]types.Accele return nil } -func awsEc2query_deserializeDocumentAcceleratorManufacturerSetUnwrapped(v *[]types.AcceleratorManufacturer, decoder smithyxml.NodeDecoder) error { - var sv []types.AcceleratorManufacturer +func awsEc2query_deserializeDocumentAddressListUnwrapped(v *[]types.Address, decoder smithyxml.NodeDecoder) error { + var sv []types.Address if *v == nil { - sv = make([]types.AcceleratorManufacturer, 0) + sv = make([]types.Address, 0) } else { sv = *v } switch { default: - var mv types.AcceleratorManufacturer + var mv types.Address t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = types.AcceleratorManufacturer(xtv) - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentAcceleratorNameSet(v *[]types.AcceleratorName, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAddressSet(v *[]types.AddressAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AcceleratorName + var sv []types.AddressAttribute if *v == nil { - sv = make([]types.AcceleratorName, 0) + sv = make([]types.AddressAttribute, 0) } else { sv = *v } @@ -42495,22 +47028,15 @@ func awsEc2query_deserializeDocumentAcceleratorNameSet(v *[]types.AcceleratorNam if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.AcceleratorName - val, err := decoder.Value() - if err != nil { + var col types.AddressAttribute + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAddressAttribute(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = types.AcceleratorName(xtv) - } + col = *destAddr sv = append(sv, col) default: @@ -42526,42 +47052,37 @@ func awsEc2query_deserializeDocumentAcceleratorNameSet(v *[]types.AcceleratorNam return nil } -func awsEc2query_deserializeDocumentAcceleratorNameSetUnwrapped(v *[]types.AcceleratorName, decoder smithyxml.NodeDecoder) error { - var sv []types.AcceleratorName +func awsEc2query_deserializeDocumentAddressSetUnwrapped(v *[]types.AddressAttribute, decoder smithyxml.NodeDecoder) error { + var sv []types.AddressAttribute if *v == nil { - sv = make([]types.AcceleratorName, 0) + sv = make([]types.AddressAttribute, 0) } else { sv = *v } switch { default: - var mv types.AcceleratorName + var mv types.AddressAttribute t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAddressAttribute(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = types.AcceleratorName(xtv) - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.AcceleratorTotalMemoryMiB, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AcceleratorTotalMemoryMiB + var sv *types.AllowedPrincipal if *v == nil { - sv = &types.AcceleratorTotalMemoryMiB{} + sv = &types.AllowedPrincipal{} } else { sv = *v } @@ -42577,7 +47098,7 @@ func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.Accelera originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("max", t.Name.Local): + case strings.EqualFold("principal", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42587,14 +47108,10 @@ func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.Accelera } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Max = ptr.Int32(int32(i64)) + sv.Principal = ptr.String(xtv) } - case strings.EqualFold("min", t.Name.Local): + case strings.EqualFold("principalType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42604,11 +47121,7 @@ func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.Accelera } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Min = ptr.Int32(int32(i64)) + sv.PrincipalType = types.PrincipalType(xtv) } default: @@ -42625,13 +47138,13 @@ func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.Accelera return nil } -func awsEc2query_deserializeDocumentAcceleratorTypeSet(v *[]types.AcceleratorType, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AcceleratorType + var sv []types.AllowedPrincipal if *v == nil { - sv = make([]types.AcceleratorType, 0) + sv = make([]types.AllowedPrincipal, 0) } else { sv = *v } @@ -42645,22 +47158,15 @@ func awsEc2query_deserializeDocumentAcceleratorTypeSet(v *[]types.AcceleratorTyp if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.AcceleratorType - val, err := decoder.Value() - if err != nil { + var col types.AllowedPrincipal + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = types.AcceleratorType(xtv) - } + col = *destAddr sv = append(sv, col) default: @@ -42676,42 +47182,37 @@ func awsEc2query_deserializeDocumentAcceleratorTypeSet(v *[]types.AcceleratorTyp return nil } -func awsEc2query_deserializeDocumentAcceleratorTypeSetUnwrapped(v *[]types.AcceleratorType, decoder smithyxml.NodeDecoder) error { - var sv []types.AcceleratorType +func awsEc2query_deserializeDocumentAllowedPrincipalSetUnwrapped(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { + var sv []types.AllowedPrincipal if *v == nil { - sv = make([]types.AcceleratorType, 0) + sv = make([]types.AllowedPrincipal, 0) } else { sv = *v } switch { default: - var mv types.AcceleratorType + var mv types.AllowedPrincipal t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = types.AcceleratorType(xtv) - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AccountAttribute + var sv *types.AlternatePathHint if *v == nil { - sv = &types.AccountAttribute{} + sv = &types.AlternatePathHint{} } else { sv = *v } @@ -42727,7 +47228,7 @@ func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("attributeName", t.Name.Local): + case strings.EqualFold("componentArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42737,14 +47238,21 @@ func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, } { xtv := string(val) - sv.AttributeName = ptr.String(xtv) + sv.ComponentArn = ptr.String(xtv) } - case strings.EqualFold("attributeValueSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAccountAttributeValueList(&sv.AttributeValues, nodeDecoder); err != nil { + case strings.EqualFold("componentId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ComponentId = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -42760,13 +47268,13 @@ func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, return nil } -func awsEc2query_deserializeDocumentAccountAttributeList(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAlternatePathHintList(v *[]types.AlternatePathHint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AccountAttribute + var sv []types.AlternatePathHint if *v == nil { - sv = make([]types.AccountAttribute, 0) + sv = make([]types.AlternatePathHint, 0) } else { sv = *v } @@ -42782,10 +47290,10 @@ func awsEc2query_deserializeDocumentAccountAttributeList(v *[]types.AccountAttri } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AccountAttribute + var col types.AlternatePathHint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAlternatePathHint(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -42804,22 +47312,22 @@ func awsEc2query_deserializeDocumentAccountAttributeList(v *[]types.AccountAttri return nil } -func awsEc2query_deserializeDocumentAccountAttributeListUnwrapped(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error { - var sv []types.AccountAttribute +func awsEc2query_deserializeDocumentAlternatePathHintListUnwrapped(v *[]types.AlternatePathHint, decoder smithyxml.NodeDecoder) error { + var sv []types.AlternatePathHint if *v == nil { - sv = make([]types.AccountAttribute, 0) + sv = make([]types.AlternatePathHint, 0) } else { sv = *v } switch { default: - var mv types.AccountAttribute + var mv types.AlternatePathHint t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAlternatePathHint(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -42828,13 +47336,13 @@ func awsEc2query_deserializeDocumentAccountAttributeListUnwrapped(v *[]types.Acc *v = sv return nil } -func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AccountAttributeValue + var sv *types.AnalysisAclRule if *v == nil { - sv = &types.AccountAttributeValue{} + sv = &types.AnalysisAclRule{} } else { sv = *v } @@ -42850,7 +47358,7 @@ func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttri originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("attributeValue", t.Name.Local): + case strings.EqualFold("cidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42860,7 +47368,72 @@ func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttri } { xtv := string(val) - sv.AttributeValue = ptr.String(xtv) + sv.Cidr = ptr.String(xtv) + } + + case strings.EqualFold("egress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Egress = ptr.Bool(xtv) + } + + case strings.EqualFold("portRange", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("protocol", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Protocol = ptr.String(xtv) + } + + case strings.EqualFold("ruleAction", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.RuleAction = ptr.String(xtv) + } + + case strings.EqualFold("ruleNumber", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.RuleNumber = ptr.Int32(int32(i64)) } default: @@ -42877,13 +47450,88 @@ func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttri return nil } -func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAnalysisComponent(v **types.AnalysisComponent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AccountAttributeValue + var sv *types.AnalysisComponent if *v == nil { - sv = make([]types.AccountAttributeValue, 0) + sv = &types.AnalysisComponent{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("arn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Arn = ptr.String(xtv) + } + + case strings.EqualFold("id", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Id = ptr.String(xtv) + } + + case strings.EqualFold("name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAnalysisComponentList(v *[]types.AnalysisComponent, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AnalysisComponent + if *v == nil { + sv = make([]types.AnalysisComponent, 0) } else { sv = *v } @@ -42899,10 +47547,10 @@ func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]types.Account } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AccountAttributeValue + var col types.AnalysisComponent nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAnalysisComponent(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -42921,22 +47569,22 @@ func awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]types.Account return nil } -func awsEc2query_deserializeDocumentAccountAttributeValueListUnwrapped(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error { - var sv []types.AccountAttributeValue +func awsEc2query_deserializeDocumentAnalysisComponentListUnwrapped(v *[]types.AnalysisComponent, decoder smithyxml.NodeDecoder) error { + var sv []types.AnalysisComponent if *v == nil { - sv = make([]types.AccountAttributeValue, 0) + sv = make([]types.AnalysisComponent, 0) } else { sv = *v } switch { default: - var mv types.AccountAttributeValue + var mv types.AnalysisComponent t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAnalysisComponent(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -42945,13 +47593,13 @@ func awsEc2query_deserializeDocumentAccountAttributeValueListUnwrapped(v *[]type *v = sv return nil } -func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.AnalysisLoadBalancerListener, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ActiveInstance + var sv *types.AnalysisLoadBalancerListener if *v == nil { - sv = &types.ActiveInstance{} + sv = &types.AnalysisLoadBalancerListener{} } else { sv = *v } @@ -42967,7 +47615,7 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceHealth", t.Name.Local): + case strings.EqualFold("instancePort", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42977,10 +47625,14 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } { xtv := string(val) - sv.InstanceHealth = types.InstanceHealthStatus(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.InstancePort = ptr.Int32(int32(i64)) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("loadBalancerPort", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -42990,10 +47642,50 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.LoadBalancerPort = ptr.Int32(int32(i64)) } - case strings.EqualFold("instanceType", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.AnalysisLoadBalancerTarget, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AnalysisLoadBalancerTarget + if *v == nil { + sv = &types.AnalysisLoadBalancerTarget{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("address", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43003,10 +47695,10 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } { xtv := string(val) - sv.InstanceType = ptr.String(xtv) + sv.Address = ptr.String(xtv) } - case strings.EqualFold("spotInstanceRequestId", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43016,7 +47708,30 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec } { xtv := string(val) - sv.SpotInstanceRequestId = ptr.String(xtv) + sv.AvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("instance", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Instance, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("port", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Port = ptr.Int32(int32(i64)) } default: @@ -43033,18 +47748,17 @@ func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, dec return nil } -func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAnalysisPacketHeader(v **types.AnalysisPacketHeader, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ActiveInstance + var sv *types.AnalysisPacketHeader if *v == nil { - sv = make([]types.ActiveInstance, 0) + sv = &types.AnalysisPacketHeader{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -43053,18 +47767,48 @@ func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]types.ActiveInstance, if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.ActiveInstance + case strings.EqualFold("destinationAddressSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpAddressList(&sv.DestinationAddresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("destinationPortRangeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPortRangeList(&sv.DestinationPortRanges, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("protocol", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Protocol = ptr.String(xtv) + } + + case strings.EqualFold("sourceAddressSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpAddressList(&sv.SourceAddresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourcePortRangeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPortRangeList(&sv.SourcePortRanges, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -43077,37 +47821,13 @@ func awsEc2query_deserializeDocumentActiveInstanceSet(v *[]types.ActiveInstance, return nil } -func awsEc2query_deserializeDocumentActiveInstanceSetUnwrapped(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error { - var sv []types.ActiveInstance - if *v == nil { - sv = make([]types.ActiveInstance, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ActiveInstance - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRouteTableRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Address + var sv *types.AnalysisRouteTableRoute if *v == nil { - sv = &types.Address{} + sv = &types.AnalysisRouteTableRoute{} } else { sv = *v } @@ -43123,7 +47843,7 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("allocationId", t.Name.Local): + case strings.EqualFold("destinationCidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43133,10 +47853,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.AllocationId = ptr.String(xtv) + sv.DestinationCidr = ptr.String(xtv) } - case strings.EqualFold("associationId", t.Name.Local): + case strings.EqualFold("destinationPrefixListId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43146,10 +47866,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.AssociationId = ptr.String(xtv) + sv.DestinationPrefixListId = ptr.String(xtv) } - case strings.EqualFold("carrierIp", t.Name.Local): + case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43159,10 +47879,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.CarrierIp = ptr.String(xtv) + sv.EgressOnlyInternetGatewayId = ptr.String(xtv) } - case strings.EqualFold("customerOwnedIp", t.Name.Local): + case strings.EqualFold("gatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43172,10 +47892,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.CustomerOwnedIp = ptr.String(xtv) + sv.GatewayId = ptr.String(xtv) } - case strings.EqualFold("customerOwnedIpv4Pool", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43185,10 +47905,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.CustomerOwnedIpv4Pool = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("domain", t.Name.Local): + case strings.EqualFold("natGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43198,10 +47918,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.Domain = types.DomainType(xtv) + sv.NatGatewayId = ptr.String(xtv) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("networkInterfaceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43211,10 +47931,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.NetworkInterfaceId = ptr.String(xtv) } - case strings.EqualFold("networkBorderGroup", t.Name.Local): + case strings.EqualFold("origin", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43224,10 +47944,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.NetworkBorderGroup = ptr.String(xtv) + sv.Origin = ptr.String(xtv) } - case strings.EqualFold("networkInterfaceId", t.Name.Local): + case strings.EqualFold("transitGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43237,10 +47957,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.NetworkInterfaceId = ptr.String(xtv) + sv.TransitGatewayId = ptr.String(xtv) } - case strings.EqualFold("networkInterfaceOwnerId", t.Name.Local): + case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43250,10 +47970,46 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.NetworkInterfaceOwnerId = ptr.String(xtv) + sv.VpcPeeringConnectionId = ptr.String(xtv) } - case strings.EqualFold("privateIpAddress", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(v **types.AnalysisSecurityGroupRule, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AnalysisSecurityGroupRule + if *v == nil { + sv = &types.AnalysisSecurityGroupRule{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43263,10 +48019,10 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.PrivateIpAddress = ptr.String(xtv) + sv.Cidr = ptr.String(xtv) } - case strings.EqualFold("publicIp", t.Name.Local): + case strings.EqualFold("direction", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43276,10 +48032,16 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.PublicIp = ptr.String(xtv) + sv.Direction = ptr.String(xtv) } - case strings.EqualFold("publicIpv4Pool", t.Name.Local): + case strings.EqualFold("portRange", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("prefixListId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43289,17 +48051,290 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml } { xtv := string(val) - sv.PublicIpv4Pool = ptr.String(xtv) + sv.PrefixListId = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("protocol", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Protocol = ptr.String(xtv) + } + + case strings.EqualFold("securityGroupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SecurityGroupId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentArchitectureTypeList(v *[]types.ArchitectureType, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ArchitectureType + if *v == nil { + sv = make([]types.ArchitectureType, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.ArchitectureType + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = types.ArchitectureType(xtv) + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentArchitectureTypeListUnwrapped(v *[]types.ArchitectureType, decoder smithyxml.NodeDecoder) error { + var sv []types.ArchitectureType + if *v == nil { + sv = make([]types.ArchitectureType, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ArchitectureType + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.ArchitectureType(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentArnList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentArnListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AssignedPrivateIpAddress + if *v == nil { + sv = &types.AssignedPrivateIpAddress{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("privateIpAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PrivateIpAddress = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AssignedPrivateIpAddress + if *v == nil { + sv = make([]types.AssignedPrivateIpAddress, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.AssignedPrivateIpAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -43312,13 +48347,37 @@ func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssignedPrivateIpAddressListUnwrapped(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.AssignedPrivateIpAddress + if *v == nil { + sv = make([]types.AssignedPrivateIpAddress, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AssignedPrivateIpAddress + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AddressAttribute + var sv *types.AssociatedRole if *v == nil { - sv = &types.AddressAttribute{} + sv = &types.AssociatedRole{} } else { sv = *v } @@ -43334,7 +48393,7 @@ func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("allocationId", t.Name.Local): + case strings.EqualFold("associatedRoleArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43344,10 +48403,10 @@ func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, } { xtv := string(val) - sv.AllocationId = ptr.String(xtv) + sv.AssociatedRoleArn = ptr.String(xtv) } - case strings.EqualFold("ptrRecord", t.Name.Local): + case strings.EqualFold("certificateS3BucketName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43357,16 +48416,23 @@ func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, } { xtv := string(val) - sv.PtrRecord = ptr.String(xtv) + sv.CertificateS3BucketName = ptr.String(xtv) } - case strings.EqualFold("ptrRecordUpdate", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPtrUpdateStatus(&sv.PtrRecordUpdate, nodeDecoder); err != nil { + case strings.EqualFold("certificateS3ObjectKey", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.CertificateS3ObjectKey = ptr.String(xtv) + } - case strings.EqualFold("publicIp", t.Name.Local): + case strings.EqualFold("encryptionKmsKeyId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43376,7 +48442,7 @@ func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, } { xtv := string(val) - sv.PublicIp = ptr.String(xtv) + sv.EncryptionKmsKeyId = ptr.String(xtv) } default: @@ -43393,13 +48459,13 @@ func awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, return nil } -func awsEc2query_deserializeDocumentAddressList(v *[]types.Address, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Address + var sv []types.AssociatedRole if *v == nil { - sv = make([]types.Address, 0) + sv = make([]types.AssociatedRole, 0) } else { sv = *v } @@ -43415,10 +48481,10 @@ func awsEc2query_deserializeDocumentAddressList(v *[]types.Address, decoder smit } switch { case strings.EqualFold("item", t.Name.Local): - var col types.Address + var col types.AssociatedRole nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -43437,22 +48503,22 @@ func awsEc2query_deserializeDocumentAddressList(v *[]types.Address, decoder smit return nil } -func awsEc2query_deserializeDocumentAddressListUnwrapped(v *[]types.Address, decoder smithyxml.NodeDecoder) error { - var sv []types.Address +func awsEc2query_deserializeDocumentAssociatedRolesListUnwrapped(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error { + var sv []types.AssociatedRole if *v == nil { - sv = make([]types.Address, 0) + sv = make([]types.AssociatedRole, 0) } else { sv = *v } switch { default: - var mv types.Address + var mv types.AssociatedRole t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -43461,13 +48527,75 @@ func awsEc2query_deserializeDocumentAddressListUnwrapped(v *[]types.Address, dec *v = sv return nil } -func awsEc2query_deserializeDocumentAddressSet(v *[]types.AddressAttribute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AddressAttribute + var sv *types.AssociatedTargetNetwork if *v == nil { - sv = make([]types.AddressAttribute, 0) + sv = &types.AssociatedTargetNetwork{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkId = ptr.String(xtv) + } + + case strings.EqualFold("networkType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkType = types.AssociatedNetworkType(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.AssociatedTargetNetwork + if *v == nil { + sv = make([]types.AssociatedTargetNetwork, 0) } else { sv = *v } @@ -43483,10 +48611,10 @@ func awsEc2query_deserializeDocumentAddressSet(v *[]types.AddressAttribute, deco } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AddressAttribute + var col types.AssociatedTargetNetwork nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAddressAttribute(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -43505,22 +48633,22 @@ func awsEc2query_deserializeDocumentAddressSet(v *[]types.AddressAttribute, deco return nil } -func awsEc2query_deserializeDocumentAddressSetUnwrapped(v *[]types.AddressAttribute, decoder smithyxml.NodeDecoder) error { - var sv []types.AddressAttribute +func awsEc2query_deserializeDocumentAssociatedTargetNetworkSetUnwrapped(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { + var sv []types.AssociatedTargetNetwork if *v == nil { - sv = make([]types.AddressAttribute, 0) + sv = make([]types.AssociatedTargetNetwork, 0) } else { sv = *v } switch { default: - var mv types.AddressAttribute + var mv types.AssociatedTargetNetwork t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAddressAttribute(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -43529,13 +48657,13 @@ func awsEc2query_deserializeDocumentAddressSetUnwrapped(v *[]types.AddressAttrib *v = sv return nil } -func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAssociationStatus(v **types.AssociationStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AllowedPrincipal + var sv *types.AssociationStatus if *v == nil { - sv = &types.AllowedPrincipal{} + sv = &types.AssociationStatus{} } else { sv = *v } @@ -43551,7 +48679,7 @@ func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("principal", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43561,10 +48689,10 @@ func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, } { xtv := string(val) - sv.Principal = ptr.String(xtv) + sv.Code = types.AssociationStatusCode(xtv) } - case strings.EqualFold("principalType", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43574,7 +48702,7 @@ func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, } { xtv := string(val) - sv.PrincipalType = types.PrincipalType(xtv) + sv.Message = ptr.String(xtv) } default: @@ -43591,18 +48719,17 @@ func awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, return nil } -func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBooleanValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AllowedPrincipal + var sv *types.AttributeBooleanValue if *v == nil { - sv = make([]types.AllowedPrincipal, 0) + sv = &types.AttributeBooleanValue{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -43611,18 +48738,27 @@ func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]types.AllowedPrinci if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.AllowedPrincipal - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("value", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Value = ptr.Bool(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -43635,37 +48771,62 @@ func awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]types.AllowedPrinci return nil } -func awsEc2query_deserializeDocumentAllowedPrincipalSetUnwrapped(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error { - var sv []types.AllowedPrincipal +func awsEc2query_deserializeDocumentAttributeValue(v **types.AttributeValue, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AttributeValue if *v == nil { - sv = make([]types.AllowedPrincipal, 0) + sv = &types.AttributeValue{} } else { sv = *v } - switch { - default: - var mv types.AllowedPrincipal - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil { + for { + t, done, err := decoder.Token() + if err != nil { return err } - mv = *destAddr - sv = append(sv, mv) + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("value", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Value = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder } *v = sv return nil } -func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHint, decoder smithyxml.NodeDecoder) error { + +func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AlternatePathHint + var sv *types.AuthorizationRule if *v == nil { - sv = &types.AlternatePathHint{} + sv = &types.AuthorizationRule{} } else { sv = *v } @@ -43681,7 +48842,23 @@ func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHin originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("componentArn", t.Name.Local): + case strings.EqualFold("accessAll", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.AccessAll = ptr.Bool(xtv) + } + + case strings.EqualFold("clientVpnEndpointId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43691,10 +48868,10 @@ func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHin } { xtv := string(val) - sv.ComponentArn = ptr.String(xtv) + sv.ClientVpnEndpointId = ptr.String(xtv) } - case strings.EqualFold("componentId", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43704,7 +48881,39 @@ func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHin } { xtv := string(val) - sv.ComponentId = ptr.String(xtv) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("destinationCidr", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DestinationCidr = ptr.String(xtv) + } + + case strings.EqualFold("groupId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.GroupId = ptr.String(xtv) + } + + case strings.EqualFold("status", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(&sv.Status, nodeDecoder); err != nil { + return err } default: @@ -43721,13 +48930,13 @@ func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHin return nil } -func awsEc2query_deserializeDocumentAlternatePathHintList(v *[]types.AlternatePathHint, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AlternatePathHint + var sv []types.AuthorizationRule if *v == nil { - sv = make([]types.AlternatePathHint, 0) + sv = make([]types.AuthorizationRule, 0) } else { sv = *v } @@ -43743,10 +48952,10 @@ func awsEc2query_deserializeDocumentAlternatePathHintList(v *[]types.AlternatePa } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AlternatePathHint + var col types.AuthorizationRule nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAlternatePathHint(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -43765,22 +48974,22 @@ func awsEc2query_deserializeDocumentAlternatePathHintList(v *[]types.AlternatePa return nil } -func awsEc2query_deserializeDocumentAlternatePathHintListUnwrapped(v *[]types.AlternatePathHint, decoder smithyxml.NodeDecoder) error { - var sv []types.AlternatePathHint +func awsEc2query_deserializeDocumentAuthorizationRuleSetUnwrapped(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { + var sv []types.AuthorizationRule if *v == nil { - sv = make([]types.AlternatePathHint, 0) + sv = make([]types.AuthorizationRule, 0) } else { sv = *v } switch { default: - var mv types.AlternatePathHint + var mv types.AuthorizationRule t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAlternatePathHint(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -43789,13 +48998,13 @@ func awsEc2query_deserializeDocumentAlternatePathHintListUnwrapped(v *[]types.Al *v = sv return nil } -func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AnalysisAclRule + var sv *types.AvailabilityZone if *v == nil { - sv = &types.AnalysisAclRule{} + sv = &types.AvailabilityZone{} } else { sv = *v } @@ -43811,7 +49020,7 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cidr", t.Name.Local): + case strings.EqualFold("groupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43821,10 +49030,16 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d } { xtv := string(val) - sv.Cidr = ptr.String(xtv) + sv.GroupName = ptr.String(xtv) } - case strings.EqualFold("egress", t.Name.Local): + case strings.EqualFold("messageSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAvailabilityZoneMessageList(&sv.Messages, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkBorderGroup", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43833,20 +49048,24 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Egress = ptr.Bool(xtv) + xtv := string(val) + sv.NetworkBorderGroup = ptr.String(xtv) } - case strings.EqualFold("portRange", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil { + case strings.EqualFold("optInStatus", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.OptInStatus = types.AvailabilityZoneOptInStatus(xtv) + } - case strings.EqualFold("protocol", t.Name.Local): + case strings.EqualFold("parentZoneId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43856,10 +49075,10 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d } { xtv := string(val) - sv.Protocol = ptr.String(xtv) + sv.ParentZoneId = ptr.String(xtv) } - case strings.EqualFold("ruleAction", t.Name.Local): + case strings.EqualFold("parentZoneName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43869,10 +49088,10 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d } { xtv := string(val) - sv.RuleAction = ptr.String(xtv) + sv.ParentZoneName = ptr.String(xtv) } - case strings.EqualFold("ruleNumber", t.Name.Local): + case strings.EqualFold("regionName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43882,50 +49101,36 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.RuleNumber = ptr.Int32(int32(i64)) + sv.RegionName = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("zoneState", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.AvailabilityZoneState(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentAnalysisComponent(v **types.AnalysisComponent, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AnalysisComponent - if *v == nil { - sv = &types.AnalysisComponent{} - } else { - sv = *v - } + case strings.EqualFold("zoneId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ZoneId = ptr.String(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("arn", t.Name.Local): + case strings.EqualFold("zoneName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43935,10 +49140,10 @@ func awsEc2query_deserializeDocumentAnalysisComponent(v **types.AnalysisComponen } { xtv := string(val) - sv.Arn = ptr.String(xtv) + sv.ZoneName = ptr.String(xtv) } - case strings.EqualFold("id", t.Name.Local): + case strings.EqualFold("zoneType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -43948,7 +49153,7 @@ func awsEc2query_deserializeDocumentAnalysisComponent(v **types.AnalysisComponen } { xtv := string(val) - sv.Id = ptr.String(xtv) + sv.ZoneType = ptr.String(xtv) } default: @@ -43965,13 +49170,13 @@ func awsEc2query_deserializeDocumentAnalysisComponent(v **types.AnalysisComponen return nil } -func awsEc2query_deserializeDocumentAnalysisComponentList(v *[]types.AnalysisComponent, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AnalysisComponent + var sv []types.AvailabilityZone if *v == nil { - sv = make([]types.AnalysisComponent, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } @@ -43987,10 +49192,10 @@ func awsEc2query_deserializeDocumentAnalysisComponentList(v *[]types.AnalysisCom } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AnalysisComponent + var col types.AvailabilityZone nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAnalysisComponent(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -44009,22 +49214,22 @@ func awsEc2query_deserializeDocumentAnalysisComponentList(v *[]types.AnalysisCom return nil } -func awsEc2query_deserializeDocumentAnalysisComponentListUnwrapped(v *[]types.AnalysisComponent, decoder smithyxml.NodeDecoder) error { - var sv []types.AnalysisComponent +func awsEc2query_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZone if *v == nil { - sv = make([]types.AnalysisComponent, 0) + sv = make([]types.AvailabilityZone, 0) } else { sv = *v } switch { default: - var mv types.AnalysisComponent + var mv types.AvailabilityZone t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAnalysisComponent(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -44033,13 +49238,13 @@ func awsEc2query_deserializeDocumentAnalysisComponentListUnwrapped(v *[]types.An *v = sv return nil } -func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.AnalysisLoadBalancerListener, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailabilityZoneMessage(v **types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AnalysisLoadBalancerListener + var sv *types.AvailabilityZoneMessage if *v == nil { - sv = &types.AnalysisLoadBalancerListener{} + sv = &types.AvailabilityZoneMessage{} } else { sv = *v } @@ -44055,24 +49260,7 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.Analy originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instancePort", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.InstancePort = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("loadBalancerPort", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44082,11 +49270,7 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.Analy } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.LoadBalancerPort = ptr.Int32(int32(i64)) + sv.Message = ptr.String(xtv) } default: @@ -44103,17 +49287,18 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.Analy return nil } -func awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.AnalysisLoadBalancerTarget, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AnalysisLoadBalancerTarget + var sv []types.AvailabilityZoneMessage if *v == nil { - sv = &types.AnalysisLoadBalancerTarget{} + sv = make([]types.AvailabilityZoneMessage, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -44122,42 +49307,83 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.Analysi if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("address", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.AvailabilityZoneMessage + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Address = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("availabilityZone", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - case strings.EqualFold("instance", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentAvailabilityZoneMessageListUnwrapped(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { + var sv []types.AvailabilityZoneMessage + if *v == nil { + sv = make([]types.AvailabilityZoneMessage, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.AvailabilityZoneMessage + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacity, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.AvailableCapacity + if *v == nil { + sv = &types.AvailableCapacity{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("availableInstanceCapacity", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Instance, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAvailableInstanceCapacityList(&sv.AvailableInstanceCapacity, nodeDecoder); err != nil { return err } - case strings.EqualFold("port", t.Name.Local): + case strings.EqualFold("availableVCpus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44171,7 +49397,7 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.Analysi if err != nil { return err } - sv.Port = ptr.Int32(int32(i64)) + sv.AvailableVCpus = ptr.Int32(int32(i64)) } default: @@ -44188,17 +49414,18 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.Analysi return nil } -func awsEc2query_deserializeDocumentAnalysisPacketHeader(v **types.AnalysisPacketHeader, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AnalysisPacketHeader + var sv []types.InstanceCapacity if *v == nil { - sv = &types.AnalysisPacketHeader{} + sv = make([]types.InstanceCapacity, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -44207,48 +49434,18 @@ func awsEc2query_deserializeDocumentAnalysisPacketHeader(v **types.AnalysisPacke if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("destinationAddressSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpAddressList(&sv.DestinationAddresses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("destinationPortRangeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPortRangeList(&sv.DestinationPortRanges, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("protocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Protocol = ptr.String(xtv) - } - - case strings.EqualFold("sourceAddressSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpAddressList(&sv.SourceAddresses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("sourcePortRangeSet", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceCapacity nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPortRangeList(&sv.SourcePortRanges, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -44261,13 +49458,37 @@ func awsEc2query_deserializeDocumentAnalysisPacketHeader(v **types.AnalysisPacke return nil } -func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRouteTableRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentAvailableInstanceCapacityListUnwrapped(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceCapacity + if *v == nil { + sv = make([]types.InstanceCapacity, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceCapacity + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineEbsBandwidthMbps, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AnalysisRouteTableRoute + var sv *types.BaselineEbsBandwidthMbps if *v == nil { - sv = &types.AnalysisRouteTableRoute{} + sv = &types.BaselineEbsBandwidthMbps{} } else { sv = *v } @@ -44283,20 +49504,7 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("destinationCidr", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.DestinationCidr = ptr.String(xtv) - } - - case strings.EqualFold("destinationPrefixListId", t.Name.Local): + case strings.EqualFold("max", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44306,10 +49514,14 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo } { xtv := string(val) - sv.DestinationPrefixListId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Max = ptr.Int32(int32(i64)) } - case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local): + case strings.EqualFold("min", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44319,49 +49531,50 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo } { xtv := string(val) - sv.EgressOnlyInternetGatewayId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Min = ptr.Int32(int32(i64)) } - case strings.EqualFold("gatewayId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.GatewayId = ptr.String(xtv) - } - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("natGatewayId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NatGatewayId = ptr.String(xtv) - } +func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BlockDeviceMapping + if *v == nil { + sv = &types.BlockDeviceMapping{} + } else { + sv = *v + } - case strings.EqualFold("networkInterfaceId", t.Name.Local): + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("deviceName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44371,23 +49584,16 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo } { xtv := string(val) - sv.NetworkInterfaceId = ptr.String(xtv) + sv.DeviceName = ptr.String(xtv) } - case strings.EqualFold("origin", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("ebs", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEbsBlockDevice(&sv.Ebs, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Origin = ptr.String(xtv) - } - case strings.EqualFold("transitGatewayId", t.Name.Local): + case strings.EqualFold("noDevice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44397,10 +49603,10 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo } { xtv := string(val) - sv.TransitGatewayId = ptr.String(xtv) + sv.NoDevice = ptr.String(xtv) } - case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local): + case strings.EqualFold("virtualName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44410,7 +49616,7 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo } { xtv := string(val) - sv.VpcPeeringConnectionId = ptr.String(xtv) + sv.VirtualName = ptr.String(xtv) } default: @@ -44427,17 +49633,18 @@ func awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRo return nil } -func awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(v **types.AnalysisSecurityGroupRule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AnalysisSecurityGroupRule + var sv []types.BlockDeviceMapping if *v == nil { - sv = &types.AnalysisSecurityGroupRule{} + sv = make([]types.BlockDeviceMapping, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -44446,82 +49653,18 @@ func awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(v **types.Analysis if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cidr", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Cidr = ptr.String(xtv) - } - - case strings.EqualFold("direction", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Direction = ptr.String(xtv) - } - - case strings.EqualFold("portRange", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.BlockDeviceMapping nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("prefixListId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.PrefixListId = ptr.String(xtv) - } - - case strings.EqualFold("protocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Protocol = ptr.String(xtv) - } - - case strings.EqualFold("securityGroupId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.SecurityGroupId = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -44534,13 +49677,37 @@ func awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(v **types.Analysis return nil } -func awsEc2query_deserializeDocumentArchitectureTypeList(v *[]types.ArchitectureType, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + var sv []types.BlockDeviceMapping + if *v == nil { + sv = make([]types.BlockDeviceMapping, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.BlockDeviceMapping + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ArchitectureType + var sv []types.BootModeType if *v == nil { - sv = make([]types.ArchitectureType, 0) + sv = make([]types.BootModeType, 0) } else { sv = *v } @@ -44558,7 +49725,7 @@ func awsEc2query_deserializeDocumentArchitectureTypeList(v *[]types.Architecture decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.ArchitectureType + var col types.BootModeType val, err := decoder.Value() if err != nil { return err @@ -44568,7 +49735,7 @@ func awsEc2query_deserializeDocumentArchitectureTypeList(v *[]types.Architecture } { xtv := string(val) - col = types.ArchitectureType(xtv) + col = types.BootModeType(xtv) } sv = append(sv, col) @@ -44585,17 +49752,17 @@ func awsEc2query_deserializeDocumentArchitectureTypeList(v *[]types.Architecture return nil } -func awsEc2query_deserializeDocumentArchitectureTypeListUnwrapped(v *[]types.ArchitectureType, decoder smithyxml.NodeDecoder) error { - var sv []types.ArchitectureType +func awsEc2query_deserializeDocumentBootModeTypeListUnwrapped(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error { + var sv []types.BootModeType if *v == nil { - sv = make([]types.ArchitectureType, 0) + sv = make([]types.BootModeType, 0) } else { sv = *v } switch { default: - var mv types.ArchitectureType + var mv types.BootModeType t := decoder.StartEl _ = t val, err := decoder.Value() @@ -44607,38 +49774,117 @@ func awsEc2query_deserializeDocumentArchitectureTypeListUnwrapped(v *[]types.Arc } { xtv := string(val) - mv = types.ArchitectureType(xtv) + mv = types.BootModeType(xtv) } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentArnList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.BundleTask if *v == nil { - sv = make([]string, 0) + sv = &types.BundleTask{} } else { sv = *v } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("item", t.Name.Local): - var col string + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("bundleId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.BundleId = ptr.String(xtv) + } + + case strings.EqualFold("error", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBundleTaskError(&sv.BundleTaskError, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("progress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Progress = ptr.String(xtv) + } + + case strings.EqualFold("startTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.StartTime = ptr.Time(t) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.BundleTaskState(xtv) + } + + case strings.EqualFold("storage", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentStorage(&sv.Storage, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("updateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44648,11 +49894,15 @@ func awsEc2query_deserializeDocumentArnList(v *[]string, decoder smithyxml.NodeD } { xtv := string(val) - col = xtv + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -44665,42 +49915,13 @@ func awsEc2query_deserializeDocumentArnList(v *[]string, decoder smithyxml.NodeD return nil } -func awsEc2query_deserializeDocumentArnListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AssignedPrivateIpAddress + var sv *types.BundleTaskError if *v == nil { - sv = &types.AssignedPrivateIpAddress{} + sv = &types.BundleTaskError{} } else { sv = *v } @@ -44716,7 +49937,7 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedP originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("privateIpAddress", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44726,7 +49947,20 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedP } { xtv := string(val) - sv.PrivateIpAddress = ptr.String(xtv) + sv.Code = ptr.String(xtv) + } + + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) } default: @@ -44743,13 +49977,13 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedP return nil } -func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentBundleTaskList(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AssignedPrivateIpAddress + var sv []types.BundleTask if *v == nil { - sv = make([]types.AssignedPrivateIpAddress, 0) + sv = make([]types.BundleTask, 0) } else { sv = *v } @@ -44765,10 +49999,10 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]types.Assi } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AssignedPrivateIpAddress + var col types.BundleTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -44787,22 +50021,22 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]types.Assi return nil } -func awsEc2query_deserializeDocumentAssignedPrivateIpAddressListUnwrapped(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error { - var sv []types.AssignedPrivateIpAddress +func awsEc2query_deserializeDocumentBundleTaskListUnwrapped(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error { + var sv []types.BundleTask if *v == nil { - sv = make([]types.AssignedPrivateIpAddress, 0) + sv = make([]types.BundleTask, 0) } else { sv = *v } switch { default: - var mv types.AssignedPrivateIpAddress + var mv types.BundleTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -44811,13 +50045,13 @@ func awsEc2query_deserializeDocumentAssignedPrivateIpAddressListUnwrapped(v *[]t *v = sv return nil } -func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AssociatedRole + var sv *types.ByoipCidr if *v == nil { - sv = &types.AssociatedRole{} + sv = &types.ByoipCidr{} } else { sv = *v } @@ -44833,7 +50067,7 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("associatedRoleArn", t.Name.Local): + case strings.EqualFold("cidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44843,10 +50077,10 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } { xtv := string(val) - sv.AssociatedRoleArn = ptr.String(xtv) + sv.Cidr = ptr.String(xtv) } - case strings.EqualFold("certificateS3BucketName", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44856,10 +50090,10 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } { xtv := string(val) - sv.CertificateS3BucketName = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("certificateS3ObjectKey", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44869,10 +50103,10 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } { xtv := string(val) - sv.CertificateS3ObjectKey = ptr.String(xtv) + sv.State = types.ByoipCidrState(xtv) } - case strings.EqualFold("encryptionKmsKeyId", t.Name.Local): + case strings.EqualFold("statusMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44882,7 +50116,7 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec } { xtv := string(val) - sv.EncryptionKmsKeyId = ptr.String(xtv) + sv.StatusMessage = ptr.String(xtv) } default: @@ -44899,13 +50133,13 @@ func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, dec return nil } -func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentByoipCidrSet(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AssociatedRole + var sv []types.ByoipCidr if *v == nil { - sv = make([]types.AssociatedRole, 0) + sv = make([]types.ByoipCidr, 0) } else { sv = *v } @@ -44921,10 +50155,10 @@ func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]types.AssociatedRol } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AssociatedRole + var col types.ByoipCidr nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -44943,22 +50177,22 @@ func awsEc2query_deserializeDocumentAssociatedRolesList(v *[]types.AssociatedRol return nil } -func awsEc2query_deserializeDocumentAssociatedRolesListUnwrapped(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error { - var sv []types.AssociatedRole +func awsEc2query_deserializeDocumentByoipCidrSetUnwrapped(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error { + var sv []types.ByoipCidr if *v == nil { - sv = make([]types.AssociatedRole, 0) + sv = make([]types.ByoipCidr, 0) } else { sv = *v } switch { default: - var mv types.AssociatedRole + var mv types.ByoipCidr t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -44967,13 +50201,13 @@ func awsEc2query_deserializeDocumentAssociatedRolesListUnwrapped(v *[]types.Asso *v = sv return nil } -func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **types.CancelCapacityReservationFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AssociatedTargetNetwork + var sv *types.CancelCapacityReservationFleetError if *v == nil { - sv = &types.AssociatedTargetNetwork{} + sv = &types.CancelCapacityReservationFleetError{} } else { sv = *v } @@ -44989,7 +50223,7 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.Associated originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("networkId", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -44999,10 +50233,10 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.Associated } { xtv := string(val) - sv.NetworkId = ptr.String(xtv) + sv.Code = ptr.String(xtv) } - case strings.EqualFold("networkType", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45012,7 +50246,7 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.Associated } { xtv := string(val) - sv.NetworkType = types.AssociatedNetworkType(xtv) + sv.Message = ptr.String(xtv) } default: @@ -45029,13 +50263,75 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.Associated return nil } -func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AssociatedTargetNetwork + var sv *types.CancelledSpotInstanceRequest if *v == nil { - sv = make([]types.AssociatedTargetNetwork, 0) + sv = &types.CancelledSpotInstanceRequest{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("spotInstanceRequestId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SpotInstanceRequestId = ptr.String(xtv) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.CancelSpotInstanceRequestState(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CancelledSpotInstanceRequest + if *v == nil { + sv = make([]types.CancelledSpotInstanceRequest, 0) } else { sv = *v } @@ -45051,10 +50347,10 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]types.Associ } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AssociatedTargetNetwork + var col types.CancelledSpotInstanceRequest nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -45073,22 +50369,22 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]types.Associ return nil } -func awsEc2query_deserializeDocumentAssociatedTargetNetworkSetUnwrapped(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error { - var sv []types.AssociatedTargetNetwork +func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestListUnwrapped(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { + var sv []types.CancelledSpotInstanceRequest if *v == nil { - sv = make([]types.AssociatedTargetNetwork, 0) + sv = make([]types.CancelledSpotInstanceRequest, 0) } else { sv = *v } switch { default: - var mv types.AssociatedTargetNetwork + var mv types.CancelledSpotInstanceRequest t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -45097,13 +50393,13 @@ func awsEc2query_deserializeDocumentAssociatedTargetNetworkSetUnwrapped(v *[]typ *v = sv return nil } -func awsEc2query_deserializeDocumentAssociationStatus(v **types.AssociationStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.CancelSpotFleetRequestsError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AssociationStatus + var sv *types.CancelSpotFleetRequestsError if *v == nil { - sv = &types.AssociationStatus{} + sv = &types.CancelSpotFleetRequestsError{} } else { sv = *v } @@ -45129,7 +50425,7 @@ func awsEc2query_deserializeDocumentAssociationStatus(v **types.AssociationStatu } { xtv := string(val) - sv.Code = types.AssociationStatusCode(xtv) + sv.Code = types.CancelBatchErrorCode(xtv) } case strings.EqualFold("message", t.Name.Local): @@ -45159,13 +50455,13 @@ func awsEc2query_deserializeDocumentAssociationStatus(v **types.AssociationStatu return nil } -func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBooleanValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AttributeBooleanValue + var sv *types.CancelSpotFleetRequestsErrorItem if *v == nil { - sv = &types.AttributeBooleanValue{} + sv = &types.CancelSpotFleetRequestsErrorItem{} } else { sv = *v } @@ -45181,7 +50477,13 @@ func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBoo originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("value", t.Name.Local): + case strings.EqualFold("error", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(&sv.Error, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("spotFleetRequestId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45190,11 +50492,8 @@ func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBoo break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Value = ptr.Bool(xtv) + xtv := string(val) + sv.SpotFleetRequestId = ptr.String(xtv) } default: @@ -45211,17 +50510,18 @@ func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBoo return nil } -func awsEc2query_deserializeDocumentAttributeValue(v **types.AttributeValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AttributeValue + var sv []types.CancelSpotFleetRequestsErrorItem if *v == nil { - sv = &types.AttributeValue{} + sv = make([]types.CancelSpotFleetRequestsErrorItem, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -45230,24 +50530,18 @@ func awsEc2query_deserializeDocumentAttributeValue(v **types.AttributeValue, dec if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("value", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.CancelSpotFleetRequestsErrorItem + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Value = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -45260,13 +50554,37 @@ func awsEc2query_deserializeDocumentAttributeValue(v **types.AttributeValue, dec return nil } -func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSetUnwrapped(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.CancelSpotFleetRequestsErrorItem + if *v == nil { + sv = make([]types.CancelSpotFleetRequestsErrorItem, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CancelSpotFleetRequestsErrorItem + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AuthorizationRule + var sv *types.CancelSpotFleetRequestsSuccessItem if *v == nil { - sv = &types.AuthorizationRule{} + sv = &types.CancelSpotFleetRequestsSuccessItem{} } else { sv = *v } @@ -45282,36 +50600,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("accessAll", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.AccessAll = ptr.Bool(xtv) - } - - case strings.EqualFold("clientVpnEndpointId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ClientVpnEndpointId = ptr.String(xtv) - } - - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("currentSpotFleetRequestState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45321,10 +50610,10 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.CurrentSpotFleetRequestState = types.BatchState(xtv) } - case strings.EqualFold("destinationCidr", t.Name.Local): + case strings.EqualFold("previousSpotFleetRequestState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45334,10 +50623,10 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } { xtv := string(val) - sv.DestinationCidr = ptr.String(xtv) + sv.PreviousSpotFleetRequestState = types.BatchState(xtv) } - case strings.EqualFold("groupId", t.Name.Local): + case strings.EqualFold("spotFleetRequestId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45347,13 +50636,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul } { xtv := string(val) - sv.GroupId = ptr.String(xtv) - } - - case strings.EqualFold("status", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(&sv.Status, nodeDecoder); err != nil { - return err + sv.SpotFleetRequestId = ptr.String(xtv) } default: @@ -45370,13 +50653,13 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul return nil } -func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AuthorizationRule + var sv []types.CancelSpotFleetRequestsSuccessItem if *v == nil { - sv = make([]types.AuthorizationRule, 0) + sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0) } else { sv = *v } @@ -45392,10 +50675,10 @@ func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]types.Authorizatio } switch { case strings.EqualFold("item", t.Name.Local): - var col types.AuthorizationRule + var col types.CancelSpotFleetRequestsSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -45414,22 +50697,22 @@ func awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]types.Authorizatio return nil } -func awsEc2query_deserializeDocumentAuthorizationRuleSetUnwrapped(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error { - var sv []types.AuthorizationRule +func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSetUnwrapped(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.CancelSpotFleetRequestsSuccessItem if *v == nil { - sv = make([]types.AuthorizationRule, 0) + sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0) } else { sv = *v } switch { default: - var mv types.AuthorizationRule + var mv types.CancelSpotFleetRequestsSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -45438,13 +50721,13 @@ func awsEc2query_deserializeDocumentAuthorizationRuleSetUnwrapped(v *[]types.Aut *v = sv return nil } -func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.AvailabilityZone + var sv *types.CapacityReservation if *v == nil { - sv = &types.AvailabilityZone{} + sv = &types.CapacityReservation{} } else { sv = *v } @@ -45460,7 +50743,7 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("groupName", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45470,16 +50753,23 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.GroupName = ptr.String(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("messageSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailabilityZoneMessageList(&sv.Messages, nodeDecoder); err != nil { + case strings.EqualFold("availabilityZoneId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.AvailabilityZoneId = ptr.String(xtv) + } - case strings.EqualFold("networkBorderGroup", t.Name.Local): + case strings.EqualFold("availableInstanceCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45489,10 +50779,14 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.NetworkBorderGroup = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.AvailableInstanceCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("optInStatus", t.Name.Local): + case strings.EqualFold("capacityReservationArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45502,10 +50796,10 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.OptInStatus = types.AvailabilityZoneOptInStatus(xtv) + sv.CapacityReservationArn = ptr.String(xtv) } - case strings.EqualFold("parentZoneId", t.Name.Local): + case strings.EqualFold("capacityReservationFleetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45515,10 +50809,10 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.ParentZoneId = ptr.String(xtv) + sv.CapacityReservationFleetId = ptr.String(xtv) } - case strings.EqualFold("parentZoneName", t.Name.Local): + case strings.EqualFold("capacityReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45528,10 +50822,10 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.ParentZoneName = ptr.String(xtv) + sv.CapacityReservationId = ptr.String(xtv) } - case strings.EqualFold("regionName", t.Name.Local): + case strings.EqualFold("createDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45541,10 +50835,14 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.RegionName = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreateDate = ptr.Time(t) } - case strings.EqualFold("zoneState", t.Name.Local): + case strings.EqualFold("ebsOptimized", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45553,11 +50851,14 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, break } { - xtv := string(val) - sv.State = types.AvailabilityZoneState(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.EbsOptimized = ptr.Bool(xtv) } - case strings.EqualFold("zoneId", t.Name.Local): + case strings.EqualFold("endDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45567,10 +50868,14 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.ZoneId = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EndDate = ptr.Time(t) } - case strings.EqualFold("zoneName", t.Name.Local): + case strings.EqualFold("endDateType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45580,10 +50885,10 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, } { xtv := string(val) - sv.ZoneName = ptr.String(xtv) + sv.EndDateType = types.EndDateType(xtv) } - case strings.EqualFold("zoneType", t.Name.Local): + case strings.EqualFold("ephemeralStorage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45592,115 +50897,53 @@ func awsEc2query_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, break } { - xtv := string(val) - sv.ZoneType = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.EphemeralStorage = ptr.Bool(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("instanceMatchCriteria", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceMatchCriteria = types.InstanceMatchCriteria(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentAvailabilityZoneList(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.AvailabilityZone - if *v == nil { - sv = make([]types.AvailabilityZone, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.AvailabilityZone - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("instancePlatform", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.InstancePlatform = types.CapacityReservationInstancePlatform(xtv) + } - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentAvailabilityZoneListUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []types.AvailabilityZone - if *v == nil { - sv = make([]types.AvailabilityZone, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.AvailabilityZone - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentAvailabilityZoneMessage(v **types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AvailabilityZoneMessage - if *v == nil { - sv = &types.AvailabilityZoneMessage{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45710,120 +50953,72 @@ func awsEc2query_deserializeDocumentAvailabilityZoneMessage(v **types.Availabili } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.OutpostArn = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ownerId", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerId = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.AvailabilityZoneMessage - if *v == nil { - sv = make([]types.AvailabilityZoneMessage, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.AvailabilityZoneMessage - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("startDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.StartDate = ptr.Time(t) + } - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.CapacityReservationState(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentAvailabilityZoneMessageListUnwrapped(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error { - var sv []types.AvailabilityZoneMessage - if *v == nil { - sv = make([]types.AvailabilityZoneMessage, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.AvailabilityZoneMessage - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacity, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AvailableCapacity - if *v == nil { - sv = &types.AvailableCapacity{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("availableInstanceCapacity", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailableInstanceCapacityList(&sv.AvailableInstanceCapacity, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - case strings.EqualFold("availableVCpus", t.Name.Local): + case strings.EqualFold("tenancy", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Tenancy = types.CapacityReservationTenancy(xtv) + } + + case strings.EqualFold("totalInstanceCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45837,7 +51032,7 @@ func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacit if err != nil { return err } - sv.AvailableVCpus = ptr.Int32(int32(i64)) + sv.TotalInstanceCount = ptr.Int32(int32(i64)) } default: @@ -45854,18 +51049,17 @@ func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacit return nil } -func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationFleet(v **types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceCapacity + var sv *types.CapacityReservationFleet if *v == nil { - sv = make([]types.InstanceCapacity, 0) + sv = &types.CapacityReservationFleet{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -45874,77 +51068,49 @@ func awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]types.Ins if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceCapacity - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("allocationStrategy", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.AllocationStrategy = ptr.String(xtv) + } - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("capacityReservationFleetArn", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityReservationFleetArn = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentAvailableInstanceCapacityListUnwrapped(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceCapacity - if *v == nil { - sv = make([]types.InstanceCapacity, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceCapacity - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineEbsBandwidthMbps, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.BaselineEbsBandwidthMbps - if *v == nil { - sv = &types.BaselineEbsBandwidthMbps{} - } else { - sv = *v - } + case strings.EqualFold("capacityReservationFleetId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityReservationFleetId = ptr.String(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("max", t.Name.Local): + case strings.EqualFold("createTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45954,14 +51120,14 @@ func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineE } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.Max = ptr.Int32(int32(i64)) + sv.CreateTime = ptr.Time(t) } - case strings.EqualFold("min", t.Name.Local): + case strings.EqualFold("endDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -45971,50 +51137,33 @@ func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineE } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.Min = ptr.Int32(int32(i64)) + sv.EndDate = ptr.Time(t) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("instanceMatchCriteria", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceMatchCriteria = types.FleetInstanceMatchCriteria(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.BlockDeviceMapping - if *v == nil { - sv = &types.BlockDeviceMapping{} - } else { - sv = *v - } + case strings.EqualFold("instanceTypeSpecificationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFleetCapacityReservationSet(&sv.InstanceTypeSpecifications, nodeDecoder); err != nil { + return err + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("deviceName", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46024,16 +51173,16 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } { xtv := string(val) - sv.DeviceName = ptr.String(xtv) + sv.State = types.CapacityReservationFleetState(xtv) } - case strings.EqualFold("ebs", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEbsBlockDevice(&sv.Ebs, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - case strings.EqualFold("noDevice", t.Name.Local): + case strings.EqualFold("tenancy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46043,10 +51192,10 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } { xtv := string(val) - sv.NoDevice = ptr.String(xtv) + sv.Tenancy = types.FleetCapacityReservationTenancy(xtv) } - case strings.EqualFold("virtualName", t.Name.Local): + case strings.EqualFold("totalFulfilledCapacity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46056,7 +51205,28 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp } { xtv := string(val) - sv.VirtualName = ptr.String(xtv) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.TotalFulfilledCapacity = ptr.Float64(f64) + } + + case strings.EqualFold("totalTargetCapacity", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.TotalTargetCapacity = ptr.Int32(int32(i64)) } default: @@ -46073,18 +51243,17 @@ func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapp return nil } -func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(v **types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.BlockDeviceMapping + var sv *types.CapacityReservationFleetCancellationState if *v == nil { - sv = make([]types.BlockDeviceMapping, 0) + sv = &types.CapacityReservationFleetCancellationState{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -46093,18 +51262,50 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]types.BlockDevic if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.BlockDeviceMapping - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("capacityReservationFleetId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityReservationFleetId = ptr.String(xtv) + } + + case strings.EqualFold("currentFleetState", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CurrentFleetState = types.CapacityReservationFleetState(xtv) + } + + case strings.EqualFold("previousFleetState", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PreviousFleetState = types.CapacityReservationFleetState(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -46117,37 +51318,13 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]types.BlockDevic return nil } -func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - var sv []types.BlockDeviceMapping - if *v == nil { - sv = make([]types.BlockDeviceMapping, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.BlockDeviceMapping - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSet(v *[]types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.BootModeType + var sv []types.CapacityReservationFleetCancellationState if *v == nil { - sv = make([]types.BootModeType, 0) + sv = make([]types.CapacityReservationFleetCancellationState, 0) } else { sv = *v } @@ -46161,22 +51338,15 @@ func awsEc2query_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, de if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.BootModeType - val, err := decoder.Value() - if err != nil { + var col types.CapacityReservationFleetCancellationState + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = types.BootModeType(xtv) - } + col = *destAddr sv = append(sv, col) default: @@ -46192,46 +51362,42 @@ func awsEc2query_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, de return nil } -func awsEc2query_deserializeDocumentBootModeTypeListUnwrapped(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error { - var sv []types.BootModeType +func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSetUnwrapped(v *[]types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityReservationFleetCancellationState if *v == nil { - sv = make([]types.BootModeType, 0) + sv = make([]types.CapacityReservationFleetCancellationState, 0) } else { sv = *v } switch { default: - var mv types.BootModeType + var mv types.CapacityReservationFleetCancellationState t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = types.BootModeType(xtv) - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationFleetSet(v *[]types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BundleTask + var sv []types.CapacityReservationFleet if *v == nil { - sv = &types.BundleTask{} + sv = make([]types.CapacityReservationFleet, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -46240,109 +51406,18 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("bundleId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.BundleId = ptr.String(xtv) - } - - case strings.EqualFold("error", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBundleTaskError(&sv.BundleTaskError, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - - case strings.EqualFold("progress", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Progress = ptr.String(xtv) - } - - case strings.EqualFold("startTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.StartTime = ptr.Time(t) - } - - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.BundleTaskState(xtv) - } - - case strings.EqualFold("storage", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.CapacityReservationFleet nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStorage(&sv.Storage, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("updateTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityReservationFleet(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(t) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -46355,13 +51430,37 @@ func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smi return nil } -func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationFleetSetUnwrapped(v *[]types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityReservationFleet + if *v == nil { + sv = make([]types.CapacityReservationFleet, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CapacityReservationFleet + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityReservationFleet(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BundleTaskError + var sv *types.CapacityReservationGroup if *v == nil { - sv = &types.BundleTaskError{} + sv = &types.CapacityReservationGroup{} } else { sv = *v } @@ -46377,7 +51476,7 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("groupArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46387,10 +51486,10 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d } { xtv := string(val) - sv.Code = ptr.String(xtv) + sv.GroupArn = ptr.String(xtv) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46400,7 +51499,7 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.OwnerId = ptr.String(xtv) } default: @@ -46417,13 +51516,13 @@ func awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, d return nil } -func awsEc2query_deserializeDocumentBundleTaskList(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.BundleTask + var sv []types.CapacityReservationGroup if *v == nil { - sv = make([]types.BundleTask, 0) + sv = make([]types.CapacityReservationGroup, 0) } else { sv = *v } @@ -46439,10 +51538,10 @@ func awsEc2query_deserializeDocumentBundleTaskList(v *[]types.BundleTask, decode } switch { case strings.EqualFold("item", t.Name.Local): - var col types.BundleTask + var col types.CapacityReservationGroup nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -46461,22 +51560,22 @@ func awsEc2query_deserializeDocumentBundleTaskList(v *[]types.BundleTask, decode return nil } -func awsEc2query_deserializeDocumentBundleTaskListUnwrapped(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error { - var sv []types.BundleTask +func awsEc2query_deserializeDocumentCapacityReservationGroupSetUnwrapped(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityReservationGroup if *v == nil { - sv = make([]types.BundleTask, 0) + sv = make([]types.CapacityReservationGroup, 0) } else { sv = *v } switch { default: - var mv types.BundleTask + var mv types.CapacityReservationGroup t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -46485,13 +51584,13 @@ func awsEc2query_deserializeDocumentBundleTaskListUnwrapped(v *[]types.BundleTas *v = sv return nil } -func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.CapacityReservationOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ByoipCidr + var sv *types.CapacityReservationOptions if *v == nil { - sv = &types.ByoipCidr{} + sv = &types.CapacityReservationOptions{} } else { sv = *v } @@ -46507,46 +51606,7 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cidr", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Cidr = ptr.String(xtv) - } - - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.ByoipCidrState(xtv) - } - - case strings.EqualFold("statusMessage", t.Name.Local): + case strings.EqualFold("usageStrategy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46556,7 +51616,7 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith } { xtv := string(val) - sv.StatusMessage = ptr.String(xtv) + sv.UsageStrategy = types.FleetCapacityReservationUsageStrategy(xtv) } default: @@ -46573,13 +51633,13 @@ func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smith return nil } -func awsEc2query_deserializeDocumentByoipCidrSet(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ByoipCidr + var sv []types.CapacityReservation if *v == nil { - sv = make([]types.ByoipCidr, 0) + sv = make([]types.CapacityReservation, 0) } else { sv = *v } @@ -46595,10 +51655,10 @@ func awsEc2query_deserializeDocumentByoipCidrSet(v *[]types.ByoipCidr, decoder s } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ByoipCidr + var col types.CapacityReservation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -46617,22 +51677,22 @@ func awsEc2query_deserializeDocumentByoipCidrSet(v *[]types.ByoipCidr, decoder s return nil } -func awsEc2query_deserializeDocumentByoipCidrSetUnwrapped(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error { - var sv []types.ByoipCidr +func awsEc2query_deserializeDocumentCapacityReservationSetUnwrapped(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityReservation if *v == nil { - sv = make([]types.ByoipCidr, 0) + sv = make([]types.CapacityReservation, 0) } else { sv = *v } switch { default: - var mv types.ByoipCidr + var mv types.CapacityReservation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -46641,13 +51701,13 @@ func awsEc2query_deserializeDocumentByoipCidrSetUnwrapped(v *[]types.ByoipCidr, *v = sv return nil } -func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **types.CancelCapacityReservationFleetError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(v **types.CapacityReservationSpecificationResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CancelCapacityReservationFleetError + var sv *types.CapacityReservationSpecificationResponse if *v == nil { - sv = &types.CancelCapacityReservationFleetError{} + sv = &types.CapacityReservationSpecificationResponse{} } else { sv = *v } @@ -46663,7 +51723,7 @@ func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **type originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("capacityReservationPreference", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46673,10 +51733,52 @@ func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **type } { xtv := string(val) - sv.Code = ptr.String(xtv) + sv.CapacityReservationPreference = types.CapacityReservationPreference(xtv) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("capacityReservationTarget", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityReservationTargetResponse(&sv.CapacityReservationTarget, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types.CapacityReservationTargetResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityReservationTargetResponse + if *v == nil { + sv = &types.CapacityReservationTargetResponse{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46686,7 +51788,20 @@ func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **type } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CapacityReservationId = ptr.String(xtv) + } + + case strings.EqualFold("capacityReservationResourceGroupArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityReservationResourceGroupArn = ptr.String(xtv) } default: @@ -46703,13 +51818,13 @@ func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **type return nil } -func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CancelledSpotInstanceRequest + var sv *types.CarrierGateway if *v == nil { - sv = &types.CancelledSpotInstanceRequest{} + sv = &types.CarrierGateway{} } else { sv = *v } @@ -46725,7 +51840,7 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.Cance originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("spotInstanceRequestId", t.Name.Local): + case strings.EqualFold("carrierGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46735,7 +51850,20 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.Cance } { xtv := string(val) - sv.SpotInstanceRequestId = ptr.String(xtv) + sv.CarrierGatewayId = ptr.String(xtv) + } + + case strings.EqualFold("ownerId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerId = ptr.String(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -46748,7 +51876,26 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.Cance } { xtv := string(val) - sv.State = types.CancelSpotInstanceRequestState(xtv) + sv.State = types.CarrierGatewayState(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vpcId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VpcId = ptr.String(xtv) } default: @@ -46765,13 +51912,13 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.Cance return nil } -func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CancelledSpotInstanceRequest + var sv []types.CarrierGateway if *v == nil { - sv = make([]types.CancelledSpotInstanceRequest, 0) + sv = make([]types.CarrierGateway, 0) } else { sv = *v } @@ -46787,10 +51934,10 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]types. } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CancelledSpotInstanceRequest + var col types.CarrierGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -46809,22 +51956,22 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]types. return nil } -func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestListUnwrapped(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error { - var sv []types.CancelledSpotInstanceRequest +func awsEc2query_deserializeDocumentCarrierGatewaySetUnwrapped(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.CarrierGateway if *v == nil { - sv = make([]types.CancelledSpotInstanceRequest, 0) + sv = make([]types.CarrierGateway, 0) } else { sv = *v } switch { default: - var mv types.CancelledSpotInstanceRequest + var mv types.CarrierGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -46833,13 +51980,13 @@ func awsEc2query_deserializeDocumentCancelledSpotInstanceRequestListUnwrapped(v *v = sv return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.CancelSpotFleetRequestsError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.CertificateAuthentication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CancelSpotFleetRequestsError + var sv *types.CertificateAuthentication if *v == nil { - sv = &types.CancelSpotFleetRequestsError{} + sv = &types.CertificateAuthentication{} } else { sv = *v } @@ -46855,20 +52002,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.Cance originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.CancelBatchErrorCode(xtv) - } - - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("clientRootCertificateChain", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46878,7 +52012,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.Cance } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.ClientRootCertificateChain = ptr.String(xtv) } default: @@ -46895,13 +52029,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.Cance return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CancelSpotFleetRequestsErrorItem + var sv *types.CidrBlock if *v == nil { - sv = &types.CancelSpotFleetRequestsErrorItem{} + sv = &types.CidrBlock{} } else { sv = *v } @@ -46917,13 +52051,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.C originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("error", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(&sv.Error, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("spotFleetRequestId", t.Name.Local): + case strings.EqualFold("cidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -46933,7 +52061,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.C } { xtv := string(val) - sv.SpotFleetRequestId = ptr.String(xtv) + sv.CidrBlock = ptr.String(xtv) } default: @@ -46950,13 +52078,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.C return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCidrBlockSet(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CancelSpotFleetRequestsErrorItem + var sv []types.CidrBlock if *v == nil { - sv = make([]types.CancelSpotFleetRequestsErrorItem, 0) + sv = make([]types.CidrBlock, 0) } else { sv = *v } @@ -46972,10 +52100,10 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]types.C } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CancelSpotFleetRequestsErrorItem + var col types.CidrBlock nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -46994,22 +52122,22 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]types.C return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSetUnwrapped(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.CancelSpotFleetRequestsErrorItem +func awsEc2query_deserializeDocumentCidrBlockSetUnwrapped(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error { + var sv []types.CidrBlock if *v == nil { - sv = make([]types.CancelSpotFleetRequestsErrorItem, 0) + sv = make([]types.CidrBlock, 0) } else { sv = *v } switch { default: - var mv types.CancelSpotFleetRequestsErrorItem + var mv types.CidrBlock t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -47018,13 +52146,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSetUnwrapped(v * *v = sv return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CancelSpotFleetRequestsSuccessItem + var sv *types.ClassicLinkDnsSupport if *v == nil { - sv = &types.CancelSpotFleetRequestsSuccessItem{} + sv = &types.ClassicLinkDnsSupport{} } else { sv = *v } @@ -47040,20 +52168,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("currentSpotFleetRequestState", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CurrentSpotFleetRequestState = types.BatchState(xtv) - } - - case strings.EqualFold("previousSpotFleetRequestState", t.Name.Local): + case strings.EqualFold("classicLinkDnsSupported", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47062,11 +52177,14 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types break } { - xtv := string(val) - sv.PreviousSpotFleetRequestState = types.BatchState(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.ClassicLinkDnsSupported = ptr.Bool(xtv) } - case strings.EqualFold("spotFleetRequestId", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47076,7 +52194,7 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types } { xtv := string(val) - sv.SpotFleetRequestId = ptr.String(xtv) + sv.VpcId = ptr.String(xtv) } default: @@ -47093,13 +52211,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CancelSpotFleetRequestsSuccessItem + var sv []types.ClassicLinkDnsSupport if *v == nil { - sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0) + sv = make([]types.ClassicLinkDnsSupport, 0) } else { sv = *v } @@ -47115,10 +52233,10 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]types } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CancelSpotFleetRequestsSuccessItem + var col types.ClassicLinkDnsSupport nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -47137,22 +52255,22 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]types return nil } -func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSetUnwrapped(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []types.CancelSpotFleetRequestsSuccessItem +func awsEc2query_deserializeDocumentClassicLinkDnsSupportListUnwrapped(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { + var sv []types.ClassicLinkDnsSupport if *v == nil { - sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0) + sv = make([]types.ClassicLinkDnsSupport, 0) } else { sv = *v } switch { default: - var mv types.CancelSpotFleetRequestsSuccessItem + var mv types.ClassicLinkDnsSupport t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -47161,13 +52279,13 @@ func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSetUnwrapped(v *v = sv return nil } -func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservation + var sv *types.ClassicLinkInstance if *v == nil { - sv = &types.CapacityReservation{} + sv = &types.ClassicLinkInstance{} } else { sv = *v } @@ -47183,250 +52301,13 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("availabilityZone", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("availabilityZoneId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AvailabilityZoneId = ptr.String(xtv) - } - - case strings.EqualFold("availableInstanceCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.AvailableInstanceCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("capacityReservationArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CapacityReservationArn = ptr.String(xtv) - } - - case strings.EqualFold("capacityReservationFleetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CapacityReservationFleetId = ptr.String(xtv) - } - - case strings.EqualFold("capacityReservationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CapacityReservationId = ptr.String(xtv) - } - - case strings.EqualFold("createDate", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CreateDate = ptr.Time(t) - } - - case strings.EqualFold("ebsOptimized", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.EbsOptimized = ptr.Bool(xtv) - } - - case strings.EqualFold("endDate", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.EndDate = ptr.Time(t) - } - - case strings.EqualFold("endDateType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EndDateType = types.EndDateType(xtv) - } - - case strings.EqualFold("ephemeralStorage", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.EphemeralStorage = ptr.Bool(xtv) - } - - case strings.EqualFold("instanceMatchCriteria", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceMatchCriteria = types.InstanceMatchCriteria(xtv) - } - - case strings.EqualFold("instancePlatform", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstancePlatform = types.CapacityReservationInstancePlatform(xtv) - } - - case strings.EqualFold("instanceType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceType = ptr.String(xtv) - } - - case strings.EqualFold("outpostArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OutpostArn = ptr.String(xtv) - } - - case strings.EqualFold("ownerId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OwnerId = ptr.String(xtv) - } - - case strings.EqualFold("startDate", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("groupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.StartDate = ptr.Time(t) - } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47436,7 +52317,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } { xtv := string(val) - sv.State = types.CapacityReservationState(xtv) + sv.InstanceId = ptr.String(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -47445,20 +52326,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv return err } - case strings.EqualFold("tenancy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Tenancy = types.CapacityReservationTenancy(xtv) - } - - case strings.EqualFold("totalInstanceCount", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47468,11 +52336,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalInstanceCount = ptr.Int32(int32(i64)) + sv.VpcId = ptr.String(xtv) } default: @@ -47489,17 +52353,18 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv return nil } -func awsEc2query_deserializeDocumentCapacityReservationFleet(v **types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservationFleet + var sv []types.ClassicLinkInstance if *v == nil { - sv = &types.CapacityReservationFleet{} + sv = make([]types.ClassicLinkInstance, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -47508,169 +52373,18 @@ func awsEc2query_deserializeDocumentCapacityReservationFleet(v **types.CapacityR if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("allocationStrategy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AllocationStrategy = ptr.String(xtv) - } - - case strings.EqualFold("capacityReservationFleetArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CapacityReservationFleetArn = ptr.String(xtv) - } - - case strings.EqualFold("capacityReservationFleetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CapacityReservationFleetId = ptr.String(xtv) - } - - case strings.EqualFold("createTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CreateTime = ptr.Time(t) - } - - case strings.EqualFold("endDate", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.EndDate = ptr.Time(t) - } - - case strings.EqualFold("instanceMatchCriteria", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceMatchCriteria = types.FleetInstanceMatchCriteria(xtv) - } - - case strings.EqualFold("instanceTypeSpecificationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetCapacityReservationSet(&sv.InstanceTypeSpecifications, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.CapacityReservationFleetState(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.ClassicLinkInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("tenancy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Tenancy = types.FleetCapacityReservationTenancy(xtv) - } - - case strings.EqualFold("totalFulfilledCapacity", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.TotalFulfilledCapacity = ptr.Float64(f64) - } - - case strings.EqualFold("totalTargetCapacity", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalTargetCapacity = ptr.Int32(int32(i64)) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -47683,13 +52397,37 @@ func awsEc2query_deserializeDocumentCapacityReservationFleet(v **types.CapacityR return nil } -func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(v **types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLinkInstanceListUnwrapped(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.ClassicLinkInstance + if *v == nil { + sv = make([]types.ClassicLinkInstance, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ClassicLinkInstance + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservationFleetCancellationState + var sv *types.ClassicLoadBalancer if *v == nil { - sv = &types.CapacityReservationFleetCancellationState{} + sv = &types.ClassicLoadBalancer{} } else { sv = *v } @@ -47703,35 +52441,9 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(v break } originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("capacityReservationFleetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CapacityReservationFleetId = ptr.String(xtv) - } - - case strings.EqualFold("currentFleetState", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CurrentFleetState = types.CapacityReservationFleetState(xtv) - } - - case strings.EqualFold("previousFleetState", t.Name.Local): + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47741,7 +52453,7 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(v } { xtv := string(val) - sv.PreviousFleetState = types.CapacityReservationFleetState(xtv) + sv.Name = ptr.String(xtv) } default: @@ -47758,13 +52470,13 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(v return nil } -func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSet(v *[]types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CapacityReservationFleetCancellationState + var sv []types.ClassicLoadBalancer if *v == nil { - sv = make([]types.CapacityReservationFleetCancellationState, 0) + sv = make([]types.ClassicLoadBalancer, 0) } else { sv = *v } @@ -47780,10 +52492,10 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSet } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CapacityReservationFleetCancellationState + var col types.ClassicLoadBalancer nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -47802,22 +52514,22 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSet return nil } -func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSetUnwrapped(v *[]types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error { - var sv []types.CapacityReservationFleetCancellationState +func awsEc2query_deserializeDocumentClassicLoadBalancersUnwrapped(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { + var sv []types.ClassicLoadBalancer if *v == nil { - sv = make([]types.CapacityReservationFleetCancellationState, 0) + sv = make([]types.ClassicLoadBalancer, 0) } else { sv = *v } switch { default: - var mv types.CapacityReservationFleetCancellationState + var mv types.ClassicLoadBalancer t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -47826,18 +52538,17 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSet *v = sv return nil } -func awsEc2query_deserializeDocumentCapacityReservationFleetSet(v *[]types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClassicLoadBalancersConfig(v **types.ClassicLoadBalancersConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CapacityReservationFleet + var sv *types.ClassicLoadBalancersConfig if *v == nil { - sv = make([]types.CapacityReservationFleet, 0) + sv = &types.ClassicLoadBalancersConfig{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -47846,18 +52557,17 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetSet(v *[]types.Capac if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.CapacityReservationFleet + case strings.EqualFold("classicLoadBalancers", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentCapacityReservationFleet(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClassicLoadBalancers(&sv.ClassicLoadBalancers, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -47870,37 +52580,13 @@ func awsEc2query_deserializeDocumentCapacityReservationFleetSet(v *[]types.Capac return nil } -func awsEc2query_deserializeDocumentCapacityReservationFleetSetUnwrapped(v *[]types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { - var sv []types.CapacityReservationFleet - if *v == nil { - sv = make([]types.CapacityReservationFleet, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CapacityReservationFleet - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentCapacityReservationFleet(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientCertificateRevocationListStatus(v **types.ClientCertificateRevocationListStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservationGroup + var sv *types.ClientCertificateRevocationListStatus if *v == nil { - sv = &types.CapacityReservationGroup{} + sv = &types.ClientCertificateRevocationListStatus{} } else { sv = *v } @@ -47916,7 +52602,7 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("groupArn", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47926,10 +52612,10 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR } { xtv := string(val) - sv.GroupArn = ptr.String(xtv) + sv.Code = types.ClientCertificateRevocationListStatusCode(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -47939,7 +52625,7 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -47956,18 +52642,17 @@ func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityR return nil } -func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.ClientConnectResponseOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CapacityReservationGroup + var sv *types.ClientConnectResponseOptions if *v == nil { - sv = make([]types.CapacityReservationGroup, 0) + sv = &types.ClientConnectResponseOptions{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -47976,18 +52661,46 @@ func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]types.Capac if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.CapacityReservationGroup + case strings.EqualFold("enabled", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Enabled = ptr.Bool(xtv) + } + + case strings.EqualFold("lambdaFunctionArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LambdaFunctionArn = ptr.String(xtv) + } + + case strings.EqualFold("status", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(&sv.Status, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -48000,37 +52713,13 @@ func awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]types.Capac return nil } -func awsEc2query_deserializeDocumentCapacityReservationGroupSetUnwrapped(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.CapacityReservationGroup - if *v == nil { - sv = make([]types.CapacityReservationGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CapacityReservationGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.CapacityReservationOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnAuthentication(v **types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservationOptions + var sv *types.ClientVpnAuthentication if *v == nil { - sv = &types.CapacityReservationOptions{} + sv = &types.ClientVpnAuthentication{} } else { sv = *v } @@ -48046,7 +52735,25 @@ func awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.Capacit originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("usageStrategy", t.Name.Local): + case strings.EqualFold("activeDirectory", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDirectoryServiceAuthentication(&sv.ActiveDirectory, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("federatedAuthentication", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFederatedAuthentication(&sv.FederatedAuthentication, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("mutualAuthentication", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCertificateAuthentication(&sv.MutualAuthentication, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("type", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48056,7 +52763,7 @@ func awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.Capacit } { xtv := string(val) - sv.UsageStrategy = types.FleetCapacityReservationUsageStrategy(xtv) + sv.Type = types.ClientVpnAuthenticationType(xtv) } default: @@ -48073,13 +52780,13 @@ func awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.Capacit return nil } -func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CapacityReservation + var sv []types.ClientVpnAuthentication if *v == nil { - sv = make([]types.CapacityReservation, 0) + sv = make([]types.ClientVpnAuthentication, 0) } else { sv = *v } @@ -48095,10 +52802,10 @@ func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]types.CapacityRe } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CapacityReservation + var col types.ClientVpnAuthentication nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -48117,22 +52824,22 @@ func awsEc2query_deserializeDocumentCapacityReservationSet(v *[]types.CapacityRe return nil } -func awsEc2query_deserializeDocumentCapacityReservationSetUnwrapped(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error { - var sv []types.CapacityReservation +func awsEc2query_deserializeDocumentClientVpnAuthenticationListUnwrapped(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnAuthentication if *v == nil { - sv = make([]types.CapacityReservation, 0) + sv = make([]types.ClientVpnAuthentication, 0) } else { sv = *v } switch { default: - var mv types.CapacityReservation + var mv types.ClientVpnAuthentication t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -48141,13 +52848,13 @@ func awsEc2query_deserializeDocumentCapacityReservationSetUnwrapped(v *[]types.C *v = sv return nil } -func awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(v **types.CapacityReservationSpecificationResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.ClientVpnAuthorizationRuleStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservationSpecificationResponse + var sv *types.ClientVpnAuthorizationRuleStatus if *v == nil { - sv = &types.CapacityReservationSpecificationResponse{} + sv = &types.ClientVpnAuthorizationRuleStatus{} } else { sv = *v } @@ -48163,7 +52870,7 @@ func awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(v * originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("capacityReservationPreference", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48173,14 +52880,21 @@ func awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(v * } { xtv := string(val) - sv.CapacityReservationPreference = types.CapacityReservationPreference(xtv) + sv.Code = types.ClientVpnAuthorizationRuleStatusCode(xtv) } - case strings.EqualFold("capacityReservationTarget", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCapacityReservationTargetResponse(&sv.CapacityReservationTarget, nodeDecoder); err != nil { + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -48196,13 +52910,13 @@ func awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(v * return nil } -func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types.CapacityReservationTargetResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservationTargetResponse + var sv *types.ClientVpnConnection if *v == nil { - sv = &types.CapacityReservationTargetResponse{} + sv = &types.ClientVpnConnection{} } else { sv = *v } @@ -48218,7 +52932,7 @@ func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types. originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("capacityReservationId", t.Name.Local): + case strings.EqualFold("clientIp", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48228,10 +52942,10 @@ func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types. } { xtv := string(val) - sv.CapacityReservationId = ptr.String(xtv) + sv.ClientIp = ptr.String(xtv) } - case strings.EqualFold("capacityReservationResourceGroupArn", t.Name.Local): + case strings.EqualFold("clientVpnEndpointId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48241,46 +52955,49 @@ func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types. } { xtv := string(val) - sv.CapacityReservationResourceGroupArn = ptr.String(xtv) + sv.ClientVpnEndpointId = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("commonName", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.CommonName = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("connectionEndTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ConnectionEndTime = ptr.String(xtv) + } -func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CarrierGateway - if *v == nil { - sv = &types.CarrierGateway{} - } else { - sv = *v - } + case strings.EqualFold("connectionEstablishedTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ConnectionEstablishedTime = ptr.String(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("carrierGatewayId", t.Name.Local): + case strings.EqualFold("connectionId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48290,10 +53007,10 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } { xtv := string(val) - sv.CarrierGatewayId = ptr.String(xtv) + sv.ConnectionId = ptr.String(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("egressBytes", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48303,10 +53020,10 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + sv.EgressBytes = ptr.String(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("egressPackets", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48316,16 +53033,48 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } { xtv := string(val) - sv.State = types.CarrierGatewayState(xtv) + sv.EgressPackets = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("ingressBytes", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IngressBytes = ptr.String(xtv) + } + + case strings.EqualFold("ingressPackets", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IngressPackets = ptr.String(xtv) + } + + case strings.EqualFold("postureComplianceStatusSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentValueStringList(&sv.PostureComplianceStatuses, nodeDecoder); err != nil { return err } - case strings.EqualFold("vpcId", t.Name.Local): + case strings.EqualFold("status", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentClientVpnConnectionStatus(&sv.Status, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("timestamp", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48335,7 +53084,20 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + sv.Timestamp = ptr.String(xtv) + } + + case strings.EqualFold("username", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Username = ptr.String(xtv) } default: @@ -48352,13 +53114,13 @@ func awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, dec return nil } -func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CarrierGateway + var sv []types.ClientVpnConnection if *v == nil { - sv = make([]types.CarrierGateway, 0) + sv = make([]types.ClientVpnConnection, 0) } else { sv = *v } @@ -48374,10 +53136,10 @@ func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]types.CarrierGateway, } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CarrierGateway + var col types.ClientVpnConnection nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -48396,22 +53158,22 @@ func awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]types.CarrierGateway, return nil } -func awsEc2query_deserializeDocumentCarrierGatewaySetUnwrapped(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error { - var sv []types.CarrierGateway +func awsEc2query_deserializeDocumentClientVpnConnectionSetUnwrapped(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnConnection if *v == nil { - sv = make([]types.CarrierGateway, 0) + sv = make([]types.ClientVpnConnection, 0) } else { sv = *v } switch { default: - var mv types.CarrierGateway + var mv types.ClientVpnConnection t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -48420,13 +53182,13 @@ func awsEc2query_deserializeDocumentCarrierGatewaySetUnwrapped(v *[]types.Carrie *v = sv return nil } -func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.CertificateAuthentication, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVpnConnectionStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CertificateAuthentication + var sv *types.ClientVpnConnectionStatus if *v == nil { - sv = &types.CertificateAuthentication{} + sv = &types.ClientVpnConnectionStatus{} } else { sv = *v } @@ -48442,7 +53204,7 @@ func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.Certific originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("clientRootCertificateChain", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48452,7 +53214,20 @@ func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.Certific } { xtv := string(val) - sv.ClientRootCertificateChain = ptr.String(xtv) + sv.Code = types.ClientVpnConnectionStatusCode(xtv) + } + + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) } default: @@ -48469,13 +53244,13 @@ func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.Certific return nil } -func awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CidrBlock + var sv *types.ClientVpnEndpoint if *v == nil { - sv = &types.CidrBlock{} + sv = &types.ClientVpnEndpoint{} } else { sv = *v } @@ -48491,7 +53266,19 @@ func awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smith originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cidrBlock", t.Name.Local): + case strings.EqualFold("associatedTargetNetwork", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(&sv.AssociatedTargetNetworks, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("authenticationOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentClientVpnAuthenticationList(&sv.AuthenticationOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("clientCidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48501,55 +53288,210 @@ func awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smith } { xtv := string(val) - sv.CidrBlock = ptr.String(xtv) + sv.ClientCidrBlock = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("clientConnectOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentClientConnectResponseOptions(&sv.ClientConnectOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("clientVpnEndpointId", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ClientVpnEndpointId = ptr.String(xtv) + } + + case strings.EqualFold("connectionLogOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentConnectionLogResponseOptions(&sv.ConnectionLogOptions, nodeDecoder); err != nil { + return err + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("creationTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CreationTime = ptr.String(xtv) + } -func awsEc2query_deserializeDocumentCidrBlockSet(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.CidrBlock - if *v == nil { - sv = make([]types.CidrBlock, 0) - } else { - sv = *v - } + case strings.EqualFold("deletionTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DeletionTime = ptr.String(xtv) + } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.CidrBlock + case strings.EqualFold("description", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("dnsName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DnsName = ptr.String(xtv) + } + + case strings.EqualFold("dnsServer", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentValueStringList(&sv.DnsServers, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) + + case strings.EqualFold("securityGroupIdSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(&sv.SecurityGroupIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("selfServicePortalUrl", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SelfServicePortalUrl = ptr.String(xtv) + } + + case strings.EqualFold("serverCertificateArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ServerCertificateArn = ptr.String(xtv) + } + + case strings.EqualFold("splitTunnel", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.SplitTunnel = ptr.Bool(xtv) + } + + case strings.EqualFold("status", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentClientVpnEndpointStatus(&sv.Status, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("transportProtocol", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TransportProtocol = types.TransportProtocol(xtv) + } + + case strings.EqualFold("vpcId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VpcId = ptr.String(xtv) + } + + case strings.EqualFold("vpnPort", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.VpnPort = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("vpnProtocol", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VpnProtocol = types.VpnProtocol(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -48562,37 +53504,13 @@ func awsEc2query_deserializeDocumentCidrBlockSet(v *[]types.CidrBlock, decoder s return nil } -func awsEc2query_deserializeDocumentCidrBlockSetUnwrapped(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error { - var sv []types.CidrBlock - if *v == nil { - sv = make([]types.CidrBlock, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CidrBlock - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.ClientVpnEndpointAttributeStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClassicLinkDnsSupport + var sv *types.ClientVpnEndpointAttributeStatus if *v == nil { - sv = &types.ClassicLinkDnsSupport{} + sv = &types.ClientVpnEndpointAttributeStatus{} } else { sv = *v } @@ -48608,7 +53526,7 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("classicLinkDnsSupported", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48617,14 +53535,11 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.ClassicLinkDnsSupported = ptr.Bool(xtv) + xtv := string(val) + sv.Code = types.ClientVpnEndpointAttributeStatusCode(xtv) } - case strings.EqualFold("vpcId", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48634,7 +53549,7 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + sv.Message = ptr.String(xtv) } default: @@ -48651,18 +53566,17 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD return nil } -func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnEndpointStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClassicLinkDnsSupport + var sv *types.ClientVpnEndpointStatus if *v == nil { - sv = make([]types.ClassicLinkDnsSupport, 0) + sv = &types.ClientVpnEndpointStatus{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -48671,18 +53585,37 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]types.Classic if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.ClassicLinkDnsSupport - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("code", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Code = types.ClientVpnEndpointStatusCode(xtv) + } + + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -48695,37 +53628,13 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]types.Classic return nil } -func awsEc2query_deserializeDocumentClassicLinkDnsSupportListUnwrapped(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error { - var sv []types.ClassicLinkDnsSupport - if *v == nil { - sv = make([]types.ClassicLinkDnsSupport, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ClassicLinkDnsSupport - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClassicLinkInstance + var sv *types.ClientVpnRoute if *v == nil { - sv = &types.ClassicLinkInstance{} + sv = &types.ClientVpnRoute{} } else { sv = *v } @@ -48741,13 +53650,20 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("groupSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { + case strings.EqualFold("clientVpnEndpointId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ClientVpnEndpointId = ptr.String(xtv) + } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48757,16 +53673,42 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("destinationCidr", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DestinationCidr = ptr.String(xtv) + } + + case strings.EqualFold("origin", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Origin = ptr.String(xtv) + } + + case strings.EqualFold("status", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnRouteStatus(&sv.Status, nodeDecoder); err != nil { return err } - case strings.EqualFold("vpcId", t.Name.Local): + case strings.EqualFold("targetSubnet", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48776,7 +53718,20 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + sv.TargetSubnet = ptr.String(xtv) + } + + case strings.EqualFold("type", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Type = ptr.String(xtv) } default: @@ -48793,13 +53748,13 @@ func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkIns return nil } -func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClassicLinkInstance + var sv []types.ClientVpnRoute if *v == nil { - sv = make([]types.ClassicLinkInstance, 0) + sv = make([]types.ClientVpnRoute, 0) } else { sv = *v } @@ -48815,10 +53770,10 @@ func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]types.ClassicLi } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ClassicLinkInstance + var col types.ClientVpnRoute nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -48837,22 +53792,22 @@ func awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]types.ClassicLi return nil } -func awsEc2query_deserializeDocumentClassicLinkInstanceListUnwrapped(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error { - var sv []types.ClassicLinkInstance +func awsEc2query_deserializeDocumentClientVpnRouteSetUnwrapped(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnRoute if *v == nil { - sv = make([]types.ClassicLinkInstance, 0) + sv = make([]types.ClientVpnRoute, 0) } else { sv = *v } switch { default: - var mv types.ClassicLinkInstance + var mv types.ClientVpnRoute t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -48861,13 +53816,13 @@ func awsEc2query_deserializeDocumentClassicLinkInstanceListUnwrapped(v *[]types. *v = sv return nil } -func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnRouteStatus(v **types.ClientVpnRouteStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClassicLoadBalancer + var sv *types.ClientVpnRouteStatus if *v == nil { - sv = &types.ClassicLoadBalancer{} + sv = &types.ClientVpnRouteStatus{} } else { sv = *v } @@ -48883,7 +53838,7 @@ func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBal originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -48893,7 +53848,20 @@ func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBal } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.Code = types.ClientVpnRouteStatusCode(xtv) + } + + case strings.EqualFold("message", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Message = ptr.String(xtv) } default: @@ -48910,13 +53878,13 @@ func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBal return nil } -func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClassicLoadBalancer + var sv []string if *v == nil { - sv = make([]types.ClassicLoadBalancer, 0) + sv = make([]string, 0) } else { sv = *v } @@ -48930,15 +53898,22 @@ func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]types.ClassicLoadB if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.ClassicLoadBalancer - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil { + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -48954,37 +53929,42 @@ func awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]types.ClassicLoadB return nil } -func awsEc2query_deserializeDocumentClassicLoadBalancersUnwrapped(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error { - var sv []types.ClassicLoadBalancer +func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.ClassicLoadBalancer, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.ClassicLoadBalancer + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentClassicLoadBalancersConfig(v **types.ClassicLoadBalancersConfig, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClassicLoadBalancersConfig + var sv *types.CoipAddressUsage if *v == nil { - sv = &types.ClassicLoadBalancersConfig{} + sv = &types.CoipAddressUsage{} } else { sv = *v } @@ -49000,11 +53980,57 @@ func awsEc2query_deserializeDocumentClassicLoadBalancersConfig(v **types.Classic originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("classicLoadBalancers", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClassicLoadBalancers(&sv.ClassicLoadBalancers, nodeDecoder); err != nil { + case strings.EqualFold("allocationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AllocationId = ptr.String(xtv) + } + + case strings.EqualFold("awsAccountId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AwsAccountId = ptr.String(xtv) + } + + case strings.EqualFold("awsService", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AwsService = ptr.String(xtv) + } + + case strings.EqualFold("coIp", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.CoIp = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -49020,17 +54046,18 @@ func awsEc2query_deserializeDocumentClassicLoadBalancersConfig(v **types.Classic return nil } -func awsEc2query_deserializeDocumentClientCertificateRevocationListStatus(v **types.ClientCertificateRevocationListStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientCertificateRevocationListStatus + var sv []types.CoipAddressUsage if *v == nil { - sv = &types.ClientCertificateRevocationListStatus{} + sv = make([]types.CoipAddressUsage, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -49039,56 +54066,61 @@ func awsEc2query_deserializeDocumentClientCertificateRevocationListStatus(v **ty if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.ClientCertificateRevocationListStatusCode(xtv) - } - - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.CoipAddressUsage + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err } } - decoder = originalDecoder + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCoipAddressUsageSetUnwrapped(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { + var sv []types.CoipAddressUsage + if *v == nil { + sv = make([]types.CoipAddressUsage, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CoipAddressUsage + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.ClientConnectResponseOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientConnectResponseOptions + var sv *types.CoipPool if *v == nil { - sv = &types.ClientConnectResponseOptions{} + sv = &types.CoipPool{} } else { sv = *v } @@ -49104,7 +54136,7 @@ func awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.Clien originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("enabled", t.Name.Local): + case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49113,14 +54145,11 @@ func awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.Clien break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Enabled = ptr.Bool(xtv) + xtv := string(val) + sv.LocalGatewayRouteTableId = ptr.String(xtv) } - case strings.EqualFold("lambdaFunctionArn", t.Name.Local): + case strings.EqualFold("poolArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49130,70 +54159,16 @@ func awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.Clien } { xtv := string(val) - sv.LambdaFunctionArn = ptr.String(xtv) - } - - case strings.EqualFold("status", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(&sv.Status, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentClientVpnAuthentication(v **types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ClientVpnAuthentication - if *v == nil { - sv = &types.ClientVpnAuthentication{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("activeDirectory", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDirectoryServiceAuthentication(&sv.ActiveDirectory, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("federatedAuthentication", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFederatedAuthentication(&sv.FederatedAuthentication, nodeDecoder); err != nil { - return err + sv.PoolArn = ptr.String(xtv) } - case strings.EqualFold("mutualAuthentication", t.Name.Local): + case strings.EqualFold("poolCidrSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCertificateAuthentication(&sv.MutualAuthentication, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentValueStringList(&sv.PoolCidrs, nodeDecoder); err != nil { return err } - case strings.EqualFold("type", t.Name.Local): + case strings.EqualFold("poolId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49203,7 +54178,13 @@ func awsEc2query_deserializeDocumentClientVpnAuthentication(v **types.ClientVpnA } { xtv := string(val) - sv.Type = types.ClientVpnAuthenticationType(xtv) + sv.PoolId = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } default: @@ -49220,13 +54201,13 @@ func awsEc2query_deserializeDocumentClientVpnAuthentication(v **types.ClientVpnA return nil } -func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoipPoolSet(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClientVpnAuthentication + var sv []types.CoipPool if *v == nil { - sv = make([]types.ClientVpnAuthentication, 0) + sv = make([]types.CoipPool, 0) } else { sv = *v } @@ -49242,10 +54223,10 @@ func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]types.Clien } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ClientVpnAuthentication + var col types.CoipPool nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -49264,22 +54245,22 @@ func awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]types.Clien return nil } -func awsEc2query_deserializeDocumentClientVpnAuthenticationListUnwrapped(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error { - var sv []types.ClientVpnAuthentication +func awsEc2query_deserializeDocumentCoipPoolSetUnwrapped(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error { + var sv []types.CoipPool if *v == nil { - sv = make([]types.ClientVpnAuthentication, 0) + sv = make([]types.CoipPool, 0) } else { sv = *v } switch { default: - var mv types.ClientVpnAuthentication + var mv types.CoipPool t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -49288,13 +54269,13 @@ func awsEc2query_deserializeDocumentClientVpnAuthenticationListUnwrapped(v *[]ty *v = sv return nil } -func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.ClientVpnAuthorizationRuleStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.ConnectionLogResponseOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnAuthorizationRuleStatus + var sv *types.ConnectionLogResponseOptions if *v == nil { - sv = &types.ClientVpnAuthorizationRuleStatus{} + sv = &types.ConnectionLogResponseOptions{} } else { sv = *v } @@ -49310,7 +54291,7 @@ func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.C originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("CloudwatchLogGroup", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49320,10 +54301,10 @@ func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.C } { xtv := string(val) - sv.Code = types.ClientVpnAuthorizationRuleStatusCode(xtv) + sv.CloudwatchLogGroup = ptr.String(xtv) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("CloudwatchLogStream", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49333,7 +54314,23 @@ func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.C } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CloudwatchLogStream = ptr.String(xtv) + } + + case strings.EqualFold("Enabled", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Enabled = ptr.Bool(xtv) } default: @@ -49350,13 +54347,13 @@ func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.C return nil } -func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnConnection + var sv *types.ConnectionNotification if *v == nil { - sv = &types.ClientVpnConnection{} + sv = &types.ConnectionNotification{} } else { sv = *v } @@ -49372,20 +54369,13 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("clientIp", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("connectionEvents", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.ConnectionEvents, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ClientIp = ptr.String(xtv) - } - case strings.EqualFold("clientVpnEndpointId", t.Name.Local): + case strings.EqualFold("connectionNotificationArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49395,10 +54385,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.ClientVpnEndpointId = ptr.String(xtv) + sv.ConnectionNotificationArn = ptr.String(xtv) } - case strings.EqualFold("commonName", t.Name.Local): + case strings.EqualFold("connectionNotificationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49408,10 +54398,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.CommonName = ptr.String(xtv) + sv.ConnectionNotificationId = ptr.String(xtv) } - case strings.EqualFold("connectionEndTime", t.Name.Local): + case strings.EqualFold("connectionNotificationState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49421,10 +54411,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.ConnectionEndTime = ptr.String(xtv) + sv.ConnectionNotificationState = types.ConnectionNotificationState(xtv) } - case strings.EqualFold("connectionEstablishedTime", t.Name.Local): + case strings.EqualFold("connectionNotificationType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49434,10 +54424,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.ConnectionEstablishedTime = ptr.String(xtv) + sv.ConnectionNotificationType = types.ConnectionNotificationType(xtv) } - case strings.EqualFold("connectionId", t.Name.Local): + case strings.EqualFold("serviceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49447,10 +54437,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.ConnectionId = ptr.String(xtv) + sv.ServiceId = ptr.String(xtv) } - case strings.EqualFold("egressBytes", t.Name.Local): + case strings.EqualFold("vpcEndpointId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49460,23 +54450,114 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.EgressBytes = ptr.String(xtv) + sv.VpcEndpointId = ptr.String(xtv) } - case strings.EqualFold("egressPackets", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ConnectionNotification + if *v == nil { + sv = make([]types.ConnectionNotification, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.ConnectionNotification + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil { + return err } - { - xtv := string(val) - sv.EgressPackets = ptr.String(xtv) + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err } - case strings.EqualFold("ingressBytes", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentConnectionNotificationSetUnwrapped(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { + var sv []types.ConnectionNotification + if *v == nil { + sv = make([]types.ConnectionNotification, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ConnectionNotification + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ConversionTask + if *v == nil { + sv = &types.ConversionTask{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("conversionTaskId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49486,10 +54567,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.IngressBytes = ptr.String(xtv) + sv.ConversionTaskId = ptr.String(xtv) } - case strings.EqualFold("ingressPackets", t.Name.Local): + case strings.EqualFold("expirationTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49499,22 +54580,22 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.IngressPackets = ptr.String(xtv) + sv.ExpirationTime = ptr.String(xtv) } - case strings.EqualFold("postureComplianceStatusSet", t.Name.Local): + case strings.EqualFold("importInstance", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValueStringList(&sv.PostureComplianceStatuses, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportInstanceTaskDetails(&sv.ImportInstance, nodeDecoder); err != nil { return err } - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("importVolume", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnConnectionStatus(&sv.Status, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportVolumeTaskDetails(&sv.ImportVolume, nodeDecoder); err != nil { return err } - case strings.EqualFold("timestamp", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49524,10 +54605,10 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.Timestamp = ptr.String(xtv) + sv.State = types.ConversionTaskState(xtv) } - case strings.EqualFold("username", t.Name.Local): + case strings.EqualFold("statusMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49537,7 +54618,13 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne } { xtv := string(val) - sv.Username = ptr.String(xtv) + sv.StatusMessage = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } default: @@ -49554,13 +54641,13 @@ func awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConne return nil } -func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClientVpnConnection + var sv []int32 if *v == nil { - sv = make([]types.ClientVpnConnection, 0) + sv = make([]int32, 0) } else { sv = *v } @@ -49574,15 +54661,26 @@ func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]types.ClientVpnC if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.ClientVpnConnection - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil { + var col int32 + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + col = int32(i64) + } sv = append(sv, col) default: @@ -49598,41 +54696,51 @@ func awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]types.ClientVpnC return nil } -func awsEc2query_deserializeDocumentClientVpnConnectionSetUnwrapped(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error { - var sv []types.ClientVpnConnection +func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { + var sv []int32 if *v == nil { - sv = make([]types.ClientVpnConnection, 0) + sv = make([]int32, 0) } else { sv = *v } switch { default: - var mv types.ClientVpnConnection + var mv int32 t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + mv = int32(i64) + } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVpnConnectionStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCpuManufacturerSet(v *[]types.CpuManufacturer, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnConnectionStatus + var sv []types.CpuManufacturer if *v == nil { - sv = &types.ClientVpnConnectionStatus{} + sv = make([]types.CpuManufacturer, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -49641,23 +54749,11 @@ func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVp if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.ClientVpnConnectionStatusCode(xtv) - } - - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.CpuManufacturer val, err := decoder.Value() if err != nil { return err @@ -49667,11 +54763,11 @@ func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVp } { xtv := string(val) - sv.Message = ptr.String(xtv) + col = types.CpuManufacturer(xtv) } + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -49684,13 +54780,42 @@ func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVp return nil } -func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCpuManufacturerSetUnwrapped(v *[]types.CpuManufacturer, decoder smithyxml.NodeDecoder) error { + var sv []types.CpuManufacturer + if *v == nil { + sv = make([]types.CpuManufacturer, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CpuManufacturer + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.CpuManufacturer(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnEndpoint + var sv *types.CpuOptions if *v == nil { - sv = &types.ClientVpnEndpoint{} + sv = &types.CpuOptions{} } else { sv = *v } @@ -49706,19 +54831,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("associatedTargetNetwork", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(&sv.AssociatedTargetNetworks, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("authenticationOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnAuthenticationList(&sv.AuthenticationOptions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("clientCidrBlock", t.Name.Local): + case strings.EqualFold("coreCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49728,16 +54841,14 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.ClientCidrBlock = ptr.String(xtv) - } - - case strings.EqualFold("clientConnectOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientConnectResponseOptions(&sv.ClientConnectOptions, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.CoreCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("clientVpnEndpointId", t.Name.Local): + case strings.EqualFold("threadsPerCore", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49747,16 +54858,50 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.ClientVpnEndpointId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.ThreadsPerCore = ptr.Int32(int32(i64)) } - case strings.EqualFold("connectionLogOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentConnectionLogResponseOptions(&sv.ConnectionLogOptions, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("creationTime", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CreateFleetError + if *v == nil { + sv = &types.CreateFleetError{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("errorCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49766,10 +54911,10 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.CreationTime = ptr.String(xtv) + sv.ErrorCode = ptr.String(xtv) } - case strings.EqualFold("deletionTime", t.Name.Local): + case strings.EqualFold("errorMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49779,23 +54924,16 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.DeletionTime = ptr.String(xtv) + sv.ErrorMessage = ptr.String(xtv) } - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - case strings.EqualFold("dnsName", t.Name.Local): + case strings.EqualFold("lifecycle", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49805,48 +54943,120 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.DnsName = ptr.String(xtv) + sv.Lifecycle = types.InstanceLifecycle(xtv) } - case strings.EqualFold("dnsServer", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValueStringList(&sv.DnsServers, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("securityGroupIdSet", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CreateFleetError + if *v == nil { + sv = make([]types.CreateFleetError, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.CreateFleetError nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(&sv.SecurityGroupIds, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("selfServicePortalUrl", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.SelfServicePortalUrl = ptr.String(xtv) - } - case strings.EqualFold("serverCertificateArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCreateFleetErrorsSetUnwrapped(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error { + var sv []types.CreateFleetError + if *v == nil { + sv = make([]types.CreateFleetError, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CreateFleetError + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CreateFleetInstance + if *v == nil { + sv = &types.CreateFleetInstance{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceIds", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIdsSet(&sv.InstanceIds, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ServerCertificateArn = ptr.String(xtv) - } - case strings.EqualFold("splitTunnel", t.Name.Local): + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49855,26 +55065,17 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.SplitTunnel = ptr.Bool(xtv) - } - - case strings.EqualFold("status", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnEndpointStatus(&sv.Status, nodeDecoder); err != nil { - return err + xtv := string(val) + sv.InstanceType = types.InstanceType(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { return err } - case strings.EqualFold("transportProtocol", t.Name.Local): + case strings.EqualFold("lifecycle", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49884,10 +55085,10 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.TransportProtocol = types.TransportProtocol(xtv) + sv.Lifecycle = types.InstanceLifecycle(xtv) } - case strings.EqualFold("vpcId", t.Name.Local): + case strings.EqualFold("platform", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49897,41 +55098,55 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + sv.Platform = types.PlatformValues(xtv) } - case strings.EqualFold("vpnPort", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.VpnPort = ptr.Int32(int32(i64)) - } - case strings.EqualFold("vpnProtocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CreateFleetInstance + if *v == nil { + sv = make([]types.CreateFleetInstance, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.CreateFleetInstance + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.VpnProtocol = types.VpnProtocol(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -49944,13 +55159,37 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin return nil } -func awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.ClientVpnEndpointAttributeStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCreateFleetInstancesSetUnwrapped(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.CreateFleetInstance + if *v == nil { + sv = make([]types.CreateFleetInstance, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CreateFleetInstance + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnEndpointAttributeStatus + var sv *types.CreateVolumePermission if *v == nil { - sv = &types.ClientVpnEndpointAttributeStatus{} + sv = &types.CreateVolumePermission{} } else { sv = *v } @@ -49966,7 +55205,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.C originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("group", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49976,10 +55215,10 @@ func awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.C } { xtv := string(val) - sv.Code = types.ClientVpnEndpointAttributeStatusCode(xtv) + sv.Group = types.PermissionGroup(xtv) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("userId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -49989,7 +55228,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.C } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.UserId = ptr.String(xtv) } default: @@ -50006,17 +55245,18 @@ func awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.C return nil } -func awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnEndpointStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnEndpointStatus + var sv []types.CreateVolumePermission if *v == nil { - sv = &types.ClientVpnEndpointStatus{} + sv = make([]types.CreateVolumePermission, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -50025,23 +55265,77 @@ func awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnE if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.CreateVolumePermission + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.ClientVpnEndpointStatusCode(xtv) + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err } - case strings.EqualFold("message", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { + var sv []types.CreateVolumePermission + if *v == nil { + sv = make([]types.CreateVolumePermission, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CreateVolumePermission + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCreditSpecification(v **types.CreditSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CreditSpecification + if *v == nil { + sv = &types.CreditSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cpuCredits", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50051,7 +55345,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnE } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.CpuCredits = ptr.String(xtv) } default: @@ -50068,13 +55362,13 @@ func awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnE return nil } -func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ClientVpnRoute + var sv *types.CustomerGateway if *v == nil { - sv = &types.ClientVpnRoute{} + sv = &types.CustomerGateway{} } else { sv = *v } @@ -50090,7 +55384,7 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("clientVpnEndpointId", t.Name.Local): + case strings.EqualFold("bgpAsn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50100,10 +55394,10 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } { xtv := string(val) - sv.ClientVpnEndpointId = ptr.String(xtv) + sv.BgpAsn = ptr.String(xtv) } - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("certificateArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50113,10 +55407,10 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.CertificateArn = ptr.String(xtv) } - case strings.EqualFold("destinationCidr", t.Name.Local): + case strings.EqualFold("customerGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50126,10 +55420,10 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } { xtv := string(val) - sv.DestinationCidr = ptr.String(xtv) + sv.CustomerGatewayId = ptr.String(xtv) } - case strings.EqualFold("origin", t.Name.Local): + case strings.EqualFold("deviceName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50139,16 +55433,23 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } { xtv := string(val) - sv.Origin = ptr.String(xtv) + sv.DeviceName = ptr.String(xtv) } - case strings.EqualFold("status", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentClientVpnRouteStatus(&sv.Status, nodeDecoder); err != nil { + case strings.EqualFold("ipAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.IpAddress = ptr.String(xtv) + } - case strings.EqualFold("targetSubnet", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50158,7 +55459,13 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec } { xtv := string(val) - sv.TargetSubnet = ptr.String(xtv) + sv.State = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } case strings.EqualFold("type", t.Name.Local): @@ -50188,13 +55495,13 @@ func awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, dec return nil } -func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClientVpnRoute + var sv []types.CustomerGateway if *v == nil { - sv = make([]types.ClientVpnRoute, 0) + sv = make([]types.CustomerGateway, 0) } else { sv = *v } @@ -50204,108 +55511,22 @@ func awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]types.ClientVpnRoute, t, done, err := decoder.Token() if err != nil { return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.ClientVpnRoute - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentClientVpnRouteSetUnwrapped(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error { - var sv []types.ClientVpnRoute - if *v == nil { - sv = make([]types.ClientVpnRoute, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ClientVpnRoute - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentClientVpnRouteStatus(v **types.ClientVpnRouteStatus, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ClientVpnRouteStatus - if *v == nil { - sv = &types.ClientVpnRouteStatus{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.ClientVpnRouteStatusCode(xtv) - } - - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.CustomerGateway + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -50318,7 +55539,31 @@ func awsEc2query_deserializeDocumentClientVpnRouteStatus(v **types.ClientVpnRout return nil } -func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.CustomerGateway + if *v == nil { + sv = make([]types.CustomerGateway, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CustomerGateway + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50369,7 +55614,7 @@ func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(v *[]string, dec return nil } -func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDedicatedHostIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { var sv []string if *v == nil { sv = make([]string, 0) @@ -50398,13 +55643,13 @@ func awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(v *[]st *v = sv return nil } -func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CoipAddressUsage + var sv *types.DeleteFleetError if *v == nil { - sv = &types.CoipAddressUsage{} + sv = &types.DeleteFleetError{} } else { sv = *v } @@ -50420,7 +55665,7 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("allocationId", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50430,10 +55675,10 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } { xtv := string(val) - sv.AllocationId = ptr.String(xtv) + sv.Code = types.DeleteFleetErrorCode(xtv) } - case strings.EqualFold("awsAccountId", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50443,23 +55688,52 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } { xtv := string(val) - sv.AwsAccountId = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("awsService", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.AwsService = ptr.String(xtv) + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.DeleteFleetErrorItem + if *v == nil { + sv = &types.DeleteFleetErrorItem{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("error", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDeleteFleetError(&sv.Error, nodeDecoder); err != nil { + return err } - case strings.EqualFold("coIp", t.Name.Local): + case strings.EqualFold("fleetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50469,7 +55743,7 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, } { xtv := string(val) - sv.CoIp = ptr.String(xtv) + sv.FleetId = ptr.String(xtv) } default: @@ -50486,13 +55760,13 @@ func awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, return nil } -func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CoipAddressUsage + var sv []types.DeleteFleetErrorItem if *v == nil { - sv = make([]types.CoipAddressUsage, 0) + sv = make([]types.DeleteFleetErrorItem, 0) } else { sv = *v } @@ -50508,10 +55782,10 @@ func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]types.CoipAddressUs } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CoipAddressUsage + var col types.DeleteFleetErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -50530,22 +55804,22 @@ func awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]types.CoipAddressUs return nil } -func awsEc2query_deserializeDocumentCoipAddressUsageSetUnwrapped(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error { - var sv []types.CoipAddressUsage +func awsEc2query_deserializeDocumentDeleteFleetErrorSetUnwrapped(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteFleetErrorItem if *v == nil { - sv = make([]types.CoipAddressUsage, 0) + sv = make([]types.DeleteFleetErrorItem, 0) } else { sv = *v } switch { default: - var mv types.CoipAddressUsage + var mv types.DeleteFleetErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -50554,13 +55828,13 @@ func awsEc2query_deserializeDocumentCoipAddressUsageSetUnwrapped(v *[]types.Coip *v = sv return nil } -func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CoipPool + var sv *types.DeleteFleetSuccessItem if *v == nil { - sv = &types.CoipPool{} + sv = &types.DeleteFleetSuccessItem{} } else { sv = *v } @@ -50576,7 +55850,7 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("localGatewayRouteTableId", t.Name.Local): + case strings.EqualFold("currentFleetState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50586,10 +55860,10 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx } { xtv := string(val) - sv.LocalGatewayRouteTableId = ptr.String(xtv) + sv.CurrentFleetState = types.FleetStateCode(xtv) } - case strings.EqualFold("poolArn", t.Name.Local): + case strings.EqualFold("fleetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50599,16 +55873,10 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx } { xtv := string(val) - sv.PoolArn = ptr.String(xtv) - } - - case strings.EqualFold("poolCidrSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValueStringList(&sv.PoolCidrs, nodeDecoder); err != nil { - return err + sv.FleetId = ptr.String(xtv) } - case strings.EqualFold("poolId", t.Name.Local): + case strings.EqualFold("previousFleetState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50618,13 +55886,7 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx } { xtv := string(val) - sv.PoolId = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.PreviousFleetState = types.FleetStateCode(xtv) } default: @@ -50641,13 +55903,13 @@ func awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyx return nil } -func awsEc2query_deserializeDocumentCoipPoolSet(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CoipPool + var sv []types.DeleteFleetSuccessItem if *v == nil { - sv = make([]types.CoipPool, 0) + sv = make([]types.DeleteFleetSuccessItem, 0) } else { sv = *v } @@ -50663,10 +55925,10 @@ func awsEc2query_deserializeDocumentCoipPoolSet(v *[]types.CoipPool, decoder smi } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CoipPool + var col types.DeleteFleetSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -50685,22 +55947,22 @@ func awsEc2query_deserializeDocumentCoipPoolSet(v *[]types.CoipPool, decoder smi return nil } -func awsEc2query_deserializeDocumentCoipPoolSetUnwrapped(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error { - var sv []types.CoipPool +func awsEc2query_deserializeDocumentDeleteFleetSuccessSetUnwrapped(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteFleetSuccessItem if *v == nil { - sv = make([]types.CoipPool, 0) + sv = make([]types.DeleteFleetSuccessItem, 0) } else { sv = *v } switch { default: - var mv types.CoipPool + var mv types.DeleteFleetSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -50709,13 +55971,13 @@ func awsEc2query_deserializeDocumentCoipPoolSetUnwrapped(v *[]types.CoipPool, de *v = sv return nil } -func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.ConnectionLogResponseOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(v **types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ConnectionLogResponseOptions + var sv *types.DeleteLaunchTemplateVersionsResponseErrorItem if *v == nil { - sv = &types.ConnectionLogResponseOptions{} + sv = &types.DeleteLaunchTemplateVersionsResponseErrorItem{} } else { sv = *v } @@ -50731,7 +55993,7 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("CloudwatchLogGroup", t.Name.Local): + case strings.EqualFold("launchTemplateId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50741,10 +56003,10 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne } { xtv := string(val) - sv.CloudwatchLogGroup = ptr.String(xtv) + sv.LaunchTemplateId = ptr.String(xtv) } - case strings.EqualFold("CloudwatchLogStream", t.Name.Local): + case strings.EqualFold("launchTemplateName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50754,10 +56016,16 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne } { xtv := string(val) - sv.CloudwatchLogStream = ptr.String(xtv) + sv.LaunchTemplateName = ptr.String(xtv) } - case strings.EqualFold("Enabled", t.Name.Local): + case strings.EqualFold("responseError", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentResponseError(&sv.ResponseError, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("versionNumber", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50766,11 +56034,12 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.Enabled = ptr.Bool(xtv) + sv.VersionNumber = ptr.Int64(i64) } default: @@ -50787,17 +56056,18 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne return nil } -func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ConnectionNotification + var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem if *v == nil { - sv = &types.ConnectionNotification{} + sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -50806,55 +56076,77 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("connectionEvents", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.DeleteLaunchTemplateVersionsResponseErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValueStringList(&sv.ConnectionEvents, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("connectionNotificationArn", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.ConnectionNotificationArn = ptr.String(xtv) - } - case strings.EqualFold("connectionNotificationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ConnectionNotificationId = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("connectionNotificationState", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ConnectionNotificationState = types.ConnectionNotificationState(xtv) - } +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem + if *v == nil { + sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) + } else { + sv = *v + } - case strings.EqualFold("connectionNotificationType", t.Name.Local): + switch { + default: + var mv types.DeleteLaunchTemplateVersionsResponseErrorItem + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(v **types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.DeleteLaunchTemplateVersionsResponseSuccessItem + if *v == nil { + sv = &types.DeleteLaunchTemplateVersionsResponseSuccessItem{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("launchTemplateId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50864,10 +56156,10 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } { xtv := string(val) - sv.ConnectionNotificationType = types.ConnectionNotificationType(xtv) + sv.LaunchTemplateId = ptr.String(xtv) } - case strings.EqualFold("serviceId", t.Name.Local): + case strings.EqualFold("launchTemplateName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50877,10 +56169,10 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } { xtv := string(val) - sv.ServiceId = ptr.String(xtv) + sv.LaunchTemplateName = ptr.String(xtv) } - case strings.EqualFold("vpcEndpointId", t.Name.Local): + case strings.EqualFold("versionNumber", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -50890,7 +56182,11 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN } { xtv := string(val) - sv.VpcEndpointId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -50907,13 +56203,13 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN return nil } -func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSet(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ConnectionNotification + var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem if *v == nil { - sv = make([]types.ConnectionNotification, 0) + sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) } else { sv = *v } @@ -50929,10 +56225,10 @@ func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]types.Connect } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ConnectionNotification + var col types.DeleteLaunchTemplateVersionsResponseSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -50951,22 +56247,22 @@ func awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]types.Connect return nil } -func awsEc2query_deserializeDocumentConnectionNotificationSetUnwrapped(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error { - var sv []types.ConnectionNotification +func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem if *v == nil { - sv = make([]types.ConnectionNotification, 0) + sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) } else { sv = *v } switch { default: - var mv types.ConnectionNotification + var mv types.DeleteLaunchTemplateVersionsResponseSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -50975,13 +56271,13 @@ func awsEc2query_deserializeDocumentConnectionNotificationSetUnwrapped(v *[]type *v = sv return nil } -func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types.DeleteQueuedReservedInstancesError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ConversionTask + var sv *types.DeleteQueuedReservedInstancesError if *v == nil { - sv = &types.ConversionTask{} + sv = &types.DeleteQueuedReservedInstancesError{} } else { sv = *v } @@ -50997,45 +56293,7 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("conversionTaskId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ConversionTaskId = ptr.String(xtv) - } - - case strings.EqualFold("expirationTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ExpirationTime = ptr.String(xtv) - } - - case strings.EqualFold("importInstance", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportInstanceTaskDetails(&sv.ImportInstance, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("importVolume", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportVolumeTaskDetails(&sv.ImportVolume, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51045,10 +56303,10 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec } { xtv := string(val) - sv.State = types.ConversionTaskState(xtv) + sv.Code = types.DeleteQueuedReservedInstancesErrorCode(xtv) } - case strings.EqualFold("statusMessage", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51058,13 +56316,7 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec } { xtv := string(val) - sv.StatusMessage = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.Message = ptr.String(xtv) } default: @@ -51081,13 +56333,13 @@ func awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, dec return nil } -func awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDeprovisionedAddressSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []int32 + var sv []string if *v == nil { - sv = make([]int32, 0) + sv = make([]string, 0) } else { sv = *v } @@ -51105,7 +56357,7 @@ func awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml. decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col int32 + var col string val, err := decoder.Value() if err != nil { return err @@ -51115,11 +56367,7 @@ func awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml. } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - col = int32(i64) + col = xtv } sv = append(sv, col) @@ -51136,17 +56384,17 @@ func awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml. return nil } -func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error { - var sv []int32 +func awsEc2query_deserializeDocumentDeprovisionedAddressSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]int32, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv int32 + var mv string t := decoder.StartEl _ = t val, err := decoder.Value() @@ -51158,24 +56406,20 @@ func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]int32, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - mv = int32(i64) + mv = xtv } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentCpuManufacturerSet(v *[]types.CpuManufacturer, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CpuManufacturer + var sv []types.ConversionTask if *v == nil { - sv = make([]types.CpuManufacturer, 0) + sv = make([]types.ConversionTask, 0) } else { sv = *v } @@ -51189,22 +56433,15 @@ func awsEc2query_deserializeDocumentCpuManufacturerSet(v *[]types.CpuManufacture if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.CpuManufacturer - val, err := decoder.Value() - if err != nil { + var col types.ConversionTask + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = types.CpuManufacturer(xtv) - } + col = *destAddr sv = append(sv, col) default: @@ -51220,42 +56457,37 @@ func awsEc2query_deserializeDocumentCpuManufacturerSet(v *[]types.CpuManufacture return nil } -func awsEc2query_deserializeDocumentCpuManufacturerSetUnwrapped(v *[]types.CpuManufacturer, decoder smithyxml.NodeDecoder) error { - var sv []types.CpuManufacturer +func awsEc2query_deserializeDocumentDescribeConversionTaskListUnwrapped(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ConversionTask if *v == nil { - sv = make([]types.CpuManufacturer, 0) + sv = make([]types.ConversionTask, 0) } else { sv = *v } switch { default: - var mv types.CpuManufacturer + var mv types.ConversionTask t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = types.CpuManufacturer(xtv) - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CpuOptions + var sv *types.DescribeFastSnapshotRestoreSuccessItem if *v == nil { - sv = &types.CpuOptions{} + sv = &types.DescribeFastSnapshotRestoreSuccessItem{} } else { sv = *v } @@ -51271,7 +56503,7 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("coreCount", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51281,14 +56513,10 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.CoreCount = ptr.Int32(int32(i64)) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("threadsPerCore", t.Name.Local): + case strings.EqualFold("disabledTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51298,50 +56526,31 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.ThreadsPerCore = ptr.Int32(int32(i64)) + sv.DisabledTime = ptr.Time(t) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("disablingTime", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.DisablingTime = ptr.Time(t) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CreateFleetError - if *v == nil { - sv = &types.CreateFleetError{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("errorCode", t.Name.Local): + case strings.EqualFold("enabledTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51351,10 +56560,14 @@ func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, } { xtv := string(val) - sv.ErrorCode = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EnabledTime = ptr.Time(t) } - case strings.EqualFold("errorMessage", t.Name.Local): + case strings.EqualFold("enablingTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51364,16 +56577,14 @@ func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, } { xtv := string(val) - sv.ErrorMessage = ptr.String(xtv) - } - - case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { - return err + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EnablingTime = ptr.Time(t) } - case strings.EqualFold("lifecycle", t.Name.Local): + case strings.EqualFold("optimizingTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51383,120 +56594,40 @@ func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, } { xtv := string(val) - sv.Lifecycle = types.InstanceLifecycle(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.OptimizingTime = ptr.Time(t) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ownerAlias", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.CreateFleetError - if *v == nil { - sv = make([]types.CreateFleetError, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.CreateFleetError - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerAlias = ptr.String(xtv) } - col = *destAddr - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("ownerId", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentCreateFleetErrorsSetUnwrapped(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error { - var sv []types.CreateFleetError - if *v == nil { - sv = make([]types.CreateFleetError, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CreateFleetError - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CreateFleetInstance - if *v == nil { - sv = &types.CreateFleetInstance{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceIds", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIdsSet(&sv.InstanceIds, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("snapshotId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51506,16 +56637,10 @@ func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetIns } { xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) - } - - case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { - return err + sv.SnapshotId = ptr.String(xtv) } - case strings.EqualFold("lifecycle", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51525,10 +56650,10 @@ func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetIns } { xtv := string(val) - sv.Lifecycle = types.InstanceLifecycle(xtv) + sv.State = types.FastSnapshotRestoreStateCode(xtv) } - case strings.EqualFold("platform", t.Name.Local): + case strings.EqualFold("stateTransitionReason", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51538,7 +56663,7 @@ func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetIns } { xtv := string(val) - sv.Platform = types.PlatformValues(xtv) + sv.StateTransitionReason = ptr.String(xtv) } default: @@ -51555,13 +56680,13 @@ func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetIns return nil } -func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CreateFleetInstance + var sv []types.DescribeFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]types.CreateFleetInstance, 0) + sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } @@ -51577,10 +56702,10 @@ func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]types.CreateFle } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CreateFleetInstance + var col types.DescribeFastSnapshotRestoreSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -51599,22 +56724,22 @@ func awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]types.CreateFle return nil } -func awsEc2query_deserializeDocumentCreateFleetInstancesSetUnwrapped(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error { - var sv []types.CreateFleetInstance +func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]types.CreateFleetInstance, 0) + sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } switch { default: - var mv types.CreateFleetInstance + var mv types.DescribeFastSnapshotRestoreSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -51623,13 +56748,13 @@ func awsEc2query_deserializeDocumentCreateFleetInstancesSetUnwrapped(v *[]types. *v = sv return nil } -func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CreateVolumePermission + var sv *types.DescribeFleetError if *v == nil { - sv = &types.CreateVolumePermission{} + sv = &types.DescribeFleetError{} } else { sv = *v } @@ -51645,7 +56770,7 @@ func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolum originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("group", t.Name.Local): + case strings.EqualFold("errorCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51655,10 +56780,10 @@ func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolum } { xtv := string(val) - sv.Group = types.PermissionGroup(xtv) + sv.ErrorCode = ptr.String(xtv) } - case strings.EqualFold("userId", t.Name.Local): + case strings.EqualFold("errorMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51668,7 +56793,26 @@ func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolum } { xtv := string(val) - sv.UserId = ptr.String(xtv) + sv.ErrorMessage = ptr.String(xtv) + } + + case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("lifecycle", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Lifecycle = types.InstanceLifecycle(xtv) } default: @@ -51685,13 +56829,13 @@ func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolum return nil } -func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CreateVolumePermission + var sv []types.DescribeFleetError if *v == nil { - sv = make([]types.CreateVolumePermission, 0) + sv = make([]types.DescribeFleetError, 0) } else { sv = *v } @@ -51707,10 +56851,10 @@ func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]types.Create } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CreateVolumePermission + var col types.DescribeFleetError nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -51729,22 +56873,22 @@ func awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]types.Create return nil } -func awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error { - var sv []types.CreateVolumePermission +func awsEc2query_deserializeDocumentDescribeFleetsErrorSetUnwrapped(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeFleetError if *v == nil { - sv = make([]types.CreateVolumePermission, 0) + sv = make([]types.DescribeFleetError, 0) } else { sv = *v } switch { default: - var mv types.CreateVolumePermission + var mv types.DescribeFleetError t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -51753,62 +56897,13 @@ func awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]typ *v = sv return nil } -func awsEc2query_deserializeDocumentCreditSpecification(v **types.CreditSpecification, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CreditSpecification - if *v == nil { - sv = &types.CreditSpecification{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("cpuCredits", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CpuCredits = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CustomerGateway + var sv *types.DescribeFleetsInstances if *v == nil { - sv = &types.CustomerGateway{} + sv = &types.DescribeFleetsInstances{} } else { sv = *v } @@ -51824,46 +56919,13 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("bgpAsn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.BgpAsn = ptr.String(xtv) - } - - case strings.EqualFold("certificateArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CertificateArn = ptr.String(xtv) - } - - case strings.EqualFold("customerGatewayId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("instanceIds", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIdsSet(&sv.InstanceIds, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.CustomerGatewayId = ptr.String(xtv) - } - case strings.EqualFold("deviceName", t.Name.Local): + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51873,23 +56935,16 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } { xtv := string(val) - sv.DeviceName = ptr.String(xtv) + sv.InstanceType = types.InstanceType(xtv) } - case strings.EqualFold("ipAddress", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddress = ptr.String(xtv) - } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("lifecycle", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51899,16 +56954,10 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } { xtv := string(val) - sv.State = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.Lifecycle = types.InstanceLifecycle(xtv) } - case strings.EqualFold("type", t.Name.Local): + case strings.EqualFold("platform", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -51918,7 +56967,7 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d } { xtv := string(val) - sv.Type = ptr.String(xtv) + sv.Platform = types.PlatformValues(xtv) } default: @@ -51935,13 +56984,13 @@ func awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, d return nil } -func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.CustomerGateway + var sv []types.DescribeFleetsInstances if *v == nil { - sv = make([]types.CustomerGateway, 0) + sv = make([]types.DescribeFleetsInstances, 0) } else { sv = *v } @@ -51957,10 +57006,10 @@ func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]types.CustomerGatew } switch { case strings.EqualFold("item", t.Name.Local): - var col types.CustomerGateway + var col types.DescribeFleetsInstances nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -51979,22 +57028,22 @@ func awsEc2query_deserializeDocumentCustomerGatewayList(v *[]types.CustomerGatew return nil } -func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error { - var sv []types.CustomerGateway +func awsEc2query_deserializeDocumentDescribeFleetsInstancesSetUnwrapped(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { + var sv []types.DescribeFleetsInstances if *v == nil { - sv = make([]types.CustomerGateway, 0) + sv = make([]types.DescribeFleetsInstances, 0) } else { sv = *v } switch { default: - var mv types.CustomerGateway + var mv types.DescribeFleetsInstances t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -52003,18 +57052,17 @@ func awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.Cust *v = sv return nil } -func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.DestinationOptionsResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.DestinationOptionsResponse if *v == nil { - sv = make([]string, 0) + sv = &types.DestinationOptionsResponse{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -52023,11 +57071,10 @@ func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smi if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col string + case strings.EqualFold("fileFormat", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52037,11 +57084,43 @@ func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smi } { xtv := string(val) - col = xtv + sv.FileFormat = types.DestinationFileFormat(xtv) + } + + case strings.EqualFold("hiveCompatiblePartitions", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.HiveCompatiblePartitions = ptr.Bool(xtv) + } + + case strings.EqualFold("perHourPartition", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.PerHourPartition = ptr.Bool(xtv) } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -52054,42 +57133,13 @@ func awsEc2query_deserializeDocumentDedicatedHostIdList(v *[]string, decoder smi return nil } -func awsEc2query_deserializeDocumentDedicatedHostIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteFleetError + var sv *types.DhcpConfiguration if *v == nil { - sv = &types.DeleteFleetError{} + sv = &types.DhcpConfiguration{} } else { sv = *v } @@ -52105,20 +57155,7 @@ func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.DeleteFleetErrorCode(xtv) - } - - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("key", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52128,7 +57165,13 @@ func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.Key = ptr.String(xtv) + } + + case strings.EqualFold("valueSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDhcpConfigurationValueList(&sv.Values, nodeDecoder); err != nil { + return err } default: @@ -52145,17 +57188,18 @@ func awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, return nil } -func awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteFleetErrorItem + var sv []types.DhcpConfiguration if *v == nil { - sv = &types.DeleteFleetErrorItem{} + sv = make([]types.DhcpConfiguration, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -52164,30 +57208,18 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetEr if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("error", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.DhcpConfiguration nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteFleetError(&sv.Error, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("fleetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.FleetId = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -52200,13 +57232,37 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetEr return nil } -func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpConfigurationListUnwrapped(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { + var sv []types.DhcpConfiguration + if *v == nil { + sv = make([]types.DhcpConfiguration, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.DhcpConfiguration + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DeleteFleetErrorItem + var sv []types.AttributeValue if *v == nil { - sv = make([]types.DeleteFleetErrorItem, 0) + sv = make([]types.AttributeValue, 0) } else { sv = *v } @@ -52222,10 +57278,10 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]types.DeleteFleetEr } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DeleteFleetErrorItem + var col types.AttributeValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -52244,22 +57300,22 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]types.DeleteFleetEr return nil } -func awsEc2query_deserializeDocumentDeleteFleetErrorSetUnwrapped(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DeleteFleetErrorItem +func awsEc2query_deserializeDocumentDhcpConfigurationValueListUnwrapped(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error { + var sv []types.AttributeValue if *v == nil { - sv = make([]types.DeleteFleetErrorItem, 0) + sv = make([]types.AttributeValue, 0) } else { sv = *v } switch { default: - var mv types.DeleteFleetErrorItem + var mv types.AttributeValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -52268,13 +57324,13 @@ func awsEc2query_deserializeDocumentDeleteFleetErrorSetUnwrapped(v *[]types.Dele *v = sv return nil } -func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteFleetSuccessItem + var sv *types.DhcpOptions if *v == nil { - sv = &types.DeleteFleetSuccessItem{} + sv = &types.DhcpOptions{} } else { sv = *v } @@ -52290,20 +57346,13 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleet originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("currentFleetState", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("dhcpConfigurationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDhcpConfigurationList(&sv.DhcpConfigurations, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.CurrentFleetState = types.FleetStateCode(xtv) - } - case strings.EqualFold("fleetId", t.Name.Local): + case strings.EqualFold("dhcpOptionsId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52313,10 +57362,10 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleet } { xtv := string(val) - sv.FleetId = ptr.String(xtv) + sv.DhcpOptionsId = ptr.String(xtv) } - case strings.EqualFold("previousFleetState", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52326,7 +57375,13 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleet } { xtv := string(val) - sv.PreviousFleetState = types.FleetStateCode(xtv) + sv.OwnerId = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } default: @@ -52343,13 +57398,13 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleet return nil } -func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDhcpOptionsList(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DeleteFleetSuccessItem + var sv []types.DhcpOptions if *v == nil { - sv = make([]types.DeleteFleetSuccessItem, 0) + sv = make([]types.DhcpOptions, 0) } else { sv = *v } @@ -52365,10 +57420,10 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]types.DeleteFleet } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DeleteFleetSuccessItem + var col types.DhcpOptions nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -52387,22 +57442,22 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]types.DeleteFleet return nil } -func awsEc2query_deserializeDocumentDeleteFleetSuccessSetUnwrapped(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DeleteFleetSuccessItem +func awsEc2query_deserializeDocumentDhcpOptionsListUnwrapped(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error { + var sv []types.DhcpOptions if *v == nil { - sv = make([]types.DeleteFleetSuccessItem, 0) + sv = make([]types.DhcpOptions, 0) } else { sv = *v } switch { default: - var mv types.DeleteFleetSuccessItem + var mv types.DhcpOptions t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -52411,13 +57466,13 @@ func awsEc2query_deserializeDocumentDeleteFleetSuccessSetUnwrapped(v *[]types.De *v = sv return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(v **types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.DirectoryServiceAuthentication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteLaunchTemplateVersionsResponseErrorItem + var sv *types.DirectoryServiceAuthentication if *v == nil { - sv = &types.DeleteLaunchTemplateVersionsResponseErrorItem{} + sv = &types.DirectoryServiceAuthentication{} } else { sv = *v } @@ -52433,7 +57488,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("launchTemplateId", t.Name.Local): + case strings.EqualFold("directoryId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52443,29 +57498,52 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte } { xtv := string(val) - sv.LaunchTemplateId = ptr.String(xtv) + sv.DirectoryId = ptr.String(xtv) } - case strings.EqualFold("launchTemplateName", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.LaunchTemplateName = ptr.String(xtv) - } - case strings.EqualFold("responseError", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.DisableFastSnapshotRestoreErrorItem + if *v == nil { + sv = &types.DisableFastSnapshotRestoreErrorItem{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("fastSnapshotRestoreStateErrorSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentResponseError(&sv.ResponseError, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(&sv.FastSnapshotRestoreStateErrors, nodeDecoder); err != nil { return err } - case strings.EqualFold("versionNumber", t.Name.Local): + case strings.EqualFold("snapshotId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52475,11 +57553,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.VersionNumber = ptr.Int64(i64) + sv.SnapshotId = ptr.String(xtv) } default: @@ -52496,13 +57570,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem + var sv []types.DisableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) + sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } @@ -52518,10 +57592,10 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DeleteLaunchTemplateVersionsResponseErrorItem + var col types.DisableFastSnapshotRestoreErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -52540,22 +57614,22 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DisableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0) + sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } switch { default: - var mv types.DeleteLaunchTemplateVersionsResponseErrorItem + var mv types.DisableFastSnapshotRestoreErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -52564,13 +57638,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet *v = sv return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(v **types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **types.DisableFastSnapshotRestoreStateError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteLaunchTemplateVersionsResponseSuccessItem + var sv *types.DisableFastSnapshotRestoreStateError if *v == nil { - sv = &types.DeleteLaunchTemplateVersionsResponseSuccessItem{} + sv = &types.DisableFastSnapshotRestoreStateError{} } else { sv = *v } @@ -52586,20 +57660,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("launchTemplateId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.LaunchTemplateId = ptr.String(xtv) - } - - case strings.EqualFold("launchTemplateName", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52609,10 +57670,10 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI } { xtv := string(val) - sv.LaunchTemplateName = ptr.String(xtv) + sv.Code = ptr.String(xtv) } - case strings.EqualFold("versionNumber", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52622,11 +57683,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.VersionNumber = ptr.Int64(i64) + sv.Message = ptr.String(xtv) } default: @@ -52643,81 +57700,13 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI return nil } -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSet(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem - if *v == nil { - sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.DeleteLaunchTemplateVersionsResponseSuccessItem - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem - if *v == nil { - sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.DeleteLaunchTemplateVersionsResponseSuccessItem - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types.DeleteQueuedReservedInstancesError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v **types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteQueuedReservedInstancesError + var sv *types.DisableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = &types.DeleteQueuedReservedInstancesError{} + sv = &types.DisableFastSnapshotRestoreStateErrorItem{} } else { sv = *v } @@ -52733,7 +57722,7 @@ func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -52743,21 +57732,14 @@ func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types } { xtv := string(val) - sv.Code = types.DeleteQueuedReservedInstancesErrorCode(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("message", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("error", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(&sv.Error, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -52773,13 +57755,13 @@ func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types return nil } -func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ConversionTask + var sv []types.DisableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = make([]types.ConversionTask, 0) + sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } @@ -52795,10 +57777,10 @@ func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]types.Conver } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ConversionTask + var col types.DisableFastSnapshotRestoreStateErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -52817,22 +57799,22 @@ func awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]types.Conver return nil } -func awsEc2query_deserializeDocumentDescribeConversionTaskListUnwrapped(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error { - var sv []types.ConversionTask +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DisableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = make([]types.ConversionTask, 0) + sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } switch { default: - var mv types.ConversionTask + var mv types.DisableFastSnapshotRestoreStateErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -52841,13 +57823,13 @@ func awsEc2query_deserializeDocumentDescribeConversionTaskListUnwrapped(v *[]typ *v = sv return nil } -func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DescribeFastSnapshotRestoreSuccessItem + var sv *types.DisableFastSnapshotRestoreSuccessItem if *v == nil { - sv = &types.DescribeFastSnapshotRestoreSuccessItem{} + sv = &types.DisableFastSnapshotRestoreSuccessItem{} } else { sv = *v } @@ -53040,13 +58022,13 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **t return nil } -func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DescribeFastSnapshotRestoreSuccessItem + var sv []types.DisableFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } @@ -53062,10 +58044,10 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]t } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DescribeFastSnapshotRestoreSuccessItem + var col types.DisableFastSnapshotRestoreSuccessItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -53084,22 +58066,22 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]t return nil } -func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DescribeFastSnapshotRestoreSuccessItem +func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.DisableFastSnapshotRestoreSuccessItem if *v == nil { - sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0) } else { sv = *v } switch { default: - var mv types.DescribeFastSnapshotRestoreSuccessItem + var mv types.DisableFastSnapshotRestoreSuccessItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -53108,13 +58090,13 @@ func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSetUnwrapp *v = sv return nil } -func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DescribeFleetError + var sv *types.DiskImageDescription if *v == nil { - sv = &types.DescribeFleetError{} + sv = &types.DiskImageDescription{} } else { sv = *v } @@ -53130,7 +58112,7 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("errorCode", t.Name.Local): + case strings.EqualFold("checksum", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53140,10 +58122,10 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr } { xtv := string(val) - sv.ErrorCode = ptr.String(xtv) + sv.Checksum = ptr.String(xtv) } - case strings.EqualFold("errorMessage", t.Name.Local): + case strings.EqualFold("format", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53153,16 +58135,23 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr } { xtv := string(val) - sv.ErrorMessage = ptr.String(xtv) + sv.Format = types.DiskImageFormat(xtv) } - case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { + case strings.EqualFold("importManifestUrl", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ImportManifestUrl = ptr.String(xtv) + } - case strings.EqualFold("lifecycle", t.Name.Local): + case strings.EqualFold("size", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53172,7 +58161,11 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr } { xtv := string(val) - sv.Lifecycle = types.InstanceLifecycle(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Size = ptr.Int64(i64) } default: @@ -53189,18 +58182,17 @@ func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetEr return nil } -func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskImageVolumeDescription, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DescribeFleetError + var sv *types.DiskImageVolumeDescription if *v == nil { - sv = make([]types.DescribeFleetError, 0) + sv = &types.DiskImageVolumeDescription{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -53209,18 +58201,41 @@ func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]types.DescribeFl if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.DescribeFleetError - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("id", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.Id = ptr.String(xtv) + } + + case strings.EqualFold("size", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Size = ptr.Int64(i64) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -53233,37 +58248,13 @@ func awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]types.DescribeFl return nil } -func awsEc2query_deserializeDocumentDescribeFleetsErrorSetUnwrapped(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error { - var sv []types.DescribeFleetError - if *v == nil { - sv = make([]types.DescribeFleetError, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.DescribeFleetError - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DescribeFleetsInstances + var sv *types.DiskInfo if *v == nil { - sv = &types.DescribeFleetsInstances{} + sv = &types.DiskInfo{} } else { sv = *v } @@ -53279,13 +58270,7 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFl originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceIds", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIdsSet(&sv.InstanceIds, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("count", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53295,16 +58280,14 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFl } { xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) - } - - case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Count = ptr.Int32(int32(i64)) } - case strings.EqualFold("lifecycle", t.Name.Local): + case strings.EqualFold("sizeInGB", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53314,10 +58297,14 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFl } { xtv := string(val) - sv.Lifecycle = types.InstanceLifecycle(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.SizeInGB = ptr.Int64(i64) } - case strings.EqualFold("platform", t.Name.Local): + case strings.EqualFold("type", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53327,7 +58314,7 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFl } { xtv := string(val) - sv.Platform = types.PlatformValues(xtv) + sv.Type = types.DiskType(xtv) } default: @@ -53344,13 +58331,13 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFl return nil } -func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DescribeFleetsInstances + var sv []types.DiskInfo if *v == nil { - sv = make([]types.DescribeFleetsInstances, 0) + sv = make([]types.DiskInfo, 0) } else { sv = *v } @@ -53366,10 +58353,10 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]types.Descri } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DescribeFleetsInstances + var col types.DiskInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -53388,22 +58375,22 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]types.Descri return nil } -func awsEc2query_deserializeDocumentDescribeFleetsInstancesSetUnwrapped(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error { - var sv []types.DescribeFleetsInstances +func awsEc2query_deserializeDocumentDiskInfoListUnwrapped(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.DiskInfo if *v == nil { - sv = make([]types.DescribeFleetsInstances, 0) + sv = make([]types.DiskInfo, 0) } else { sv = *v } switch { default: - var mv types.DescribeFleetsInstances + var mv types.DiskInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -53412,13 +58399,13 @@ func awsEc2query_deserializeDocumentDescribeFleetsInstancesSetUnwrapped(v *[]typ *v = sv return nil } -func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.DestinationOptionsResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DestinationOptionsResponse + var sv *types.DnsEntry if *v == nil { - sv = &types.DestinationOptionsResponse{} + sv = &types.DnsEntry{} } else { sv = *v } @@ -53434,7 +58421,7 @@ func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.Destina originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("fileFormat", t.Name.Local): + case strings.EqualFold("dnsName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53444,10 +58431,10 @@ func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.Destina } { xtv := string(val) - sv.FileFormat = types.DestinationFileFormat(xtv) + sv.DnsName = ptr.String(xtv) } - case strings.EqualFold("hiveCompatiblePartitions", t.Name.Local): + case strings.EqualFold("hostedZoneId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53456,31 +58443,56 @@ func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.Destina break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.HiveCompatiblePartitions = ptr.Bool(xtv) + xtv := string(val) + sv.HostedZoneId = ptr.String(xtv) } - case strings.EqualFold("perHourPartition", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.PerHourPartition = ptr.Bool(xtv) + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentDnsEntrySet(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.DnsEntry + if *v == nil { + sv = make([]types.DnsEntry, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.DnsEntry + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil { + return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -53493,13 +58505,37 @@ func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.Destina return nil } -func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentDnsEntrySetUnwrapped(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.DnsEntry + if *v == nil { + sv = make([]types.DnsEntry, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.DnsEntry + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DhcpConfiguration + var sv *types.EbsBlockDevice if *v == nil { - sv = &types.DhcpConfiguration{} + sv = &types.EbsBlockDevice{} } else { sv = *v } @@ -53515,7 +58551,39 @@ func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguratio originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("key", t.Name.Local): + case strings.EqualFold("deleteOnTermination", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.DeleteOnTermination = ptr.Bool(xtv) + } + + case strings.EqualFold("encrypted", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Encrypted = ptr.Bool(xtv) + } + + case strings.EqualFold("iops", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53525,14 +58593,98 @@ func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguratio } { xtv := string(val) - sv.Key = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Iops = ptr.Int32(int32(i64)) } - case strings.EqualFold("valueSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDhcpConfigurationValueList(&sv.Values, nodeDecoder); err != nil { + case strings.EqualFold("KmsKeyId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.KmsKeyId = ptr.String(xtv) + } + + case strings.EqualFold("outpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OutpostArn = ptr.String(xtv) + } + + case strings.EqualFold("snapshotId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SnapshotId = ptr.String(xtv) + } + + case strings.EqualFold("throughput", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Throughput = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("volumeSize", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.VolumeSize = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("volumeType", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.VolumeType = types.VolumeType(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -53548,18 +58700,17 @@ func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguratio return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEbsInfo(v **types.EbsInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DhcpConfiguration + var sv *types.EbsInfo if *v == nil { - sv = make([]types.DhcpConfiguration, 0) + sv = &types.EbsInfo{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -53568,18 +58719,56 @@ func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]types.DhcpConfigu if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.DhcpConfiguration + case strings.EqualFold("ebsOptimizedInfo", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentEbsOptimizedInfo(&sv.EbsOptimizedInfo, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) + + case strings.EqualFold("ebsOptimizedSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EbsOptimizedSupport = types.EbsOptimizedSupport(xtv) + } + + case strings.EqualFold("encryptionSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EncryptionSupport = types.EbsEncryptionSupport(xtv) + } + + case strings.EqualFold("nvmeSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NvmeSupport = types.EbsNvmeSupport(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -53592,42 +58781,17 @@ func awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]types.DhcpConfigu return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationListUnwrapped(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error { - var sv []types.DhcpConfiguration - if *v == nil { - sv = make([]types.DhcpConfiguration, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.DhcpConfiguration - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstanceBlockDevice, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.AttributeValue + var sv *types.EbsInstanceBlockDevice if *v == nil { - sv = make([]types.AttributeValue, 0) + sv = &types.EbsInstanceBlockDevice{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -53636,18 +58800,70 @@ func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]types.Attrib if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.AttributeValue - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("attachTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.AttachTime = ptr.Time(t) + } + + case strings.EqualFold("deleteOnTermination", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.DeleteOnTermination = ptr.Bool(xtv) + } + + case strings.EqualFold("status", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.AttachmentStatus(xtv) + } + + case strings.EqualFold("volumeId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VolumeId = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -53660,37 +58876,13 @@ func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]types.Attrib return nil } -func awsEc2query_deserializeDocumentDhcpConfigurationValueListUnwrapped(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error { - var sv []types.AttributeValue - if *v == nil { - sv = make([]types.AttributeValue, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.AttributeValue - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DhcpOptions + var sv *types.EbsOptimizedInfo if *v == nil { - sv = &types.DhcpOptions{} + sv = &types.EbsOptimizedInfo{} } else { sv = *v } @@ -53706,13 +58898,75 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("dhcpConfigurationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDhcpConfigurationList(&sv.DhcpConfigurations, nodeDecoder); err != nil { + case strings.EqualFold("baselineBandwidthInMbps", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.BaselineBandwidthInMbps = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("baselineIops", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.BaselineIops = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("baselineThroughputInMBps", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.BaselineThroughputInMBps = ptr.Float64(f64) + } + + case strings.EqualFold("maximumBandwidthInMbps", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumBandwidthInMbps = ptr.Int32(int32(i64)) + } - case strings.EqualFold("dhcpOptionsId", t.Name.Local): + case strings.EqualFold("maximumIops", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53722,10 +58976,14 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s } { xtv := string(val) - sv.DhcpOptionsId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumIops = ptr.Int32(int32(i64)) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("maximumThroughputInMBps", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53735,13 +58993,11 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.MaximumThroughputInMBps = ptr.Float64(f64) } default: @@ -53758,81 +59014,13 @@ func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder s return nil } -func awsEc2query_deserializeDocumentDhcpOptionsList(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.DhcpOptions - if *v == nil { - sv = make([]types.DhcpOptions, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.DhcpOptions - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentDhcpOptionsListUnwrapped(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error { - var sv []types.DhcpOptions - if *v == nil { - sv = make([]types.DhcpOptions, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.DhcpOptions - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.DirectoryServiceAuthentication, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DirectoryServiceAuthentication + var sv *types.EfaInfo if *v == nil { - sv = &types.DirectoryServiceAuthentication{} + sv = &types.EfaInfo{} } else { sv = *v } @@ -53848,7 +59036,7 @@ func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.Dir originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("directoryId", t.Name.Local): + case strings.EqualFold("maximumEfaInterfaces", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53858,7 +59046,11 @@ func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.Dir } { xtv := string(val) - sv.DirectoryId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumEfaInterfaces = ptr.Int32(int32(i64)) } default: @@ -53875,13 +59067,13 @@ func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.Dir return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DisableFastSnapshotRestoreErrorItem + var sv *types.EgressOnlyInternetGateway if *v == nil { - sv = &types.DisableFastSnapshotRestoreErrorItem{} + sv = &types.EgressOnlyInternetGateway{} } else { sv = *v } @@ -53897,13 +59089,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **type originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("fastSnapshotRestoreStateErrorSet", t.Name.Local): + case strings.EqualFold("attachmentSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(&sv.FastSnapshotRestoreStateErrors, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInternetGatewayAttachmentList(&sv.Attachments, nodeDecoder); err != nil { return err } - case strings.EqualFold("snapshotId", t.Name.Local): + case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -53913,7 +59105,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **type } { xtv := string(val) - sv.SnapshotId = ptr.String(xtv) + sv.EgressOnlyInternetGatewayId = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } default: @@ -53930,13 +59128,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **type return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DisableFastSnapshotRestoreErrorItem + var sv []types.EgressOnlyInternetGateway if *v == nil { - sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.EgressOnlyInternetGateway, 0) } else { sv = *v } @@ -53952,10 +59150,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]type } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DisableFastSnapshotRestoreErrorItem + var col types.EgressOnlyInternetGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -53974,22 +59172,22 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]type return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DisableFastSnapshotRestoreErrorItem +func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayListUnwrapped(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.EgressOnlyInternetGateway if *v == nil { - sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.EgressOnlyInternetGateway, 0) } else { sv = *v } switch { default: - var mv types.DisableFastSnapshotRestoreErrorItem + var mv types.EgressOnlyInternetGateway t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -53998,13 +59196,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSetUnwrapped( *v = sv return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **types.DisableFastSnapshotRestoreStateError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DisableFastSnapshotRestoreStateError + var sv *types.ElasticGpuAssociation if *v == nil { - sv = &types.DisableFastSnapshotRestoreStateError{} + sv = &types.ElasticGpuAssociation{} } else { sv = *v } @@ -54020,7 +59218,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **typ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("elasticGpuAssociationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54030,10 +59228,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **typ } { xtv := string(val) - sv.Code = ptr.String(xtv) + sv.ElasticGpuAssociationId = ptr.String(xtv) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("elasticGpuAssociationState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54043,46 +59241,23 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **typ } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.ElasticGpuAssociationState = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("elasticGpuAssociationTime", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ElasticGpuAssociationTime = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v **types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DisableFastSnapshotRestoreStateErrorItem - if *v == nil { - sv = &types.DisableFastSnapshotRestoreStateErrorItem{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("elasticGpuId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54092,13 +59267,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v * } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("error", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(&sv.Error, nodeDecoder); err != nil { - return err + sv.ElasticGpuId = ptr.String(xtv) } default: @@ -54115,13 +59284,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v * return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DisableFastSnapshotRestoreStateErrorItem + var sv []types.ElasticGpuAssociation if *v == nil { - sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.ElasticGpuAssociation, 0) } else { sv = *v } @@ -54137,10 +59306,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[ } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DisableFastSnapshotRestoreStateErrorItem + var col types.ElasticGpuAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -54159,22 +59328,22 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[ return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DisableFastSnapshotRestoreStateErrorItem +func awsEc2query_deserializeDocumentElasticGpuAssociationListUnwrapped(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticGpuAssociation if *v == nil { - sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.ElasticGpuAssociation, 0) } else { sv = *v } switch { default: - var mv types.DisableFastSnapshotRestoreStateErrorItem + var mv types.ElasticGpuAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -54183,13 +59352,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSetUnwra *v = sv return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuHealth(v **types.ElasticGpuHealth, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DisableFastSnapshotRestoreSuccessItem + var sv *types.ElasticGpuHealth if *v == nil { - sv = &types.DisableFastSnapshotRestoreSuccessItem{} + sv = &types.ElasticGpuHealth{} } else { sv = *v } @@ -54205,7 +59374,7 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54215,61 +59384,46 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + sv.Status = types.ElasticGpuStatus(xtv) } - case strings.EqualFold("disabledTime", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.DisabledTime = ptr.Time(t) - } - case strings.EqualFold("disablingTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.DisablingTime = ptr.Time(t) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("enabledTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.EnabledTime = ptr.Time(t) - } +func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ElasticGpus + if *v == nil { + sv = &types.ElasticGpus{} + } else { + sv = *v + } - case strings.EqualFold("enablingTime", t.Name.Local): + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54279,31 +59433,16 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.EnablingTime = ptr.Time(t) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("optimizingTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("elasticGpuHealth", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentElasticGpuHealth(&sv.ElasticGpuHealth, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.OptimizingTime = ptr.Time(t) - } - case strings.EqualFold("ownerAlias", t.Name.Local): + case strings.EqualFold("elasticGpuId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54313,10 +59452,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } { xtv := string(val) - sv.OwnerAlias = ptr.String(xtv) + sv.ElasticGpuId = ptr.String(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("elasticGpuState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54326,10 +59465,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + sv.ElasticGpuState = types.ElasticGpuState(xtv) } - case strings.EqualFold("snapshotId", t.Name.Local): + case strings.EqualFold("elasticGpuType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54339,10 +59478,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } { xtv := string(val) - sv.SnapshotId = ptr.String(xtv) + sv.ElasticGpuType = ptr.String(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54352,21 +59491,14 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty } { xtv := string(val) - sv.State = types.FastSnapshotRestoreStateCode(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("stateTransitionReason", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.StateTransitionReason = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -54382,13 +59514,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **ty return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuSet(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DisableFastSnapshotRestoreSuccessItem + var sv []types.ElasticGpus if *v == nil { - sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.ElasticGpus, 0) } else { sv = *v } @@ -54404,10 +59536,10 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]ty } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DisableFastSnapshotRestoreSuccessItem + var col types.ElasticGpus nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -54426,22 +59558,22 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]ty return nil } -func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []types.DisableFastSnapshotRestoreSuccessItem +func awsEc2query_deserializeDocumentElasticGpuSetUnwrapped(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticGpus if *v == nil { - sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.ElasticGpus, 0) } else { sv = *v } switch { default: - var mv types.DisableFastSnapshotRestoreSuccessItem + var mv types.ElasticGpus t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -54450,13 +59582,13 @@ func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSetUnwrappe *v = sv return nil } -func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDescription, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DiskImageDescription + var sv *types.ElasticGpuSpecificationResponse if *v == nil { - sv = &types.DiskImageDescription{} + sv = &types.ElasticGpuSpecificationResponse{} } else { sv = *v } @@ -54472,46 +59604,7 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("checksum", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Checksum = ptr.String(xtv) - } - - case strings.EqualFold("format", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Format = types.DiskImageFormat(xtv) - } - - case strings.EqualFold("importManifestUrl", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ImportManifestUrl = ptr.String(xtv) - } - - case strings.EqualFold("size", t.Name.Local): + case strings.EqualFold("type", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54521,11 +59614,7 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Size = ptr.Int64(i64) + sv.Type = ptr.String(xtv) } default: @@ -54542,17 +59631,18 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc return nil } -func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskImageVolumeDescription, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DiskImageVolumeDescription + var sv []types.ElasticGpuSpecificationResponse if *v == nil { - sv = &types.DiskImageVolumeDescription{} + sv = make([]types.ElasticGpuSpecificationResponse, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -54561,41 +59651,18 @@ func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskIma if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("id", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) - } - - case strings.EqualFold("size", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.ElasticGpuSpecificationResponse + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Size = ptr.Int64(i64) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -54608,13 +59675,37 @@ func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskIma return nil } -func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseListUnwrapped(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticGpuSpecificationResponse + if *v == nil { + sv = make([]types.ElasticGpuSpecificationResponse, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ElasticGpuSpecificationResponse + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DiskInfo + var sv *types.ElasticInferenceAcceleratorAssociation if *v == nil { - sv = &types.DiskInfo{} + sv = &types.ElasticInferenceAcceleratorAssociation{} } else { sv = *v } @@ -54630,7 +59721,7 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("count", t.Name.Local): + case strings.EqualFold("elasticInferenceAcceleratorArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54640,14 +59731,10 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Count = ptr.Int32(int32(i64)) + sv.ElasticInferenceAcceleratorArn = ptr.String(xtv) } - case strings.EqualFold("sizeInGB", t.Name.Local): + case strings.EqualFold("elasticInferenceAcceleratorAssociationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54657,14 +59744,10 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SizeInGB = ptr.Int64(i64) + sv.ElasticInferenceAcceleratorAssociationId = ptr.String(xtv) } - case strings.EqualFold("type", t.Name.Local): + case strings.EqualFold("elasticInferenceAcceleratorAssociationState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54674,7 +59757,24 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx } { xtv := string(val) - sv.Type = types.DiskType(xtv) + sv.ElasticInferenceAcceleratorAssociationState = ptr.String(xtv) + } + + case strings.EqualFold("elasticInferenceAcceleratorAssociationTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ElasticInferenceAcceleratorAssociationTime = ptr.Time(t) } default: @@ -54691,13 +59791,13 @@ func awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyx return nil } -func awsEc2query_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DiskInfo + var sv []types.ElasticInferenceAcceleratorAssociation if *v == nil { - sv = make([]types.DiskInfo, 0) + sv = make([]types.ElasticInferenceAcceleratorAssociation, 0) } else { sv = *v } @@ -54713,10 +59813,10 @@ func awsEc2query_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, decoder sm } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DiskInfo + var col types.ElasticInferenceAcceleratorAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -54735,22 +59835,22 @@ func awsEc2query_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, decoder sm return nil } -func awsEc2query_deserializeDocumentDiskInfoListUnwrapped(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error { - var sv []types.DiskInfo +func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationListUnwrapped(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.ElasticInferenceAcceleratorAssociation if *v == nil { - sv = make([]types.DiskInfo, 0) + sv = make([]types.ElasticInferenceAcceleratorAssociation, 0) } else { sv = *v } switch { default: - var mv types.DiskInfo + var mv types.ElasticInferenceAcceleratorAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -54759,13 +59859,13 @@ func awsEc2query_deserializeDocumentDiskInfoListUnwrapped(v *[]types.DiskInfo, d *v = sv return nil } -func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DnsEntry + var sv *types.EnableFastSnapshotRestoreErrorItem if *v == nil { - sv = &types.DnsEntry{} + sv = &types.EnableFastSnapshotRestoreErrorItem{} } else { sv = *v } @@ -54781,20 +59881,13 @@ func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("dnsName", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("fastSnapshotRestoreStateErrorSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(&sv.FastSnapshotRestoreStateErrors, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.DnsName = ptr.String(xtv) - } - case strings.EqualFold("hostedZoneId", t.Name.Local): + case strings.EqualFold("snapshotId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54804,7 +59897,7 @@ func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyx } { xtv := string(val) - sv.HostedZoneId = ptr.String(xtv) + sv.SnapshotId = ptr.String(xtv) } default: @@ -54821,13 +59914,13 @@ func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyx return nil } -func awsEc2query_deserializeDocumentDnsEntrySet(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DnsEntry + var sv []types.EnableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]types.DnsEntry, 0) + sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } @@ -54843,10 +59936,10 @@ func awsEc2query_deserializeDocumentDnsEntrySet(v *[]types.DnsEntry, decoder smi } switch { case strings.EqualFold("item", t.Name.Local): - var col types.DnsEntry + var col types.EnableFastSnapshotRestoreErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -54865,22 +59958,22 @@ func awsEc2query_deserializeDocumentDnsEntrySet(v *[]types.DnsEntry, decoder smi return nil } -func awsEc2query_deserializeDocumentDnsEntrySetUnwrapped(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error { - var sv []types.DnsEntry +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.EnableFastSnapshotRestoreErrorItem if *v == nil { - sv = make([]types.DnsEntry, 0) + sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0) } else { sv = *v } switch { default: - var mv types.DnsEntry + var mv types.EnableFastSnapshotRestoreErrorItem t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -54889,13 +59982,13 @@ func awsEc2query_deserializeDocumentDnsEntrySetUnwrapped(v *[]types.DnsEntry, de *v = sv return nil } -func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **types.EnableFastSnapshotRestoreStateError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EbsBlockDevice + var sv *types.EnableFastSnapshotRestoreStateError if *v == nil { - sv = &types.EbsBlockDevice{} + sv = &types.EnableFastSnapshotRestoreStateError{} } else { sv = *v } @@ -54911,39 +60004,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("deleteOnTermination", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.DeleteOnTermination = ptr.Bool(xtv) - } - - case strings.EqualFold("encrypted", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Encrypted = ptr.Bool(xtv) - } - - case strings.EqualFold("iops", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54953,14 +60014,10 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Iops = ptr.Int32(int32(i64)) + sv.Code = ptr.String(xtv) } - case strings.EqualFold("KmsKeyId", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -54970,53 +60027,46 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec } { xtv := string(val) - sv.KmsKeyId = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("outpostArn", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.OutpostArn = ptr.String(xtv) - } - case strings.EqualFold("snapshotId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SnapshotId = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("throughput", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Throughput = ptr.Int32(int32(i64)) - } +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v **types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.EnableFastSnapshotRestoreStateErrorItem + if *v == nil { + sv = &types.EnableFastSnapshotRestoreStateErrorItem{} + } else { + sv = *v + } - case strings.EqualFold("volumeSize", t.Name.Local): + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55026,25 +60076,14 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.VolumeSize = ptr.Int32(int32(i64)) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("volumeType", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("error", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(&sv.Error, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.VolumeType = types.VolumeType(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -55060,17 +60099,18 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec return nil } -func awsEc2query_deserializeDocumentEbsInfo(v **types.EbsInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EbsInfo + var sv []types.EnableFastSnapshotRestoreStateErrorItem if *v == nil { - sv = &types.EbsInfo{} + sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -55079,56 +60119,18 @@ func awsEc2query_deserializeDocumentEbsInfo(v **types.EbsInfo, decoder smithyxml if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ebsOptimizedInfo", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.EnableFastSnapshotRestoreStateErrorItem nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEbsOptimizedInfo(&sv.EbsOptimizedInfo, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ebsOptimizedSupport", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EbsOptimizedSupport = types.EbsOptimizedSupport(xtv) - } - - case strings.EqualFold("encryptionSupport", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EncryptionSupport = types.EbsEncryptionSupport(xtv) - } - - case strings.EqualFold("nvmeSupport", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NvmeSupport = types.EbsNvmeSupport(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -55141,13 +60143,37 @@ func awsEc2query_deserializeDocumentEbsInfo(v **types.EbsInfo, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstanceBlockDevice, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { + var sv []types.EnableFastSnapshotRestoreStateErrorItem + if *v == nil { + sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.EnableFastSnapshotRestoreStateErrorItem + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EbsInstanceBlockDevice + var sv *types.EnableFastSnapshotRestoreSuccessItem if *v == nil { - sv = &types.EbsInstanceBlockDevice{} + sv = &types.EnableFastSnapshotRestoreSuccessItem{} } else { sv = *v } @@ -55163,7 +60189,7 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("attachTime", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55173,14 +60199,10 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.AttachTime = ptr.Time(t) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("deleteOnTermination", t.Name.Local): + case strings.EqualFold("disabledTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55189,14 +60211,15 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.DeleteOnTermination = ptr.Bool(xtv) + sv.DisabledTime = ptr.Time(t) } - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("disablingTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55206,10 +60229,14 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance } { xtv := string(val) - sv.Status = types.AttachmentStatus(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.DisablingTime = ptr.Time(t) } - case strings.EqualFold("volumeId", t.Name.Local): + case strings.EqualFold("enabledTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55219,46 +60246,31 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance } { xtv := string(val) - sv.VolumeId = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EnabledTime = ptr.Time(t) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("enablingTime", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EnablingTime = ptr.Time(t) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.EbsOptimizedInfo - if *v == nil { - sv = &types.EbsOptimizedInfo{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("baselineBandwidthInMbps", t.Name.Local): + case strings.EqualFold("optimizingTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55268,14 +60280,14 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.BaselineBandwidthInMbps = ptr.Int32(int32(i64)) + sv.OptimizingTime = ptr.Time(t) } - case strings.EqualFold("baselineIops", t.Name.Local): + case strings.EqualFold("ownerAlias", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55285,14 +60297,10 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.BaselineIops = ptr.Int32(int32(i64)) + sv.OwnerAlias = ptr.String(xtv) } - case strings.EqualFold("baselineThroughputInMBps", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55302,14 +60310,10 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.BaselineThroughputInMBps = ptr.Float64(f64) + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("maximumBandwidthInMbps", t.Name.Local): + case strings.EqualFold("snapshotId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55319,14 +60323,10 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.MaximumBandwidthInMbps = ptr.Int32(int32(i64)) + sv.SnapshotId = ptr.String(xtv) } - case strings.EqualFold("maximumIops", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55336,14 +60336,10 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.MaximumIops = ptr.Int32(int32(i64)) + sv.State = types.FastSnapshotRestoreStateCode(xtv) } - case strings.EqualFold("maximumThroughputInMBps", t.Name.Local): + case strings.EqualFold("stateTransitionReason", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55353,11 +60349,7 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.MaximumThroughputInMBps = ptr.Float64(f64) + sv.StateTransitionReason = ptr.String(xtv) } default: @@ -55368,19 +60360,87 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, } } - decoder = originalDecoder + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.EnableFastSnapshotRestoreSuccessItem + if *v == nil { + sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.EnableFastSnapshotRestoreSuccessItem + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { + var sv []types.EnableFastSnapshotRestoreSuccessItem + if *v == nil { + sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.EnableFastSnapshotRestoreSuccessItem + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EfaInfo + var sv *types.EnclaveOptions if *v == nil { - sv = &types.EfaInfo{} + sv = &types.EnclaveOptions{} } else { sv = *v } @@ -55396,7 +60456,7 @@ func awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("maximumEfaInterfaces", t.Name.Local): + case strings.EqualFold("enabled", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55405,12 +60465,11 @@ func awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml break } { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MaximumEfaInterfaces = ptr.Int32(int32(i64)) + sv.Enabled = ptr.Bool(xtv) } default: @@ -55427,17 +60486,18 @@ func awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEndpointSet(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EgressOnlyInternetGateway + var sv []types.ClientVpnEndpoint if *v == nil { - sv = &types.EgressOnlyInternetGateway{} + sv = make([]types.ClientVpnEndpoint, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -55446,36 +60506,18 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOn if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("attachmentSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGatewayAttachmentList(&sv.Attachments, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EgressOnlyInternetGatewayId = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.ClientVpnEndpoint nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -55488,13 +60530,37 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOn return nil } -func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEndpointSetUnwrapped(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { + var sv []types.ClientVpnEndpoint + if *v == nil { + sv = make([]types.ClientVpnEndpoint, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ClientVpnEndpoint + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentErrorSet(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.EgressOnlyInternetGateway + var sv []types.ValidationError if *v == nil { - sv = make([]types.EgressOnlyInternetGateway, 0) + sv = make([]types.ValidationError, 0) } else { sv = *v } @@ -55510,10 +60576,10 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]types.Egr } switch { case strings.EqualFold("item", t.Name.Local): - var col types.EgressOnlyInternetGateway + var col types.ValidationError nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -55532,22 +60598,22 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]types.Egr return nil } -func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayListUnwrapped(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { - var sv []types.EgressOnlyInternetGateway +func awsEc2query_deserializeDocumentErrorSetUnwrapped(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error { + var sv []types.ValidationError if *v == nil { - sv = make([]types.EgressOnlyInternetGateway, 0) + sv = make([]types.ValidationError, 0) } else { sv = *v } switch { default: - var mv types.EgressOnlyInternetGateway + var mv types.ValidationError t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -55556,13 +60622,13 @@ func awsEc2query_deserializeDocumentEgressOnlyInternetGatewayListUnwrapped(v *[] *v = sv return nil } -func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ElasticGpuAssociation + var sv *types.EventInformation if *v == nil { - sv = &types.ElasticGpuAssociation{} + sv = &types.EventInformation{} } else { sv = *v } @@ -55578,20 +60644,7 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("elasticGpuAssociationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ElasticGpuAssociationId = ptr.String(xtv) - } - - case strings.EqualFold("elasticGpuAssociationState", t.Name.Local): + case strings.EqualFold("eventDescription", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55601,10 +60654,10 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } { xtv := string(val) - sv.ElasticGpuAssociationState = ptr.String(xtv) + sv.EventDescription = ptr.String(xtv) } - case strings.EqualFold("elasticGpuAssociationTime", t.Name.Local): + case strings.EqualFold("eventSubType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55614,10 +60667,10 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } { xtv := string(val) - sv.ElasticGpuAssociationTime = ptr.String(xtv) + sv.EventSubType = ptr.String(xtv) } - case strings.EqualFold("elasticGpuId", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55627,7 +60680,7 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs } { xtv := string(val) - sv.ElasticGpuId = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } default: @@ -55644,13 +60697,13 @@ func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAs return nil } -func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExcludedInstanceTypeSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ElasticGpuAssociation + var sv []string if *v == nil { - sv = make([]types.ElasticGpuAssociation, 0) + sv = make([]string, 0) } else { sv = *v } @@ -55664,15 +60717,22 @@ func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]types.Elastic if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.ElasticGpuAssociation - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil { + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -55688,37 +60748,42 @@ func awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]types.Elastic return nil } -func awsEc2query_deserializeDocumentElasticGpuAssociationListUnwrapped(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error { - var sv []types.ElasticGpuAssociation +func awsEc2query_deserializeDocumentExcludedInstanceTypeSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.ElasticGpuAssociation, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.ElasticGpuAssociation + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentElasticGpuHealth(v **types.ElasticGpuHealth, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ElasticGpuHealth + var sv *types.Explanation if *v == nil { - sv = &types.ElasticGpuHealth{} + sv = &types.Explanation{} } else { sv = *v } @@ -55734,7 +60799,19 @@ func awsEc2query_deserializeDocumentElasticGpuHealth(v **types.ElasticGpuHealth, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("acl", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Acl, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("aclRule", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisAclRule(&sv.AclRule, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("address", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55744,46 +60821,64 @@ func awsEc2query_deserializeDocumentElasticGpuHealth(v **types.ElasticGpuHealth, } { xtv := string(val) - sv.Status = types.ElasticGpuStatus(xtv) + sv.Address = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("addressSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpAddressList(&sv.Addresses, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("attachedTo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.AttachedTo, nodeDecoder); err != nil { + return err + } -func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ElasticGpus - if *v == nil { - sv = &types.ElasticGpus{} - } else { - sv = *v - } + case strings.EqualFold("availabilityZoneSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.AvailabilityZones, nodeDecoder); err != nil { + return err + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("cidrSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.Cidrs, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("classicLoadBalancerListener", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(&sv.ClassicLoadBalancerListener, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("component", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Component, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("customerGateway", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.CustomerGateway, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("destination", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Destination, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("destinationVpc", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.DestinationVpc, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("direction", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55793,16 +60888,16 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + sv.Direction = ptr.String(xtv) } - case strings.EqualFold("elasticGpuHealth", t.Name.Local): + case strings.EqualFold("elasticLoadBalancerListener", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpuHealth(&sv.ElasticGpuHealth, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.ElasticLoadBalancerListener, nodeDecoder); err != nil { return err } - case strings.EqualFold("elasticGpuId", t.Name.Local): + case strings.EqualFold("explanationCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55812,10 +60907,22 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } { xtv := string(val) - sv.ElasticGpuId = ptr.String(xtv) + sv.ExplanationCode = ptr.String(xtv) } - case strings.EqualFold("elasticGpuState", t.Name.Local): + case strings.EqualFold("ingressRouteTable", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.IngressRouteTable, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("internetGateway", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.InternetGateway, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("loadBalancerArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55825,10 +60932,10 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } { xtv := string(val) - sv.ElasticGpuState = types.ElasticGpuState(xtv) + sv.LoadBalancerArn = ptr.String(xtv) } - case strings.EqualFold("elasticGpuType", t.Name.Local): + case strings.EqualFold("loadBalancerListenerPort", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55838,10 +60945,32 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } { xtv := string(val) - sv.ElasticGpuType = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.LoadBalancerListenerPort = ptr.Int32(int32(i64)) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("loadBalancerTarget", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(&sv.LoadBalancerTarget, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("loadBalancerTargetGroup", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.LoadBalancerTargetGroup, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("loadBalancerTargetGroupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.LoadBalancerTargetGroups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("loadBalancerTargetPort", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55851,120 +60980,123 @@ func awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder s } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.LoadBalancerTargetPort = ptr.Int32(int32(i64)) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("missingComponent", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.MissingComponent = ptr.String(xtv) + } + + case strings.EqualFold("natGateway", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.NatGateway, nodeDecoder); err != nil { return err } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("networkInterface", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.NetworkInterface, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("packetField", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.PacketField = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("port", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Port = ptr.Int32(int32(i64)) + } -func awsEc2query_deserializeDocumentElasticGpuSet(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.ElasticGpus - if *v == nil { - sv = make([]types.ElasticGpus, 0) - } else { - sv = *v - } + case strings.EqualFold("portRangeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPortRangeList(&sv.PortRanges, nodeDecoder); err != nil { + return err + } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.ElasticGpus + case strings.EqualFold("prefixList", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.PrefixList, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("protocolSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentStringList(&sv.Protocols, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("routeTable", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.RouteTable, nodeDecoder); err != nil { + return err + } -func awsEc2query_deserializeDocumentElasticGpuSetUnwrapped(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error { - var sv []types.ElasticGpus - if *v == nil { - sv = make([]types.ElasticGpus, 0) - } else { - sv = *v - } + case strings.EqualFold("routeTableRoute", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisRouteTableRoute(&sv.RouteTableRoute, nodeDecoder); err != nil { + return err + } - switch { - default: - var mv types.ElasticGpus - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ElasticGpuSpecificationResponse - if *v == nil { - sv = &types.ElasticGpuSpecificationResponse{} - } else { - sv = *v - } + case strings.EqualFold("securityGroup", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SecurityGroup, nodeDecoder); err != nil { + return err + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("type", t.Name.Local): + case strings.EqualFold("securityGroupRule", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(&sv.SecurityGroupRule, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("securityGroupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.SecurityGroups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourceVpc", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SourceVpc, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -55974,7 +61106,49 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.El } { xtv := string(val) - sv.Type = ptr.String(xtv) + sv.State = ptr.String(xtv) + } + + case strings.EqualFold("subnet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Subnet, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("subnetRouteTable", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SubnetRouteTable, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vpc", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Vpc, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vpcEndpoint", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcEndpoint, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vpcPeeringConnection", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcPeeringConnection, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vpnConnection", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpnConnection, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vpnGateway", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpnGateway, nodeDecoder); err != nil { + return err } default: @@ -55991,13 +61165,13 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.El return nil } -func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExplanationList(v *[]types.Explanation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ElasticGpuSpecificationResponse + var sv []types.Explanation if *v == nil { - sv = make([]types.ElasticGpuSpecificationResponse, 0) + sv = make([]types.Explanation, 0) } else { sv = *v } @@ -56013,10 +61187,10 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]typ } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ElasticGpuSpecificationResponse + var col types.Explanation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExplanation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -56035,22 +61209,22 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]typ return nil } -func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseListUnwrapped(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error { - var sv []types.ElasticGpuSpecificationResponse +func awsEc2query_deserializeDocumentExplanationListUnwrapped(v *[]types.Explanation, decoder smithyxml.NodeDecoder) error { + var sv []types.Explanation if *v == nil { - sv = make([]types.ElasticGpuSpecificationResponse, 0) + sv = make([]types.Explanation, 0) } else { sv = *v } switch { default: - var mv types.ElasticGpuSpecificationResponse + var mv types.Explanation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExplanation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -56059,13 +61233,13 @@ func awsEc2query_deserializeDocumentElasticGpuSpecificationResponseListUnwrapped *v = sv return nil } -func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ElasticInferenceAcceleratorAssociation + var sv *types.ExportImageTask if *v == nil { - sv = &types.ElasticInferenceAcceleratorAssociation{} + sv = &types.ExportImageTask{} } else { sv = *v } @@ -56081,7 +61255,7 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("elasticInferenceAcceleratorArn", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56091,10 +61265,10 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } { xtv := string(val) - sv.ElasticInferenceAcceleratorArn = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("elasticInferenceAcceleratorAssociationId", t.Name.Local): + case strings.EqualFold("exportImageTaskId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56104,10 +61278,10 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } { xtv := string(val) - sv.ElasticInferenceAcceleratorAssociationId = ptr.String(xtv) + sv.ExportImageTaskId = ptr.String(xtv) } - case strings.EqualFold("elasticInferenceAcceleratorAssociationState", t.Name.Local): + case strings.EqualFold("imageId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56117,10 +61291,10 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } { xtv := string(val) - sv.ElasticInferenceAcceleratorAssociationState = ptr.String(xtv) + sv.ImageId = ptr.String(xtv) } - case strings.EqualFold("elasticInferenceAcceleratorAssociationTime", t.Name.Local): + case strings.EqualFold("progress", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56130,124 +61304,29 @@ func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **t } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.ElasticInferenceAcceleratorAssociationTime = ptr.Time(t) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.Progress = ptr.String(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.ElasticInferenceAcceleratorAssociation - if *v == nil { - sv = make([]types.ElasticInferenceAcceleratorAssociation, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.ElasticInferenceAcceleratorAssociation + case strings.EqualFold("s3ExportLocation", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExportTaskS3Location(&sv.S3ExportLocation, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("status", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationListUnwrapped(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error { - var sv []types.ElasticInferenceAcceleratorAssociation - if *v == nil { - sv = make([]types.ElasticInferenceAcceleratorAssociation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ElasticInferenceAcceleratorAssociation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.EnableFastSnapshotRestoreErrorItem - if *v == nil { - sv = &types.EnableFastSnapshotRestoreErrorItem{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("fastSnapshotRestoreStateErrorSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(&sv.FastSnapshotRestoreStateErrors, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.Status = ptr.String(xtv) } - case strings.EqualFold("snapshotId", t.Name.Local): + case strings.EqualFold("statusMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56257,7 +61336,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types } { xtv := string(val) - sv.SnapshotId = ptr.String(xtv) + sv.StatusMessage = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } default: @@ -56274,13 +61359,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportImageTaskList(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.EnableFastSnapshotRestoreErrorItem + var sv []types.ExportImageTask if *v == nil { - sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.ExportImageTask, 0) } else { sv = *v } @@ -56296,10 +61381,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]types } switch { case strings.EqualFold("item", t.Name.Local): - var col types.EnableFastSnapshotRestoreErrorItem + var col types.ExportImageTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -56318,22 +61403,22 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]types return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.EnableFastSnapshotRestoreErrorItem +func awsEc2query_deserializeDocumentExportImageTaskListUnwrapped(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ExportImageTask if *v == nil { - sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0) + sv = make([]types.ExportImageTask, 0) } else { sv = *v } switch { default: - var mv types.EnableFastSnapshotRestoreErrorItem + var mv types.ExportImageTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -56342,13 +61427,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSetUnwrapped(v *v = sv return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **types.EnableFastSnapshotRestoreStateError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EnableFastSnapshotRestoreStateError + var sv *types.ExportTask if *v == nil { - sv = &types.EnableFastSnapshotRestoreStateError{} + sv = &types.ExportTask{} } else { sv = *v } @@ -56364,7 +61449,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **type originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56374,10 +61459,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **type } { xtv := string(val) - sv.Code = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("exportTaskId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56387,46 +61472,35 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **type } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.ExportTaskId = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("exportToS3", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentExportToS3Task(&sv.ExportToS3Task, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("instanceExport", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceExportDetails(&sv.InstanceExportDetails, nodeDecoder); err != nil { + return err + } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v **types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.EnableFastSnapshotRestoreStateErrorItem - if *v == nil { - sv = &types.EnableFastSnapshotRestoreStateErrorItem{} - } else { - sv = *v - } + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.ExportTaskState(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("statusMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56436,12 +61510,12 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v ** } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + sv.StatusMessage = ptr.String(xtv) } - case strings.EqualFold("error", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(&sv.Error, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } @@ -56459,13 +61533,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v ** return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportTaskList(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.EnableFastSnapshotRestoreStateErrorItem + var sv []types.ExportTask if *v == nil { - sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.ExportTask, 0) } else { sv = *v } @@ -56481,10 +61555,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[] } switch { case strings.EqualFold("item", t.Name.Local): - var col types.EnableFastSnapshotRestoreStateErrorItem + var col types.ExportTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -56503,22 +61577,22 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[] return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error { - var sv []types.EnableFastSnapshotRestoreStateErrorItem +func awsEc2query_deserializeDocumentExportTaskListUnwrapped(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ExportTask if *v == nil { - sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0) + sv = make([]types.ExportTask, 0) } else { sv = *v } switch { default: - var mv types.EnableFastSnapshotRestoreStateErrorItem + var mv types.ExportTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -56527,13 +61601,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSetUnwrap *v = sv return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3Location, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EnableFastSnapshotRestoreSuccessItem + var sv *types.ExportTaskS3Location if *v == nil { - sv = &types.EnableFastSnapshotRestoreSuccessItem{} + sv = &types.ExportTaskS3Location{} } else { sv = *v } @@ -56549,7 +61623,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("s3Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56559,10 +61633,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + sv.S3Bucket = ptr.String(xtv) } - case strings.EqualFold("disabledTime", t.Name.Local): + case strings.EqualFold("s3Prefix", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56572,48 +61646,46 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.DisabledTime = ptr.Time(t) + sv.S3Prefix = ptr.String(xtv) } - case strings.EqualFold("disablingTime", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.DisablingTime = ptr.Time(t) - } - case strings.EqualFold("enabledTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.EnabledTime = ptr.Time(t) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("enablingTime", t.Name.Local): +func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ExportToS3Task + if *v == nil { + sv = &types.ExportToS3Task{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("containerFormat", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56623,14 +61695,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.EnablingTime = ptr.Time(t) + sv.ContainerFormat = types.ContainerFormat(xtv) } - case strings.EqualFold("optimizingTime", t.Name.Local): + case strings.EqualFold("diskImageFormat", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56640,14 +61708,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.OptimizingTime = ptr.Time(t) + sv.DiskImageFormat = types.DiskImageFormat(xtv) } - case strings.EqualFold("ownerAlias", t.Name.Local): + case strings.EqualFold("s3Bucket", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56657,10 +61721,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - sv.OwnerAlias = ptr.String(xtv) + sv.S3Bucket = ptr.String(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("s3Key", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56670,36 +61734,52 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + sv.S3Key = ptr.String(xtv) } - case strings.EqualFold("snapshotId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.SnapshotId = ptr.String(xtv) - } - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(v **types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.FailedCapacityReservationFleetCancellationResult + if *v == nil { + sv = &types.FailedCapacityReservationFleetCancellationResult{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cancelCapacityReservationFleetError", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(&sv.CancelCapacityReservationFleetError, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.FastSnapshotRestoreStateCode(xtv) - } - case strings.EqualFold("stateTransitionReason", t.Name.Local): + case strings.EqualFold("capacityReservationFleetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56709,7 +61789,7 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ } { xtv := string(val) - sv.StateTransitionReason = ptr.String(xtv) + sv.CapacityReservationFleetId = ptr.String(xtv) } default: @@ -56726,13 +61806,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **typ return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResultSet(v *[]types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.EnableFastSnapshotRestoreSuccessItem + var sv []types.FailedCapacityReservationFleetCancellationResult if *v == nil { - sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.FailedCapacityReservationFleetCancellationResult, 0) } else { sv = *v } @@ -56748,10 +61828,10 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]typ } switch { case strings.EqualFold("item", t.Name.Local): - var col types.EnableFastSnapshotRestoreSuccessItem + var col types.FailedCapacityReservationFleetCancellationResult nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -56770,22 +61850,22 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]typ return nil } -func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error { - var sv []types.EnableFastSnapshotRestoreSuccessItem +func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResultSetUnwrapped(v *[]types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error { + var sv []types.FailedCapacityReservationFleetCancellationResult if *v == nil { - sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0) + sv = make([]types.FailedCapacityReservationFleetCancellationResult, 0) } else { sv = *v } switch { default: - var mv types.EnableFastSnapshotRestoreSuccessItem + var mv types.FailedCapacityReservationFleetCancellationResult t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -56794,13 +61874,13 @@ func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSetUnwrapped *v = sv return nil } -func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EnclaveOptions + var sv *types.FailedQueuedPurchaseDeletion if *v == nil { - sv = &types.EnclaveOptions{} + sv = &types.FailedQueuedPurchaseDeletion{} } else { sv = *v } @@ -56816,7 +61896,13 @@ func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("enabled", t.Name.Local): + case strings.EqualFold("error", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(&sv.Error, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("reservedInstancesId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -56825,11 +61911,8 @@ func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, dec break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Enabled = ptr.Bool(xtv) + xtv := string(val) + sv.ReservedInstancesId = ptr.String(xtv) } default: @@ -56846,13 +61929,13 @@ func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, dec return nil } -func awsEc2query_deserializeDocumentEndpointSet(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ClientVpnEndpoint + var sv []types.FailedQueuedPurchaseDeletion if *v == nil { - sv = make([]types.ClientVpnEndpoint, 0) + sv = make([]types.FailedQueuedPurchaseDeletion, 0) } else { sv = *v } @@ -56868,10 +61951,10 @@ func awsEc2query_deserializeDocumentEndpointSet(v *[]types.ClientVpnEndpoint, de } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ClientVpnEndpoint + var col types.FailedQueuedPurchaseDeletion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -56890,22 +61973,22 @@ func awsEc2query_deserializeDocumentEndpointSet(v *[]types.ClientVpnEndpoint, de return nil } -func awsEc2query_deserializeDocumentEndpointSetUnwrapped(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error { - var sv []types.ClientVpnEndpoint +func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSetUnwrapped(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { + var sv []types.FailedQueuedPurchaseDeletion if *v == nil { - sv = make([]types.ClientVpnEndpoint, 0) + sv = make([]types.FailedQueuedPurchaseDeletion, 0) } else { sv = *v } switch { default: - var mv types.ClientVpnEndpoint + var mv types.FailedQueuedPurchaseDeletion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -56914,18 +61997,17 @@ func awsEc2query_deserializeDocumentEndpointSetUnwrapped(v *[]types.ClientVpnEnd *v = sv return nil } -func awsEc2query_deserializeDocumentErrorSet(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedAuthentication, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ValidationError + var sv *types.FederatedAuthentication if *v == nil { - sv = make([]types.ValidationError, 0) + sv = &types.FederatedAuthentication{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -56934,18 +62016,37 @@ func awsEc2query_deserializeDocumentErrorSet(v *[]types.ValidationError, decoder if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.ValidationError - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("samlProviderArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.SamlProviderArn = ptr.String(xtv) + } + + case strings.EqualFold("selfServiceSamlProviderArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SelfServiceSamlProviderArn = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -56958,37 +62059,13 @@ func awsEc2query_deserializeDocumentErrorSet(v *[]types.ValidationError, decoder return nil } -func awsEc2query_deserializeDocumentErrorSetUnwrapped(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error { - var sv []types.ValidationError - if *v == nil { - sv = make([]types.ValidationError, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ValidationError - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EventInformation + var sv *types.FleetCapacityReservation if *v == nil { - sv = &types.EventInformation{} + sv = &types.FleetCapacityReservation{} } else { sv = *v } @@ -57004,7 +62081,7 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("eventDescription", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57014,10 +62091,10 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, } { xtv := string(val) - sv.EventDescription = ptr.String(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("eventSubType", t.Name.Local): + case strings.EqualFold("availabilityZoneId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57027,10 +62104,10 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, } { xtv := string(val) - sv.EventSubType = ptr.String(xtv) + sv.AvailabilityZoneId = ptr.String(xtv) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("capacityReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57040,7 +62117,134 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.CapacityReservationId = ptr.String(xtv) + } + + case strings.EqualFold("createDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreateDate = ptr.Time(t) + } + + case strings.EqualFold("ebsOptimized", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.EbsOptimized = ptr.Bool(xtv) + } + + case strings.EqualFold("fulfilledCapacity", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.FulfilledCapacity = ptr.Float64(f64) + } + + case strings.EqualFold("instancePlatform", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstancePlatform = types.CapacityReservationInstancePlatform(xtv) + } + + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = types.InstanceType(xtv) + } + + case strings.EqualFold("priority", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Priority = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("totalInstanceCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.TotalInstanceCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("weight", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.Weight = ptr.Float64(f64) } default: @@ -57057,13 +62261,13 @@ func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, return nil } -func awsEc2query_deserializeDocumentExcludedInstanceTypeSet(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetCapacityReservationSet(v *[]types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.FleetCapacityReservation if *v == nil { - sv = make([]string, 0) + sv = make([]types.FleetCapacityReservation, 0) } else { sv = *v } @@ -57077,22 +62281,15 @@ func awsEc2query_deserializeDocumentExcludedInstanceTypeSet(v *[]string, decoder if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { + var col types.FleetCapacityReservation + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentFleetCapacityReservation(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -57108,42 +62305,37 @@ func awsEc2query_deserializeDocumentExcludedInstanceTypeSet(v *[]string, decoder return nil } -func awsEc2query_deserializeDocumentExcludedInstanceTypeSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsEc2query_deserializeDocumentFleetCapacityReservationSetUnwrapped(v *[]types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetCapacityReservation if *v == nil { - sv = make([]string, 0) + sv = make([]types.FleetCapacityReservation, 0) } else { sv = *v } switch { default: - var mv string + var mv types.FleetCapacityReservation t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentFleetCapacityReservation(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Explanation + var sv *types.FleetData if *v == nil { - sv = &types.Explanation{} + sv = &types.FleetData{} } else { sv = *v } @@ -57159,19 +62351,7 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("acl", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Acl, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("aclRule", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisAclRule(&sv.AclRule, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("address", t.Name.Local): + case strings.EqualFold("activityStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57181,64 +62361,23 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - sv.Address = ptr.String(xtv) - } - - case strings.EqualFold("addressSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpAddressList(&sv.Addresses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("attachedTo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.AttachedTo, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("availabilityZoneSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValueStringList(&sv.AvailabilityZones, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("cidrSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentValueStringList(&sv.Cidrs, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("classicLoadBalancerListener", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(&sv.ClassicLoadBalancerListener, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("component", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Component, nodeDecoder); err != nil { - return err + sv.ActivityStatus = types.FleetActivityStatus(xtv) } - case strings.EqualFold("customerGateway", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.CustomerGateway, nodeDecoder); err != nil { + case strings.EqualFold("clientToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("destination", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Destination, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("destinationVpc", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.DestinationVpc, nodeDecoder); err != nil { - return err + { + xtv := string(val) + sv.ClientToken = ptr.String(xtv) } - case strings.EqualFold("direction", t.Name.Local): + case strings.EqualFold("context", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57248,16 +62387,10 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - sv.Direction = ptr.String(xtv) - } - - case strings.EqualFold("elasticLoadBalancerListener", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.ElasticLoadBalancerListener, nodeDecoder); err != nil { - return err + sv.Context = ptr.String(xtv) } - case strings.EqualFold("explanationCode", t.Name.Local): + case strings.EqualFold("createTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57267,22 +62400,20 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - sv.ExplanationCode = ptr.String(xtv) - } - - case strings.EqualFold("ingressRouteTable", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.IngressRouteTable, nodeDecoder); err != nil { - return err + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreateTime = ptr.Time(t) } - case strings.EqualFold("internetGateway", t.Name.Local): + case strings.EqualFold("errorSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.InternetGateway, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFleetsErrorSet(&sv.Errors, nodeDecoder); err != nil { return err } - case strings.EqualFold("loadBalancerArn", t.Name.Local): + case strings.EqualFold("excessCapacityTerminationPolicy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57292,10 +62423,10 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - sv.LoadBalancerArn = ptr.String(xtv) + sv.ExcessCapacityTerminationPolicy = types.FleetExcessCapacityTerminationPolicy(xtv) } - case strings.EqualFold("loadBalancerListenerPort", t.Name.Local): + case strings.EqualFold("fleetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57305,32 +62436,23 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.LoadBalancerListenerPort = ptr.Int32(int32(i64)) + sv.FleetId = ptr.String(xtv) } - case strings.EqualFold("loadBalancerTarget", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(&sv.LoadBalancerTarget, nodeDecoder); err != nil { + case strings.EqualFold("fleetState", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("loadBalancerTargetGroup", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.LoadBalancerTargetGroup, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("loadBalancerTargetGroupSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.LoadBalancerTargetGroups, nodeDecoder); err != nil { - return err + { + xtv := string(val) + sv.FleetState = types.FleetStateCode(xtv) } - case strings.EqualFold("loadBalancerTargetPort", t.Name.Local): + case strings.EqualFold("fulfilledCapacity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57340,14 +62462,14 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + f64, err := strconv.ParseFloat(xtv, 64) if err != nil { return err } - sv.LoadBalancerTargetPort = ptr.Int32(int32(i64)) + sv.FulfilledCapacity = ptr.Float64(f64) } - case strings.EqualFold("missingComponent", t.Name.Local): + case strings.EqualFold("fulfilledOnDemandCapacity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57357,35 +62479,32 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - sv.MissingComponent = ptr.String(xtv) + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.FulfilledOnDemandCapacity = ptr.Float64(f64) } - case strings.EqualFold("natGateway", t.Name.Local): + case strings.EqualFold("fleetInstanceSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.NatGateway, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(&sv.Instances, nodeDecoder); err != nil { return err } - case strings.EqualFold("networkInterface", t.Name.Local): + case strings.EqualFold("launchTemplateConfigs", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.NetworkInterface, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(&sv.LaunchTemplateConfigs, nodeDecoder); err != nil { return err } - case strings.EqualFold("packetField", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("onDemandOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOnDemandOptions(&sv.OnDemandOptions, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PacketField = ptr.String(xtv) - } - case strings.EqualFold("port", t.Name.Local): + case strings.EqualFold("replaceUnhealthyInstances", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57394,69 +62513,61 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s break } { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Port = ptr.Int32(int32(i64)) + sv.ReplaceUnhealthyInstances = ptr.Bool(xtv) } - case strings.EqualFold("portRangeSet", t.Name.Local): + case strings.EqualFold("spotOptions", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPortRangeList(&sv.PortRanges, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSpotOptions(&sv.SpotOptions, nodeDecoder); err != nil { return err } - case strings.EqualFold("prefixList", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.PrefixList, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - case strings.EqualFold("protocolSet", t.Name.Local): + case strings.EqualFold("targetCapacitySpecification", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStringList(&sv.Protocols, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTargetCapacitySpecification(&sv.TargetCapacitySpecification, nodeDecoder); err != nil { return err } - case strings.EqualFold("routeTable", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.RouteTable, nodeDecoder); err != nil { + case strings.EqualFold("terminateInstancesWithExpiration", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("routeTableRoute", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisRouteTableRoute(&sv.RouteTableRoute, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("securityGroup", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SecurityGroup, nodeDecoder); err != nil { - return err + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.TerminateInstancesWithExpiration = ptr.Bool(xtv) } - case strings.EqualFold("securityGroupRule", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(&sv.SecurityGroupRule, nodeDecoder); err != nil { + case strings.EqualFold("type", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("securityGroupSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.SecurityGroups, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("sourceVpc", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SourceVpc, nodeDecoder); err != nil { - return err + { + xtv := string(val) + sv.Type = types.FleetType(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("validFrom", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57466,48 +62577,75 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s } { xtv := string(val) - sv.State = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ValidFrom = ptr.Time(t) } - case strings.EqualFold("subnet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Subnet, nodeDecoder); err != nil { + case strings.EqualFold("validUntil", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("subnetRouteTable", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SubnetRouteTable, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("vpc", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Vpc, nodeDecoder); err != nil { - return err + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ValidUntil = ptr.Time(t) } - case strings.EqualFold("vpcEndpoint", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcEndpoint, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("vpcPeeringConnection", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcPeeringConnection, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("vpnConnection", t.Name.Local): +func awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(v **types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.FleetLaunchTemplateConfig + if *v == nil { + sv = &types.FleetLaunchTemplateConfig{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("launchTemplateSpecification", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpnConnection, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(&sv.LaunchTemplateSpecification, nodeDecoder); err != nil { return err } - case strings.EqualFold("vpnGateway", t.Name.Local): + case strings.EqualFold("overrides", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpnGateway, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(&sv.Overrides, nodeDecoder); err != nil { return err } @@ -57525,13 +62663,13 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s return nil } -func awsEc2query_deserializeDocumentExplanationList(v *[]types.Explanation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Explanation + var sv []types.FleetLaunchTemplateConfig if *v == nil { - sv = make([]types.Explanation, 0) + sv = make([]types.FleetLaunchTemplateConfig, 0) } else { sv = *v } @@ -57547,10 +62685,10 @@ func awsEc2query_deserializeDocumentExplanationList(v *[]types.Explanation, deco } switch { case strings.EqualFold("item", t.Name.Local): - var col types.Explanation + var col types.FleetLaunchTemplateConfig nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentExplanation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -57569,22 +62707,22 @@ func awsEc2query_deserializeDocumentExplanationList(v *[]types.Explanation, deco return nil } -func awsEc2query_deserializeDocumentExplanationListUnwrapped(v *[]types.Explanation, decoder smithyxml.NodeDecoder) error { - var sv []types.Explanation +func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigListUnwrapped(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetLaunchTemplateConfig if *v == nil { - sv = make([]types.Explanation, 0) + sv = make([]types.FleetLaunchTemplateConfig, 0) } else { sv = *v } switch { default: - var mv types.Explanation + var mv types.FleetLaunchTemplateConfig t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentExplanation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -57593,13 +62731,13 @@ func awsEc2query_deserializeDocumentExplanationListUnwrapped(v *[]types.Explanat *v = sv return nil } -func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ExportImageTask + var sv *types.FleetLaunchTemplateOverrides if *v == nil { - sv = &types.ExportImageTask{} + sv = &types.FleetLaunchTemplateOverrides{} } else { sv = *v } @@ -57615,7 +62753,7 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57625,10 +62763,16 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("exportImageTaskId", t.Name.Local): + case strings.EqualFold("instanceRequirements", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceRequirements(&sv.InstanceRequirements, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57638,10 +62782,10 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } { xtv := string(val) - sv.ExportImageTaskId = ptr.String(xtv) + sv.InstanceType = types.InstanceType(xtv) } - case strings.EqualFold("imageId", t.Name.Local): + case strings.EqualFold("maxPrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57651,10 +62795,16 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } { xtv := string(val) - sv.ImageId = ptr.String(xtv) + sv.MaxPrice = ptr.String(xtv) } - case strings.EqualFold("progress", t.Name.Local): + case strings.EqualFold("placement", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPlacementResponse(&sv.Placement, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("priority", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57664,16 +62814,14 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } { xtv := string(val) - sv.Progress = ptr.String(xtv) - } - - case strings.EqualFold("s3ExportLocation", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExportTaskS3Location(&sv.S3ExportLocation, nodeDecoder); err != nil { - return err + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.Priority = ptr.Float64(f64) } - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("subnetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57683,10 +62831,10 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } { xtv := string(val) - sv.Status = ptr.String(xtv) + sv.SubnetId = ptr.String(xtv) } - case strings.EqualFold("statusMessage", t.Name.Local): + case strings.EqualFold("weightedCapacity", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57696,13 +62844,11 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d } { xtv := string(val) - sv.StatusMessage = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + f64, err := strconv.ParseFloat(xtv, 64) + if err != nil { + return err + } + sv.WeightedCapacity = ptr.Float64(f64) } default: @@ -57719,13 +62865,13 @@ func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, d return nil } -func awsEc2query_deserializeDocumentExportImageTaskList(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ExportImageTask + var sv []types.FleetLaunchTemplateOverrides if *v == nil { - sv = make([]types.ExportImageTask, 0) + sv = make([]types.FleetLaunchTemplateOverrides, 0) } else { sv = *v } @@ -57741,10 +62887,10 @@ func awsEc2query_deserializeDocumentExportImageTaskList(v *[]types.ExportImageTa } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ExportImageTask + var col types.FleetLaunchTemplateOverrides nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -57763,22 +62909,22 @@ func awsEc2query_deserializeDocumentExportImageTaskList(v *[]types.ExportImageTa return nil } -func awsEc2query_deserializeDocumentExportImageTaskListUnwrapped(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error { - var sv []types.ExportImageTask +func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesListUnwrapped(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetLaunchTemplateOverrides if *v == nil { - sv = make([]types.ExportImageTask, 0) + sv = make([]types.FleetLaunchTemplateOverrides, 0) } else { sv = *v } switch { default: - var mv types.ExportImageTask + var mv types.FleetLaunchTemplateOverrides t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -57787,13 +62933,13 @@ func awsEc2query_deserializeDocumentExportImageTaskListUnwrapped(v *[]types.Expo *v = sv return nil } -func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.FleetLaunchTemplateSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ExportTask + var sv *types.FleetLaunchTemplateSpecification if *v == nil { - sv = &types.ExportTask{} + sv = &types.FleetLaunchTemplateSpecification{} } else { sv = *v } @@ -57809,20 +62955,7 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("exportTaskId", t.Name.Local): + case strings.EqualFold("launchTemplateId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57832,22 +62965,10 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } { xtv := string(val) - sv.ExportTaskId = ptr.String(xtv) - } - - case strings.EqualFold("exportToS3", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExportToS3Task(&sv.ExportToS3Task, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceExport", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceExportDetails(&sv.InstanceExportDetails, nodeDecoder); err != nil { - return err + sv.LaunchTemplateId = ptr.String(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("launchTemplateName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57857,10 +62978,10 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } { xtv := string(val) - sv.State = types.ExportTaskState(xtv) + sv.LaunchTemplateName = ptr.String(xtv) } - case strings.EqualFold("statusMessage", t.Name.Local): + case strings.EqualFold("version", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57870,13 +62991,7 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi } { xtv := string(val) - sv.StatusMessage = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.Version = ptr.String(xtv) } default: @@ -57893,13 +63008,13 @@ func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smi return nil } -func awsEc2query_deserializeDocumentExportTaskList(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetSet(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ExportTask + var sv []types.FleetData if *v == nil { - sv = make([]types.ExportTask, 0) + sv = make([]types.FleetData, 0) } else { sv = *v } @@ -57915,10 +63030,10 @@ func awsEc2query_deserializeDocumentExportTaskList(v *[]types.ExportTask, decode } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ExportTask + var col types.FleetData nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -57937,22 +63052,22 @@ func awsEc2query_deserializeDocumentExportTaskList(v *[]types.ExportTask, decode return nil } -func awsEc2query_deserializeDocumentExportTaskListUnwrapped(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error { - var sv []types.ExportTask +func awsEc2query_deserializeDocumentFleetSetUnwrapped(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error { + var sv []types.FleetData if *v == nil { - sv = make([]types.ExportTask, 0) + sv = make([]types.FleetData, 0) } else { sv = *v } switch { default: - var mv types.ExportTask + var mv types.FleetData t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -57961,13 +63076,13 @@ func awsEc2query_deserializeDocumentExportTaskListUnwrapped(v *[]types.ExportTas *v = sv return nil } -func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3Location, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(v **types.FleetSpotCapacityRebalance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ExportTaskS3Location + var sv *types.FleetSpotCapacityRebalance if *v == nil { - sv = &types.ExportTaskS3Location{} + sv = &types.FleetSpotCapacityRebalance{} } else { sv = *v } @@ -57983,7 +63098,7 @@ func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3L originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("s3Bucket", t.Name.Local): + case strings.EqualFold("replacementStrategy", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -57993,10 +63108,10 @@ func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3L } { xtv := string(val) - sv.S3Bucket = ptr.String(xtv) + sv.ReplacementStrategy = types.FleetReplacementStrategy(xtv) } - case strings.EqualFold("s3Prefix", t.Name.Local): + case strings.EqualFold("terminationDelay", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58006,7 +63121,11 @@ func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3L } { xtv := string(val) - sv.S3Prefix = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.TerminationDelay = ptr.Int32(int32(i64)) } default: @@ -58023,13 +63142,13 @@ func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3L return nil } -func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFleetSpotMaintenanceStrategies(v **types.FleetSpotMaintenanceStrategies, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ExportToS3Task + var sv *types.FleetSpotMaintenanceStrategies if *v == nil { - sv = &types.ExportToS3Task{} + sv = &types.FleetSpotMaintenanceStrategies{} } else { sv = *v } @@ -58045,7 +63164,49 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("containerFormat", t.Name.Local): + case strings.EqualFold("capacityRebalance", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(&sv.CapacityRebalance, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.FlowLog + if *v == nil { + sv = &types.FlowLog{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("creationTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58055,10 +63216,14 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec } { xtv := string(val) - sv.ContainerFormat = types.ContainerFormat(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreationTime = ptr.Time(t) } - case strings.EqualFold("diskImageFormat", t.Name.Local): + case strings.EqualFold("deliverLogsErrorMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58068,10 +63233,10 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec } { xtv := string(val) - sv.DiskImageFormat = types.DiskImageFormat(xtv) + sv.DeliverLogsErrorMessage = ptr.String(xtv) } - case strings.EqualFold("s3Bucket", t.Name.Local): + case strings.EqualFold("deliverLogsPermissionArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58081,10 +63246,10 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec } { xtv := string(val) - sv.S3Bucket = ptr.String(xtv) + sv.DeliverLogsPermissionArn = ptr.String(xtv) } - case strings.EqualFold("s3Key", t.Name.Local): + case strings.EqualFold("deliverLogsStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58094,52 +63259,130 @@ func awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, dec } { xtv := string(val) - sv.S3Key = ptr.String(xtv) + sv.DeliverLogsStatus = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("destinationOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDestinationOptionsResponse(&sv.DestinationOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("flowLogId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FlowLogId = ptr.String(xtv) + } + + case strings.EqualFold("flowLogStatus", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.FlowLogStatus = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("logDestination", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogDestination = ptr.String(xtv) + } -func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(v **types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.FailedCapacityReservationFleetCancellationResult - if *v == nil { - sv = &types.FailedCapacityReservationFleetCancellationResult{} - } else { - sv = *v - } + case strings.EqualFold("logDestinationType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogDestinationType = types.LogDestinationType(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("cancelCapacityReservationFleetError", t.Name.Local): + case strings.EqualFold("logFormat", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogFormat = ptr.String(xtv) + } + + case strings.EqualFold("logGroupName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LogGroupName = ptr.String(xtv) + } + + case strings.EqualFold("maxAggregationInterval", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaxAggregationInterval = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("resourceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ResourceId = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(&sv.CancelCapacityReservationFleetError, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - case strings.EqualFold("capacityReservationFleetId", t.Name.Local): + case strings.EqualFold("trafficType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58149,7 +63392,7 @@ func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationRe } { xtv := string(val) - sv.CapacityReservationFleetId = ptr.String(xtv) + sv.TrafficType = types.TrafficType(xtv) } default: @@ -58166,13 +63409,13 @@ func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationRe return nil } -func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResultSet(v *[]types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFlowLogSet(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FailedCapacityReservationFleetCancellationResult + var sv []types.FlowLog if *v == nil { - sv = make([]types.FailedCapacityReservationFleetCancellationResult, 0) + sv = make([]types.FlowLog, 0) } else { sv = *v } @@ -58188,10 +63431,10 @@ func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationRe } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FailedCapacityReservationFleetCancellationResult + var col types.FlowLog nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -58210,22 +63453,22 @@ func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationRe return nil } -func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResultSetUnwrapped(v *[]types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error { - var sv []types.FailedCapacityReservationFleetCancellationResult +func awsEc2query_deserializeDocumentFlowLogSetUnwrapped(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error { + var sv []types.FlowLog if *v == nil { - sv = make([]types.FailedCapacityReservationFleetCancellationResult, 0) + sv = make([]types.FlowLog, 0) } else { sv = *v } switch { default: - var mv types.FailedCapacityReservationFleetCancellationResult + var mv types.FlowLog t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -58234,13 +63477,13 @@ func awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationRe *v = sv return nil } -func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FailedQueuedPurchaseDeletion + var sv *types.FpgaDeviceInfo if *v == nil { - sv = &types.FailedQueuedPurchaseDeletion{} + sv = &types.FpgaDeviceInfo{} } else { sv = *v } @@ -58256,13 +63499,43 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.Faile originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("error", t.Name.Local): + case strings.EqualFold("count", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Count = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("manufacturer", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Manufacturer = ptr.String(xtv) + } + + case strings.EqualFold("memoryInfo", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(&sv.Error, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil { return err } - case strings.EqualFold("reservedInstancesId", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58272,7 +63545,7 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.Faile } { xtv := string(val) - sv.ReservedInstancesId = ptr.String(xtv) + sv.Name = ptr.String(xtv) } default: @@ -58289,13 +63562,13 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.Faile return nil } -func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FailedQueuedPurchaseDeletion + var sv []types.FpgaDeviceInfo if *v == nil { - sv = make([]types.FailedQueuedPurchaseDeletion, 0) + sv = make([]types.FpgaDeviceInfo, 0) } else { sv = *v } @@ -58311,10 +63584,10 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]types.F } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FailedQueuedPurchaseDeletion + var col types.FpgaDeviceInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -58333,22 +63606,22 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]types.F return nil } -func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSetUnwrapped(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error { - var sv []types.FailedQueuedPurchaseDeletion +func awsEc2query_deserializeDocumentFpgaDeviceInfoListUnwrapped(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.FpgaDeviceInfo if *v == nil { - sv = make([]types.FailedQueuedPurchaseDeletion, 0) + sv = make([]types.FpgaDeviceInfo, 0) } else { sv = *v } switch { default: - var mv types.FailedQueuedPurchaseDeletion + var mv types.FpgaDeviceInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -58357,13 +63630,13 @@ func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSetUnwrapped(v * *v = sv return nil } -func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedAuthentication, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(v **types.FpgaDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FederatedAuthentication + var sv *types.FpgaDeviceMemoryInfo if *v == nil { - sv = &types.FederatedAuthentication{} + sv = &types.FpgaDeviceMemoryInfo{} } else { sv = *v } @@ -58379,20 +63652,7 @@ func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedA originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("samlProviderArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SamlProviderArn = ptr.String(xtv) - } - - case strings.EqualFold("selfServiceSamlProviderArn", t.Name.Local): + case strings.EqualFold("sizeInMiB", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58402,7 +63662,11 @@ func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedA } { xtv := string(val) - sv.SelfServiceSamlProviderArn = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.SizeInMiB = ptr.Int32(int32(i64)) } default: @@ -58419,13 +63683,13 @@ func awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedA return nil } -func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FleetCapacityReservation + var sv *types.FpgaImage if *v == nil { - sv = &types.FleetCapacityReservation{} + sv = &types.FpgaImage{} } else { sv = *v } @@ -58441,7 +63705,7 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("createTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58451,10 +63715,14 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreateTime = ptr.Time(t) } - case strings.EqualFold("availabilityZoneId", t.Name.Local): + case strings.EqualFold("dataRetentionSupport", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58463,11 +63731,14 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa break } { - xtv := string(val) - sv.AvailabilityZoneId = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.DataRetentionSupport = ptr.Bool(xtv) } - case strings.EqualFold("capacityReservationId", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58477,10 +63748,10 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - sv.CapacityReservationId = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("createDate", t.Name.Local): + case strings.EqualFold("fpgaImageGlobalId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58490,14 +63761,10 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CreateDate = ptr.Time(t) + sv.FpgaImageGlobalId = ptr.String(xtv) } - case strings.EqualFold("ebsOptimized", t.Name.Local): + case strings.EqualFold("fpgaImageId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58506,14 +63773,11 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.EbsOptimized = ptr.Bool(xtv) + xtv := string(val) + sv.FpgaImageId = ptr.String(xtv) } - case strings.EqualFold("fulfilledCapacity", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58523,14 +63787,10 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.FulfilledCapacity = ptr.Float64(f64) + sv.Name = ptr.String(xtv) } - case strings.EqualFold("instancePlatform", t.Name.Local): + case strings.EqualFold("ownerAlias", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58540,10 +63800,10 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - sv.InstancePlatform = types.CapacityReservationInstancePlatform(xtv) + sv.OwnerAlias = ptr.String(xtv) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58553,10 +63813,22 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("priority", t.Name.Local): + case strings.EqualFold("pciId", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPciId(&sv.PciId, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("productCodes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("public", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58565,15 +63837,14 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa break } { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Priority = ptr.Int32(int32(i64)) + sv.Public = ptr.Bool(xtv) } - case strings.EqualFold("totalInstanceCount", t.Name.Local): + case strings.EqualFold("shellVersion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58583,14 +63854,22 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalInstanceCount = ptr.Int32(int32(i64)) + sv.ShellVersion = ptr.String(xtv) } - case strings.EqualFold("weight", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFpgaImageState(&sv.State, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("tags", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("updateTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58600,11 +63879,11 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.Weight = ptr.Float64(f64) + sv.UpdateTime = ptr.Time(t) } default: @@ -58621,13 +63900,100 @@ func awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapa return nil } -func awsEc2query_deserializeDocumentFleetCapacityReservationSet(v *[]types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FleetCapacityReservation + var sv *types.FpgaImageAttribute if *v == nil { - sv = make([]types.FleetCapacityReservation, 0) + sv = &types.FpgaImageAttribute{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("description", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("fpgaImageId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.FpgaImageId = ptr.String(xtv) + } + + case strings.EqualFold("loadPermissions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentLoadPermissionList(&sv.LoadPermissions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + case strings.EqualFold("productCodes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentFpgaImageList(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.FpgaImage + if *v == nil { + sv = make([]types.FpgaImage, 0) } else { sv = *v } @@ -58643,10 +64009,10 @@ func awsEc2query_deserializeDocumentFleetCapacityReservationSet(v *[]types.Fleet } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FleetCapacityReservation + var col types.FpgaImage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFleetCapacityReservation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -58665,22 +64031,22 @@ func awsEc2query_deserializeDocumentFleetCapacityReservationSet(v *[]types.Fleet return nil } -func awsEc2query_deserializeDocumentFleetCapacityReservationSetUnwrapped(v *[]types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error { - var sv []types.FleetCapacityReservation +func awsEc2query_deserializeDocumentFpgaImageListUnwrapped(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error { + var sv []types.FpgaImage if *v == nil { - sv = make([]types.FleetCapacityReservation, 0) + sv = make([]types.FpgaImage, 0) } else { sv = *v } switch { default: - var mv types.FleetCapacityReservation + var mv types.FpgaImage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFleetCapacityReservation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -58689,13 +64055,13 @@ func awsEc2query_deserializeDocumentFleetCapacityReservationSetUnwrapped(v *[]ty *v = sv return nil } -func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FleetData + var sv *types.FpgaImageState if *v == nil { - sv = &types.FleetData{} + sv = &types.FpgaImageState{} } else { sv = *v } @@ -58711,7 +64077,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("activityStatus", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58721,10 +64087,10 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - sv.ActivityStatus = types.FleetActivityStatus(xtv) + sv.Code = types.FpgaImageStateCode(xtv) } - case strings.EqualFold("clientToken", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58734,23 +64100,52 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - sv.ClientToken = ptr.String(xtv) + sv.Message = ptr.String(xtv) } - case strings.EqualFold("context", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Context = ptr.String(xtv) + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentFpgaInfo(v **types.FpgaInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.FpgaInfo + if *v == nil { + sv = &types.FpgaInfo{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("fpgas", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFpgaDeviceInfoList(&sv.Fpgas, nodeDecoder); err != nil { + return err } - case strings.EqualFold("createTime", t.Name.Local): + case strings.EqualFold("totalFpgaMemoryInMiB", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58760,20 +64155,50 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { return err } - sv.CreateTime = ptr.Time(t) + sv.TotalFpgaMemoryInMiB = ptr.Int32(int32(i64)) } - case strings.EqualFold("errorSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFleetsErrorSet(&sv.Errors, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("excessCapacityTerminationPolicy", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.GpuDeviceInfo + if *v == nil { + sv = &types.GpuDeviceInfo{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("count", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58783,10 +64208,14 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - sv.ExcessCapacityTerminationPolicy = types.FleetExcessCapacityTerminationPolicy(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Count = ptr.Int32(int32(i64)) } - case strings.EqualFold("fleetId", t.Name.Local): + case strings.EqualFold("manufacturer", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58796,23 +64225,16 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - sv.FleetId = ptr.String(xtv) + sv.Manufacturer = ptr.String(xtv) } - case strings.EqualFold("fleetState", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("memoryInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.FleetState = types.FleetStateCode(xtv) - } - case strings.EqualFold("fulfilledCapacity", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58822,49 +64244,114 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.FulfilledCapacity = ptr.Float64(f64) + sv.Name = ptr.String(xtv) } - case strings.EqualFold("fulfilledOnDemandCapacity", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.FulfilledOnDemandCapacity = ptr.Float64(f64) - } - case strings.EqualFold("fleetInstanceSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(&sv.Instances, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("launchTemplateConfigs", t.Name.Local): +func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.GpuDeviceInfo + if *v == nil { + sv = make([]types.GpuDeviceInfo, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.GpuDeviceInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(&sv.LaunchTemplateConfigs, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("onDemandOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentOnDemandOptions(&sv.OnDemandOptions, nodeDecoder); err != nil { + default: + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("replaceUnhealthyInstances", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentGpuDeviceInfoListUnwrapped(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.GpuDeviceInfo + if *v == nil { + sv = make([]types.GpuDeviceInfo, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.GpuDeviceInfo + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(v **types.GpuDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.GpuDeviceMemoryInfo + if *v == nil { + sv = &types.GpuDeviceMemoryInfo{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("sizeInMiB", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58873,32 +64360,57 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.ReplaceUnhealthyInstances = ptr.Bool(xtv) + sv.SizeInMiB = ptr.Int32(int32(i64)) } - case strings.EqualFold("spotOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotOptions(&sv.SpotOptions, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("targetCapacitySpecification", t.Name.Local): +func awsEc2query_deserializeDocumentGpuInfo(v **types.GpuInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.GpuInfo + if *v == nil { + sv = &types.GpuInfo{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("gpus", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTargetCapacitySpecification(&sv.TargetCapacitySpecification, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentGpuDeviceInfoList(&sv.Gpus, nodeDecoder); err != nil { return err } - case strings.EqualFold("terminateInstancesWithExpiration", t.Name.Local): + case strings.EqualFold("totalGpuMemoryInMiB", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58907,27 +64419,51 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.TerminateInstancesWithExpiration = ptr.Bool(xtv) + sv.TotalGpuMemoryInMiB = ptr.Int32(int32(i64)) } - case strings.EqualFold("type", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Type = types.FleetType(xtv) - } - case strings.EqualFold("validFrom", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.GroupIdentifier + if *v == nil { + sv = &types.GroupIdentifier{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("groupId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58937,14 +64473,10 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.ValidFrom = ptr.Time(t) + sv.GroupId = ptr.String(xtv) } - case strings.EqualFold("validUntil", t.Name.Local): + case strings.EqualFold("groupName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -58954,11 +64486,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.ValidUntil = ptr.Time(t) + sv.GroupName = ptr.String(xtv) } default: @@ -58975,17 +64503,18 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(v **types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGroupIdentifierList(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FleetLaunchTemplateConfig + var sv []types.GroupIdentifier if *v == nil { - sv = &types.FleetLaunchTemplateConfig{} + sv = make([]types.GroupIdentifier, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -58994,23 +64523,18 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(v **types.FleetLau if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("launchTemplateSpecification", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(&sv.LaunchTemplateSpecification, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("overrides", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.GroupIdentifier nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(&sv.Overrides, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -59023,13 +64547,37 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(v **types.FleetLau return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGroupIdentifierListUnwrapped(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { + var sv []types.GroupIdentifier + if *v == nil { + sv = make([]types.GroupIdentifier, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.GroupIdentifier + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FleetLaunchTemplateConfig + var sv []types.SecurityGroupIdentifier if *v == nil { - sv = make([]types.FleetLaunchTemplateConfig, 0) + sv = make([]types.SecurityGroupIdentifier, 0) } else { sv = *v } @@ -59045,10 +64593,10 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]types.Fle } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FleetLaunchTemplateConfig + var col types.SecurityGroupIdentifier nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -59067,22 +64615,22 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]types.Fle return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigListUnwrapped(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error { - var sv []types.FleetLaunchTemplateConfig +func awsEc2query_deserializeDocumentGroupIdentifierSetUnwrapped(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { + var sv []types.SecurityGroupIdentifier if *v == nil { - sv = make([]types.FleetLaunchTemplateConfig, 0) + sv = make([]types.SecurityGroupIdentifier, 0) } else { sv = *v } switch { default: - var mv types.FleetLaunchTemplateConfig + var mv types.SecurityGroupIdentifier t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -59091,17 +64639,18 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateConfigListUnwrapped(v *[] *v = sv return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentGroupIdStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FleetLaunchTemplateOverrides + var sv []string if *v == nil { - sv = &types.FleetLaunchTemplateOverrides{} + sv = make([]string, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -59110,29 +64659,11 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("availabilityZone", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("instanceRequirements", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceRequirements(&sv.InstanceRequirements, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("groupId", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -59142,59 +64673,75 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet } { xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) + col = xtv } + sv = append(sv, col) - case strings.EqualFold("maxPrice", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.MaxPrice = ptr.String(xtv) - } - case strings.EqualFold("placement", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPlacementResponse(&sv.Placement, nodeDecoder); err != nil { - return err - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("priority", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.Priority = ptr.Float64(f64) - } +func awsEc2query_deserializeDocumentGroupIdStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } - case strings.EqualFold("subnetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SubnetId = ptr.String(xtv) - } + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOptions, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.HibernationOptions + if *v == nil { + sv = &types.HibernationOptions{} + } else { + sv = *v + } - case strings.EqualFold("weightedCapacity", t.Name.Local): + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("configured", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59203,12 +64750,11 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet break } { - xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.WeightedCapacity = ptr.Float64(f64) + sv.Configured = ptr.Bool(xtv) } default: @@ -59225,18 +64771,17 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FleetLaunchTemplateOverrides + var sv *types.HistoryRecord if *v == nil { - sv = make([]types.FleetLaunchTemplateOverrides, 0) + sv = &types.HistoryRecord{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -59245,18 +64790,47 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]types. if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.FleetLaunchTemplateOverrides + case strings.EqualFold("eventInformation", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentEventInformation(&sv.EventInformation, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) + + case strings.EqualFold("eventType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EventType = types.EventType(xtv) + } + + case strings.EqualFold("timestamp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.Timestamp = ptr.Time(t) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -59269,37 +64843,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]types. return nil } -func awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesListUnwrapped(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error { - var sv []types.FleetLaunchTemplateOverrides - if *v == nil { - sv = make([]types.FleetLaunchTemplateOverrides, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.FleetLaunchTemplateOverrides - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.FleetLaunchTemplateSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FleetLaunchTemplateSpecification + var sv *types.HistoryRecordEntry if *v == nil { - sv = &types.FleetLaunchTemplateSpecification{} + sv = &types.HistoryRecordEntry{} } else { sv = *v } @@ -59315,20 +64865,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("launchTemplateId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("eventInformation", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEventInformation(&sv.EventInformation, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.LaunchTemplateId = ptr.String(xtv) - } - case strings.EqualFold("launchTemplateName", t.Name.Local): + case strings.EqualFold("eventType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59338,10 +64881,10 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F } { xtv := string(val) - sv.LaunchTemplateName = ptr.String(xtv) + sv.EventType = types.FleetEventType(xtv) } - case strings.EqualFold("version", t.Name.Local): + case strings.EqualFold("timestamp", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59351,7 +64894,11 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F } { xtv := string(val) - sv.Version = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.Timestamp = ptr.Time(t) } default: @@ -59368,13 +64915,13 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.F return nil } -func awsEc2query_deserializeDocumentFleetSet(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHistoryRecords(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FleetData + var sv []types.HistoryRecord if *v == nil { - sv = make([]types.FleetData, 0) + sv = make([]types.HistoryRecord, 0) } else { sv = *v } @@ -59390,10 +64937,10 @@ func awsEc2query_deserializeDocumentFleetSet(v *[]types.FleetData, decoder smith } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FleetData + var col types.HistoryRecord nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -59412,22 +64959,22 @@ func awsEc2query_deserializeDocumentFleetSet(v *[]types.FleetData, decoder smith return nil } -func awsEc2query_deserializeDocumentFleetSetUnwrapped(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error { - var sv []types.FleetData +func awsEc2query_deserializeDocumentHistoryRecordsUnwrapped(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error { + var sv []types.HistoryRecord if *v == nil { - sv = make([]types.FleetData, 0) + sv = make([]types.HistoryRecord, 0) } else { sv = *v } switch { default: - var mv types.FleetData + var mv types.HistoryRecord t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -59436,17 +64983,18 @@ func awsEc2query_deserializeDocumentFleetSetUnwrapped(v *[]types.FleetData, deco *v = sv return nil } -func awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(v **types.FleetSpotCapacityRebalance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FleetSpotCapacityRebalance + var sv []types.HistoryRecordEntry if *v == nil { - sv = &types.FleetSpotCapacityRebalance{} + sv = make([]types.HistoryRecordEntry, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -59455,41 +65003,18 @@ func awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(v **types.FleetSp if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("replacementStrategy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ReplacementStrategy = types.FleetReplacementStrategy(xtv) - } - - case strings.EqualFold("terminationDelay", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.HistoryRecordEntry + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TerminationDelay = ptr.Int32(int32(i64)) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -59502,55 +65027,37 @@ func awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(v **types.FleetSp return nil } -func awsEc2query_deserializeDocumentFleetSpotMaintenanceStrategies(v **types.FleetSpotMaintenanceStrategies, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.FleetSpotMaintenanceStrategies +func awsEc2query_deserializeDocumentHistoryRecordSetUnwrapped(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { + var sv []types.HistoryRecordEntry if *v == nil { - sv = &types.FleetSpotMaintenanceStrategies{} + sv = make([]types.HistoryRecordEntry, 0) } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { + switch { + default: + var mv types.HistoryRecordEntry + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil { return err } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("capacityRebalance", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(&sv.CapacityRebalance, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + mv = *destAddr + sv = append(sv, mv) } *v = sv return nil } - -func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FlowLog + var sv *types.Host if *v == nil { - sv = &types.FlowLog{} + sv = &types.Host{} } else { sv = *v } @@ -59566,7 +65073,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("creationTime", t.Name.Local): + case strings.EqualFold("allocationTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59580,10 +65087,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml if err != nil { return err } - sv.CreationTime = ptr.Time(t) + sv.AllocationTime = ptr.Time(t) } - case strings.EqualFold("deliverLogsErrorMessage", t.Name.Local): + case strings.EqualFold("allowsMultipleInstanceTypes", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59593,10 +65100,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.DeliverLogsErrorMessage = ptr.String(xtv) + sv.AllowsMultipleInstanceTypes = types.AllowsMultipleInstanceTypes(xtv) } - case strings.EqualFold("deliverLogsPermissionArn", t.Name.Local): + case strings.EqualFold("autoPlacement", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59606,10 +65113,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.DeliverLogsPermissionArn = ptr.String(xtv) + sv.AutoPlacement = types.AutoPlacement(xtv) } - case strings.EqualFold("deliverLogsStatus", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59619,16 +65126,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.DeliverLogsStatus = ptr.String(xtv) - } - - case strings.EqualFold("destinationOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDestinationOptionsResponse(&sv.DestinationOptions, nodeDecoder); err != nil { - return err + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("flowLogId", t.Name.Local): + case strings.EqualFold("availabilityZoneId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59638,10 +65139,16 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.FlowLogId = ptr.String(xtv) + sv.AvailabilityZoneId = ptr.String(xtv) } - case strings.EqualFold("flowLogStatus", t.Name.Local): + case strings.EqualFold("availableCapacity", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAvailableCapacity(&sv.AvailableCapacity, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("clientToken", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59651,10 +65158,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.FlowLogStatus = ptr.String(xtv) + sv.ClientToken = ptr.String(xtv) } - case strings.EqualFold("logDestination", t.Name.Local): + case strings.EqualFold("hostId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59664,10 +65171,16 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.LogDestination = ptr.String(xtv) + sv.HostId = ptr.String(xtv) } - case strings.EqualFold("logDestinationType", t.Name.Local): + case strings.EqualFold("hostProperties", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentHostProperties(&sv.HostProperties, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("hostRecovery", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59677,10 +65190,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.LogDestinationType = types.LogDestinationType(xtv) + sv.HostRecovery = types.HostRecovery(xtv) } - case strings.EqualFold("logFormat", t.Name.Local): + case strings.EqualFold("hostReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59690,10 +65203,16 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.LogFormat = ptr.String(xtv) + sv.HostReservationId = ptr.String(xtv) } - case strings.EqualFold("logGroupName", t.Name.Local): + case strings.EqualFold("instances", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentHostInstanceList(&sv.Instances, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("memberOfServiceLinkedResourceGroup", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59702,11 +65221,14 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml break } { - xtv := string(val) - sv.LogGroupName = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.MemberOfServiceLinkedResourceGroup = ptr.Bool(xtv) } - case strings.EqualFold("maxAggregationInterval", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59716,14 +65238,10 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.MaxAggregationInterval = ptr.Int32(int32(i64)) + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("resourceId", t.Name.Local): + case strings.EqualFold("releaseTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59733,16 +65251,14 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.ResourceId = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ReleaseTime = ptr.Time(t) } - case strings.EqualFold("trafficType", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59752,55 +65268,17 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml } { xtv := string(val) - sv.TrafficType = types.TrafficType(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.State = types.AllocationState(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentFlowLogSet(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.FlowLog - if *v == nil { - sv = make([]types.FlowLog, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.FlowLog + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -59813,37 +65291,13 @@ func awsEc2query_deserializeDocumentFlowLogSet(v *[]types.FlowLog, decoder smith return nil } -func awsEc2query_deserializeDocumentFlowLogSetUnwrapped(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error { - var sv []types.FlowLog - if *v == nil { - sv = make([]types.FlowLog, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.FlowLog - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FpgaDeviceInfo + var sv *types.HostInstance if *v == nil { - sv = &types.FpgaDeviceInfo{} + sv = &types.HostInstance{} } else { sv = *v } @@ -59859,7 +65313,7 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("count", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59869,14 +65323,10 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Count = ptr.Int32(int32(i64)) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("manufacturer", t.Name.Local): + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59886,16 +65336,10 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec } { xtv := string(val) - sv.Manufacturer = ptr.String(xtv) - } - - case strings.EqualFold("memoryInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil { - return err + sv.InstanceType = ptr.String(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -59905,7 +65349,7 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.OwnerId = ptr.String(xtv) } default: @@ -59922,13 +65366,13 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, dec return nil } -func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostInstanceList(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FpgaDeviceInfo + var sv []types.HostInstance if *v == nil { - sv = make([]types.FpgaDeviceInfo, 0) + sv = make([]types.HostInstance, 0) } else { sv = *v } @@ -59944,10 +65388,10 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]types.FpgaDeviceInfo } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FpgaDeviceInfo + var col types.HostInstance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -59966,22 +65410,22 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]types.FpgaDeviceInfo return nil } -func awsEc2query_deserializeDocumentFpgaDeviceInfoListUnwrapped(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error { - var sv []types.FpgaDeviceInfo +func awsEc2query_deserializeDocumentHostInstanceListUnwrapped(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error { + var sv []types.HostInstance if *v == nil { - sv = make([]types.FpgaDeviceInfo, 0) + sv = make([]types.HostInstance, 0) } else { sv = *v } switch { default: - var mv types.FpgaDeviceInfo + var mv types.HostInstance t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -59990,17 +65434,18 @@ func awsEc2query_deserializeDocumentFpgaDeviceInfoListUnwrapped(v *[]types.FpgaD *v = sv return nil } -func awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(v **types.FpgaDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostList(v *[]types.Host, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FpgaDeviceMemoryInfo + var sv []types.Host if *v == nil { - sv = &types.FpgaDeviceMemoryInfo{} + sv = make([]types.Host, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -60009,28 +65454,18 @@ func awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(v **types.FpgaDeviceMem if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("sizeInMiB", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.Host + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SizeInMiB = ptr.Int32(int32(i64)) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -60043,13 +65478,37 @@ func awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(v **types.FpgaDeviceMem return nil } -func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostListUnwrapped(v *[]types.Host, decoder smithyxml.NodeDecoder) error { + var sv []types.Host + if *v == nil { + sv = make([]types.Host, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Host + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FpgaImage + var sv *types.HostOffering if *v == nil { - sv = &types.FpgaImage{} + sv = &types.HostOffering{} } else { sv = *v } @@ -60065,92 +65524,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("createTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CreateTime = ptr.Time(t) - } - - case strings.EqualFold("dataRetentionSupport", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.DataRetentionSupport = ptr.Bool(xtv) - } - - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("fpgaImageGlobalId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.FpgaImageGlobalId = ptr.String(xtv) - } - - case strings.EqualFold("fpgaImageId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.FpgaImageId = ptr.String(xtv) - } - - case strings.EqualFold("name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("ownerAlias", t.Name.Local): + case strings.EqualFold("currencyCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60160,10 +65534,10 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } { xtv := string(val) - sv.OwnerAlias = ptr.String(xtv) + sv.CurrencyCode = types.CurrencyCodeValues(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("duration", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60173,38 +65547,14 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) - } - - case strings.EqualFold("pciId", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPciId(&sv.PciId, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("productCodes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("public", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.Public = ptr.Bool(xtv) + sv.Duration = ptr.Int32(int32(i64)) } - case strings.EqualFold("shellVersion", t.Name.Local): + case strings.EqualFold("hourlyPrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60214,22 +65564,10 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } { xtv := string(val) - sv.ShellVersion = ptr.String(xtv) - } - - case strings.EqualFold("state", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaImageState(&sv.State, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("tags", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.HourlyPrice = ptr.String(xtv) } - case strings.EqualFold("updateTime", t.Name.Local): + case strings.EqualFold("instanceFamily", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60239,50 +65577,10 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.UpdateTime = ptr.Time(t) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.InstanceFamily = ptr.String(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.FpgaImageAttribute - if *v == nil { - sv = &types.FpgaImageAttribute{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("offeringId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60292,10 +65590,10 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.OfferingId = ptr.String(xtv) } - case strings.EqualFold("fpgaImageId", t.Name.Local): + case strings.EqualFold("paymentOption", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60305,16 +65603,10 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib } { xtv := string(val) - sv.FpgaImageId = ptr.String(xtv) - } - - case strings.EqualFold("loadPermissions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLoadPermissionList(&sv.LoadPermissions, nodeDecoder); err != nil { - return err + sv.PaymentOption = types.PaymentOption(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("upfrontPrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60324,13 +65616,7 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib } { xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("productCodes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { - return err + sv.UpfrontPrice = ptr.String(xtv) } default: @@ -60347,13 +65633,13 @@ func awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttrib return nil } -func awsEc2query_deserializeDocumentFpgaImageList(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostOfferingSet(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.FpgaImage + var sv []types.HostOffering if *v == nil { - sv = make([]types.FpgaImage, 0) + sv = make([]types.HostOffering, 0) } else { sv = *v } @@ -60369,10 +65655,10 @@ func awsEc2query_deserializeDocumentFpgaImageList(v *[]types.FpgaImage, decoder } switch { case strings.EqualFold("item", t.Name.Local): - var col types.FpgaImage + var col types.HostOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -60391,22 +65677,22 @@ func awsEc2query_deserializeDocumentFpgaImageList(v *[]types.FpgaImage, decoder return nil } -func awsEc2query_deserializeDocumentFpgaImageListUnwrapped(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error { - var sv []types.FpgaImage +func awsEc2query_deserializeDocumentHostOfferingSetUnwrapped(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.HostOffering if *v == nil { - sv = make([]types.FpgaImage, 0) + sv = make([]types.HostOffering, 0) } else { sv = *v } switch { default: - var mv types.FpgaImage + var mv types.HostOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -60415,13 +65701,13 @@ func awsEc2query_deserializeDocumentFpgaImageListUnwrapped(v *[]types.FpgaImage, *v = sv return nil } -func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.FpgaImageState + var sv *types.HostProperties if *v == nil { - sv = &types.FpgaImageState{} + sv = &types.HostProperties{} } else { sv = *v } @@ -60437,7 +65723,7 @@ func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("cores", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60447,10 +65733,14 @@ func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, dec } { xtv := string(val) - sv.Code = types.FpgaImageStateCode(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Cores = ptr.Int32(int32(i64)) } - case strings.EqualFold("message", t.Name.Local): + case strings.EqualFold("instanceFamily", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60460,52 +65750,40 @@ func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, dec } { xtv := string(val) - sv.Message = ptr.String(xtv) + sv.InstanceFamily = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentFpgaInfo(v **types.FpgaInfo, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.FpgaInfo - if *v == nil { - sv = &types.FpgaInfo{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("fpgas", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaDeviceInfoList(&sv.Fpgas, nodeDecoder); err != nil { + case strings.EqualFold("sockets", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Sockets = ptr.Int32(int32(i64)) + } - case strings.EqualFold("totalFpgaMemoryInMiB", t.Name.Local): + case strings.EqualFold("totalVCpus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60519,7 +65797,7 @@ func awsEc2query_deserializeDocumentFpgaInfo(v **types.FpgaInfo, decoder smithyx if err != nil { return err } - sv.TotalFpgaMemoryInMiB = ptr.Int32(int32(i64)) + sv.TotalVCpus = ptr.Int32(int32(i64)) } default: @@ -60536,13 +65814,13 @@ func awsEc2query_deserializeDocumentFpgaInfo(v **types.FpgaInfo, decoder smithyx return nil } -func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GpuDeviceInfo + var sv *types.HostReservation if *v == nil { - sv = &types.GpuDeviceInfo{} + sv = &types.HostReservation{} } else { sv = *v } @@ -60575,7 +65853,7 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod sv.Count = ptr.Int32(int32(i64)) } - case strings.EqualFold("manufacturer", t.Name.Local): + case strings.EqualFold("currencyCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60585,16 +65863,50 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod } { xtv := string(val) - sv.Manufacturer = ptr.String(xtv) + sv.CurrencyCode = types.CurrencyCodeValues(xtv) } - case strings.EqualFold("memoryInfo", t.Name.Local): + case strings.EqualFold("duration", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Duration = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("end", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.End = ptr.Time(t) + } + + case strings.EqualFold("hostIdSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentResponseHostIdSet(&sv.HostIdSet, nodeDecoder); err != nil { return err } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("hostReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60604,7 +65916,108 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.HostReservationId = ptr.String(xtv) + } + + case strings.EqualFold("hourlyPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.HourlyPrice = ptr.String(xtv) + } + + case strings.EqualFold("instanceFamily", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceFamily = ptr.String(xtv) + } + + case strings.EqualFold("offeringId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OfferingId = ptr.String(xtv) + } + + case strings.EqualFold("paymentOption", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PaymentOption = types.PaymentOption(xtv) + } + + case strings.EqualFold("start", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.Start = ptr.Time(t) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.ReservationState(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("upfrontPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UpfrontPrice = ptr.String(xtv) } default: @@ -60621,13 +66034,13 @@ func awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decod return nil } -func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentHostReservationSet(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.GpuDeviceInfo + var sv []types.HostReservation if *v == nil { - sv = make([]types.GpuDeviceInfo, 0) + sv = make([]types.HostReservation, 0) } else { sv = *v } @@ -60643,10 +66056,10 @@ func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]types.GpuDeviceInfo, } switch { case strings.EqualFold("item", t.Name.Local): - var col types.GpuDeviceInfo + var col types.HostReservation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -60665,22 +66078,22 @@ func awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]types.GpuDeviceInfo, return nil } -func awsEc2query_deserializeDocumentGpuDeviceInfoListUnwrapped(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error { - var sv []types.GpuDeviceInfo +func awsEc2query_deserializeDocumentHostReservationSetUnwrapped(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error { + var sv []types.HostReservation if *v == nil { - sv = make([]types.GpuDeviceInfo, 0) + sv = make([]types.HostReservation, 0) } else { sv = *v } switch { default: - var mv types.GpuDeviceInfo + var mv types.HostReservation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -60689,13 +66102,13 @@ func awsEc2query_deserializeDocumentGpuDeviceInfoListUnwrapped(v *[]types.GpuDev *v = sv return nil } -func awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(v **types.GpuDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProfile, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GpuDeviceMemoryInfo + var sv *types.IamInstanceProfile if *v == nil { - sv = &types.GpuDeviceMemoryInfo{} + sv = &types.IamInstanceProfile{} } else { sv = *v } @@ -60711,7 +66124,7 @@ func awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(v **types.GpuDeviceMemor originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("sizeInMiB", t.Name.Local): + case strings.EqualFold("arn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60721,11 +66134,20 @@ func awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(v **types.GpuDeviceMemor } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SizeInMiB = ptr.Int32(int32(i64)) + sv.Arn = ptr.String(xtv) + } + + case strings.EqualFold("id", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Id = ptr.String(xtv) } default: @@ -60742,13 +66164,13 @@ func awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(v **types.GpuDeviceMemor return nil } -func awsEc2query_deserializeDocumentGpuInfo(v **types.GpuInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.GpuInfo + var sv *types.IamInstanceProfileAssociation if *v == nil { - sv = &types.GpuInfo{} + sv = &types.IamInstanceProfileAssociation{} } else { sv = *v } @@ -60764,13 +66186,7 @@ func awsEc2query_deserializeDocumentGpuInfo(v **types.GpuInfo, decoder smithyxml originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("gpus", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGpuDeviceInfoList(&sv.Gpus, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("totalGpuMemoryInMiB", t.Name.Local): + case strings.EqualFold("associationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60780,50 +66196,16 @@ func awsEc2query_deserializeDocumentGpuInfo(v **types.GpuInfo, decoder smithyxml } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalGpuMemoryInMiB = ptr.Int32(int32(i64)) + sv.AssociationId = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("iamInstanceProfile", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIamInstanceProfile(&sv.IamInstanceProfile, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.GroupIdentifier - if *v == nil { - sv = &types.GroupIdentifier{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("groupId", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60833,10 +66215,10 @@ func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, d } { xtv := string(val) - sv.GroupId = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("groupName", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -60846,98 +66228,47 @@ func awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, d } { xtv := string(val) - sv.GroupName = ptr.String(xtv) + sv.State = types.IamInstanceProfileAssociationState(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("timestamp", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentGroupIdentifierList(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.GroupIdentifier - if *v == nil { - sv = make([]types.GroupIdentifier, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.GroupIdentifier - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.Timestamp = ptr.Time(t) } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentGroupIdentifierListUnwrapped(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error { - var sv []types.GroupIdentifier - if *v == nil { - sv = make([]types.GroupIdentifier, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.GroupIdentifier - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil { - return err + } + } - mv = *destAddr - sv = append(sv, mv) + decoder = originalDecoder } *v = sv return nil } -func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { + +func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.SecurityGroupIdentifier + var sv []types.IamInstanceProfileAssociation if *v == nil { - sv = make([]types.SecurityGroupIdentifier, 0) + sv = make([]types.IamInstanceProfileAssociation, 0) } else { sv = *v } @@ -60953,10 +66284,10 @@ func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]types.SecurityGroupI } switch { case strings.EqualFold("item", t.Name.Local): - var col types.SecurityGroupIdentifier + var col types.IamInstanceProfileAssociation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -60975,22 +66306,22 @@ func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]types.SecurityGroupI return nil } -func awsEc2query_deserializeDocumentGroupIdentifierSetUnwrapped(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error { - var sv []types.SecurityGroupIdentifier +func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSetUnwrapped(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.IamInstanceProfileAssociation if *v == nil { - sv = make([]types.SecurityGroupIdentifier, 0) + sv = make([]types.IamInstanceProfileAssociation, 0) } else { sv = *v } switch { default: - var mv types.SecurityGroupIdentifier + var mv types.IamInstanceProfileAssociation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -60999,18 +66330,17 @@ func awsEc2query_deserializeDocumentGroupIdentifierSetUnwrapped(v *[]types.Secur *v = sv return nil } -func awsEc2query_deserializeDocumentGroupIdStringList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.IamInstanceProfileSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.IamInstanceProfileSpecification if *v == nil { - sv = make([]string, 0) + sv = &types.IamInstanceProfileSpecification{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -61019,11 +66349,10 @@ func awsEc2query_deserializeDocumentGroupIdStringList(v *[]string, decoder smith if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("groupId", t.Name.Local): - var col string + case strings.EqualFold("arn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61033,75 +66362,10 @@ func awsEc2query_deserializeDocumentGroupIdStringList(v *[]string, decoder smith } { xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.Arn = ptr.String(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentGroupIdStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOptions, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HibernationOptions - if *v == nil { - sv = &types.HibernationOptions{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("configured", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61110,11 +66374,8 @@ func awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOpti break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Configured = ptr.Bool(xtv) + xtv := string(val) + sv.Name = ptr.String(xtv) } default: @@ -61131,13 +66392,13 @@ func awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOpti return nil } -func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.HistoryRecord + var sv *types.IcmpTypeCode if *v == nil { - sv = &types.HistoryRecord{} + sv = &types.IcmpTypeCode{} } else { sv = *v } @@ -61153,13 +66414,7 @@ func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decod originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("eventInformation", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEventInformation(&sv.EventInformation, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("eventType", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61169,10 +66424,14 @@ func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decod } { xtv := string(val) - sv.EventType = types.EventType(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Code = ptr.Int32(int32(i64)) } - case strings.EqualFold("timestamp", t.Name.Local): + case strings.EqualFold("type", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61182,11 +66441,11 @@ func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decod } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { return err } - sv.Timestamp = ptr.Time(t) + sv.Type = ptr.Int32(int32(i64)) } default: @@ -61203,13 +66462,13 @@ func awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decod return nil } -func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.HistoryRecordEntry + var sv *types.IdFormat if *v == nil { - sv = &types.HistoryRecordEntry{} + sv = &types.IdFormat{} } else { sv = *v } @@ -61225,13 +66484,24 @@ func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEn originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("eventInformation", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEventInformation(&sv.EventInformation, nodeDecoder); err != nil { + case strings.EqualFold("deadline", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.Deadline = ptr.Time(t) + } - case strings.EqualFold("eventType", t.Name.Local): + case strings.EqualFold("resource", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61241,10 +66511,10 @@ func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEn } { xtv := string(val) - sv.EventType = types.FleetEventType(xtv) + sv.Resource = ptr.String(xtv) } - case strings.EqualFold("timestamp", t.Name.Local): + case strings.EqualFold("useLongIds", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61253,12 +66523,11 @@ func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEn break } { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Timestamp = ptr.Time(t) + sv.UseLongIds = ptr.Bool(xtv) } default: @@ -61275,13 +66544,13 @@ func awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEn return nil } -func awsEc2query_deserializeDocumentHistoryRecords(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIdFormatList(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.HistoryRecord + var sv []types.IdFormat if *v == nil { - sv = make([]types.HistoryRecord, 0) + sv = make([]types.IdFormat, 0) } else { sv = *v } @@ -61297,10 +66566,10 @@ func awsEc2query_deserializeDocumentHistoryRecords(v *[]types.HistoryRecord, dec } switch { case strings.EqualFold("item", t.Name.Local): - var col types.HistoryRecord + var col types.IdFormat nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -61319,22 +66588,22 @@ func awsEc2query_deserializeDocumentHistoryRecords(v *[]types.HistoryRecord, dec return nil } -func awsEc2query_deserializeDocumentHistoryRecordsUnwrapped(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error { - var sv []types.HistoryRecord +func awsEc2query_deserializeDocumentIdFormatListUnwrapped(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error { + var sv []types.IdFormat if *v == nil { - sv = make([]types.HistoryRecord, 0) + sv = make([]types.IdFormat, 0) } else { sv = *v } switch { default: - var mv types.HistoryRecord + var mv types.IdFormat t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -61343,13 +66612,13 @@ func awsEc2query_deserializeDocumentHistoryRecordsUnwrapped(v *[]types.HistoryRe *v = sv return nil } -func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIKEVersionsList(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.HistoryRecordEntry + var sv []types.IKEVersionsListValue if *v == nil { - sv = make([]types.HistoryRecordEntry, 0) + sv = make([]types.IKEVersionsListValue, 0) } else { sv = *v } @@ -61365,10 +66634,10 @@ func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]types.HistoryRecordEnt } switch { case strings.EqualFold("item", t.Name.Local): - var col types.HistoryRecordEntry + var col types.IKEVersionsListValue nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -61387,22 +66656,22 @@ func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]types.HistoryRecordEnt return nil } -func awsEc2query_deserializeDocumentHistoryRecordSetUnwrapped(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error { - var sv []types.HistoryRecordEntry +func awsEc2query_deserializeDocumentIKEVersionsListUnwrapped(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { + var sv []types.IKEVersionsListValue if *v == nil { - sv = make([]types.HistoryRecordEntry, 0) + sv = make([]types.IKEVersionsListValue, 0) } else { sv = *v } switch { default: - var mv types.HistoryRecordEntry + var mv types.IKEVersionsListValue t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -61411,13 +66680,13 @@ func awsEc2query_deserializeDocumentHistoryRecordSetUnwrapped(v *[]types.History *v = sv return nil } -func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIKEVersionsListValue(v **types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Host + var sv *types.IKEVersionsListValue if *v == nil { - sv = &types.Host{} + sv = &types.IKEVersionsListValue{} } else { sv = *v } @@ -61433,7 +66702,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("allocationTime", t.Name.Local): + case strings.EqualFold("value", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61443,14 +66712,46 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.AllocationTime = ptr.Time(t) + sv.Value = ptr.String(xtv) } - case strings.EqualFold("allowsMultipleInstanceTypes", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.Image + if *v == nil { + sv = &types.Image{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("architecture", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61460,10 +66761,16 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.AllowsMultipleInstanceTypes = types.AllowsMultipleInstanceTypes(xtv) + sv.Architecture = types.ArchitectureValues(xtv) } - case strings.EqualFold("autoPlacement", t.Name.Local): + case strings.EqualFold("blockDeviceMapping", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("bootMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61473,10 +66780,10 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.AutoPlacement = types.AutoPlacement(xtv) + sv.BootMode = types.BootModeValues(xtv) } - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("creationDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61486,10 +66793,10 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + sv.CreationDate = ptr.String(xtv) } - case strings.EqualFold("availabilityZoneId", t.Name.Local): + case strings.EqualFold("deprecationTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61499,16 +66806,39 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.AvailabilityZoneId = ptr.String(xtv) + sv.DeprecationTime = ptr.String(xtv) } - case strings.EqualFold("availableCapacity", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAvailableCapacity(&sv.AvailableCapacity, nodeDecoder); err != nil { + case strings.EqualFold("description", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } - case strings.EqualFold("clientToken", t.Name.Local): + case strings.EqualFold("enaSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.EnaSupport = ptr.Bool(xtv) + } + + case strings.EqualFold("hypervisor", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61518,10 +66848,10 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.ClientToken = ptr.String(xtv) + sv.Hypervisor = types.HypervisorType(xtv) } - case strings.EqualFold("hostId", t.Name.Local): + case strings.EqualFold("imageId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61531,16 +66861,23 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.HostId = ptr.String(xtv) + sv.ImageId = ptr.String(xtv) } - case strings.EqualFold("hostProperties", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostProperties(&sv.HostProperties, nodeDecoder); err != nil { + case strings.EqualFold("imageLocation", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.ImageLocation = ptr.String(xtv) + } - case strings.EqualFold("hostRecovery", t.Name.Local): + case strings.EqualFold("imageOwnerAlias", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61550,10 +66887,10 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.HostRecovery = types.HostRecovery(xtv) + sv.ImageOwnerAlias = ptr.String(xtv) } - case strings.EqualFold("hostReservationId", t.Name.Local): + case strings.EqualFold("imageType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61563,16 +66900,23 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.HostReservationId = ptr.String(xtv) + sv.ImageType = types.ImageTypeValues(xtv) } - case strings.EqualFold("instances", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHostInstanceList(&sv.Instances, nodeDecoder); err != nil { + case strings.EqualFold("kernelId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.KernelId = ptr.String(xtv) + } - case strings.EqualFold("memberOfServiceLinkedResourceGroup", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61581,14 +66925,11 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.MemberOfServiceLinkedResourceGroup = ptr.Bool(xtv) + xtv := string(val) + sv.Name = ptr.String(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("imageOwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61601,7 +66942,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("releaseTime", t.Name.Local): + case strings.EqualFold("platform", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61611,14 +66952,10 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.ReleaseTime = ptr.Time(t) + sv.Platform = types.PlatformValues(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("platformDetails", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61628,52 +66965,58 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD } { xtv := string(val) - sv.State = types.AllocationState(xtv) + sv.PlatformDetails = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("productCodes", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { return err } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("isPublic", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Public = ptr.Bool(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} + case strings.EqualFold("ramdiskId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.RamdiskId = ptr.String(xtv) + } -func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HostInstance - if *v == nil { - sv = &types.HostInstance{} - } else { - sv = *v - } + case strings.EqualFold("rootDeviceName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.RootDeviceName = ptr.String(xtv) + } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("rootDeviceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61683,10 +67026,10 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.RootDeviceType = types.DeviceType(xtv) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("sriovNetSupport", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61696,10 +67039,10 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder } { xtv := string(val) - sv.InstanceType = ptr.String(xtv) + sv.SriovNetSupport = ptr.String(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("imageState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61709,7 +67052,45 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + sv.State = types.ImageState(xtv) + } + + case strings.EqualFold("stateReason", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentStateReason(&sv.StateReason, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("usageOperation", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UsageOperation = ptr.String(xtv) + } + + case strings.EqualFold("virtualizationType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VirtualizationType = types.VirtualizationType(xtv) } default: @@ -61726,13 +67107,13 @@ func awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder return nil } -func awsEc2query_deserializeDocumentHostInstanceList(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImageList(v *[]types.Image, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.HostInstance + var sv []types.Image if *v == nil { - sv = make([]types.HostInstance, 0) + sv = make([]types.Image, 0) } else { sv = *v } @@ -61748,10 +67129,10 @@ func awsEc2query_deserializeDocumentHostInstanceList(v *[]types.HostInstance, de } switch { case strings.EqualFold("item", t.Name.Local): - var col types.HostInstance + var col types.Image nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -61770,22 +67151,22 @@ func awsEc2query_deserializeDocumentHostInstanceList(v *[]types.HostInstance, de return nil } -func awsEc2query_deserializeDocumentHostInstanceListUnwrapped(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error { - var sv []types.HostInstance +func awsEc2query_deserializeDocumentImageListUnwrapped(v *[]types.Image, decoder smithyxml.NodeDecoder) error { + var sv []types.Image if *v == nil { - sv = make([]types.HostInstance, 0) + sv = make([]types.Image, 0) } else { sv = *v } switch { default: - var mv types.HostInstance + var mv types.Image t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -61794,13 +67175,62 @@ func awsEc2query_deserializeDocumentHostInstanceListUnwrapped(v *[]types.HostIns *v = sv return nil } -func awsEc2query_deserializeDocumentHostList(v *[]types.Host, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v **types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Host + var sv *types.ImportImageLicenseConfigurationResponse if *v == nil { - sv = make([]types.Host, 0) + sv = &types.ImportImageLicenseConfigurationResponse{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("licenseConfigurationArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LicenseConfigurationArn = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ImportImageLicenseConfigurationResponse + if *v == nil { + sv = make([]types.ImportImageLicenseConfigurationResponse, 0) } else { sv = *v } @@ -61816,10 +67246,10 @@ func awsEc2query_deserializeDocumentHostList(v *[]types.Host, decoder smithyxml. } switch { case strings.EqualFold("item", t.Name.Local): - var col types.Host + var col types.ImportImageLicenseConfigurationResponse nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -61838,22 +67268,22 @@ func awsEc2query_deserializeDocumentHostList(v *[]types.Host, decoder smithyxml. return nil } -func awsEc2query_deserializeDocumentHostListUnwrapped(v *[]types.Host, decoder smithyxml.NodeDecoder) error { - var sv []types.Host +func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponseUnwrapped(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportImageLicenseConfigurationResponse if *v == nil { - sv = make([]types.Host, 0) + sv = make([]types.ImportImageLicenseConfigurationResponse, 0) } else { sv = *v } switch { default: - var mv types.Host + var mv types.ImportImageLicenseConfigurationResponse t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -61862,13 +67292,13 @@ func awsEc2query_deserializeDocumentHostListUnwrapped(v *[]types.Host, decoder s *v = sv return nil } -func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.HostOffering + var sv *types.ImportImageTask if *v == nil { - sv = &types.HostOffering{} + sv = &types.ImportImageTask{} } else { sv = *v } @@ -61884,7 +67314,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("currencyCode", t.Name.Local): + case strings.EqualFold("architecture", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61894,10 +67324,10 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - sv.CurrencyCode = types.CurrencyCodeValues(xtv) + sv.Architecture = ptr.String(xtv) } - case strings.EqualFold("duration", t.Name.Local): + case strings.EqualFold("bootMode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61907,14 +67337,39 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + sv.BootMode = types.BootModeValues(xtv) + } + + case strings.EqualFold("description", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("encrypted", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Duration = ptr.Int32(int32(i64)) + sv.Encrypted = ptr.Bool(xtv) } - case strings.EqualFold("hourlyPrice", t.Name.Local): + case strings.EqualFold("hypervisor", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61924,10 +67379,10 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - sv.HourlyPrice = ptr.String(xtv) + sv.Hypervisor = ptr.String(xtv) } - case strings.EqualFold("instanceFamily", t.Name.Local): + case strings.EqualFold("imageId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61937,10 +67392,10 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - sv.InstanceFamily = ptr.String(xtv) + sv.ImageId = ptr.String(xtv) } - case strings.EqualFold("offeringId", t.Name.Local): + case strings.EqualFold("importTaskId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61950,10 +67405,10 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - sv.OfferingId = ptr.String(xtv) + sv.ImportTaskId = ptr.String(xtv) } - case strings.EqualFold("paymentOption", t.Name.Local): + case strings.EqualFold("kmsKeyId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61963,10 +67418,16 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - sv.PaymentOption = types.PaymentOption(xtv) + sv.KmsKeyId = ptr.String(xtv) } - case strings.EqualFold("upfrontPrice", t.Name.Local): + case strings.EqualFold("licenseSpecifications", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(&sv.LicenseSpecifications, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("licenseType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -61976,7 +67437,84 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder } { xtv := string(val) - sv.UpfrontPrice = ptr.String(xtv) + sv.LicenseType = ptr.String(xtv) + } + + case strings.EqualFold("platform", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Platform = ptr.String(xtv) + } + + case strings.EqualFold("progress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Progress = ptr.String(xtv) + } + + case strings.EqualFold("snapshotDetailSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSnapshotDetailList(&sv.SnapshotDetails, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("status", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = ptr.String(xtv) + } + + case strings.EqualFold("statusMessage", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StatusMessage = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("usageOperation", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UsageOperation = ptr.String(xtv) } default: @@ -61993,13 +67531,13 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder return nil } -func awsEc2query_deserializeDocumentHostOfferingSet(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportImageTaskList(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.HostOffering + var sv []types.ImportImageTask if *v == nil { - sv = make([]types.HostOffering, 0) + sv = make([]types.ImportImageTask, 0) } else { sv = *v } @@ -62015,10 +67553,10 @@ func awsEc2query_deserializeDocumentHostOfferingSet(v *[]types.HostOffering, dec } switch { case strings.EqualFold("item", t.Name.Local): - var col types.HostOffering + var col types.ImportImageTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -62037,22 +67575,22 @@ func awsEc2query_deserializeDocumentHostOfferingSet(v *[]types.HostOffering, dec return nil } -func awsEc2query_deserializeDocumentHostOfferingSetUnwrapped(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error { - var sv []types.HostOffering +func awsEc2query_deserializeDocumentImportImageTaskListUnwrapped(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportImageTask if *v == nil { - sv = make([]types.HostOffering, 0) + sv = make([]types.ImportImageTask, 0) } else { sv = *v } switch { default: - var mv types.HostOffering + var mv types.ImportImageTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -62061,13 +67599,13 @@ func awsEc2query_deserializeDocumentHostOfferingSetUnwrapped(v *[]types.HostOffe *v = sv return nil } -func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportInstanceTaskDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.HostProperties + var sv *types.ImportInstanceTaskDetails if *v == nil { - sv = &types.HostProperties{} + sv = &types.ImportInstanceTaskDetails{} } else { sv = *v } @@ -62083,24 +67621,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cores", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Cores = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("instanceFamily", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62110,10 +67631,10 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec } { xtv := string(val) - sv.InstanceFamily = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62123,10 +67644,10 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec } { xtv := string(val) - sv.InstanceType = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("sockets", t.Name.Local): + case strings.EqualFold("platform", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62136,29 +67657,14 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Sockets = ptr.Int32(int32(i64)) + sv.Platform = types.PlatformValues(xtv) } - case strings.EqualFold("totalVCpus", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("volumes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(&sv.Volumes, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalVCpus = ptr.Int32(int32(i64)) - } default: // Do nothing and ignore the unexpected tag element @@ -62174,13 +67680,13 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec return nil } -func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.HostReservation + var sv *types.ImportInstanceVolumeDetailItem if *v == nil { - sv = &types.HostReservation{} + sv = &types.ImportInstanceVolumeDetailItem{} } else { sv = *v } @@ -62196,24 +67702,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("count", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Count = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("currencyCode", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62223,10 +67712,10 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } { xtv := string(val) - sv.CurrencyCode = types.CurrencyCodeValues(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("duration", t.Name.Local): + case strings.EqualFold("bytesConverted", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62240,10 +67729,10 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.Duration = ptr.Int32(int32(i64)) + sv.BytesConverted = ptr.Int64(i64) } - case strings.EqualFold("end", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62253,85 +67742,16 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.End = ptr.Time(t) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("hostIdSet", t.Name.Local): + case strings.EqualFold("image", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentResponseHostIdSet(&sv.HostIdSet, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("hostReservationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HostReservationId = ptr.String(xtv) - } - - case strings.EqualFold("hourlyPrice", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HourlyPrice = ptr.String(xtv) - } - - case strings.EqualFold("instanceFamily", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceFamily = ptr.String(xtv) - } - - case strings.EqualFold("offeringId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OfferingId = ptr.String(xtv) - } - - case strings.EqualFold("paymentOption", t.Name.Local): - val, err := decoder.Value() - if err != nil { + if err := awsEc2query_deserializeDocumentDiskImageDescription(&sv.Image, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PaymentOption = types.PaymentOption(xtv) - } - case strings.EqualFold("start", t.Name.Local): + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62341,14 +67761,10 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.Start = ptr.Time(t) + sv.Status = ptr.String(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("statusMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62358,27 +67774,14 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d } { xtv := string(val) - sv.State = types.ReservationState(xtv) + sv.StatusMessage = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("volume", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("upfrontPrice", t.Name.Local): - val, err := decoder.Value() - if err != nil { + if err := awsEc2query_deserializeDocumentDiskImageVolumeDescription(&sv.Volume, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.UpfrontPrice = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -62394,85 +67797,18 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d return nil } -func awsEc2query_deserializeDocumentHostReservationSet(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.HostReservation - if *v == nil { - sv = make([]types.HostReservation, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.HostReservation - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentHostReservationSetUnwrapped(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error { - var sv []types.HostReservation - if *v == nil { - sv = make([]types.HostReservation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.HostReservation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProfile, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.IamInstanceProfile + var sv []types.ImportInstanceVolumeDetailItem if *v == nil { - sv = &types.IamInstanceProfile{} + sv = make([]types.ImportInstanceVolumeDetailItem, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -62481,37 +67817,18 @@ func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProf if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("arn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Arn = ptr.String(xtv) - } - - case strings.EqualFold("id", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.ImportInstanceVolumeDetailItem + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -62524,13 +67841,37 @@ func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProf return nil } -func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSetUnwrapped(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportInstanceVolumeDetailItem + if *v == nil { + sv = make([]types.ImportInstanceVolumeDetailItem, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ImportInstanceVolumeDetailItem + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.IamInstanceProfileAssociation + var sv *types.ImportSnapshotTask if *v == nil { - sv = &types.IamInstanceProfileAssociation{} + sv = &types.ImportSnapshotTask{} } else { sv = *v } @@ -62546,7 +67887,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("associationId", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62556,16 +67897,10 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI } { xtv := string(val) - sv.AssociationId = ptr.String(xtv) - } - - case strings.EqualFold("iamInstanceProfile", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIamInstanceProfile(&sv.IamInstanceProfile, nodeDecoder); err != nil { - return err + sv.Description = ptr.String(xtv) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("importTaskId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62575,38 +67910,20 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.ImportTaskId = ptr.String(xtv) } - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("snapshotTaskDetail", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSnapshotTaskDetail(&sv.SnapshotTaskDetail, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.IamInstanceProfileAssociationState(xtv) - } - case strings.EqualFold("timestamp", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.Timestamp = ptr.Time(t) - } default: // Do nothing and ignore the unexpected tag element @@ -62622,13 +67939,13 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamI return nil } -func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.IamInstanceProfileAssociation + var sv []types.ImportSnapshotTask if *v == nil { - sv = make([]types.IamInstanceProfileAssociation, 0) + sv = make([]types.ImportSnapshotTask, 0) } else { sv = *v } @@ -62644,10 +67961,10 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]types. } switch { case strings.EqualFold("item", t.Name.Local): - var col types.IamInstanceProfileAssociation + var col types.ImportSnapshotTask nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -62666,22 +67983,22 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]types. return nil } -func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSetUnwrapped(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error { - var sv []types.IamInstanceProfileAssociation +func awsEc2query_deserializeDocumentImportSnapshotTaskListUnwrapped(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ImportSnapshotTask if *v == nil { - sv = make([]types.IamInstanceProfileAssociation, 0) + sv = make([]types.ImportSnapshotTask, 0) } else { sv = *v } switch { default: - var mv types.IamInstanceProfileAssociation + var mv types.ImportSnapshotTask t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -62690,13 +68007,13 @@ func awsEc2query_deserializeDocumentIamInstanceProfileAssociationSetUnwrapped(v *v = sv return nil } -func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.IamInstanceProfileSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolumeTaskDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.IamInstanceProfileSpecification + var sv *types.ImportVolumeTaskDetails if *v == nil { - sv = &types.IamInstanceProfileSpecification{} + sv = &types.ImportVolumeTaskDetails{} } else { sv = *v } @@ -62712,7 +68029,7 @@ func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.Ia originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("arn", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62722,10 +68039,10 @@ func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.Ia } { xtv := string(val) - sv.Arn = ptr.String(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("bytesConverted", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62735,7 +68052,36 @@ func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.Ia } { xtv := string(val) - sv.Name = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.BytesConverted = ptr.Int64(i64) + } + + case strings.EqualFold("description", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Description = ptr.String(xtv) + } + + case strings.EqualFold("image", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDiskImageDescription(&sv.Image, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("volume", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDiskImageVolumeDescription(&sv.Volume, nodeDecoder); err != nil { + return err } default: @@ -62752,13 +68098,13 @@ func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.Ia return nil } -func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInferenceAcceleratorInfo(v **types.InferenceAcceleratorInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.IcmpTypeCode + var sv *types.InferenceAcceleratorInfo if *v == nil { - sv = &types.IcmpTypeCode{} + sv = &types.InferenceAcceleratorInfo{} } else { sv = *v } @@ -62774,39 +68120,11 @@ func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Code = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("type", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("accelerators", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInferenceDeviceInfoList(&sv.Accelerators, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Type = ptr.Int32(int32(i64)) - } default: // Do nothing and ignore the unexpected tag element @@ -62822,13 +68140,13 @@ func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder return nil } -func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.IdFormat + var sv *types.InferenceDeviceInfo if *v == nil { - sv = &types.IdFormat{} + sv = &types.InferenceDeviceInfo{} } else { sv = *v } @@ -62844,7 +68162,7 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("deadline", t.Name.Local): + case strings.EqualFold("count", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62854,14 +68172,14 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { return err } - sv.Deadline = ptr.Time(t) + sv.Count = ptr.Int32(int32(i64)) } - case strings.EqualFold("resource", t.Name.Local): + case strings.EqualFold("manufacturer", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62871,10 +68189,10 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx } { xtv := string(val) - sv.Resource = ptr.String(xtv) + sv.Manufacturer = ptr.String(xtv) } - case strings.EqualFold("useLongIds", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -62883,11 +68201,8 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.UseLongIds = ptr.Bool(xtv) + xtv := string(val) + sv.Name = ptr.String(xtv) } default: @@ -62904,13 +68219,13 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx return nil } -func awsEc2query_deserializeDocumentIdFormatList(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.IdFormat + var sv []types.InferenceDeviceInfo if *v == nil { - sv = make([]types.IdFormat, 0) + sv = make([]types.InferenceDeviceInfo, 0) } else { sv = *v } @@ -62925,11 +68240,11 @@ func awsEc2query_deserializeDocumentIdFormatList(v *[]types.IdFormat, decoder sm break } switch { - case strings.EqualFold("item", t.Name.Local): - var col types.IdFormat + case strings.EqualFold("member", t.Name.Local): + var col types.InferenceDeviceInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -62948,22 +68263,22 @@ func awsEc2query_deserializeDocumentIdFormatList(v *[]types.IdFormat, decoder sm return nil } -func awsEc2query_deserializeDocumentIdFormatListUnwrapped(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error { - var sv []types.IdFormat +func awsEc2query_deserializeDocumentInferenceDeviceInfoListUnwrapped(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.InferenceDeviceInfo if *v == nil { - sv = make([]types.IdFormat, 0) + sv = make([]types.InferenceDeviceInfo, 0) } else { sv = *v } switch { default: - var mv types.IdFormat + var mv types.InferenceDeviceInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -62972,13 +68287,13 @@ func awsEc2query_deserializeDocumentIdFormatListUnwrapped(v *[]types.IdFormat, d *v = sv return nil } -func awsEc2query_deserializeDocumentIKEVersionsList(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInsideCidrBlocksStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.IKEVersionsListValue + var sv []string if *v == nil { - sv = make([]types.IKEVersionsListValue, 0) + sv = make([]string, 0) } else { sv = *v } @@ -62992,15 +68307,22 @@ func awsEc2query_deserializeDocumentIKEVersionsList(v *[]types.IKEVersionsListVa if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.IKEVersionsListValue - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil { + var col string + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } sv = append(sv, col) default: @@ -63016,37 +68338,42 @@ func awsEc2query_deserializeDocumentIKEVersionsList(v *[]types.IKEVersionsListVa return nil } -func awsEc2query_deserializeDocumentIKEVersionsListUnwrapped(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { - var sv []types.IKEVersionsListValue +func awsEc2query_deserializeDocumentInsideCidrBlocksStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string if *v == nil { - sv = make([]types.IKEVersionsListValue, 0) + sv = make([]string, 0) } else { sv = *v } switch { default: - var mv types.IKEVersionsListValue + var mv string t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentIKEVersionsListValue(v **types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.IKEVersionsListValue + var sv *types.Instance if *v == nil { - sv = &types.IKEVersionsListValue{} + sv = &types.Instance{} } else { sv = *v } @@ -63062,7 +68389,7 @@ func awsEc2query_deserializeDocumentIKEVersionsListValue(v **types.IKEVersionsLi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("value", t.Name.Local): + case strings.EqualFold("amiLaunchIndex", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63072,45 +68399,13 @@ func awsEc2query_deserializeDocumentIKEVersionsListValue(v **types.IKEVersionsLi } { xtv := string(val) - sv.Value = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.AmiLaunchIndex = ptr.Int32(int32(i64)) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Image - if *v == nil { - sv = &types.Image{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { case strings.EqualFold("architecture", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -63126,7 +68421,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod case strings.EqualFold("blockDeviceMapping", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { return err } @@ -63143,7 +68438,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.BootMode = types.BootModeValues(xtv) } - case strings.EqualFold("creationDate", t.Name.Local): + case strings.EqualFold("capacityReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63153,10 +68448,16 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.CreationDate = ptr.String(xtv) + sv.CapacityReservationId = ptr.String(xtv) } - case strings.EqualFold("deprecationTime", t.Name.Local): + case strings.EqualFold("capacityReservationSpecification", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(&sv.CapacityReservationSpecification, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("clientToken", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63166,10 +68467,16 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.DeprecationTime = ptr.String(xtv) + sv.ClientToken = ptr.String(xtv) } - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("cpuOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCpuOptions(&sv.CpuOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ebsOptimized", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63178,8 +68485,23 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod break } { - xtv := string(val) - sv.Description = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.EbsOptimized = ptr.Bool(xtv) + } + + case strings.EqualFold("elasticGpuAssociationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentElasticGpuAssociationList(&sv.ElasticGpuAssociations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("elasticInferenceAcceleratorAssociationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(&sv.ElasticInferenceAcceleratorAssociations, nodeDecoder); err != nil { + return err } case strings.EqualFold("enaSupport", t.Name.Local): @@ -63198,6 +68520,18 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.EnaSupport = ptr.Bool(xtv) } + case strings.EqualFold("enclaveOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("hibernationOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentHibernationOptions(&sv.HibernationOptions, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("hypervisor", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -63211,6 +68545,12 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.Hypervisor = types.HypervisorType(xtv) } + case strings.EqualFold("iamInstanceProfile", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIamInstanceProfile(&sv.IamInstanceProfile, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("imageId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -63224,7 +68564,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.ImageId = ptr.String(xtv) } - case strings.EqualFold("imageLocation", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63234,10 +68574,10 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.ImageLocation = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("imageOwnerAlias", t.Name.Local): + case strings.EqualFold("instanceLifecycle", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63247,10 +68587,10 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.ImageOwnerAlias = ptr.String(xtv) + sv.InstanceLifecycle = types.InstanceLifecycleType(xtv) } - case strings.EqualFold("imageType", t.Name.Local): + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63260,7 +68600,20 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.ImageType = types.ImageTypeValues(xtv) + sv.InstanceType = types.InstanceType(xtv) + } + + case strings.EqualFold("ipv6Address", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6Address = ptr.String(xtv) } case strings.EqualFold("kernelId", t.Name.Local): @@ -63276,7 +68629,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.KernelId = ptr.String(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("keyName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63286,10 +68639,10 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.KeyName = ptr.String(xtv) } - case strings.EqualFold("imageOwnerId", t.Name.Local): + case strings.EqualFold("launchTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63299,7 +68652,54 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.LaunchTime = ptr.Time(t) + } + + case strings.EqualFold("licenseSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentLicenseList(&sv.Licenses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("metadataOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(&sv.MetadataOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("monitoring", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentMonitoring(&sv.Monitoring, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkInterfaceSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(&sv.NetworkInterfaces, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("outpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OutpostArn = ptr.String(xtv) + } + + case strings.EqualFold("placement", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPlacement(&sv.Placement, nodeDecoder); err != nil { + return err } case strings.EqualFold("platform", t.Name.Local): @@ -63328,13 +68728,45 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.PlatformDetails = ptr.String(xtv) } + case strings.EqualFold("privateDnsName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PrivateDnsName = ptr.String(xtv) + } + + case strings.EqualFold("privateDnsNameOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPrivateDnsNameOptionsResponse(&sv.PrivateDnsNameOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("privateIpAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PrivateIpAddress = ptr.String(xtv) + } + case strings.EqualFold("productCodes", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { return err } - case strings.EqualFold("isPublic", t.Name.Local): + case strings.EqualFold("dnsName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63343,11 +68775,21 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Public = ptr.Bool(xtv) + xtv := string(val) + sv.PublicDnsName = ptr.String(xtv) + } + + case strings.EqualFold("ipAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PublicIpAddress = ptr.String(xtv) } case strings.EqualFold("ramdiskId", t.Name.Local): @@ -63389,7 +68831,29 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.RootDeviceType = types.DeviceType(xtv) } - case strings.EqualFold("sriovNetSupport", t.Name.Local): + case strings.EqualFold("groupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.SecurityGroups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourceDestCheck", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.SourceDestCheck = ptr.Bool(xtv) + } + + case strings.EqualFold("spotInstanceRequestId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63399,10 +68863,10 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.SriovNetSupport = ptr.String(xtv) + sv.SpotInstanceRequestId = ptr.String(xtv) } - case strings.EqualFold("imageState", t.Name.Local): + case strings.EqualFold("sriovNetSupport", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63412,7 +68876,13 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.State = types.ImageState(xtv) + sv.SriovNetSupport = ptr.String(xtv) + } + + case strings.EqualFold("instanceState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceState(&sv.State, nodeDecoder); err != nil { + return err } case strings.EqualFold("stateReason", t.Name.Local): @@ -63421,13 +68891,471 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod return err } + case strings.EqualFold("reason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StateTransitionReason = ptr.String(xtv) + } + + case strings.EqualFold("subnetId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SubnetId = ptr.String(xtv) + } + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - case strings.EqualFold("usageOperation", t.Name.Local): + case strings.EqualFold("usageOperation", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UsageOperation = ptr.String(xtv) + } + + case strings.EqualFold("usageOperationUpdateTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.UsageOperationUpdateTime = ptr.Time(t) + } + + case strings.EqualFold("virtualizationType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VirtualizationType = types.VirtualizationType(xtv) + } + + case strings.EqualFold("vpcId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.VpcId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceBlockDeviceMapping + if *v == nil { + sv = &types.InstanceBlockDeviceMapping{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("deviceName", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DeviceName = ptr.String(xtv) + } + + case strings.EqualFold("ebs", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEbsInstanceBlockDevice(&sv.Ebs, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceBlockDeviceMapping + if *v == nil { + sv = make([]types.InstanceBlockDeviceMapping, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceBlockDeviceMapping + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingListUnwrapped(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceBlockDeviceMapping + if *v == nil { + sv = make([]types.InstanceBlockDeviceMapping, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceBlockDeviceMapping + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceCapacity + if *v == nil { + sv = &types.InstanceCapacity{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("availableCapacity", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.AvailableCapacity = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } + + case strings.EqualFold("totalCapacity", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.TotalCapacity = ptr.Int32(int32(i64)) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceCount + if *v == nil { + sv = &types.InstanceCount{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.InstanceCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.ListingState(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceCountList(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceCount + if *v == nil { + sv = make([]types.InstanceCount, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceCount + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceCountListUnwrapped(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceCount + if *v == nil { + sv = make([]types.InstanceCount, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceCount + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceCreditSpecification + if *v == nil { + sv = &types.InstanceCreditSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cpuCredits", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63437,10 +69365,10 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.UsageOperation = ptr.String(xtv) + sv.CpuCredits = ptr.String(xtv) } - case strings.EqualFold("virtualizationType", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63450,7 +69378,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod } { xtv := string(val) - sv.VirtualizationType = types.VirtualizationType(xtv) + sv.InstanceId = ptr.String(xtv) } default: @@ -63467,13 +69395,13 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod return nil } -func awsEc2query_deserializeDocumentImageList(v *[]types.Image, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Image + var sv []types.InstanceCreditSpecification if *v == nil { - sv = make([]types.Image, 0) + sv = make([]types.InstanceCreditSpecification, 0) } else { sv = *v } @@ -63489,10 +69417,10 @@ func awsEc2query_deserializeDocumentImageList(v *[]types.Image, decoder smithyxm } switch { case strings.EqualFold("item", t.Name.Local): - var col types.Image + var col types.InstanceCreditSpecification nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -63511,22 +69439,22 @@ func awsEc2query_deserializeDocumentImageList(v *[]types.Image, decoder smithyxm return nil } -func awsEc2query_deserializeDocumentImageListUnwrapped(v *[]types.Image, decoder smithyxml.NodeDecoder) error { - var sv []types.Image +func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceCreditSpecification if *v == nil { - sv = make([]types.Image, 0) + sv = make([]types.InstanceCreditSpecification, 0) } else { sv = *v } switch { default: - var mv types.Image + var mv types.InstanceCreditSpecification t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -63535,13 +69463,13 @@ func awsEc2query_deserializeDocumentImageListUnwrapped(v *[]types.Image, decoder *v = sv return nil } -func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v **types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ImportImageLicenseConfigurationResponse + var sv *types.InstanceEventWindow if *v == nil { - sv = &types.ImportImageLicenseConfigurationResponse{} + sv = &types.InstanceEventWindow{} } else { sv = *v } @@ -63557,7 +69485,13 @@ func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v ** originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("licenseConfigurationArn", t.Name.Local): + case strings.EqualFold("associationTarget", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(&sv.AssociationTarget, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("cronExpression", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63567,7 +69501,58 @@ func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v ** } { xtv := string(val) - sv.LicenseConfigurationArn = ptr.String(xtv) + sv.CronExpression = ptr.String(xtv) + } + + case strings.EqualFold("instanceEventWindowId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceEventWindowId = ptr.String(xtv) + } + + case strings.EqualFold("name", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = ptr.String(xtv) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.InstanceEventWindowState(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("timeRangeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(&sv.TimeRanges, nodeDecoder); err != nil { + return err } default: @@ -63584,13 +69569,67 @@ func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v ** return nil } -func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **types.InstanceEventWindowAssociationTarget, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ImportImageLicenseConfigurationResponse + var sv *types.InstanceEventWindowAssociationTarget if *v == nil { - sv = make([]types.ImportImageLicenseConfigurationResponse, 0) + sv = &types.InstanceEventWindowAssociationTarget{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("dedicatedHostIdSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDedicatedHostIdList(&sv.DedicatedHostIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceIdSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIdList(&sv.InstanceIds, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceEventWindow + if *v == nil { + sv = make([]types.InstanceEventWindow, 0) } else { sv = *v } @@ -63606,10 +69645,10 @@ func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse( } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ImportImageLicenseConfigurationResponse + var col types.InstanceEventWindow nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -63628,22 +69667,22 @@ func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse( return nil } -func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponseUnwrapped(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error { - var sv []types.ImportImageLicenseConfigurationResponse +func awsEc2query_deserializeDocumentInstanceEventWindowSetUnwrapped(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceEventWindow if *v == nil { - sv = make([]types.ImportImageLicenseConfigurationResponse, 0) + sv = make([]types.InstanceEventWindow, 0) } else { sv = *v } switch { default: - var mv types.ImportImageLicenseConfigurationResponse + var mv types.InstanceEventWindow t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -63652,13 +69691,13 @@ func awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponseU *v = sv return nil } -func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.InstanceEventWindowStateChange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ImportImageTask + var sv *types.InstanceEventWindowStateChange if *v == nil { - sv = &types.ImportImageTask{} + sv = &types.InstanceEventWindowStateChange{} } else { sv = *v } @@ -63674,7 +69713,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("architecture", t.Name.Local): + case strings.EqualFold("instanceEventWindowId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63684,10 +69723,10 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.Architecture = ptr.String(xtv) + sv.InstanceEventWindowId = ptr.String(xtv) } - case strings.EqualFold("bootMode", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63697,23 +69736,46 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.BootMode = types.BootModeValues(xtv) + sv.State = types.InstanceEventWindowState(xtv) } - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - case strings.EqualFold("encrypted", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceEventWindowTimeRange + if *v == nil { + sv = &types.InstanceEventWindowTimeRange{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("endHour", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63722,14 +69784,15 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + return err } - sv.Encrypted = ptr.Bool(xtv) + sv.EndHour = ptr.Int32(int32(i64)) } - case strings.EqualFold("hypervisor", t.Name.Local): + case strings.EqualFold("endWeekDay", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63739,10 +69802,10 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.Hypervisor = ptr.String(xtv) + sv.EndWeekDay = types.WeekDay(xtv) } - case strings.EqualFold("imageId", t.Name.Local): + case strings.EqualFold("startHour", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63752,10 +69815,14 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.ImageId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.StartHour = ptr.Int32(int32(i64)) } - case strings.EqualFold("importTaskId", t.Name.Local): + case strings.EqualFold("startWeekDay", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63765,42 +69832,114 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.ImportTaskId = ptr.String(xtv) + sv.StartWeekDay = types.WeekDay(xtv) } - case strings.EqualFold("kmsKeyId", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.KmsKeyId = ptr.String(xtv) - } - case strings.EqualFold("licenseSpecifications", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceEventWindowTimeRange + if *v == nil { + sv = make([]types.InstanceEventWindowTimeRange, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceEventWindowTimeRange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(&sv.LicenseSpecifications, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("licenseType", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.LicenseType = ptr.String(xtv) - } - case strings.EqualFold("platform", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeListUnwrapped(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceEventWindowTimeRange + if *v == nil { + sv = make([]types.InstanceEventWindowTimeRange, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceEventWindowTimeRange + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExportDetails, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceExportDetails + if *v == nil { + sv = &types.InstanceExportDetails{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63810,10 +69949,10 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.Platform = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("progress", t.Name.Local): + case strings.EqualFold("targetEnvironment", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63823,29 +69962,46 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.Progress = ptr.String(xtv) - } - - case strings.EqualFold("snapshotDetailSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshotDetailList(&sv.SnapshotDetails, nodeDecoder); err != nil { - return err + sv.TargetEnvironment = types.ExportEnvironment(xtv) } - case strings.EqualFold("status", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = ptr.String(xtv) - } - case strings.EqualFold("statusMessage", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types.InstanceFamilyCreditSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceFamilyCreditSpecification + if *v == nil { + sv = &types.InstanceFamilyCreditSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cpuCredits", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63855,16 +70011,10 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.StatusMessage = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.CpuCredits = ptr.String(xtv) } - case strings.EqualFold("usageOperation", t.Name.Local): + case strings.EqualFold("instanceFamily", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -63874,7 +70024,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d } { xtv := string(val) - sv.UsageOperation = ptr.String(xtv) + sv.InstanceFamily = types.UnlimitedSupportedInstanceFamily(xtv) } default: @@ -63891,13 +70041,13 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d return nil } -func awsEc2query_deserializeDocumentImportImageTaskList(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceGenerationSet(v *[]types.InstanceGeneration, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ImportImageTask + var sv []types.InstanceGeneration if *v == nil { - sv = make([]types.ImportImageTask, 0) + sv = make([]types.InstanceGeneration, 0) } else { sv = *v } @@ -63911,15 +70061,22 @@ func awsEc2query_deserializeDocumentImportImageTaskList(v *[]types.ImportImageTa if done { break } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col types.ImportImageTask - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil { + var col types.InstanceGeneration + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr + if val == nil { + break + } + { + xtv := string(val) + col = types.InstanceGeneration(xtv) + } sv = append(sv, col) default: @@ -63935,41 +70092,47 @@ func awsEc2query_deserializeDocumentImportImageTaskList(v *[]types.ImportImageTa return nil } -func awsEc2query_deserializeDocumentImportImageTaskListUnwrapped(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error { - var sv []types.ImportImageTask +func awsEc2query_deserializeDocumentInstanceGenerationSetUnwrapped(v *[]types.InstanceGeneration, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceGeneration if *v == nil { - sv = make([]types.ImportImageTask, 0) + sv = make([]types.InstanceGeneration, 0) } else { sv = *v } switch { default: - var mv types.ImportImageTask + var mv types.InstanceGeneration t := decoder.StartEl _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil { + val, err := decoder.Value() + if err != nil { return err } - mv = *destAddr + if val == nil { + break + } + { + xtv := string(val) + mv = types.InstanceGeneration(xtv) + } sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportInstanceTaskDetails, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIdList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ImportInstanceTaskDetails + var sv []string if *v == nil { - sv = &types.ImportInstanceTaskDetails{} + sv = make([]string, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -63978,10 +70141,11 @@ func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportIn if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -63991,23 +70155,77 @@ func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportIn } { xtv := string(val) - sv.Description = ptr.String(xtv) + col = xtv } + sv = append(sv, col) - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - case strings.EqualFold("platform", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -64017,17 +70235,11 @@ func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportIn } { xtv := string(val) - sv.Platform = types.PlatformValues(xtv) - } - - case strings.EqualFold("volumes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(&sv.Volumes, nodeDecoder); err != nil { - return err + col = xtv } + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -64040,17 +70252,47 @@ func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportIn return nil } -func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ImportInstanceVolumeDetailItem + var sv []string if *v == nil { - sv = &types.ImportInstanceVolumeDetailItem{} + sv = make([]string, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -64059,10 +70301,11 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -64072,59 +70315,75 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + col = xtv } + sv = append(sv, col) - case strings.EqualFold("bytesConverted", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.BytesConverted = ptr.Int64(i64) - } - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("image", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskImageDescription(&sv.Image, nodeDecoder); err != nil { - return err - } +func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } - case strings.EqualFold("status", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = ptr.String(xtv) - } + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceIpv4Prefix + if *v == nil { + sv = &types.InstanceIpv4Prefix{} + } else { + sv = *v + } - case strings.EqualFold("statusMessage", t.Name.Local): + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipv4Prefix", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64134,13 +70393,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp } { xtv := string(val) - sv.StatusMessage = ptr.String(xtv) - } - - case strings.EqualFold("volume", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskImageVolumeDescription(&sv.Volume, nodeDecoder); err != nil { - return err + sv.Ipv4Prefix = ptr.String(xtv) } default: @@ -64157,13 +70410,13 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp return nil } -func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ImportInstanceVolumeDetailItem + var sv []types.InstanceIpv4Prefix if *v == nil { - sv = make([]types.ImportInstanceVolumeDetailItem, 0) + sv = make([]types.InstanceIpv4Prefix, 0) } else { sv = *v } @@ -64179,10 +70432,10 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]types.Imp } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ImportInstanceVolumeDetailItem + var col types.InstanceIpv4Prefix nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -64201,22 +70454,22 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]types.Imp return nil } -func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSetUnwrapped(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error { - var sv []types.ImportInstanceVolumeDetailItem +func awsEc2query_deserializeDocumentInstanceIpv4PrefixListUnwrapped(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceIpv4Prefix if *v == nil { - sv = make([]types.ImportInstanceVolumeDetailItem, 0) + sv = make([]types.InstanceIpv4Prefix, 0) } else { sv = *v } switch { default: - var mv types.ImportInstanceVolumeDetailItem + var mv types.InstanceIpv4Prefix t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -64225,13 +70478,13 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailSetUnwrapped(v *[] *v = sv return nil } -func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ImportSnapshotTask + var sv *types.InstanceIpv6Address if *v == nil { - sv = &types.ImportSnapshotTask{} + sv = &types.InstanceIpv6Address{} } else { sv = *v } @@ -64247,20 +70500,7 @@ func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotT originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("importTaskId", t.Name.Local): + case strings.EqualFold("ipv6Address", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64270,19 +70510,7 @@ func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotT } { xtv := string(val) - sv.ImportTaskId = ptr.String(xtv) - } - - case strings.EqualFold("snapshotTaskDetail", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSnapshotTaskDetail(&sv.SnapshotTaskDetail, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.Ipv6Address = ptr.String(xtv) } default: @@ -64299,13 +70527,13 @@ func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotT return nil } -func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ImportSnapshotTask + var sv []types.InstanceIpv6Address if *v == nil { - sv = make([]types.ImportSnapshotTask, 0) + sv = make([]types.InstanceIpv6Address, 0) } else { sv = *v } @@ -64321,10 +70549,10 @@ func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]types.ImportSnap } switch { case strings.EqualFold("item", t.Name.Local): - var col types.ImportSnapshotTask + var col types.InstanceIpv6Address nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -64343,22 +70571,22 @@ func awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]types.ImportSnap return nil } -func awsEc2query_deserializeDocumentImportSnapshotTaskListUnwrapped(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error { - var sv []types.ImportSnapshotTask +func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceIpv6Address if *v == nil { - sv = make([]types.ImportSnapshotTask, 0) + sv = make([]types.InstanceIpv6Address, 0) } else { sv = *v } switch { default: - var mv types.ImportSnapshotTask + var mv types.InstanceIpv6Address t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -64367,13 +70595,13 @@ func awsEc2query_deserializeDocumentImportSnapshotTaskListUnwrapped(v *[]types.I *v = sv return nil } -func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolumeTaskDetails, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ImportVolumeTaskDetails + var sv *types.InstanceIpv6Prefix if *v == nil { - sv = &types.ImportVolumeTaskDetails{} + sv = &types.InstanceIpv6Prefix{} } else { sv = *v } @@ -64389,7 +70617,7 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + case strings.EqualFold("ipv6Prefix", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64399,53 +70627,55 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) + sv.Ipv6Prefix = ptr.String(xtv) } - case strings.EqualFold("bytesConverted", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.BytesConverted = ptr.Int64(i64) - } - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("image", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskImageDescription(&sv.Image, nodeDecoder); err != nil { - return err - } +func awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceIpv6Prefix + if *v == nil { + sv = make([]types.InstanceIpv6Prefix, 0) + } else { + sv = *v + } - case strings.EqualFold("volume", t.Name.Local): + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceIpv6Prefix nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskImageVolumeDescription(&sv.Volume, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -64458,17 +70688,42 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu return nil } -func awsEc2query_deserializeDocumentInferenceAcceleratorInfo(v **types.InferenceAcceleratorInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceIpv6PrefixListUnwrapped(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceIpv6Prefix + if *v == nil { + sv = make([]types.InstanceIpv6Prefix, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceIpv6Prefix + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InferenceAcceleratorInfo + var sv []types.Instance if *v == nil { - sv = &types.InferenceAcceleratorInfo{} + sv = make([]types.Instance, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -64477,17 +70732,18 @@ func awsEc2query_deserializeDocumentInferenceAcceleratorInfo(v **types.Inference if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("accelerators", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.Instance nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInferenceDeviceInfoList(&sv.Accelerators, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -64500,13 +70756,37 @@ func awsEc2query_deserializeDocumentInferenceAcceleratorInfo(v **types.Inference return nil } -func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceListUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { + var sv []types.Instance + if *v == nil { + sv = make([]types.Instance, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Instance + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.InstanceMetadataOptionsResponse, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InferenceDeviceInfo + var sv *types.InstanceMetadataOptionsResponse if *v == nil { - sv = &types.InferenceDeviceInfo{} + sv = &types.InstanceMetadataOptionsResponse{} } else { sv = *v } @@ -64522,7 +70802,33 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("count", t.Name.Local): + case strings.EqualFold("httpEndpoint", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.HttpEndpoint = types.InstanceMetadataEndpointState(xtv) + } + + case strings.EqualFold("httpProtocolIpv6", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.HttpProtocolIpv6 = types.InstanceMetadataProtocolState(xtv) + } + + case strings.EqualFold("httpPutResponseHopLimit", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64536,10 +70842,10 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic if err != nil { return err } - sv.Count = ptr.Int32(int32(i64)) + sv.HttpPutResponseHopLimit = ptr.Int32(int32(i64)) } - case strings.EqualFold("manufacturer", t.Name.Local): + case strings.EqualFold("httpTokens", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64549,10 +70855,10 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic } { xtv := string(val) - sv.Manufacturer = ptr.String(xtv) + sv.HttpTokens = types.HttpTokensState(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64562,7 +70868,7 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic } { xtv := string(val) - sv.Name = ptr.String(xtv) + sv.State = types.InstanceMetadataOptionsState(xtv) } default: @@ -64579,18 +70885,17 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDevic return nil } -func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InferenceDeviceInfo + var sv *types.InstanceMonitoring if *v == nil { - sv = make([]types.InferenceDeviceInfo, 0) + sv = &types.InstanceMonitoring{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -64599,18 +70904,30 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]types.Inference if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("member", t.Name.Local): - var col types.InferenceDeviceInfo + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("monitoring", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentMonitoring(&sv.Monitoring, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -64623,37 +70940,13 @@ func awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]types.Inference return nil } -func awsEc2query_deserializeDocumentInferenceDeviceInfoListUnwrapped(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error { - var sv []types.InferenceDeviceInfo - if *v == nil { - sv = make([]types.InferenceDeviceInfo, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InferenceDeviceInfo - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInsideCidrBlocksStringList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.InstanceMonitoring if *v == nil { - sv = make([]string, 0) + sv = make([]types.InstanceMonitoring, 0) } else { sv = *v } @@ -64667,22 +70960,15 @@ func awsEc2query_deserializeDocumentInsideCidrBlocksStringList(v *[]string, deco if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { + var col types.InstanceMonitoring + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -64698,42 +70984,37 @@ func awsEc2query_deserializeDocumentInsideCidrBlocksStringList(v *[]string, deco return nil } -func awsEc2query_deserializeDocumentInsideCidrBlocksStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsEc2query_deserializeDocumentInstanceMonitoringListUnwrapped(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceMonitoring if *v == nil { - sv = make([]string, 0) + sv = make([]types.InstanceMonitoring, 0) } else { sv = *v } switch { default: - var mv string + var mv types.InstanceMonitoring t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.Instance + var sv *types.InstanceNetworkInterface if *v == nil { - sv = &types.Instance{} + sv = &types.InstanceNetworkInterface{} } else { sv = *v } @@ -64749,7 +71030,19 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("amiLaunchIndex", t.Name.Local): + case strings.EqualFold("association", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("attachment", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(&sv.Attachment, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64759,14 +71052,16 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.AmiLaunchIndex = ptr.Int32(int32(i64)) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("architecture", t.Name.Local): + case strings.EqualFold("groupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("interfaceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64776,16 +71071,28 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.Architecture = types.ArchitectureValues(xtv) + sv.InterfaceType = ptr.String(xtv) } - case strings.EqualFold("blockDeviceMapping", t.Name.Local): + case strings.EqualFold("ipv4PrefixSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { return err } - case strings.EqualFold("bootMode", t.Name.Local): + case strings.EqualFold("ipv6AddressesSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ipv6PrefixSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("macAddress", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64795,10 +71102,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.BootMode = types.BootModeValues(xtv) + sv.MacAddress = ptr.String(xtv) } - case strings.EqualFold("capacityReservationId", t.Name.Local): + case strings.EqualFold("networkInterfaceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64808,16 +71115,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.CapacityReservationId = ptr.String(xtv) - } - - case strings.EqualFold("capacityReservationSpecification", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(&sv.CapacityReservationSpecification, nodeDecoder); err != nil { - return err + sv.NetworkInterfaceId = ptr.String(xtv) } - case strings.EqualFold("clientToken", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64827,16 +71128,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.ClientToken = ptr.String(xtv) - } - - case strings.EqualFold("cpuOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCpuOptions(&sv.CpuOptions, nodeDecoder); err != nil { - return err + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("ebsOptimized", t.Name.Local): + case strings.EqualFold("privateDnsName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64845,26 +71140,30 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.EbsOptimized = ptr.Bool(xtv) + xtv := string(val) + sv.PrivateDnsName = ptr.String(xtv) } - case strings.EqualFold("elasticGpuAssociationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticGpuAssociationList(&sv.ElasticGpuAssociations, nodeDecoder); err != nil { + case strings.EqualFold("privateIpAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.PrivateIpAddress = ptr.String(xtv) + } - case strings.EqualFold("elasticInferenceAcceleratorAssociationSet", t.Name.Local): + case strings.EqualFold("privateIpAddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(&sv.ElasticInferenceAcceleratorAssociations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstancePrivateIpAddressList(&sv.PrivateIpAddresses, nodeDecoder); err != nil { return err } - case strings.EqualFold("enaSupport", t.Name.Local): + case strings.EqualFold("sourceDestCheck", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64877,22 +71176,23 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnaSupport = ptr.Bool(xtv) + sv.SourceDestCheck = ptr.Bool(xtv) } - case strings.EqualFold("enclaveOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil { + case strings.EqualFold("status", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("hibernationOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHibernationOptions(&sv.HibernationOptions, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.NetworkInterfaceStatus(xtv) } - case strings.EqualFold("hypervisor", t.Name.Local): + case strings.EqualFold("subnetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64902,16 +71202,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.Hypervisor = types.HypervisorType(xtv) - } - - case strings.EqualFold("iamInstanceProfile", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIamInstanceProfile(&sv.IamInstanceProfile, nodeDecoder); err != nil { - return err + sv.SubnetId = ptr.String(xtv) } - case strings.EqualFold("imageId", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64921,10 +71215,46 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.ImageId = ptr.String(xtv) + sv.VpcId = ptr.String(xtv) } - case strings.EqualFold("instanceId", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **types.InstanceNetworkInterfaceAssociation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceNetworkInterfaceAssociation + if *v == nil { + sv = &types.InstanceNetworkInterfaceAssociation{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("carrierIp", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64934,10 +71264,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.CarrierIp = ptr.String(xtv) } - case strings.EqualFold("instanceLifecycle", t.Name.Local): + case strings.EqualFold("customerOwnedIp", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64947,10 +71277,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.InstanceLifecycle = types.InstanceLifecycleType(xtv) + sv.CustomerOwnedIp = ptr.String(xtv) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("ipOwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64960,10 +71290,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) + sv.IpOwnerId = ptr.String(xtv) } - case strings.EqualFold("ipv6Address", t.Name.Local): + case strings.EqualFold("publicDnsName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64973,10 +71303,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.Ipv6Address = ptr.String(xtv) + sv.PublicDnsName = ptr.String(xtv) } - case strings.EqualFold("kernelId", t.Name.Local): + case strings.EqualFold("publicIp", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64986,10 +71316,46 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.KernelId = ptr.String(xtv) + sv.PublicIp = ptr.String(xtv) } - case strings.EqualFold("keyName", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types.InstanceNetworkInterfaceAttachment, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceNetworkInterfaceAttachment + if *v == nil { + sv = &types.InstanceNetworkInterfaceAttachment{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("attachmentId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -64999,10 +71365,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.KeyName = ptr.String(xtv) + sv.AttachmentId = ptr.String(xtv) } - case strings.EqualFold("launchTime", t.Name.Local): + case strings.EqualFold("attachTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65016,34 +71382,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return err } - sv.LaunchTime = ptr.Time(t) - } - - case strings.EqualFold("licenseSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLicenseList(&sv.Licenses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("metadataOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(&sv.MetadataOptions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("monitoring", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMonitoring(&sv.Monitoring, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("networkInterfaceSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(&sv.NetworkInterfaces, nodeDecoder); err != nil { - return err + sv.AttachTime = ptr.Time(t) } - case strings.EqualFold("outpostArn", t.Name.Local): + case strings.EqualFold("deleteOnTermination", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65052,17 +71394,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx break } { - xtv := string(val) - sv.OutpostArn = ptr.String(xtv) - } - - case strings.EqualFold("placement", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPlacement(&sv.Placement, nodeDecoder); err != nil { - return err + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.DeleteOnTermination = ptr.Bool(xtv) } - case strings.EqualFold("platform", t.Name.Local): + case strings.EqualFold("deviceIndex", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65072,10 +71411,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.Platform = types.PlatformValues(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.DeviceIndex = ptr.Int32(int32(i64)) } - case strings.EqualFold("platformDetails", t.Name.Local): + case strings.EqualFold("networkCardIndex", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65085,10 +71428,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.PlatformDetails = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } - case strings.EqualFold("privateDnsName", t.Name.Local): + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65098,35 +71445,114 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.PrivateDnsName = ptr.String(xtv) + sv.Status = types.AttachmentStatus(xtv) } - case strings.EqualFold("privateDnsNameOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrivateDnsNameOptionsResponse(&sv.PrivateDnsNameOptions, nodeDecoder); err != nil { + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("privateIpAddress", t.Name.Local): - val, err := decoder.Value() - if err != nil { + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceNetworkInterface + if *v == nil { + sv = make([]types.InstanceNetworkInterface, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceNetworkInterface + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PrivateIpAddress = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("productCodes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { + default: + err = decoder.Decoder.Skip() + if err != nil { return err } - case strings.EqualFold("dnsName", t.Name.Local): + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceListUnwrapped(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceNetworkInterface + if *v == nil { + sv = make([]types.InstanceNetworkInterface, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceNetworkInterface + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstanceNetworkInterfaceSpecification + if *v == nil { + sv = &types.InstanceNetworkInterfaceSpecification{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("AssociateCarrierIpAddress", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65135,11 +71561,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx break } { - xtv := string(val) - sv.PublicDnsName = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.AssociateCarrierIpAddress = ptr.Bool(xtv) } - case strings.EqualFold("ipAddress", t.Name.Local): + case strings.EqualFold("associatePublicIpAddress", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65148,11 +71577,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx break } { - xtv := string(val) - sv.PublicIpAddress = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.AssociatePublicIpAddress = ptr.Bool(xtv) } - case strings.EqualFold("ramdiskId", t.Name.Local): + case strings.EqualFold("deleteOnTermination", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65161,11 +71593,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx break } { - xtv := string(val) - sv.RamdiskId = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.DeleteOnTermination = ptr.Bool(xtv) } - case strings.EqualFold("rootDeviceName", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65175,10 +71610,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.RootDeviceName = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("rootDeviceType", t.Name.Local): + case strings.EqualFold("deviceIndex", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65188,16 +71623,20 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.RootDeviceType = types.DeviceType(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.DeviceIndex = ptr.Int32(int32(i64)) } - case strings.EqualFold("groupSet", t.Name.Local): + case strings.EqualFold("SecurityGroupId", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.SecurityGroups, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSecurityGroupIdStringList(&sv.Groups, nodeDecoder); err != nil { return err } - case strings.EqualFold("sourceDestCheck", t.Name.Local): + case strings.EqualFold("InterfaceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65206,14 +71645,11 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.SourceDestCheck = ptr.Bool(xtv) + xtv := string(val) + sv.InterfaceType = ptr.String(xtv) } - case strings.EqualFold("spotInstanceRequestId", t.Name.Local): + case strings.EqualFold("Ipv4PrefixCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65223,10 +71659,20 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.SpotInstanceRequestId = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv4PrefixCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("sriovNetSupport", t.Name.Local): + case strings.EqualFold("Ipv4Prefix", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("ipv6AddressCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65236,22 +71682,20 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.SriovNetSupport = ptr.String(xtv) - } - - case strings.EqualFold("instanceState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceState(&sv.State, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv6AddressCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("stateReason", t.Name.Local): + case strings.EqualFold("ipv6AddressesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStateReason(&sv.StateReason, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil { return err } - case strings.EqualFold("reason", t.Name.Local): + case strings.EqualFold("Ipv6PrefixCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65261,10 +71705,20 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.StateTransitionReason = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv6PrefixCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("subnetId", t.Name.Local): + case strings.EqualFold("Ipv6Prefix", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("NetworkCardIndex", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65274,16 +71728,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.SubnetId = ptr.String(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } - case strings.EqualFold("usageOperation", t.Name.Local): + case strings.EqualFold("networkInterfaceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65293,10 +71745,10 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.UsageOperation = ptr.String(xtv) + sv.NetworkInterfaceId = ptr.String(xtv) } - case strings.EqualFold("usageOperationUpdateTime", t.Name.Local): + case strings.EqualFold("privateIpAddress", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65306,14 +71758,16 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.UsageOperationUpdateTime = ptr.Time(t) + sv.PrivateIpAddress = ptr.String(xtv) } - case strings.EqualFold("virtualizationType", t.Name.Local): + case strings.EqualFold("privateIpAddressesSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(&sv.PrivateIpAddresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("secondaryPrivateIpAddressCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65323,10 +71777,14 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.VirtualizationType = types.VirtualizationType(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("vpcId", t.Name.Local): + case strings.EqualFold("subnetId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65336,7 +71794,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + sv.SubnetId = ptr.String(xtv) } default: @@ -65353,13 +71811,81 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx return nil } -func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceBlockDeviceMapping + var sv []types.InstanceNetworkInterfaceSpecification if *v == nil { - sv = &types.InstanceBlockDeviceMapping{} + sv = make([]types.InstanceNetworkInterfaceSpecification, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceNetworkInterfaceSpecification + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceNetworkInterfaceSpecification + if *v == nil { + sv = make([]types.InstanceNetworkInterfaceSpecification, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceNetworkInterfaceSpecification + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.InstancePrivateIpAddress + if *v == nil { + sv = &types.InstancePrivateIpAddress{} } else { sv = *v } @@ -65375,7 +71901,29 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instanc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("deviceName", t.Name.Local): + case strings.EqualFold("association", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("primary", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Primary = ptr.Bool(xtv) + } + + case strings.EqualFold("privateDnsName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65385,14 +71933,21 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instanc } { xtv := string(val) - sv.DeviceName = ptr.String(xtv) + sv.PrivateDnsName = ptr.String(xtv) } - case strings.EqualFold("ebs", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEbsInstanceBlockDevice(&sv.Ebs, nodeDecoder); err != nil { + case strings.EqualFold("privateIpAddress", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.PrivateIpAddress = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -65408,13 +71963,13 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.Instanc return nil } -func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceBlockDeviceMapping + var sv []types.InstancePrivateIpAddress if *v == nil { - sv = make([]types.InstanceBlockDeviceMapping, 0) + sv = make([]types.InstancePrivateIpAddress, 0) } else { sv = *v } @@ -65430,10 +71985,10 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]types.In } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceBlockDeviceMapping + var col types.InstancePrivateIpAddress nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -65452,22 +72007,22 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]types.In return nil } -func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingListUnwrapped(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceBlockDeviceMapping +func awsEc2query_deserializeDocumentInstancePrivateIpAddressListUnwrapped(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { + var sv []types.InstancePrivateIpAddress if *v == nil { - sv = make([]types.InstanceBlockDeviceMapping, 0) + sv = make([]types.InstancePrivateIpAddress, 0) } else { sv = *v } switch { default: - var mv types.InstanceBlockDeviceMapping + var mv types.InstancePrivateIpAddress t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -65476,13 +72031,13 @@ func awsEc2query_deserializeDocumentInstanceBlockDeviceMappingListUnwrapped(v *[ *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequirements, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceCapacity + var sv *types.InstanceRequirements if *v == nil { - sv = &types.InstanceCapacity{} + sv = &types.InstanceRequirements{} } else { sv = *v } @@ -65498,7 +72053,124 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("availableCapacity", t.Name.Local): + case strings.EqualFold("acceleratorCount", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAcceleratorCount(&sv.AcceleratorCount, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("acceleratorManufacturerSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAcceleratorManufacturerSet(&sv.AcceleratorManufacturers, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("acceleratorNameSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAcceleratorNameSet(&sv.AcceleratorNames, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("acceleratorTotalMemoryMiB", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(&sv.AcceleratorTotalMemoryMiB, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("acceleratorTypeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAcceleratorTypeSet(&sv.AcceleratorTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("bareMetal", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.BareMetal = types.BareMetal(xtv) + } + + case strings.EqualFold("baselineEbsBandwidthMbps", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(&sv.BaselineEbsBandwidthMbps, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("burstablePerformance", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.BurstablePerformance = types.BurstablePerformance(xtv) + } + + case strings.EqualFold("cpuManufacturerSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCpuManufacturerSet(&sv.CpuManufacturers, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("excludedInstanceTypeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentExcludedInstanceTypeSet(&sv.ExcludedInstanceTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceGenerationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceGenerationSet(&sv.InstanceGenerations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("localStorage", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LocalStorage = types.LocalStorage(xtv) + } + + case strings.EqualFold("localStorageTypeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentLocalStorageTypeSet(&sv.LocalStorageTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("memoryGiBPerVCpu", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentMemoryGiBPerVCpu(&sv.MemoryGiBPerVCpu, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("memoryMiB", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentMemoryMiB(&sv.MemoryMiB, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkInterfaceCount", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInterfaceCount(&sv.NetworkInterfaceCount, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("onDemandMaxPricePercentageOverLowestPrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65512,10 +72184,10 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, if err != nil { return err } - sv.AvailableCapacity = ptr.Int32(int32(i64)) + sv.OnDemandMaxPricePercentageOverLowestPrice = ptr.Int32(int32(i64)) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("requireHibernateSupport", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65524,11 +72196,14 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, break } { - xtv := string(val) - sv.InstanceType = ptr.String(xtv) + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.RequireHibernateSupport = ptr.Bool(xtv) } - case strings.EqualFold("totalCapacity", t.Name.Local): + case strings.EqualFold("spotMaxPricePercentageOverLowestPrice", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65542,7 +72217,19 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, if err != nil { return err } - sv.TotalCapacity = ptr.Int32(int32(i64)) + sv.SpotMaxPricePercentageOverLowestPrice = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("totalLocalStorageGB", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTotalLocalStorageGB(&sv.TotalLocalStorageGB, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vCpuCount", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVCpuCountRange(&sv.VCpuCount, nodeDecoder); err != nil { + return err } default: @@ -65559,13 +72246,13 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, return nil } -func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceCount + var sv *types.InstanceState if *v == nil { - sv = &types.InstanceCount{} + sv = &types.InstanceState{} } else { sv = *v } @@ -65581,7 +72268,7 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceCount", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65595,10 +72282,10 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.Code = ptr.Int32(int32(i64)) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("name", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65608,7 +72295,7 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod } { xtv := string(val) - sv.State = types.ListingState(xtv) + sv.Name = types.InstanceStateName(xtv) } default: @@ -65625,81 +72312,13 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod return nil } -func awsEc2query_deserializeDocumentInstanceCountList(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceCount - if *v == nil { - sv = make([]types.InstanceCount, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceCount - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceCountListUnwrapped(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceCount - if *v == nil { - sv = make([]types.InstanceCount, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceCount - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStateChange(v **types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceCreditSpecification + var sv *types.InstanceStateChange if *v == nil { - sv = &types.InstanceCreditSpecification{} + sv = &types.InstanceStateChange{} } else { sv = *v } @@ -65715,18 +72334,11 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.Instan originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cpuCredits", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("currentState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceState(&sv.CurrentState, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.CpuCredits = ptr.String(xtv) - } case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() @@ -65741,6 +72353,12 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.Instan sv.InstanceId = ptr.String(xtv) } + case strings.EqualFold("previousState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceState(&sv.PreviousState, nodeDecoder); err != nil { + return err + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -65755,13 +72373,13 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.Instan return nil } -func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceCreditSpecification + var sv []types.InstanceStateChange if *v == nil { - sv = make([]types.InstanceCreditSpecification, 0) + sv = make([]types.InstanceStateChange, 0) } else { sv = *v } @@ -65777,10 +72395,10 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]types.I } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceCreditSpecification + var col types.InstanceStateChange nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -65799,22 +72417,22 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]types.I return nil } -func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceCreditSpecification +func awsEc2query_deserializeDocumentInstanceStateChangeListUnwrapped(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStateChange if *v == nil { - sv = make([]types.InstanceCreditSpecification, 0) + sv = make([]types.InstanceStateChange, 0) } else { sv = *v } switch { default: - var mv types.InstanceCreditSpecification + var mv types.InstanceStateChange t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -65823,13 +72441,13 @@ func awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v * *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceEventWindow + var sv *types.InstanceStatus if *v == nil { - sv = &types.InstanceEventWindow{} + sv = &types.InstanceStatus{} } else { sv = *v } @@ -65845,13 +72463,7 @@ func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventW originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("associationTarget", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(&sv.AssociationTarget, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("cronExpression", t.Name.Local): + case strings.EqualFold("availabilityZone", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65861,10 +72473,16 @@ func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventW } { xtv := string(val) - sv.CronExpression = ptr.String(xtv) + sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("instanceEventWindowId", t.Name.Local): + case strings.EqualFold("eventsSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceStatusEventList(&sv.Events, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65874,23 +72492,22 @@ func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventW } { xtv := string(val) - sv.InstanceEventWindowId = ptr.String(xtv) + sv.InstanceId = ptr.String(xtv) } - case strings.EqualFold("name", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("instanceState", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceState(&sv.InstanceState, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) + + case strings.EqualFold("instanceStatus", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceStatusSummary(&sv.InstanceStatus, nodeDecoder); err != nil { + return err } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65900,18 +72517,12 @@ func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventW } { xtv := string(val) - sv.State = types.InstanceEventWindowState(xtv) - } - - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err + sv.OutpostArn = ptr.String(xtv) } - case strings.EqualFold("timeRangeSet", t.Name.Local): + case strings.EqualFold("systemStatus", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(&sv.TimeRanges, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStatusSummary(&sv.SystemStatus, nodeDecoder); err != nil { return err } @@ -65929,13 +72540,13 @@ func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventW return nil } -func awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **types.InstanceEventWindowAssociationTarget, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceEventWindowAssociationTarget + var sv *types.InstanceStatusDetails if *v == nil { - sv = &types.InstanceEventWindowAssociationTarget{} + sv = &types.InstanceStatusDetails{} } else { sv = *v } @@ -65951,23 +72562,48 @@ func awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **typ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("dedicatedHostIdSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDedicatedHostIdList(&sv.DedicatedHostIds, nodeDecoder); err != nil { + case strings.EqualFold("impairedSince", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.ImpairedSince = ptr.Time(t) + } - case strings.EqualFold("instanceIdSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIdList(&sv.InstanceIds, nodeDecoder); err != nil { + case strings.EqualFold("name", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Name = types.StatusName(xtv) + } - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + case strings.EqualFold("status", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.StatusType(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -65983,13 +72619,13 @@ func awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **typ return nil } -func awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceEventWindow + var sv []types.InstanceStatusDetails if *v == nil { - sv = make([]types.InstanceEventWindow, 0) + sv = make([]types.InstanceStatusDetails, 0) } else { sv = *v } @@ -66005,10 +72641,10 @@ func awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEv } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceEventWindow + var col types.InstanceStatusDetails nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -66027,22 +72663,22 @@ func awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEv return nil } -func awsEc2query_deserializeDocumentInstanceEventWindowSetUnwrapped(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceEventWindow +func awsEc2query_deserializeDocumentInstanceStatusDetailsListUnwrapped(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStatusDetails if *v == nil { - sv = make([]types.InstanceEventWindow, 0) + sv = make([]types.InstanceStatusDetails, 0) } else { sv = *v } switch { default: - var mv types.InstanceEventWindow + var mv types.InstanceStatusDetails t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -66051,13 +72687,13 @@ func awsEc2query_deserializeDocumentInstanceEventWindowSetUnwrapped(v *[]types.I *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.InstanceEventWindowStateChange, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceEventWindowStateChange + var sv *types.InstanceStatusEvent if *v == nil { - sv = &types.InstanceEventWindowStateChange{} + sv = &types.InstanceStatusEvent{} } else { sv = *v } @@ -66073,7 +72709,7 @@ func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.Ins originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceEventWindowId", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66083,10 +72719,10 @@ func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.Ins } { xtv := string(val) - sv.InstanceEventWindowId = ptr.String(xtv) + sv.Code = types.EventCode(xtv) } - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66096,46 +72732,10 @@ func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.Ins } { xtv := string(val) - sv.State = types.InstanceEventWindowState(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.Description = ptr.String(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceEventWindowTimeRange - if *v == nil { - sv = &types.InstanceEventWindowTimeRange{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("endHour", t.Name.Local): + case strings.EqualFold("instanceEventId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66145,14 +72745,10 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.Insta } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.EndHour = ptr.Int32(int32(i64)) + sv.InstanceEventId = ptr.String(xtv) } - case strings.EqualFold("endWeekDay", t.Name.Local): + case strings.EqualFold("notAfter", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66162,10 +72758,14 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.Insta } { xtv := string(val) - sv.EndWeekDay = types.WeekDay(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NotAfter = ptr.Time(t) } - case strings.EqualFold("startHour", t.Name.Local): + case strings.EqualFold("notBefore", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66175,14 +72775,14 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.Insta } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.StartHour = ptr.Int32(int32(i64)) + sv.NotBefore = ptr.Time(t) } - case strings.EqualFold("startWeekDay", t.Name.Local): + case strings.EqualFold("notBeforeDeadline", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66192,7 +72792,11 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.Insta } { xtv := string(val) - sv.StartWeekDay = types.WeekDay(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.NotBeforeDeadline = ptr.Time(t) } default: @@ -66209,13 +72813,13 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.Insta return nil } -func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceEventWindowTimeRange + var sv []types.InstanceStatusEvent if *v == nil { - sv = make([]types.InstanceEventWindowTimeRange, 0) + sv = make([]types.InstanceStatusEvent, 0) } else { sv = *v } @@ -66231,10 +72835,10 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types. } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceEventWindowTimeRange + var col types.InstanceStatusEvent nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -66253,22 +72857,22 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types. return nil } -func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeListUnwrapped(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceEventWindowTimeRange +func awsEc2query_deserializeDocumentInstanceStatusEventListUnwrapped(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStatusEvent if *v == nil { - sv = make([]types.InstanceEventWindowTimeRange, 0) + sv = make([]types.InstanceStatusEvent, 0) } else { sv = *v } switch { default: - var mv types.InstanceEventWindowTimeRange + var mv types.InstanceStatusEvent t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -66277,17 +72881,18 @@ func awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeListUnwrapped(v *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExportDetails, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusList(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceExportDetails + var sv []types.InstanceStatus if *v == nil { - sv = &types.InstanceExportDetails{} + sv = make([]types.InstanceStatus, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -66296,37 +72901,18 @@ func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExpo if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - - case strings.EqualFold("targetEnvironment", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("item", t.Name.Local): + var col types.InstanceStatus + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.TargetEnvironment = types.ExportEnvironment(xtv) - } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -66339,13 +72925,37 @@ func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExpo return nil } -func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types.InstanceFamilyCreditSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStatusListUnwrapped(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceStatus + if *v == nil { + sv = make([]types.InstanceStatus, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.InstanceStatus + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentInstanceStatusSummary(v **types.InstanceStatusSummary, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceFamilyCreditSpecification + var sv *types.InstanceStatusSummary if *v == nil { - sv = &types.InstanceFamilyCreditSpecification{} + sv = &types.InstanceStatusSummary{} } else { sv = *v } @@ -66361,20 +72971,13 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("cpuCredits", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("details", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceStatusDetailsList(&sv.Details, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.CpuCredits = ptr.String(xtv) - } - case strings.EqualFold("instanceFamily", t.Name.Local): + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66384,7 +72987,7 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. } { xtv := string(val) - sv.InstanceFamily = types.UnlimitedSupportedInstanceFamily(xtv) + sv.Status = types.SummaryStatus(xtv) } default: @@ -66401,18 +73004,17 @@ func awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types. return nil } -func awsEc2query_deserializeDocumentInstanceGenerationSet(v *[]types.InstanceGeneration, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorageInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceGeneration + var sv *types.InstanceStorageInfo if *v == nil { - sv = make([]types.InstanceGeneration, 0) + sv = &types.InstanceStorageInfo{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -66421,11 +73023,16 @@ func awsEc2query_deserializeDocumentInstanceGenerationSet(v *[]types.InstanceGen if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceGeneration + case strings.EqualFold("disks", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDiskInfoList(&sv.Disks, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("encryptionSupport", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66435,11 +73042,41 @@ func awsEc2query_deserializeDocumentInstanceGenerationSet(v *[]types.InstanceGen } { xtv := string(val) - col = types.InstanceGeneration(xtv) + sv.EncryptionSupport = types.InstanceStorageEncryptionSupport(xtv) + } + + case strings.EqualFold("nvmeSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NvmeSupport = types.EphemeralNvmeSupport(xtv) + } + + case strings.EqualFold("totalSizeInGB", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.TotalSizeInGB = ptr.Int64(i64) } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -66452,36 +73089,7 @@ func awsEc2query_deserializeDocumentInstanceGenerationSet(v *[]types.InstanceGen return nil } -func awsEc2query_deserializeDocumentInstanceGenerationSetUnwrapped(v *[]types.InstanceGeneration, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceGeneration - if *v == nil { - sv = make([]types.InstanceGeneration, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceGeneration - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = types.InstanceGeneration(xtv) - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceIdList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -66532,7 +73140,7 @@ func awsEc2query_deserializeDocumentInstanceIdList(v *[]string, decoder smithyxm return nil } -func awsEc2query_deserializeDocumentInstanceIdListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTagKeySetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { var sv []string if *v == nil { sv = make([]string, 0) @@ -66561,18 +73169,17 @@ func awsEc2query_deserializeDocumentInstanceIdListUnwrapped(v *[]string, decoder *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.InstanceTagNotificationAttribute, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.InstanceTagNotificationAttribute if *v == nil { - sv = make([]string, 0) + sv = &types.InstanceTagNotificationAttribute{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -66581,11 +73188,10 @@ func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col string + case strings.EqualFold("includeAllTagsOfInstance", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66594,12 +73200,21 @@ func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml break } { - xtv := string(val) - col = xtv + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.IncludeAllTagsOfInstance = ptr.Bool(xtv) + } + + case strings.EqualFold("instanceTagKeySet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceTagKeySet(&sv.InstanceTagKeys, nodeDecoder); err != nil { + return err } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -66612,47 +73227,17 @@ func awsEc2query_deserializeDocumentInstanceIdSet(v *[]string, decoder smithyxml return nil } -func awsEc2query_deserializeDocumentInstanceIdSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv *types.InstanceTypeInfo if *v == nil { - sv = make([]string, 0) + sv = &types.InstanceTypeInfo{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -66661,11 +73246,140 @@ func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]string, decoder smithyxm if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col string + case strings.EqualFold("autoRecoverySupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected AutoRecoveryFlag to be of type *bool, got %T instead", val) + } + sv.AutoRecoverySupported = ptr.Bool(xtv) + } + + case strings.EqualFold("bareMetal", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BareMetalFlag to be of type *bool, got %T instead", val) + } + sv.BareMetal = ptr.Bool(xtv) + } + + case strings.EqualFold("burstablePerformanceSupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected BurstablePerformanceFlag to be of type *bool, got %T instead", val) + } + sv.BurstablePerformanceSupported = ptr.Bool(xtv) + } + + case strings.EqualFold("currentGeneration", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected CurrentGenerationFlag to be of type *bool, got %T instead", val) + } + sv.CurrentGeneration = ptr.Bool(xtv) + } + + case strings.EqualFold("dedicatedHostsSupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected DedicatedHostFlag to be of type *bool, got %T instead", val) + } + sv.DedicatedHostsSupported = ptr.Bool(xtv) + } + + case strings.EqualFold("ebsInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEbsInfo(&sv.EbsInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("fpgaInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFpgaInfo(&sv.FpgaInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("freeTierEligible", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected FreeTierEligibleFlag to be of type *bool, got %T instead", val) + } + sv.FreeTierEligible = ptr.Bool(xtv) + } + + case strings.EqualFold("gpuInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentGpuInfo(&sv.GpuInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("hibernationSupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected HibernationFlag to be of type *bool, got %T instead", val) + } + sv.HibernationSupported = ptr.Bool(xtv) + } + + case strings.EqualFold("hypervisor", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66675,11 +73389,106 @@ func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]string, decoder smithyxm } { xtv := string(val) - col = xtv + sv.Hypervisor = types.InstanceTypeHypervisor(xtv) + } + + case strings.EqualFold("inferenceAcceleratorInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInferenceAcceleratorInfo(&sv.InferenceAcceleratorInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceStorageInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceStorageInfo(&sv.InstanceStorageInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("instanceStorageSupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected InstanceStorageFlag to be of type *bool, got %T instead", val) + } + sv.InstanceStorageSupported = ptr.Bool(xtv) + } + + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = types.InstanceType(xtv) + } + + case strings.EqualFold("memoryInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInfo(&sv.NetworkInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("placementGroupInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPlacementGroupInfo(&sv.PlacementGroupInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("processorInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProcessorInfo(&sv.ProcessorInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("supportedBootModes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBootModeTypeList(&sv.SupportedBootModes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("supportedRootDeviceTypes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentRootDeviceTypeList(&sv.SupportedRootDeviceTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("supportedUsageClasses", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentUsageClassTypeList(&sv.SupportedUsageClasses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("supportedVirtualizationTypes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVirtualizationTypeList(&sv.SupportedVirtualizationTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("vCpuInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVCpuInfo(&sv.VCpuInfo, nodeDecoder); err != nil { + return err } - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -66692,42 +73501,13 @@ func awsEc2query_deserializeDocumentInstanceIdsSet(v *[]string, decoder smithyxm return nil } -func awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(v **types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceIpv4Prefix + var sv *types.InstanceTypeInfoFromInstanceRequirements if *v == nil { - sv = &types.InstanceIpv4Prefix{} + sv = &types.InstanceTypeInfoFromInstanceRequirements{} } else { sv = *v } @@ -66743,7 +73523,7 @@ func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Pre originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ipv4Prefix", t.Name.Local): + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66753,7 +73533,7 @@ func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Pre } { xtv := string(val) - sv.Ipv4Prefix = ptr.String(xtv) + sv.InstanceType = ptr.String(xtv) } default: @@ -66770,13 +73550,13 @@ func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Pre return nil } -func awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSet(v *[]types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceIpv4Prefix + var sv []types.InstanceTypeInfoFromInstanceRequirements if *v == nil { - sv = make([]types.InstanceIpv4Prefix, 0) + sv = make([]types.InstanceTypeInfoFromInstanceRequirements, 0) } else { sv = *v } @@ -66792,10 +73572,10 @@ func awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIp } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceIpv4Prefix + var col types.InstanceTypeInfoFromInstanceRequirements nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -66814,22 +73594,22 @@ func awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIp return nil } -func awsEc2query_deserializeDocumentInstanceIpv4PrefixListUnwrapped(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceIpv4Prefix +func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSetUnwrapped(v *[]types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceTypeInfoFromInstanceRequirements if *v == nil { - sv = make([]types.InstanceIpv4Prefix, 0) + sv = make([]types.InstanceTypeInfoFromInstanceRequirements, 0) } else { sv = *v } switch { default: - var mv types.InstanceIpv4Prefix + var mv types.InstanceTypeInfoFromInstanceRequirements t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -66838,62 +73618,13 @@ func awsEc2query_deserializeDocumentInstanceIpv4PrefixListUnwrapped(v *[]types.I *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceIpv6Address - if *v == nil { - sv = &types.InstanceIpv6Address{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ipv6Address", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv6Address = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceIpv6Address + var sv []types.InstanceTypeInfo if *v == nil { - sv = make([]types.InstanceIpv6Address, 0) + sv = make([]types.InstanceTypeInfo, 0) } else { sv = *v } @@ -66909,10 +73640,10 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]types.InstanceI } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceIpv6Address + var col types.InstanceTypeInfo nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -66931,22 +73662,22 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]types.InstanceI return nil } -func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceIpv6Address +func awsEc2query_deserializeDocumentInstanceTypeInfoListUnwrapped(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceTypeInfo if *v == nil { - sv = make([]types.InstanceIpv6Address, 0) + sv = make([]types.InstanceTypeInfo, 0) } else { sv = *v } switch { default: - var mv types.InstanceIpv6Address + var mv types.InstanceTypeInfo t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -66955,13 +73686,13 @@ func awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types. *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceIpv6Prefix + var sv *types.InstanceTypeOffering if *v == nil { - sv = &types.InstanceIpv6Prefix{} + sv = &types.InstanceTypeOffering{} } else { sv = *v } @@ -66977,7 +73708,7 @@ func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Pre originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("ipv6Prefix", t.Name.Local): + case strings.EqualFold("instanceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -66987,7 +73718,33 @@ func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Pre } { xtv := string(val) - sv.Ipv6Prefix = ptr.String(xtv) + sv.InstanceType = types.InstanceType(xtv) + } + + case strings.EqualFold("location", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Location = ptr.String(xtv) + } + + case strings.EqualFold("locationType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.LocationType = types.LocationType(xtv) } default: @@ -67004,13 +73761,13 @@ func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Pre return nil } -func awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceIpv6Prefix + var sv []types.InstanceTypeOffering if *v == nil { - sv = make([]types.InstanceIpv6Prefix, 0) + sv = make([]types.InstanceTypeOffering, 0) } else { sv = *v } @@ -67026,10 +73783,10 @@ func awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIp } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceIpv6Prefix + var col types.InstanceTypeOffering nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -67048,22 +73805,22 @@ func awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIp return nil } -func awsEc2query_deserializeDocumentInstanceIpv6PrefixListUnwrapped(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceIpv6Prefix +func awsEc2query_deserializeDocumentInstanceTypeOfferingsListUnwrapped(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceTypeOffering if *v == nil { - sv = make([]types.InstanceIpv6Prefix, 0) + sv = make([]types.InstanceTypeOffering, 0) } else { sv = *v } switch { default: - var mv types.InstanceIpv6Prefix + var mv types.InstanceTypeOffering t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -67072,13 +73829,79 @@ func awsEc2query_deserializeDocumentInstanceIpv6PrefixListUnwrapped(v *[]types.I *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Instance + var sv *types.InstanceUsage if *v == nil { - sv = make([]types.Instance, 0) + sv = &types.InstanceUsage{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("accountId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AccountId = ptr.String(xtv) + } + + case strings.EqualFold("usedInstanceCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.UsedInstanceCount = ptr.Int32(int32(i64)) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentInstanceUsageSet(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.InstanceUsage + if *v == nil { + sv = make([]types.InstanceUsage, 0) } else { sv = *v } @@ -67094,10 +73917,10 @@ func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder sm } switch { case strings.EqualFold("item", t.Name.Local): - var col types.Instance + var col types.InstanceUsage nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -67116,22 +73939,22 @@ func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder sm return nil } -func awsEc2query_deserializeDocumentInstanceListUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error { - var sv []types.Instance +func awsEc2query_deserializeDocumentInstanceUsageSetUnwrapped(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error { + var sv []types.InstanceUsage if *v == nil { - sv = make([]types.Instance, 0) + sv = make([]types.InstanceUsage, 0) } else { sv = *v } switch { default: - var mv types.Instance + var mv types.InstanceUsage t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -67140,13 +73963,13 @@ func awsEc2query_deserializeDocumentInstanceListUnwrapped(v *[]types.Instance, d *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.InstanceMetadataOptionsResponse, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceMetadataOptionsResponse + var sv *types.InternetGateway if *v == nil { - sv = &types.InstanceMetadataOptionsResponse{} + sv = &types.InternetGateway{} } else { sv = *v } @@ -67162,33 +73985,13 @@ func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.In originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("httpEndpoint", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HttpEndpoint = types.InstanceMetadataEndpointState(xtv) - } - - case strings.EqualFold("httpProtocolIpv6", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HttpProtocolIpv6 = types.InstanceMetadataProtocolState(xtv) + case strings.EqualFold("attachmentSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInternetGatewayAttachmentList(&sv.Attachments, nodeDecoder); err != nil { + return err } - case strings.EqualFold("httpPutResponseHopLimit", t.Name.Local): + case strings.EqualFold("internetGatewayId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67198,14 +74001,10 @@ func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.In } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.HttpPutResponseHopLimit = ptr.Int32(int32(i64)) + sv.InternetGatewayId = ptr.String(xtv) } - case strings.EqualFold("httpTokens", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67215,21 +74014,14 @@ func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.In } { xtv := string(val) - sv.HttpTokens = types.HttpTokensState(xtv) + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("state", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.InstanceMetadataOptionsState(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -67245,13 +74037,13 @@ func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.In return nil } -func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceMonitoring + var sv *types.InternetGatewayAttachment if *v == nil { - sv = &types.InstanceMonitoring{} + sv = &types.InternetGatewayAttachment{} } else { sv = *v } @@ -67267,7 +74059,7 @@ func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitor originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67277,14 +74069,21 @@ func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitor } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.State = types.AttachmentStatus(xtv) } - case strings.EqualFold("monitoring", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMonitoring(&sv.Monitoring, nodeDecoder); err != nil { + case strings.EqualFold("vpcId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.VpcId = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -67300,13 +74099,13 @@ func awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitor return nil } -func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceMonitoring + var sv []types.InternetGatewayAttachment if *v == nil { - sv = make([]types.InstanceMonitoring, 0) + sv = make([]types.InternetGatewayAttachment, 0) } else { sv = *v } @@ -67322,10 +74121,10 @@ func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]types.InstanceMo } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceMonitoring + var col types.InternetGatewayAttachment nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -67344,22 +74143,22 @@ func awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]types.InstanceMo return nil } -func awsEc2query_deserializeDocumentInstanceMonitoringListUnwrapped(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceMonitoring +func awsEc2query_deserializeDocumentInternetGatewayAttachmentListUnwrapped(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { + var sv []types.InternetGatewayAttachment if *v == nil { - sv = make([]types.InstanceMonitoring, 0) + sv = make([]types.InternetGatewayAttachment, 0) } else { sv = *v } switch { default: - var mv types.InstanceMonitoring + var mv types.InternetGatewayAttachment t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -67368,17 +74167,18 @@ func awsEc2query_deserializeDocumentInstanceMonitoringListUnwrapped(v *[]types.I *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentInternetGatewayList(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceNetworkInterface + var sv []types.InternetGateway if *v == nil { - sv = &types.InstanceNetworkInterface{} + sv = make([]types.InternetGateway, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -67387,185 +74187,79 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("association", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("attachment", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(&sv.Attachment, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("groupSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("interfaceType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InterfaceType = ptr.String(xtv) - } - - case strings.EqualFold("ipv4PrefixSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ipv6AddressesSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ipv6PrefixSet", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.InternetGateway nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("macAddress", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MacAddress = ptr.String(xtv) - } - - case strings.EqualFold("networkInterfaceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NetworkInterfaceId = ptr.String(xtv) - } - - case strings.EqualFold("ownerId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OwnerId = ptr.String(xtv) - } - - case strings.EqualFold("privateDnsName", t.Name.Local): - val, err := decoder.Value() - if err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PrivateDnsName = ptr.String(xtv) - } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("privateIpAddress", t.Name.Local): - val, err := decoder.Value() + default: + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.PrivateIpAddress = ptr.String(xtv) - } - - case strings.EqualFold("privateIpAddressesSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstancePrivateIpAddressList(&sv.PrivateIpAddresses, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("sourceDestCheck", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.SourceDestCheck = ptr.Bool(xtv) - } + } + decoder = originalDecoder + } + *v = sv + return nil +} - case strings.EqualFold("status", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = types.NetworkInterfaceStatus(xtv) - } +func awsEc2query_deserializeDocumentInternetGatewayListUnwrapped(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error { + var sv []types.InternetGateway + if *v == nil { + sv = make([]types.InternetGateway, 0) + } else { + sv = *v + } - case strings.EqualFold("subnetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SubnetId = ptr.String(xtv) - } + switch { + default: + var mv types.InternetGateway + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpAddressList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } - case strings.EqualFold("vpcId", t.Name.Local): + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string val, err := decoder.Value() if err != nil { return err @@ -67575,11 +74269,11 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + col = xtv } + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -67592,13 +74286,42 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **types.InstanceNetworkInterfaceAssociation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpAddressListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpam(v **types.Ipam, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceNetworkInterfaceAssociation + var sv *types.Ipam if *v == nil { - sv = &types.InstanceNetworkInterfaceAssociation{} + sv = &types.Ipam{} } else { sv = *v } @@ -67614,20 +74337,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("carrierIp", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CarrierIp = ptr.String(xtv) - } - - case strings.EqualFold("customerOwnedIp", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67637,10 +74347,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } { xtv := string(val) - sv.CustomerOwnedIp = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("ipOwnerId", t.Name.Local): + case strings.EqualFold("ipamArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67650,10 +74360,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } { xtv := string(val) - sv.IpOwnerId = ptr.String(xtv) + sv.IpamArn = ptr.String(xtv) } - case strings.EqualFold("publicDnsName", t.Name.Local): + case strings.EqualFold("ipamId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67663,10 +74373,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } { xtv := string(val) - sv.PublicDnsName = ptr.String(xtv) + sv.IpamId = ptr.String(xtv) } - case strings.EqualFold("publicIp", t.Name.Local): + case strings.EqualFold("ipamRegion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67676,46 +74386,16 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **type } { xtv := string(val) - sv.PublicIp = ptr.String(xtv) + sv.IpamRegion = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("operatingRegionSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamOperatingRegionSet(&sv.OperatingRegions, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types.InstanceNetworkInterfaceAttachment, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceNetworkInterfaceAttachment - if *v == nil { - sv = &types.InstanceNetworkInterfaceAttachment{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("attachmentId", t.Name.Local): + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67725,10 +74405,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types } { xtv := string(val) - sv.AttachmentId = ptr.String(xtv) + sv.OwnerId = ptr.String(xtv) } - case strings.EqualFold("attachTime", t.Name.Local): + case strings.EqualFold("privateDefaultScopeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67738,30 +74418,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.AttachTime = ptr.Time(t) - } - - case strings.EqualFold("deleteOnTermination", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.DeleteOnTermination = ptr.Bool(xtv) + sv.PrivateDefaultScopeId = ptr.String(xtv) } - case strings.EqualFold("deviceIndex", t.Name.Local): + case strings.EqualFold("publicDefaultScopeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67771,14 +74431,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.DeviceIndex = ptr.Int32(int32(i64)) + sv.PublicDefaultScopeId = ptr.String(xtv) } - case strings.EqualFold("networkCardIndex", t.Name.Local): + case strings.EqualFold("scopeCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67792,10 +74448,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return err } - sv.NetworkCardIndex = ptr.Int32(int32(i64)) + sv.ScopeCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67805,55 +74461,17 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types } { xtv := string(val) - sv.Status = types.AttachmentStatus(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + sv.State = types.IpamState(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceNetworkInterface - if *v == nil { - sv = make([]types.InstanceNetworkInterface, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceNetworkInterface + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -67866,37 +74484,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]types.Inst return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceListUnwrapped(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceNetworkInterface - if *v == nil { - sv = make([]types.InstanceNetworkInterface, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceNetworkInterface - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamAddressHistoryRecord(v **types.IpamAddressHistoryRecord, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceNetworkInterfaceSpecification + var sv *types.IpamAddressHistoryRecord if *v == nil { - sv = &types.InstanceNetworkInterfaceSpecification{} + sv = &types.IpamAddressHistoryRecord{} } else { sv = *v } @@ -67912,23 +74506,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("AssociateCarrierIpAddress", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.AssociateCarrierIpAddress = ptr.Bool(xtv) - } - - case strings.EqualFold("associatePublicIpAddress", t.Name.Local): + case strings.EqualFold("resourceCidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67937,14 +74515,11 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.AssociatePublicIpAddress = ptr.Bool(xtv) + xtv := string(val) + sv.ResourceCidr = ptr.String(xtv) } - case strings.EqualFold("deleteOnTermination", t.Name.Local): + case strings.EqualFold("resourceComplianceStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67953,14 +74528,11 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.DeleteOnTermination = ptr.Bool(xtv) + xtv := string(val) + sv.ResourceComplianceStatus = types.IpamComplianceStatus(xtv) } - case strings.EqualFold("description", t.Name.Local): + case strings.EqualFold("resourceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67970,10 +74542,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - sv.Description = ptr.String(xtv) + sv.ResourceId = ptr.String(xtv) } - case strings.EqualFold("deviceIndex", t.Name.Local): + case strings.EqualFold("resourceName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -67983,20 +74555,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.DeviceIndex = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("SecurityGroupId", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSecurityGroupIdStringList(&sv.Groups, nodeDecoder); err != nil { - return err + sv.ResourceName = ptr.String(xtv) } - case strings.EqualFold("InterfaceType", t.Name.Local): + case strings.EqualFold("resourceOverlapStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68006,10 +74568,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - sv.InterfaceType = ptr.String(xtv) + sv.ResourceOverlapStatus = types.IpamOverlapStatus(xtv) } - case strings.EqualFold("Ipv4PrefixCount", t.Name.Local): + case strings.EqualFold("resourceOwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68019,20 +74581,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv4PrefixCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Ipv4Prefix", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil { - return err + sv.ResourceOwnerId = ptr.String(xtv) } - case strings.EqualFold("ipv6AddressCount", t.Name.Local): + case strings.EqualFold("resourceRegion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68042,20 +74594,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv6AddressCount = ptr.Int32(int32(i64)) + sv.ResourceRegion = ptr.String(xtv) } - case strings.EqualFold("ipv6AddressesSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Ipv6PrefixCount", t.Name.Local): + case strings.EqualFold("resourceType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68065,20 +74607,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv6PrefixCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Ipv6Prefix", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil { - return err + sv.ResourceType = types.IpamAddressHistoryResourceType(xtv) } - case strings.EqualFold("NetworkCardIndex", t.Name.Local): + case strings.EqualFold("sampledEndTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68088,46 +74620,14 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.NetworkCardIndex = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("networkInterfaceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NetworkInterfaceId = ptr.String(xtv) - } - - case strings.EqualFold("privateIpAddress", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.PrivateIpAddress = ptr.String(xtv) - } - - case strings.EqualFold("privateIpAddressesSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(&sv.PrivateIpAddresses, nodeDecoder); err != nil { - return err + sv.SampledEndTime = ptr.Time(t) } - case strings.EqualFold("secondaryPrivateIpAddressCount", t.Name.Local): + case strings.EqualFold("sampledStartTime", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68137,14 +74637,14 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64)) + sv.SampledStartTime = ptr.Time(t) } - case strings.EqualFold("subnetId", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68154,7 +74654,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty } { xtv := string(val) - sv.SubnetId = ptr.String(xtv) + sv.VpcId = ptr.String(xtv) } default: @@ -68171,13 +74671,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamAddressHistoryRecordSet(v *[]types.IpamAddressHistoryRecord, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceNetworkInterfaceSpecification + var sv []types.IpamAddressHistoryRecord if *v == nil { - sv = make([]types.InstanceNetworkInterfaceSpecification, 0) + sv = make([]types.IpamAddressHistoryRecord, 0) } else { sv = *v } @@ -68193,10 +74693,10 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceNetworkInterfaceSpecification + var col types.IpamAddressHistoryRecord nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamAddressHistoryRecord(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -68215,22 +74715,22 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v return nil } -func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceNetworkInterfaceSpecification +func awsEc2query_deserializeDocumentIpamAddressHistoryRecordSetUnwrapped(v *[]types.IpamAddressHistoryRecord, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamAddressHistoryRecord if *v == nil { - sv = make([]types.InstanceNetworkInterfaceSpecification, 0) + sv = make([]types.IpamAddressHistoryRecord, 0) } else { sv = *v } switch { default: - var mv types.InstanceNetworkInterfaceSpecification + var mv types.IpamAddressHistoryRecord t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamAddressHistoryRecord(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -68239,13 +74739,13 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationListUnw *v = sv return nil } -func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamOperatingRegion(v **types.IpamOperatingRegion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstancePrivateIpAddress + var sv *types.IpamOperatingRegion if *v == nil { - sv = &types.InstancePrivateIpAddress{} + sv = &types.IpamOperatingRegion{} } else { sv = *v } @@ -68261,42 +74761,7 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("association", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("primary", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Primary = ptr.Bool(xtv) - } - - case strings.EqualFold("privateDnsName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.PrivateDnsName = ptr.String(xtv) - } - - case strings.EqualFold("privateIpAddress", t.Name.Local): + case strings.EqualFold("regionName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68306,7 +74771,7 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP } { xtv := string(val) - sv.PrivateIpAddress = ptr.String(xtv) + sv.RegionName = ptr.String(xtv) } default: @@ -68323,13 +74788,13 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP return nil } -func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamOperatingRegionSet(v *[]types.IpamOperatingRegion, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstancePrivateIpAddress + var sv []types.IpamOperatingRegion if *v == nil { - sv = make([]types.InstancePrivateIpAddress, 0) + sv = make([]types.IpamOperatingRegion, 0) } else { sv = *v } @@ -68345,10 +74810,10 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]types.Inst } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstancePrivateIpAddress + var col types.IpamOperatingRegion nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamOperatingRegion(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -68367,22 +74832,22 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]types.Inst return nil } -func awsEc2query_deserializeDocumentInstancePrivateIpAddressListUnwrapped(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error { - var sv []types.InstancePrivateIpAddress +func awsEc2query_deserializeDocumentIpamOperatingRegionSetUnwrapped(v *[]types.IpamOperatingRegion, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamOperatingRegion if *v == nil { - sv = make([]types.InstancePrivateIpAddress, 0) + sv = make([]types.IpamOperatingRegion, 0) } else { sv = *v } switch { default: - var mv types.InstancePrivateIpAddress + var mv types.IpamOperatingRegion t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamOperatingRegion(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -68391,13 +74856,13 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddressListUnwrapped(v *[]t *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequirements, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPool(v **types.IpamPool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceRequirements + var sv *types.IpamPool if *v == nil { - sv = &types.InstanceRequirements{} + sv = &types.IpamPool{} } else { sv = *v } @@ -68413,37 +74878,7 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("acceleratorCount", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAcceleratorCount(&sv.AcceleratorCount, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("acceleratorManufacturerSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAcceleratorManufacturerSet(&sv.AcceleratorManufacturers, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("acceleratorNameSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAcceleratorNameSet(&sv.AcceleratorNames, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("acceleratorTotalMemoryMiB", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(&sv.AcceleratorTotalMemoryMiB, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("acceleratorTypeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAcceleratorTypeSet(&sv.AcceleratorTypes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("bareMetal", t.Name.Local): + case strings.EqualFold("addressFamily", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68453,16 +74888,10 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi } { xtv := string(val) - sv.BareMetal = types.BareMetal(xtv) - } - - case strings.EqualFold("baselineEbsBandwidthMbps", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(&sv.BaselineEbsBandwidthMbps, nodeDecoder); err != nil { - return err + sv.AddressFamily = types.AddressFamily(xtv) } - case strings.EqualFold("burstablePerformance", t.Name.Local): + case strings.EqualFold("allocationDefaultNetmaskLength", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68472,28 +74901,14 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi } { xtv := string(val) - sv.BurstablePerformance = types.BurstablePerformance(xtv) - } - - case strings.EqualFold("cpuManufacturerSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentCpuManufacturerSet(&sv.CpuManufacturers, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("excludedInstanceTypeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentExcludedInstanceTypeSet(&sv.ExcludedInstanceTypes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceGenerationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceGenerationSet(&sv.InstanceGenerations, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.AllocationDefaultNetmaskLength = ptr.Int32(int32(i64)) } - case strings.EqualFold("localStorage", t.Name.Local): + case strings.EqualFold("allocationMaxNetmaskLength", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68503,34 +74918,14 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi } { xtv := string(val) - sv.LocalStorage = types.LocalStorage(xtv) - } - - case strings.EqualFold("localStorageTypeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentLocalStorageTypeSet(&sv.LocalStorageTypes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("memoryGiBPerVCpu", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMemoryGiBPerVCpu(&sv.MemoryGiBPerVCpu, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("memoryMiB", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMemoryMiB(&sv.MemoryMiB, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("networkInterfaceCount", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInterfaceCount(&sv.NetworkInterfaceCount, nodeDecoder); err != nil { - return err + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.AllocationMaxNetmaskLength = ptr.Int32(int32(i64)) } - case strings.EqualFold("onDemandMaxPricePercentageOverLowestPrice", t.Name.Local): + case strings.EqualFold("allocationMinNetmaskLength", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68544,10 +74939,16 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi if err != nil { return err } - sv.OnDemandMaxPricePercentageOverLowestPrice = ptr.Int32(int32(i64)) + sv.AllocationMinNetmaskLength = ptr.Int32(int32(i64)) } - case strings.EqualFold("requireHibernateSupport", t.Name.Local): + case strings.EqualFold("allocationResourceTagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamResourceTagList(&sv.AllocationResourceTags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("autoImport", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68560,10 +74961,10 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequireHibernateSupport = ptr.Bool(xtv) + sv.AutoImport = ptr.Bool(xtv) } - case strings.EqualFold("spotMaxPricePercentageOverLowestPrice", t.Name.Local): + case strings.EqualFold("awsService", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68573,62 +74974,10 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SpotMaxPricePercentageOverLowestPrice = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("totalLocalStorageGB", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTotalLocalStorageGB(&sv.TotalLocalStorageGB, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("vCpuCount", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVCpuCountRange(&sv.VCpuCount, nodeDecoder); err != nil { - return err + sv.AwsService = types.IpamPoolAwsService(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceState - if *v == nil { - sv = &types.InstanceState{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68638,14 +74987,10 @@ func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decod } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Code = ptr.Int32(int32(i64)) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("ipamArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68655,52 +75000,10 @@ func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decod } { xtv := string(val) - sv.Name = types.InstanceStateName(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceStateChange(v **types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceStateChange - if *v == nil { - sv = &types.InstanceStateChange{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("currentState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceState(&sv.CurrentState, nodeDecoder); err != nil { - return err + sv.IpamArn = ptr.String(xtv) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("ipamPoolArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68710,120 +75013,23 @@ func awsEc2query_deserializeDocumentInstanceStateChange(v **types.InstanceStateC } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - - case strings.EqualFold("previousState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceState(&sv.PreviousState, nodeDecoder); err != nil { - return err + sv.IpamPoolArn = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ipamPoolId", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceStateChange - if *v == nil { - sv = make([]types.InstanceStateChange, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceStateChange - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err + if val == nil { + break } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceStateChangeListUnwrapped(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceStateChange - if *v == nil { - sv = make([]types.InstanceStateChange, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceStateChange - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceStatus - if *v == nil { - sv = &types.InstanceStatus{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("availabilityZone", t.Name.Local): + { + xtv := string(val) + sv.IpamPoolId = ptr.String(xtv) + } + + case strings.EqualFold("ipamRegion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68833,16 +75039,10 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec } { xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("eventsSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusEventList(&sv.Events, nodeDecoder); err != nil { - return err + sv.IpamRegion = ptr.String(xtv) } - case strings.EqualFold("instanceId", t.Name.Local): + case strings.EqualFold("ipamScopeArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68852,22 +75052,23 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec } { xtv := string(val) - sv.InstanceId = ptr.String(xtv) + sv.IpamScopeArn = ptr.String(xtv) } - case strings.EqualFold("instanceState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceState(&sv.InstanceState, nodeDecoder); err != nil { + case strings.EqualFold("ipamScopeType", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("instanceStatus", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusSummary(&sv.InstanceStatus, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.IpamScopeType = types.IpamScopeType(xtv) } - case strings.EqualFold("outpostArn", t.Name.Local): + case strings.EqualFold("locale", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68877,52 +75078,40 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec } { xtv := string(val) - sv.OutpostArn = ptr.String(xtv) + sv.Locale = ptr.String(xtv) } - case strings.EqualFold("systemStatus", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusSummary(&sv.SystemStatus, nodeDecoder); err != nil { + case strings.EqualFold("ownerId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerId = ptr.String(xtv) + } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("poolDepth", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.PoolDepth = ptr.Int32(int32(i64)) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceStatusDetails - if *v == nil { - sv = &types.InstanceStatusDetails{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("impairedSince", t.Name.Local): + case strings.EqualFold("publiclyAdvertisable", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68931,15 +75120,14 @@ func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStat break } { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) + xtv, err := strconv.ParseBool(string(val)) if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ImpairedSince = ptr.Time(t) + sv.PubliclyAdvertisable = ptr.Bool(xtv) } - case strings.EqualFold("name", t.Name.Local): + case strings.EqualFold("sourceIpamPoolId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68949,10 +75137,10 @@ func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStat } { xtv := string(val) - sv.Name = types.StatusName(xtv) + sv.SourceIpamPoolId = ptr.String(xtv) } - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -68962,55 +75150,30 @@ func awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStat } { xtv := string(val) - sv.Status = types.StatusType(xtv) + sv.State = types.IpamPoolState(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("stateMessage", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.StateMessage = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceStatusDetails - if *v == nil { - sv = make([]types.InstanceStatusDetails, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceStatusDetails + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -69023,37 +75186,13 @@ func awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]types.Instanc return nil } -func awsEc2query_deserializeDocumentInstanceStatusDetailsListUnwrapped(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceStatusDetails - if *v == nil { - sv = make([]types.InstanceStatusDetails, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceStatusDetails - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolAllocation(v **types.IpamPoolAllocation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceStatusEvent + var sv *types.IpamPoolAllocation if *v == nil { - sv = &types.InstanceStatusEvent{} + sv = &types.IpamPoolAllocation{} } else { sv = *v } @@ -69069,7 +75208,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("code", t.Name.Local): + case strings.EqualFold("cidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69079,7 +75218,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } { xtv := string(val) - sv.Code = types.EventCode(xtv) + sv.Cidr = ptr.String(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -69095,7 +75234,7 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus sv.Description = ptr.String(xtv) } - case strings.EqualFold("instanceEventId", t.Name.Local): + case strings.EqualFold("ipamPoolAllocationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69105,10 +75244,10 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } { xtv := string(val) - sv.InstanceEventId = ptr.String(xtv) + sv.IpamPoolAllocationId = ptr.String(xtv) } - case strings.EqualFold("notAfter", t.Name.Local): + case strings.EqualFold("resourceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69118,14 +75257,10 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NotAfter = ptr.Time(t) + sv.ResourceId = ptr.String(xtv) } - case strings.EqualFold("notBefore", t.Name.Local): + case strings.EqualFold("resourceOwner", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69135,14 +75270,10 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NotBefore = ptr.Time(t) + sv.ResourceOwner = ptr.String(xtv) } - case strings.EqualFold("notBeforeDeadline", t.Name.Local): + case strings.EqualFold("resourceRegion", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69152,59 +75283,24 @@ func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatus } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.NotBeforeDeadline = ptr.Time(t) + sv.ResourceRegion = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("resourceType", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceStatusEvent - if *v == nil { - sv = make([]types.InstanceStatusEvent, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceStatusEvent - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.ResourceType = types.IpamPoolAllocationResourceType(xtv) } - col = *destAddr - sv = append(sv, col) default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -69217,37 +75313,13 @@ func awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]types.InstanceS return nil } -func awsEc2query_deserializeDocumentInstanceStatusEventListUnwrapped(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceStatusEvent - if *v == nil { - sv = make([]types.InstanceStatusEvent, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceStatusEvent - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceStatusList(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolAllocationSet(v *[]types.IpamPoolAllocation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceStatus + var sv []types.IpamPoolAllocation if *v == nil { - sv = make([]types.InstanceStatus, 0) + sv = make([]types.IpamPoolAllocation, 0) } else { sv = *v } @@ -69263,10 +75335,10 @@ func awsEc2query_deserializeDocumentInstanceStatusList(v *[]types.InstanceStatus } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceStatus + var col types.IpamPoolAllocation nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamPoolAllocation(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -69285,22 +75357,22 @@ func awsEc2query_deserializeDocumentInstanceStatusList(v *[]types.InstanceStatus return nil } -func awsEc2query_deserializeDocumentInstanceStatusListUnwrapped(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceStatus +func awsEc2query_deserializeDocumentIpamPoolAllocationSetUnwrapped(v *[]types.IpamPoolAllocation, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamPoolAllocation if *v == nil { - sv = make([]types.InstanceStatus, 0) + sv = make([]types.IpamPoolAllocation, 0) } else { sv = *v } switch { default: - var mv types.InstanceStatus + var mv types.IpamPoolAllocation t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamPoolAllocation(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -69309,13 +75381,13 @@ func awsEc2query_deserializeDocumentInstanceStatusListUnwrapped(v *[]types.Insta *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceStatusSummary(v **types.InstanceStatusSummary, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolCidr(v **types.IpamPoolCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceStatusSummary + var sv *types.IpamPoolCidr if *v == nil { - sv = &types.InstanceStatusSummary{} + sv = &types.IpamPoolCidr{} } else { sv = *v } @@ -69331,13 +75403,26 @@ func awsEc2query_deserializeDocumentInstanceStatusSummary(v **types.InstanceStat originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("details", t.Name.Local): + case strings.EqualFold("cidr", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Cidr = ptr.String(xtv) + } + + case strings.EqualFold("failureReason", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusDetailsList(&sv.Details, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamPoolCidrFailureReason(&sv.FailureReason, nodeDecoder); err != nil { return err } - case strings.EqualFold("status", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69347,7 +75432,7 @@ func awsEc2query_deserializeDocumentInstanceStatusSummary(v **types.InstanceStat } { xtv := string(val) - sv.Status = types.SummaryStatus(xtv) + sv.State = types.IpamPoolCidrState(xtv) } default: @@ -69364,13 +75449,13 @@ func awsEc2query_deserializeDocumentInstanceStatusSummary(v **types.InstanceStat return nil } -func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorageInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolCidrFailureReason(v **types.IpamPoolCidrFailureReason, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceStorageInfo + var sv *types.IpamPoolCidrFailureReason if *v == nil { - sv = &types.InstanceStorageInfo{} + sv = &types.IpamPoolCidrFailureReason{} } else { sv = *v } @@ -69386,26 +75471,7 @@ func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorag originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("disks", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDiskInfoList(&sv.Disks, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("encryptionSupport", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EncryptionSupport = types.InstanceStorageEncryptionSupport(xtv) - } - - case strings.EqualFold("nvmeSupport", t.Name.Local): + case strings.EqualFold("code", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69415,10 +75481,10 @@ func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorag } { xtv := string(val) - sv.NvmeSupport = types.EphemeralNvmeSupport(xtv) + sv.Code = types.IpamPoolCidrFailureCode(xtv) } - case strings.EqualFold("totalSizeInGB", t.Name.Local): + case strings.EqualFold("message", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69428,11 +75494,7 @@ func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorag } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalSizeInGB = ptr.Int64(i64) + sv.Message = ptr.String(xtv) } default: @@ -69449,13 +75511,13 @@ func awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorag return nil } -func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolCidrSet(v *[]types.IpamPoolCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string + var sv []types.IpamPoolCidr if *v == nil { - sv = make([]string, 0) + sv = make([]types.IpamPoolCidr, 0) } else { sv = *v } @@ -69469,22 +75531,15 @@ func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]string, decoder smith if done { break } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder switch { case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { + var col types.IpamPoolCidr + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpamPoolCidr(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } + col = *destAddr sv = append(sv, col) default: @@ -69500,46 +75555,42 @@ func awsEc2query_deserializeDocumentInstanceTagKeySet(v *[]string, decoder smith return nil } -func awsEc2query_deserializeDocumentInstanceTagKeySetUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsEc2query_deserializeDocumentIpamPoolCidrSetUnwrapped(v *[]types.IpamPoolCidr, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamPoolCidr if *v == nil { - sv = make([]string, 0) + sv = make([]types.IpamPoolCidr, 0) } else { sv = *v } switch { default: - var mv string + var mv types.IpamPoolCidr t := decoder.StartEl _ = t - val, err := decoder.Value() - if err != nil { + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpamPoolCidr(&destAddr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } + mv = *destAddr sv = append(sv, mv) } *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.InstanceTagNotificationAttribute, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolSet(v *[]types.IpamPool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceTagNotificationAttribute + var sv []types.IpamPool if *v == nil { - sv = &types.InstanceTagNotificationAttribute{} + sv = make([]types.IpamPool, 0) } else { sv = *v } + originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -69548,33 +75599,18 @@ func awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.I if done { break } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("includeAllTagsOfInstance", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.IncludeAllTagsOfInstance = ptr.Bool(xtv) - } - - case strings.EqualFold("instanceTagKeySet", t.Name.Local): + case strings.EqualFold("item", t.Name.Local): + var col types.IpamPool nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTagKeySet(&sv.InstanceTagKeys, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentIpamPool(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) default: - // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -69587,13 +75623,37 @@ func awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.I return nil } -func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamPoolSetUnwrapped(v *[]types.IpamPool, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamPool + if *v == nil { + sv = make([]types.IpamPool, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.IpamPool + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpamPool(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentIpamResourceCidr(v **types.IpamResourceCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceTypeInfo + var sv *types.IpamResourceCidr if *v == nil { - sv = &types.InstanceTypeInfo{} + sv = &types.IpamResourceCidr{} } else { sv = *v } @@ -69609,7 +75669,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("autoRecoverySupported", t.Name.Local): + case strings.EqualFold("complianceStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69618,14 +75678,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected AutoRecoveryFlag to be of type *bool, got %T instead", val) - } - sv.AutoRecoverySupported = ptr.Bool(xtv) + xtv := string(val) + sv.ComplianceStatus = types.IpamComplianceStatus(xtv) } - case strings.EqualFold("bareMetal", t.Name.Local): + case strings.EqualFold("ipamId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69634,14 +75691,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected BareMetalFlag to be of type *bool, got %T instead", val) - } - sv.BareMetal = ptr.Bool(xtv) + xtv := string(val) + sv.IpamId = ptr.String(xtv) } - case strings.EqualFold("burstablePerformanceSupported", t.Name.Local): + case strings.EqualFold("ipamPoolId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69650,14 +75704,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected BurstablePerformanceFlag to be of type *bool, got %T instead", val) - } - sv.BurstablePerformanceSupported = ptr.Bool(xtv) + xtv := string(val) + sv.IpamPoolId = ptr.String(xtv) } - case strings.EqualFold("currentGeneration", t.Name.Local): + case strings.EqualFold("ipamScopeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69666,14 +75717,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected CurrentGenerationFlag to be of type *bool, got %T instead", val) - } - sv.CurrentGeneration = ptr.Bool(xtv) + xtv := string(val) + sv.IpamScopeId = ptr.String(xtv) } - case strings.EqualFold("dedicatedHostsSupported", t.Name.Local): + case strings.EqualFold("ipUsage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69682,26 +75730,15 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) + xtv := string(val) + f64, err := strconv.ParseFloat(xtv, 64) if err != nil { - return fmt.Errorf("expected DedicatedHostFlag to be of type *bool, got %T instead", val) + return err } - sv.DedicatedHostsSupported = ptr.Bool(xtv) - } - - case strings.EqualFold("ebsInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEbsInfo(&sv.EbsInfo, nodeDecoder); err != nil { - return err + sv.IpUsage = ptr.Float64(f64) } - case strings.EqualFold("fpgaInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaInfo(&sv.FpgaInfo, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("freeTierEligible", t.Name.Local): + case strings.EqualFold("managementState", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69710,20 +75747,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected FreeTierEligibleFlag to be of type *bool, got %T instead", val) - } - sv.FreeTierEligible = ptr.Bool(xtv) - } - - case strings.EqualFold("gpuInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentGpuInfo(&sv.GpuInfo, nodeDecoder); err != nil { - return err + xtv := string(val) + sv.ManagementState = types.IpamManagementState(xtv) } - case strings.EqualFold("hibernationSupported", t.Name.Local): + case strings.EqualFold("overlapStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69732,14 +75760,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected HibernationFlag to be of type *bool, got %T instead", val) - } - sv.HibernationSupported = ptr.Bool(xtv) + xtv := string(val) + sv.OverlapStatus = types.IpamOverlapStatus(xtv) } - case strings.EqualFold("hypervisor", t.Name.Local): + case strings.EqualFold("resourceCidr", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69749,22 +75774,10 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, } { xtv := string(val) - sv.Hypervisor = types.InstanceTypeHypervisor(xtv) - } - - case strings.EqualFold("inferenceAcceleratorInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInferenceAcceleratorInfo(&sv.InferenceAcceleratorInfo, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("instanceStorageInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStorageInfo(&sv.InstanceStorageInfo, nodeDecoder); err != nil { - return err + sv.ResourceCidr = ptr.String(xtv) } - case strings.EqualFold("instanceStorageSupported", t.Name.Local): + case strings.EqualFold("resourceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69773,14 +75786,11 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected InstanceStorageFlag to be of type *bool, got %T instead", val) - } - sv.InstanceStorageSupported = ptr.Bool(xtv) + xtv := string(val) + sv.ResourceId = ptr.String(xtv) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("resourceName", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69790,100 +75800,55 @@ func awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, } { xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) + sv.ResourceName = ptr.String(xtv) } - case strings.EqualFold("memoryInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil { + case strings.EqualFold("resourceOwnerId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("networkInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkInfo(&sv.NetworkInfo, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("placementGroupInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPlacementGroupInfo(&sv.PlacementGroupInfo, nodeDecoder); err != nil { - return err + { + xtv := string(val) + sv.ResourceOwnerId = ptr.String(xtv) } - case strings.EqualFold("processorInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProcessorInfo(&sv.ProcessorInfo, nodeDecoder); err != nil { + case strings.EqualFold("resourceRegion", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("supportedBootModes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentBootModeTypeList(&sv.SupportedBootModes, nodeDecoder); err != nil { - return err + if val == nil { + break } - - case strings.EqualFold("supportedRootDeviceTypes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentRootDeviceTypeList(&sv.SupportedRootDeviceTypes, nodeDecoder); err != nil { - return err + { + xtv := string(val) + sv.ResourceRegion = ptr.String(xtv) } - case strings.EqualFold("supportedUsageClasses", t.Name.Local): + case strings.EqualFold("resourceTagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUsageClassTypeList(&sv.SupportedUsageClasses, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamResourceTagList(&sv.ResourceTags, nodeDecoder); err != nil { return err } - case strings.EqualFold("supportedVirtualizationTypes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVirtualizationTypeList(&sv.SupportedVirtualizationTypes, nodeDecoder); err != nil { + case strings.EqualFold("resourceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("vCpuInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVCpuInfo(&sv.VCpuInfo, nodeDecoder); err != nil { - return err + if val == nil { + break } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + { + xtv := string(val) + sv.ResourceType = types.IpamResourceType(xtv) } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(v **types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InstanceTypeInfoFromInstanceRequirements - if *v == nil { - sv = &types.InstanceTypeInfoFromInstanceRequirements{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -69893,7 +75858,7 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(v * } { xtv := string(val) - sv.InstanceType = ptr.String(xtv) + sv.VpcId = ptr.String(xtv) } default: @@ -69910,81 +75875,13 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(v * return nil } -func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSet(v *[]types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceTypeInfoFromInstanceRequirements - if *v == nil { - sv = make([]types.InstanceTypeInfoFromInstanceRequirements, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceTypeInfoFromInstanceRequirements - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSetUnwrapped(v *[]types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceTypeInfoFromInstanceRequirements - if *v == nil { - sv = make([]types.InstanceTypeInfoFromInstanceRequirements, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceTypeInfoFromInstanceRequirements - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamResourceCidrSet(v *[]types.IpamResourceCidr, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceTypeInfo + var sv []types.IpamResourceCidr if *v == nil { - sv = make([]types.InstanceTypeInfo, 0) + sv = make([]types.IpamResourceCidr, 0) } else { sv = *v } @@ -70000,10 +75897,10 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]types.InstanceType } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceTypeInfo + var col types.IpamResourceCidr nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamResourceCidr(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -70022,22 +75919,22 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]types.InstanceType return nil } -func awsEc2query_deserializeDocumentInstanceTypeInfoListUnwrapped(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceTypeInfo +func awsEc2query_deserializeDocumentIpamResourceCidrSetUnwrapped(v *[]types.IpamResourceCidr, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamResourceCidr if *v == nil { - sv = make([]types.InstanceTypeInfo, 0) + sv = make([]types.IpamResourceCidr, 0) } else { sv = *v } switch { default: - var mv types.InstanceTypeInfo + var mv types.IpamResourceCidr t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamResourceCidr(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -70046,13 +75943,13 @@ func awsEc2query_deserializeDocumentInstanceTypeInfoListUnwrapped(v *[]types.Ins *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamResourceTag(v **types.IpamResourceTag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceTypeOffering + var sv *types.IpamResourceTag if *v == nil { - sv = &types.InstanceTypeOffering{} + sv = &types.IpamResourceTag{} } else { sv = *v } @@ -70068,20 +75965,7 @@ func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeO originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceType = types.InstanceType(xtv) - } - - case strings.EqualFold("location", t.Name.Local): + case strings.EqualFold("key", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70091,10 +75975,10 @@ func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeO } { xtv := string(val) - sv.Location = ptr.String(xtv) + sv.Key = ptr.String(xtv) } - case strings.EqualFold("locationType", t.Name.Local): + case strings.EqualFold("value", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70104,7 +75988,7 @@ func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeO } { xtv := string(val) - sv.LocationType = types.LocationType(xtv) + sv.Value = ptr.String(xtv) } default: @@ -70121,13 +76005,13 @@ func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeO return nil } -func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamResourceTagList(v *[]types.IpamResourceTag, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InstanceTypeOffering + var sv []types.IpamResourceTag if *v == nil { - sv = make([]types.InstanceTypeOffering, 0) + sv = make([]types.IpamResourceTag, 0) } else { sv = *v } @@ -70143,10 +76027,10 @@ func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]types.Instanc } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InstanceTypeOffering + var col types.IpamResourceTag nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamResourceTag(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -70165,22 +76049,22 @@ func awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]types.Instanc return nil } -func awsEc2query_deserializeDocumentInstanceTypeOfferingsListUnwrapped(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceTypeOffering +func awsEc2query_deserializeDocumentIpamResourceTagListUnwrapped(v *[]types.IpamResourceTag, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamResourceTag if *v == nil { - sv = make([]types.InstanceTypeOffering, 0) + sv = make([]types.IpamResourceTag, 0) } else { sv = *v } switch { default: - var mv types.InstanceTypeOffering + var mv types.IpamResourceTag t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamResourceTag(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -70189,13 +76073,13 @@ func awsEc2query_deserializeDocumentInstanceTypeOfferingsListUnwrapped(v *[]type *v = sv return nil } -func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamScope(v **types.IpamScope, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InstanceUsage + var sv *types.IpamScope if *v == nil { - sv = &types.InstanceUsage{} + sv = &types.IpamScope{} } else { sv = *v } @@ -70211,7 +76095,7 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("accountId", t.Name.Local): + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70221,10 +76105,10 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod } { xtv := string(val) - sv.AccountId = ptr.String(xtv) + sv.Description = ptr.String(xtv) } - case strings.EqualFold("usedInstanceCount", t.Name.Local): + case strings.EqualFold("ipamArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70234,124 +76118,36 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.UsedInstanceCount = ptr.Int32(int32(i64)) + sv.IpamArn = ptr.String(xtv) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ipamRegion", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceUsageSet(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.InstanceUsage - if *v == nil { - sv = make([]types.InstanceUsage, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.InstanceUsage - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.IpamRegion = ptr.String(xtv) } - col = *destAddr - sv = append(sv, col) - default: - err = decoder.Decoder.Skip() + case strings.EqualFold("ipamScopeArn", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInstanceUsageSetUnwrapped(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error { - var sv []types.InstanceUsage - if *v == nil { - sv = make([]types.InstanceUsage, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.InstanceUsage - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InternetGateway - if *v == nil { - sv = &types.InternetGateway{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("attachmentSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGatewayAttachmentList(&sv.Attachments, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv := string(val) + sv.IpamScopeArn = ptr.String(xtv) } - case strings.EqualFold("internetGatewayId", t.Name.Local): + case strings.EqualFold("ipamScopeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70361,10 +76157,10 @@ func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, d } { xtv := string(val) - sv.InternetGatewayId = ptr.String(xtv) + sv.IpamScopeId = ptr.String(xtv) } - case strings.EqualFold("ownerId", t.Name.Local): + case strings.EqualFold("ipamScopeType", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70374,52 +76170,39 @@ func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, d } { xtv := string(val) - sv.OwnerId = ptr.String(xtv) + sv.IpamScopeType = types.IpamScopeType(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + case strings.EqualFold("isDefault", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.IsDefault = ptr.Bool(xtv) + } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("ownerId", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.OwnerId = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InternetGatewayAttachment - if *v == nil { - sv = &types.InternetGatewayAttachment{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("state", t.Name.Local): + case strings.EqualFold("poolCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70429,10 +76212,14 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.Internet } { xtv := string(val) - sv.State = types.AttachmentStatus(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.PoolCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("vpcId", t.Name.Local): + case strings.EqualFold("state", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -70442,7 +76229,13 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.Internet } { xtv := string(val) - sv.VpcId = ptr.String(xtv) + sv.State = types.IpamScopeState(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err } default: @@ -70459,13 +76252,13 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.Internet return nil } -func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamScopeSet(v *[]types.IpamScope, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InternetGatewayAttachment + var sv []types.IpamScope if *v == nil { - sv = make([]types.InternetGatewayAttachment, 0) + sv = make([]types.IpamScope, 0) } else { sv = *v } @@ -70481,10 +76274,10 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]types.Int } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InternetGatewayAttachment + var col types.IpamScope nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamScope(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -70503,22 +76296,22 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]types.Int return nil } -func awsEc2query_deserializeDocumentInternetGatewayAttachmentListUnwrapped(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error { - var sv []types.InternetGatewayAttachment +func awsEc2query_deserializeDocumentIpamScopeSetUnwrapped(v *[]types.IpamScope, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamScope if *v == nil { - sv = make([]types.InternetGatewayAttachment, 0) + sv = make([]types.IpamScope, 0) } else { sv = *v } switch { default: - var mv types.InternetGatewayAttachment + var mv types.IpamScope t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamScope(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -70527,13 +76320,13 @@ func awsEc2query_deserializeDocumentInternetGatewayAttachmentListUnwrapped(v *[] *v = sv return nil } -func awsEc2query_deserializeDocumentInternetGatewayList(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentIpamSet(v *[]types.Ipam, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.InternetGateway + var sv []types.Ipam if *v == nil { - sv = make([]types.InternetGateway, 0) + sv = make([]types.Ipam, 0) } else { sv = *v } @@ -70549,10 +76342,10 @@ func awsEc2query_deserializeDocumentInternetGatewayList(v *[]types.InternetGatew } switch { case strings.EqualFold("item", t.Name.Local): - var col types.InternetGateway + var col types.Ipam nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &col - if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpam(&destAddr, nodeDecoder); err != nil { return err } col = *destAddr @@ -70571,22 +76364,22 @@ func awsEc2query_deserializeDocumentInternetGatewayList(v *[]types.InternetGatew return nil } -func awsEc2query_deserializeDocumentInternetGatewayListUnwrapped(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error { - var sv []types.InternetGateway +func awsEc2query_deserializeDocumentIpamSetUnwrapped(v *[]types.Ipam, decoder smithyxml.NodeDecoder) error { + var sv []types.Ipam if *v == nil { - sv = make([]types.InternetGateway, 0) + sv = make([]types.Ipam, 0) } else { sv = *v } switch { default: - var mv types.InternetGateway + var mv types.Ipam t := decoder.StartEl _ = t nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) destAddr := &mv - if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpam(&destAddr, nodeDecoder); err != nil { return err } mv = *destAddr @@ -70595,86 +76388,6 @@ func awsEc2query_deserializeDocumentInternetGatewayListUnwrapped(v *[]types.Inte *v = sv return nil } -func awsEc2query_deserializeDocumentIpAddressList(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("item", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentIpAddressListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -79117,18 +84830,292 @@ func awsEc2query_deserializeDocumentNetworkCardInfo(v **types.NetworkCardInfo, d return nil } -func awsEc2query_deserializeDocumentNetworkCardInfoList(v *[]types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkCardInfoList(v *[]types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.NetworkCardInfo + if *v == nil { + sv = make([]types.NetworkCardInfo, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.NetworkCardInfo + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkCardInfo(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentNetworkCardInfoListUnwrapped(v *[]types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkCardInfo + if *v == nil { + sv = make([]types.NetworkCardInfo, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NetworkCardInfo + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkCardInfo(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.NetworkInfo + if *v == nil { + sv = &types.NetworkInfo{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("defaultNetworkCardIndex", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.DefaultNetworkCardIndex = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("efaInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEfaInfo(&sv.EfaInfo, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("efaSupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected EfaSupportedFlag to be of type *bool, got %T instead", val) + } + sv.EfaSupported = ptr.Bool(xtv) + } + + case strings.EqualFold("enaSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.EnaSupport = types.EnaSupport(xtv) + } + + case strings.EqualFold("encryptionInTransitSupported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected EncryptionInTransitSupported to be of type *bool, got %T instead", val) + } + sv.EncryptionInTransitSupported = ptr.Bool(xtv) + } + + case strings.EqualFold("ipv4AddressesPerInterface", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv4AddressesPerInterface = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("ipv6AddressesPerInterface", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.Ipv6AddressesPerInterface = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("ipv6Supported", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Ipv6Flag to be of type *bool, got %T instead", val) + } + sv.Ipv6Supported = ptr.Bool(xtv) + } + + case strings.EqualFold("maximumNetworkCards", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumNetworkCards = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("maximumNetworkInterfaces", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumNetworkInterfaces = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("networkCards", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkCardInfoList(&sv.NetworkCards, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkPerformance", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkPerformance = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentNetworkInsightsAccessScope(v **types.NetworkInsightsAccessScope, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.NetworkCardInfo + var sv *types.NetworkInsightsAccessScope if *v == nil { - sv = make([]types.NetworkCardInfo, 0) + sv = &types.NetworkInsightsAccessScope{} } else { sv = *v } - originalDecoder := decoder for { t, done, err := decoder.Token() if err != nil { @@ -79137,18 +85124,77 @@ func awsEc2query_deserializeDocumentNetworkCardInfoList(v *[]types.NetworkCardIn if done { break } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("item", t.Name.Local): - var col types.NetworkCardInfo + case strings.EqualFold("createdDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreatedDate = ptr.Time(t) + } + + case strings.EqualFold("networkInsightsAccessScopeArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeArn = ptr.String(xtv) + } + + case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeId = ptr.String(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentNetworkCardInfo(&destAddr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { return err } - col = *destAddr - sv = append(sv, col) + + case strings.EqualFold("updatedDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.UpdatedDate = ptr.Time(t) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -79161,37 +85207,13 @@ func awsEc2query_deserializeDocumentNetworkCardInfoList(v *[]types.NetworkCardIn return nil } -func awsEc2query_deserializeDocumentNetworkCardInfoListUnwrapped(v *[]types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error { - var sv []types.NetworkCardInfo - if *v == nil { - sv = make([]types.NetworkCardInfo, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.NetworkCardInfo - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentNetworkCardInfo(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(v **types.NetworkInsightsAccessScopeAnalysis, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.NetworkInfo + var sv *types.NetworkInsightsAccessScopeAnalysis if *v == nil { - sv = &types.NetworkInfo{} + sv = &types.NetworkInsightsAccessScopeAnalysis{} } else { sv = *v } @@ -79207,7 +85229,7 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("defaultNetworkCardIndex", t.Name.Local): + case strings.EqualFold("analyzedEniCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79221,16 +85243,27 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s if err != nil { return err } - sv.DefaultNetworkCardIndex = ptr.Int32(int32(i64)) + sv.AnalyzedEniCount = ptr.Int32(int32(i64)) } - case strings.EqualFold("efaInfo", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentEfaInfo(&sv.EfaInfo, nodeDecoder); err != nil { + case strings.EqualFold("endDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EndDate = ptr.Time(t) + } - case strings.EqualFold("efaSupported", t.Name.Local): + case strings.EqualFold("findingsFound", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79239,14 +85272,11 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected EfaSupportedFlag to be of type *bool, got %T instead", val) - } - sv.EfaSupported = ptr.Bool(xtv) + xtv := string(val) + sv.FindingsFound = types.FindingsFound(xtv) } - case strings.EqualFold("enaSupport", t.Name.Local): + case strings.EqualFold("networkInsightsAccessScopeAnalysisArn", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79256,10 +85286,10 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } { xtv := string(val) - sv.EnaSupport = types.EnaSupport(xtv) + sv.NetworkInsightsAccessScopeAnalysisArn = ptr.String(xtv) } - case strings.EqualFold("encryptionInTransitSupported", t.Name.Local): + case strings.EqualFold("networkInsightsAccessScopeAnalysisId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79268,14 +85298,11 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected EncryptionInTransitSupported to be of type *bool, got %T instead", val) - } - sv.EncryptionInTransitSupported = ptr.Bool(xtv) + xtv := string(val) + sv.NetworkInsightsAccessScopeAnalysisId = ptr.String(xtv) } - case strings.EqualFold("ipv4AddressesPerInterface", t.Name.Local): + case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79285,14 +85312,10 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Ipv4AddressesPerInterface = ptr.Int32(int32(i64)) + sv.NetworkInsightsAccessScopeId = ptr.String(xtv) } - case strings.EqualFold("ipv6AddressesPerInterface", t.Name.Local): + case strings.EqualFold("startDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79302,14 +85325,14 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.Ipv6AddressesPerInterface = ptr.Int32(int32(i64)) + sv.StartDate = ptr.Time(t) } - case strings.EqualFold("ipv6Supported", t.Name.Local): + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79318,14 +85341,11 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Ipv6Flag to be of type *bool, got %T instead", val) - } - sv.Ipv6Supported = ptr.Bool(xtv) + xtv := string(val) + sv.Status = types.AnalysisStatus(xtv) } - case strings.EqualFold("maximumNetworkCards", t.Name.Local): + case strings.EqualFold("statusMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79335,14 +85355,16 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.MaximumNetworkCards = ptr.Int32(int32(i64)) + sv.StatusMessage = ptr.String(xtv) } - case strings.EqualFold("maximumNetworkInterfaces", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("warningMessage", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79352,20 +85374,126 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.MaximumNetworkInterfaces = ptr.Int32(int32(i64)) + sv.WarningMessage = ptr.String(xtv) } - case strings.EqualFold("networkCards", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysisList(v *[]types.NetworkInsightsAccessScopeAnalysis, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.NetworkInsightsAccessScopeAnalysis + if *v == nil { + sv = make([]types.NetworkInsightsAccessScopeAnalysis, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.NetworkInsightsAccessScopeAnalysis nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentNetworkCardInfoList(&sv.NetworkCards, nodeDecoder); err != nil { + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(&destAddr, nodeDecoder); err != nil { return err } + col = *destAddr + sv = append(sv, col) - case strings.EqualFold("networkPerformance", t.Name.Local): + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysisListUnwrapped(v *[]types.NetworkInsightsAccessScopeAnalysis, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkInsightsAccessScopeAnalysis + if *v == nil { + sv = make([]types.NetworkInsightsAccessScopeAnalysis, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NetworkInsightsAccessScopeAnalysis + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeContent(v **types.NetworkInsightsAccessScopeContent, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.NetworkInsightsAccessScopeContent + if *v == nil { + sv = &types.NetworkInsightsAccessScopeContent{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("excludePathSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAccessScopePathList(&sv.ExcludePaths, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("matchPathSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAccessScopePathList(&sv.MatchPaths, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -79375,7 +85503,7 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s } { xtv := string(val) - sv.NetworkPerformance = ptr.String(xtv) + sv.NetworkInsightsAccessScopeId = ptr.String(xtv) } default: @@ -79392,6 +85520,74 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s return nil } +func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeList(v *[]types.NetworkInsightsAccessScope, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.NetworkInsightsAccessScope + if *v == nil { + sv = make([]types.NetworkInsightsAccessScope, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.NetworkInsightsAccessScope + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScope(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeListUnwrapped(v *[]types.NetworkInsightsAccessScope, decoder smithyxml.NodeDecoder) error { + var sv []types.NetworkInsightsAccessScope + if *v == nil { + sv = make([]types.NetworkInsightsAccessScope, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.NetworkInsightsAccessScope + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScope(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentNetworkInsightsAnalysis(v **types.NetworkInsightsAnalysis, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -79548,6 +85744,19 @@ func awsEc2query_deserializeDocumentNetworkInsightsAnalysis(v **types.NetworkIns return err } + case strings.EqualFold("warningMessage", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.WarningMessage = ptr.String(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -81326,6 +87535,84 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d return nil } +func awsEc2query_deserializeDocumentPacketHeaderStatement(v **types.PacketHeaderStatement, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.PacketHeaderStatement + if *v == nil { + sv = &types.PacketHeaderStatement{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("destinationAddressSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.DestinationAddresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("destinationPortSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.DestinationPorts, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("destinationPrefixListSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.DestinationPrefixLists, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("protocolSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProtocolList(&sv.Protocols, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourceAddressSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.SourceAddresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourcePortSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.SourcePorts, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("sourcePrefixListSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.SourcePrefixLists, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentPathComponent(v **types.PathComponent, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -81354,6 +87641,12 @@ func awsEc2query_deserializeDocumentPathComponent(v **types.PathComponent, decod return err } + case strings.EqualFold("attachedTo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.AttachedTo, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("component", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Component, nodeDecoder); err != nil { @@ -81507,6 +87800,54 @@ func awsEc2query_deserializeDocumentPathComponentListUnwrapped(v *[]types.PathCo *v = sv return nil } +func awsEc2query_deserializeDocumentPathStatement(v **types.PathStatement, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.PathStatement + if *v == nil { + sv = &types.PathStatement{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("packetHeaderStatement", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPacketHeaderStatement(&sv.PacketHeaderStatement, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("resourceStatement", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentResourceStatement(&sv.ResourceStatement, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentPciId(v **types.PciId, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -85115,6 +91456,86 @@ func awsEc2query_deserializeDocumentPropagatingVgwListUnwrapped(v *[]types.Propa *v = sv return nil } +func awsEc2query_deserializeDocumentProtocolList(v *[]types.Protocol, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.Protocol + if *v == nil { + sv = make([]types.Protocol, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.Protocol + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = types.Protocol(xtv) + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentProtocolListUnwrapped(v *[]types.Protocol, decoder smithyxml.NodeDecoder) error { + var sv []types.Protocol + if *v == nil { + sv = make([]types.Protocol, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.Protocol + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = types.Protocol(xtv) + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBandwidth, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -88264,6 +94685,54 @@ func awsEc2query_deserializeDocumentReservedIntancesIdsUnwrapped(v *[]types.Rese *v = sv return nil } +func awsEc2query_deserializeDocumentResourceStatement(v **types.ResourceStatement, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ResourceStatement + if *v == nil { + sv = &types.ResourceStatement{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("resourceSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.Resources, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("resourceTypeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentValueStringList(&sv.ResourceTypes, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentResponseError(v **types.ResponseError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -96254,6 +102723,23 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N sv.EnableDns64 = ptr.Bool(xtv) } + case strings.EqualFold("enableLniAtDeviceIndex", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.EnableLniAtDeviceIndex = ptr.Int32(int32(i64)) + } + case strings.EqualFold("ipv6CidrBlockAssociationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(&sv.Ipv6CidrBlockAssociationSet, nodeDecoder); err != nil { @@ -98478,6 +104964,116 @@ func awsEc2query_deserializeDocumentThreadsPerCoreListUnwrapped(v *[]int32, deco *v = sv return nil } +func awsEc2query_deserializeDocumentThroughResourcesStatement(v **types.ThroughResourcesStatement, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ThroughResourcesStatement + if *v == nil { + sv = &types.ThroughResourcesStatement{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("resourceStatement", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentResourceStatement(&sv.ResourceStatement, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentThroughResourcesStatementList(v *[]types.ThroughResourcesStatement, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ThroughResourcesStatement + if *v == nil { + sv = make([]types.ThroughResourcesStatement, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.ThroughResourcesStatement + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentThroughResourcesStatement(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentThroughResourcesStatementListUnwrapped(v *[]types.ThroughResourcesStatement, decoder smithyxml.NodeDecoder) error { + var sv []types.ThroughResourcesStatement + if *v == nil { + sv = make([]types.ThroughResourcesStatement, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ThroughResourcesStatement + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentThroughResourcesStatement(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentTotalLocalStorageGB(v **types.TotalLocalStorageGB, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -110545,6 +117141,48 @@ func awsEc2query_deserializeOpDocumentAllocateHostsOutput(v **AllocateHostsOutpu return nil } +func awsEc2query_deserializeOpDocumentAllocateIpamPoolCidrOutput(v **AllocateIpamPoolCidrOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *AllocateIpamPoolCidrOutput + if *v == nil { + sv = &AllocateIpamPoolCidrOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPoolAllocation", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPoolAllocation(&sv.IpamPoolAllocation, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentApplySecurityGroupsToClientVpnTargetNetworkOutput(v **ApplySecurityGroupsToClientVpnTargetNetworkOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -113287,6 +119925,132 @@ func awsEc2query_deserializeOpDocumentCreateInternetGatewayOutput(v **CreateInte return nil } +func awsEc2query_deserializeOpDocumentCreateIpamOutput(v **CreateIpamOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateIpamOutput + if *v == nil { + sv = &CreateIpamOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipam", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpam(&sv.Ipam, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentCreateIpamPoolOutput(v **CreateIpamPoolOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateIpamPoolOutput + if *v == nil { + sv = &CreateIpamPoolOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPool", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPool(&sv.IpamPool, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentCreateIpamScopeOutput(v **CreateIpamScopeOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateIpamScopeOutput + if *v == nil { + sv = &CreateIpamScopeOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamScope", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamScope(&sv.IpamScope, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentCreateKeyPairOutput(v **CreateKeyPairOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -113700,6 +120464,54 @@ func awsEc2query_deserializeOpDocumentCreateNetworkAclOutput(v **CreateNetworkAc return nil } +func awsEc2query_deserializeOpDocumentCreateNetworkInsightsAccessScopeOutput(v **CreateNetworkInsightsAccessScopeOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateNetworkInsightsAccessScopeOutput + if *v == nil { + sv = &CreateNetworkInsightsAccessScopeOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkInsightsAccessScope", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScope(&sv.NetworkInsightsAccessScope, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("networkInsightsAccessScopeContent", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeContent(&sv.NetworkInsightsAccessScopeContent, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentCreateNetworkInsightsPathOutput(v **CreateNetworkInsightsPathOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -113881,6 +120693,55 @@ func awsEc2query_deserializeOpDocumentCreatePlacementGroupOutput(v **CreatePlace return nil } +func awsEc2query_deserializeOpDocumentCreatePublicIpv4PoolOutput(v **CreatePublicIpv4PoolOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreatePublicIpv4PoolOutput + if *v == nil { + sv = &CreatePublicIpv4PoolOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("poolId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PoolId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentCreateReplaceRootVolumeTaskOutput(v **CreateReplaceRootVolumeTaskOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -116193,6 +123054,132 @@ func awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(v **Delete return nil } +func awsEc2query_deserializeOpDocumentDeleteIpamOutput(v **DeleteIpamOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteIpamOutput + if *v == nil { + sv = &DeleteIpamOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipam", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpam(&sv.Ipam, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDeleteIpamPoolOutput(v **DeleteIpamPoolOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteIpamPoolOutput + if *v == nil { + sv = &DeleteIpamPoolOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPool", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPool(&sv.IpamPool, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDeleteIpamScopeOutput(v **DeleteIpamScopeOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteIpamScopeOutput + if *v == nil { + sv = &DeleteIpamScopeOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamScope", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamScope(&sv.IpamScope, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeleteLaunchTemplateOutput(v **DeleteLaunchTemplateOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -116458,6 +123445,104 @@ func awsEc2query_deserializeOpDocumentDeleteNatGatewayOutput(v **DeleteNatGatewa return nil } +func awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAccessScopeAnalysisOutput(v **DeleteNetworkInsightsAccessScopeAnalysisOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteNetworkInsightsAccessScopeAnalysisOutput + if *v == nil { + sv = &DeleteNetworkInsightsAccessScopeAnalysisOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkInsightsAccessScopeAnalysisId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeAnalysisId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAccessScopeOutput(v **DeleteNetworkInsightsAccessScopeOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteNetworkInsightsAccessScopeOutput + if *v == nil { + sv = &DeleteNetworkInsightsAccessScopeOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAnalysisOutput(v **DeleteNetworkInsightsAnalysisOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -116608,6 +123693,58 @@ func awsEc2query_deserializeOpDocumentDeleteNetworkInterfacePermissionOutput(v * return nil } +func awsEc2query_deserializeOpDocumentDeletePublicIpv4PoolOutput(v **DeletePublicIpv4PoolOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeletePublicIpv4PoolOutput + if *v == nil { + sv = &DeletePublicIpv4PoolOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("returnValue", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.ReturnValue = ptr.Bool(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeleteQueuedReservedInstancesOutput(v **DeleteQueuedReservedInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -117492,6 +124629,103 @@ func awsEc2query_deserializeOpDocumentDeprovisionByoipCidrOutput(v **Deprovision return nil } +func awsEc2query_deserializeOpDocumentDeprovisionIpamPoolCidrOutput(v **DeprovisionIpamPoolCidrOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeprovisionIpamPoolCidrOutput + if *v == nil { + sv = &DeprovisionIpamPoolCidrOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPoolCidr", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPoolCidr(&sv.IpamPoolCidr, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDeprovisionPublicIpv4PoolCidrOutput(v **DeprovisionPublicIpv4PoolCidrOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeprovisionPublicIpv4PoolCidrOutput + if *v == nil { + sv = &DeprovisionPublicIpv4PoolCidrOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("deprovisionedAddressSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDeprovisionedAddressSet(&sv.DeprovisionedAddresses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("poolId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PoolId = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeregisterInstanceEventNotificationAttributesOutput(v **DeregisterInstanceEventNotificationAttributesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -120253,13 +127487,123 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceStatusOutput(v **DescribeI return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(v **DescribeInstanceTypeOfferingsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(v **DescribeInstanceTypeOfferingsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeInstanceTypeOfferingsOutput + if *v == nil { + sv = &DescribeInstanceTypeOfferingsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceTypeOfferingSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceTypeOfferingsList(&sv.InstanceTypeOfferings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(v **DescribeInstanceTypesOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeInstanceTypesOutput + if *v == nil { + sv = &DescribeInstanceTypesOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceTypeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceTypeInfoList(&sv.InstanceTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(v **DescribeInternetGatewaysOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInstanceTypeOfferingsOutput + var sv *DescribeInternetGatewaysOutput if *v == nil { - sv = &DescribeInstanceTypeOfferingsOutput{} + sv = &DescribeInternetGatewaysOutput{} } else { sv = *v } @@ -120275,9 +127619,9 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(v **De originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceTypeOfferingSet", t.Name.Local): + case strings.EqualFold("internetGatewaySet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeOfferingsList(&sv.InstanceTypeOfferings, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInternetGatewayList(&sv.InternetGateways, nodeDecoder); err != nil { return err } @@ -120308,13 +127652,13 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(v **De return nil } -func awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(v **DescribeInstanceTypesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeIpamPoolsOutput(v **DescribeIpamPoolsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInstanceTypesOutput + var sv *DescribeIpamPoolsOutput if *v == nil { - sv = &DescribeInstanceTypesOutput{} + sv = &DescribeIpamPoolsOutput{} } else { sv = *v } @@ -120330,9 +127674,9 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(v **DescribeIn originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceTypeSet", t.Name.Local): + case strings.EqualFold("ipamPoolSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeInfoList(&sv.InstanceTypes, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamPoolSet(&sv.IpamPools, nodeDecoder); err != nil { return err } @@ -120363,13 +127707,13 @@ func awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(v **DescribeIn return nil } -func awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(v **DescribeInternetGatewaysOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeIpamScopesOutput(v **DescribeIpamScopesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeInternetGatewaysOutput + var sv *DescribeIpamScopesOutput if *v == nil { - sv = &DescribeInternetGatewaysOutput{} + sv = &DescribeIpamScopesOutput{} } else { sv = *v } @@ -120385,9 +127729,64 @@ func awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(v **Describ originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("internetGatewaySet", t.Name.Local): + case strings.EqualFold("ipamScopeSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInternetGatewayList(&sv.InternetGateways, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamScopeSet(&sv.IpamScopes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeIpamsOutput(v **DescribeIpamsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeIpamsOutput + if *v == nil { + sv = &DescribeIpamsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamSet(&sv.Ipams, nodeDecoder); err != nil { return err } @@ -121175,6 +128574,116 @@ func awsEc2query_deserializeOpDocumentDescribeNetworkAclsOutput(v **DescribeNetw return nil } +func awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAccessScopeAnalysesOutput(v **DescribeNetworkInsightsAccessScopeAnalysesOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeNetworkInsightsAccessScopeAnalysesOutput + if *v == nil { + sv = &DescribeNetworkInsightsAccessScopeAnalysesOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkInsightsAccessScopeAnalysisSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysisList(&sv.NetworkInsightsAccessScopeAnalyses, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAccessScopesOutput(v **DescribeNetworkInsightsAccessScopesOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeNetworkInsightsAccessScopesOutput + if *v == nil { + sv = &DescribeNetworkInsightsAccessScopesOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkInsightsAccessScopeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeList(&sv.NetworkInsightsAccessScopes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAnalysesOutput(v **DescribeNetworkInsightsAnalysesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -124950,6 +132459,58 @@ func awsEc2query_deserializeOpDocumentDisableImageDeprecationOutput(v **DisableI return nil } +func awsEc2query_deserializeOpDocumentDisableIpamOrganizationAdminAccountOutput(v **DisableIpamOrganizationAdminAccountOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DisableIpamOrganizationAdminAccountOutput + if *v == nil { + sv = &DisableIpamOrganizationAdminAccountOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("success", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Success = ptr.Bool(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDisableSerialConsoleAccessOutput(v **DisableSerialConsoleAccessOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -125756,6 +133317,58 @@ func awsEc2query_deserializeOpDocumentEnableImageDeprecationOutput(v **EnableIma return nil } +func awsEc2query_deserializeOpDocumentEnableIpamOrganizationAdminAccountOutput(v **EnableIpamOrganizationAdminAccountOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *EnableIpamOrganizationAdminAccountOutput + if *v == nil { + sv = &EnableIpamOrganizationAdminAccountOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("success", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Success = ptr.Bool(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentEnableSerialConsoleAccessOutput(v **EnableSerialConsoleAccessOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -126940,13 +134553,369 @@ func awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(v **GetHostReservationPurchasePreviewOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(v **GetHostReservationPurchasePreviewOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetHostReservationPurchasePreviewOutput + if *v == nil { + sv = &GetHostReservationPurchasePreviewOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("currencyCode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CurrencyCode = types.CurrencyCodeValues(xtv) + } + + case strings.EqualFold("purchase", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPurchaseSet(&sv.Purchase, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("totalHourlyPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TotalHourlyPrice = ptr.String(xtv) + } + + case strings.EqualFold("totalUpfrontPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TotalUpfrontPrice = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOutput(v **GetInstanceTypesFromInstanceRequirementsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetInstanceTypesFromInstanceRequirementsOutput + if *v == nil { + sv = &GetInstanceTypesFromInstanceRequirementsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceTypeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSet(&sv.InstanceTypes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentGetIpamAddressHistoryOutput(v **GetIpamAddressHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetIpamAddressHistoryOutput + if *v == nil { + sv = &GetIpamAddressHistoryOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("historyRecordSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamAddressHistoryRecordSet(&sv.HistoryRecords, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentGetIpamPoolAllocationsOutput(v **GetIpamPoolAllocationsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetIpamPoolAllocationsOutput + if *v == nil { + sv = &GetIpamPoolAllocationsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPoolAllocationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPoolAllocationSet(&sv.IpamPoolAllocations, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentGetIpamPoolCidrsOutput(v **GetIpamPoolCidrsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetIpamPoolCidrsOutput + if *v == nil { + sv = &GetIpamPoolCidrsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPoolCidrSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPoolCidrSet(&sv.IpamPoolCidrs, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentGetIpamResourceCidrsOutput(v **GetIpamResourceCidrsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetIpamResourceCidrsOutput + if *v == nil { + sv = &GetIpamResourceCidrsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamResourceCidrSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamResourceCidrSet(&sv.IpamResourceCidrs, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(v **GetLaunchTemplateDataOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetHostReservationPurchasePreviewOutput + var sv *GetLaunchTemplateDataOutput if *v == nil { - sv = &GetHostReservationPurchasePreviewOutput{} + sv = &GetLaunchTemplateDataOutput{} } else { sv = *v } @@ -126962,50 +134931,11 @@ func awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("currencyCode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CurrencyCode = types.CurrencyCodeValues(xtv) - } - - case strings.EqualFold("purchase", t.Name.Local): + case strings.EqualFold("launchTemplateData", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPurchaseSet(&sv.Purchase, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("totalHourlyPrice", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TotalHourlyPrice = ptr.String(xtv) - } - - case strings.EqualFold("totalUpfrontPrice", t.Name.Local): - val, err := decoder.Value() - if err != nil { + if err := awsEc2query_deserializeDocumentResponseLaunchTemplateData(&sv.LaunchTemplateData, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.TotalUpfrontPrice = ptr.String(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -127021,13 +134951,13 @@ func awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(v return nil } -func awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOutput(v **GetInstanceTypesFromInstanceRequirementsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(v **GetManagedPrefixListAssociationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetInstanceTypesFromInstanceRequirementsOutput + var sv *GetManagedPrefixListAssociationsOutput if *v == nil { - sv = &GetInstanceTypesFromInstanceRequirementsOutput{} + sv = &GetManagedPrefixListAssociationsOutput{} } else { sv = *v } @@ -127043,12 +134973,6 @@ func awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOu originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceTypeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSet(&sv.InstanceTypes, nodeDecoder); err != nil { - return err - } - case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -127062,6 +134986,12 @@ func awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOu sv.NextToken = ptr.String(xtv) } + case strings.EqualFold("prefixListAssociationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPrefixListAssociationSet(&sv.PrefixListAssociations, nodeDecoder); err != nil { + return err + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -127076,13 +135006,13 @@ func awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOu return nil } -func awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(v **GetLaunchTemplateDataOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(v **GetManagedPrefixListEntriesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetLaunchTemplateDataOutput + var sv *GetManagedPrefixListEntriesOutput if *v == nil { - sv = &GetLaunchTemplateDataOutput{} + sv = &GetManagedPrefixListEntriesOutput{} } else { sv = *v } @@ -127098,11 +135028,24 @@ func awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(v **GetLaunchT originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("launchTemplateData", t.Name.Local): + case strings.EqualFold("entrySet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentResponseLaunchTemplateData(&sv.LaunchTemplateData, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentPrefixListEntrySet(&sv.Entries, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -127118,13 +135061,13 @@ func awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(v **GetLaunchT return nil } -func awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(v **GetManagedPrefixListAssociationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentGetNetworkInsightsAccessScopeAnalysisFindingsOutput(v **GetNetworkInsightsAccessScopeAnalysisFindingsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetManagedPrefixListAssociationsOutput + var sv *GetNetworkInsightsAccessScopeAnalysisFindingsOutput if *v == nil { - sv = &GetManagedPrefixListAssociationsOutput{} + sv = &GetNetworkInsightsAccessScopeAnalysisFindingsOutput{} } else { sv = *v } @@ -127140,7 +135083,13 @@ func awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(v * originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("nextToken", t.Name.Local): + case strings.EqualFold("analysisFindingSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAccessScopeAnalysisFindingList(&sv.AnalysisFindings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("analysisStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -127150,14 +135099,34 @@ func awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(v * } { xtv := string(val) - sv.NextToken = ptr.String(xtv) + sv.AnalysisStatus = types.AnalysisStatus(xtv) } - case strings.EqualFold("prefixListAssociationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListAssociationSet(&sv.PrefixListAssociations, nodeDecoder); err != nil { + case strings.EqualFold("networkInsightsAccessScopeAnalysisId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.NetworkInsightsAccessScopeAnalysisId = ptr.String(xtv) + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -127173,13 +135142,13 @@ func awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(v * return nil } -func awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(v **GetManagedPrefixListEntriesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentGetNetworkInsightsAccessScopeContentOutput(v **GetNetworkInsightsAccessScopeContentOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *GetManagedPrefixListEntriesOutput + var sv *GetNetworkInsightsAccessScopeContentOutput if *v == nil { - sv = &GetManagedPrefixListEntriesOutput{} + sv = &GetNetworkInsightsAccessScopeContentOutput{} } else { sv = *v } @@ -127195,25 +135164,12 @@ func awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(v **GetM originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("entrySet", t.Name.Local): + case strings.EqualFold("networkInsightsAccessScopeContent", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPrefixListEntrySet(&sv.Entries, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeContent(&sv.NetworkInsightsAccessScopeContent, nodeDecoder); err != nil { return err } - case strings.EqualFold("nextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -128951,13 +136907,155 @@ func awsEc2query_deserializeOpDocumentModifyFleetOutput(v **ModifyFleetOutput, d return nil } -func awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(v **ModifyFpgaImageAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(v **ModifyFpgaImageAttributeOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyFpgaImageAttributeOutput + if *v == nil { + sv = &ModifyFpgaImageAttributeOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("fpgaImageAttribute", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentFpgaImageAttribute(&sv.FpgaImageAttribute, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyHostsOutput(v **ModifyHostsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyHostsOutput + if *v == nil { + sv = &ModifyHostsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("successful", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentResponseHostIdList(&sv.Successful, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("unsuccessful", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentUnsuccessfulItemList(&sv.Unsuccessful, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(v **ModifyInstanceCapacityReservationAttributesOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyInstanceCapacityReservationAttributesOutput + if *v == nil { + sv = &ModifyInstanceCapacityReservationAttributesOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("return", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Return = ptr.Bool(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(v **ModifyInstanceCreditSpecificationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyFpgaImageAttributeOutput + var sv *ModifyInstanceCreditSpecificationOutput if *v == nil { - sv = &ModifyFpgaImageAttributeOutput{} + sv = &ModifyInstanceCreditSpecificationOutput{} } else { sv = *v } @@ -128973,9 +137071,15 @@ func awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(v **ModifyF originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("fpgaImageAttribute", t.Name.Local): + case strings.EqualFold("successfulInstanceCreditSpecificationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentFpgaImageAttribute(&sv.FpgaImageAttribute, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(&sv.SuccessfulInstanceCreditSpecifications, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("unsuccessfulInstanceCreditSpecificationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(&sv.UnsuccessfulInstanceCreditSpecifications, nodeDecoder); err != nil { return err } @@ -128993,13 +137097,13 @@ func awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(v **ModifyF return nil } -func awsEc2query_deserializeOpDocumentModifyHostsOutput(v **ModifyHostsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(v **ModifyInstanceEventStartTimeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyHostsOutput + var sv *ModifyInstanceEventStartTimeOutput if *v == nil { - sv = &ModifyHostsOutput{} + sv = &ModifyInstanceEventStartTimeOutput{} } else { sv = *v } @@ -129015,15 +137119,51 @@ func awsEc2query_deserializeOpDocumentModifyHostsOutput(v **ModifyHostsOutput, d originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("successful", t.Name.Local): + case strings.EqualFold("event", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentResponseHostIdList(&sv.Successful, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&sv.Event, nodeDecoder); err != nil { return err } - case strings.EqualFold("unsuccessful", t.Name.Local): + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(v **ModifyInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyInstanceEventWindowOutput + if *v == nil { + sv = &ModifyInstanceEventWindowOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceEventWindow", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulItemList(&sv.Unsuccessful, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { return err } @@ -129041,13 +137181,13 @@ func awsEc2query_deserializeOpDocumentModifyHostsOutput(v **ModifyHostsOutput, d return nil } -func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(v **ModifyInstanceCapacityReservationAttributesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **ModifyInstanceMetadataOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyInstanceCapacityReservationAttributesOutput + var sv *ModifyInstanceMetadataOptionsOutput if *v == nil { - sv = &ModifyInstanceCapacityReservationAttributesOutput{} + sv = &ModifyInstanceMetadataOptionsOutput{} } else { sv = *v } @@ -129063,7 +137203,7 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttribute originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("return", t.Name.Local): + case strings.EqualFold("instanceId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -129072,11 +137212,14 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttribute break } { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Return = ptr.Bool(xtv) + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("instanceMetadataOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(&sv.InstanceMetadataOptions, nodeDecoder); err != nil { + return err } default: @@ -129093,13 +137236,13 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttribute return nil } -func awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(v **ModifyInstanceCreditSpecificationOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(v **ModifyInstancePlacementOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyInstanceCreditSpecificationOutput + var sv *ModifyInstancePlacementOutput if *v == nil { - sv = &ModifyInstanceCreditSpecificationOutput{} + sv = &ModifyInstancePlacementOutput{} } else { sv = *v } @@ -129115,16 +137258,20 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("successfulInstanceCreditSpecificationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(&sv.SuccessfulInstanceCreditSpecifications, nodeDecoder); err != nil { + case strings.EqualFold("return", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("unsuccessfulInstanceCreditSpecificationSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(&sv.UnsuccessfulInstanceCreditSpecifications, nodeDecoder); err != nil { - return err + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Return = ptr.Bool(xtv) } default: @@ -129141,13 +137288,13 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(v return nil } -func awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(v **ModifyInstanceEventStartTimeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyIpamOutput(v **ModifyIpamOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyInstanceEventStartTimeOutput + var sv *ModifyIpamOutput if *v == nil { - sv = &ModifyInstanceEventStartTimeOutput{} + sv = &ModifyIpamOutput{} } else { sv = *v } @@ -129163,9 +137310,9 @@ func awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(v **Mod originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("event", t.Name.Local): + case strings.EqualFold("ipam", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&sv.Event, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpam(&sv.Ipam, nodeDecoder); err != nil { return err } @@ -129183,13 +137330,13 @@ func awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(v **Mod return nil } -func awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(v **ModifyInstanceEventWindowOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyIpamPoolOutput(v **ModifyIpamPoolOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyInstanceEventWindowOutput + var sv *ModifyIpamPoolOutput if *v == nil { - sv = &ModifyInstanceEventWindowOutput{} + sv = &ModifyIpamPoolOutput{} } else { sv = *v } @@ -129205,9 +137352,9 @@ func awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(v **Modify originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceEventWindow", t.Name.Local): + case strings.EqualFold("ipamPool", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceEventWindow(&sv.InstanceEventWindow, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamPool(&sv.IpamPool, nodeDecoder); err != nil { return err } @@ -129225,13 +137372,13 @@ func awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(v **Modify return nil } -func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **ModifyInstanceMetadataOptionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyIpamResourceCidrOutput(v **ModifyIpamResourceCidrOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyInstanceMetadataOptionsOutput + var sv *ModifyIpamResourceCidrOutput if *v == nil { - sv = &ModifyInstanceMetadataOptionsOutput{} + sv = &ModifyIpamResourceCidrOutput{} } else { sv = *v } @@ -129247,22 +137394,9 @@ func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **Mo originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instanceId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.InstanceId = ptr.String(xtv) - } - - case strings.EqualFold("instanceMetadataOptions", t.Name.Local): + case strings.EqualFold("ipamResourceCidr", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(&sv.InstanceMetadataOptions, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentIpamResourceCidr(&sv.IpamResourceCidr, nodeDecoder); err != nil { return err } @@ -129280,13 +137414,13 @@ func awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(v **Mo return nil } -func awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(v **ModifyInstancePlacementOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyIpamScopeOutput(v **ModifyIpamScopeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyInstancePlacementOutput + var sv *ModifyIpamScopeOutput if *v == nil { - sv = &ModifyInstancePlacementOutput{} + sv = &ModifyIpamScopeOutput{} } else { sv = *v } @@ -129302,21 +137436,11 @@ func awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(v **ModifyIn originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("return", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("ipamScope", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamScope(&sv.IpamScope, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.Return = ptr.Bool(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -130189,13 +138313,113 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput( return nil } -func awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(v **ModifyVpcPeeringConnectionOptionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(v **ModifyVpcPeeringConnectionOptionsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcPeeringConnectionOptionsOutput + if *v == nil { + sv = &ModifyVpcPeeringConnectionOptionsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("accepterPeeringConnectionOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPeeringConnectionOptions(&sv.AccepterPeeringConnectionOptions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("requesterPeeringConnectionOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPeeringConnectionOptions(&sv.RequesterPeeringConnectionOptions, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(v **ModifyVpcTenancyOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcTenancyOutput + if *v == nil { + sv = &ModifyVpcTenancyOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("return", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.ReturnValue = ptr.Bool(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(v **ModifyVpnConnectionOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyVpcPeeringConnectionOptionsOutput + var sv *ModifyVpnConnectionOptionsOutput if *v == nil { - sv = &ModifyVpcPeeringConnectionOptionsOutput{} + sv = &ModifyVpnConnectionOptionsOutput{} } else { sv = *v } @@ -130211,15 +138435,9 @@ func awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("accepterPeeringConnectionOptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPeeringConnectionOptions(&sv.AccepterPeeringConnectionOptions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("requesterPeeringConnectionOptions", t.Name.Local): + case strings.EqualFold("vpnConnection", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentPeeringConnectionOptions(&sv.RequesterPeeringConnectionOptions, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpnConnection(&sv.VpnConnection, nodeDecoder); err != nil { return err } @@ -130237,13 +138455,13 @@ func awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(v return nil } -func awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(v **ModifyVpcTenancyOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(v **ModifyVpnConnectionOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyVpcTenancyOutput + var sv *ModifyVpnConnectionOutput if *v == nil { - sv = &ModifyVpcTenancyOutput{} + sv = &ModifyVpnConnectionOutput{} } else { sv = *v } @@ -130259,21 +138477,11 @@ func awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(v **ModifyVpcTenanc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("return", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("vpnConnection", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpnConnection(&sv.VpnConnection, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) - } - sv.ReturnValue = ptr.Bool(xtv) - } default: // Do nothing and ignore the unexpected tag element @@ -130289,13 +138497,13 @@ func awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(v **ModifyVpcTenanc return nil } -func awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(v **ModifyVpnConnectionOptionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(v **ModifyVpnTunnelCertificateOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyVpnConnectionOptionsOutput + var sv *ModifyVpnTunnelCertificateOutput if *v == nil { - sv = &ModifyVpnConnectionOptionsOutput{} + sv = &ModifyVpnTunnelCertificateOutput{} } else { sv = *v } @@ -130331,13 +138539,13 @@ func awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(v **Modif return nil } -func awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(v **ModifyVpnConnectionOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(v **ModifyVpnTunnelOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyVpnConnectionOutput + var sv *ModifyVpnTunnelOptionsOutput if *v == nil { - sv = &ModifyVpnConnectionOutput{} + sv = &ModifyVpnTunnelOptionsOutput{} } else { sv = *v } @@ -130373,13 +138581,13 @@ func awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(v **ModifyVpnCon return nil } -func awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(v **ModifyVpnTunnelCertificateOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentMonitorInstancesOutput(v **MonitorInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyVpnTunnelCertificateOutput + var sv *MonitorInstancesOutput if *v == nil { - sv = &ModifyVpnTunnelCertificateOutput{} + sv = &MonitorInstancesOutput{} } else { sv = *v } @@ -130395,9 +138603,9 @@ func awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(v **Modif originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("vpnConnection", t.Name.Local): + case strings.EqualFold("instancesSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnConnection(&sv.VpnConnection, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentInstanceMonitoringList(&sv.InstanceMonitorings, nodeDecoder); err != nil { return err } @@ -130415,13 +138623,13 @@ func awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(v **Modif return nil } -func awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(v **ModifyVpnTunnelOptionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(v **MoveAddressToVpcOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ModifyVpnTunnelOptionsOutput + var sv *MoveAddressToVpcOutput if *v == nil { - sv = &ModifyVpnTunnelOptionsOutput{} + sv = &MoveAddressToVpcOutput{} } else { sv = *v } @@ -130437,11 +138645,31 @@ func awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(v **ModifyVpn originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("vpnConnection", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVpnConnection(&sv.VpnConnection, nodeDecoder); err != nil { + case strings.EqualFold("allocationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.AllocationId = ptr.String(xtv) + } + + case strings.EqualFold("status", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Status = types.Status(xtv) + } default: // Do nothing and ignore the unexpected tag element @@ -130457,13 +138685,13 @@ func awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(v **ModifyVpn return nil } -func awsEc2query_deserializeOpDocumentMonitorInstancesOutput(v **MonitorInstancesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentMoveByoipCidrToIpamOutput(v **MoveByoipCidrToIpamOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *MonitorInstancesOutput + var sv *MoveByoipCidrToIpamOutput if *v == nil { - sv = &MonitorInstancesOutput{} + sv = &MoveByoipCidrToIpamOutput{} } else { sv = *v } @@ -130479,9 +138707,9 @@ func awsEc2query_deserializeOpDocumentMonitorInstancesOutput(v **MonitorInstance originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("instancesSet", t.Name.Local): + case strings.EqualFold("byoipCidr", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentInstanceMonitoringList(&sv.InstanceMonitorings, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentByoipCidr(&sv.ByoipCidr, nodeDecoder); err != nil { return err } @@ -130499,13 +138727,13 @@ func awsEc2query_deserializeOpDocumentMonitorInstancesOutput(v **MonitorInstance return nil } -func awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(v **MoveAddressToVpcOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(v **ProvisionByoipCidrOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *MoveAddressToVpcOutput + var sv *ProvisionByoipCidrOutput if *v == nil { - sv = &MoveAddressToVpcOutput{} + sv = &ProvisionByoipCidrOutput{} } else { sv = *v } @@ -130521,30 +138749,52 @@ func awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(v **MoveAddressToVp originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("allocationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("byoipCidr", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentByoipCidr(&sv.ByoipCidr, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.AllocationId = ptr.String(xtv) - } - case strings.EqualFold("status", t.Name.Local): - val, err := decoder.Value() + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() if err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = types.Status(xtv) + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentProvisionIpamPoolCidrOutput(v **ProvisionIpamPoolCidrOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ProvisionIpamPoolCidrOutput + if *v == nil { + sv = &ProvisionIpamPoolCidrOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("ipamPoolCidr", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamPoolCidr(&sv.IpamPoolCidr, nodeDecoder); err != nil { + return err } default: @@ -130561,13 +138811,13 @@ func awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(v **MoveAddressToVp return nil } -func awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(v **ProvisionByoipCidrOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(v **ProvisionPublicIpv4PoolCidrOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *ProvisionByoipCidrOutput + var sv *ProvisionPublicIpv4PoolCidrOutput if *v == nil { - sv = &ProvisionByoipCidrOutput{} + sv = &ProvisionPublicIpv4PoolCidrOutput{} } else { sv = *v } @@ -130583,12 +138833,25 @@ func awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(v **ProvisionByoi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("byoipCidr", t.Name.Local): + case strings.EqualFold("poolAddressRange", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentByoipCidr(&sv.ByoipCidr, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&sv.PoolAddressRange, nodeDecoder); err != nil { return err } + case strings.EqualFold("poolId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.PoolId = ptr.String(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -131231,6 +139494,58 @@ func awsEc2query_deserializeOpDocumentReleaseHostsOutput(v **ReleaseHostsOutput, return nil } +func awsEc2query_deserializeOpDocumentReleaseIpamPoolAllocationOutput(v **ReleaseIpamPoolAllocationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ReleaseIpamPoolAllocationOutput + if *v == nil { + sv = &ReleaseIpamPoolAllocationOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("success", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Success = ptr.Bool(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(v **ReplaceIamInstanceProfileAssociationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -132530,6 +140845,48 @@ func awsEc2query_deserializeOpDocumentStartInstancesOutput(v **StartInstancesOut return nil } +func awsEc2query_deserializeOpDocumentStartNetworkInsightsAccessScopeAnalysisOutput(v **StartNetworkInsightsAccessScopeAnalysisOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *StartNetworkInsightsAccessScopeAnalysisOutput + if *v == nil { + sv = &StartNetworkInsightsAccessScopeAnalysisOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("networkInsightsAccessScopeAnalysis", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(&sv.NetworkInsightsAccessScopeAnalysis, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(v **StartNetworkInsightsAnalysisOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/ec2/generated.json b/service/ec2/generated.json index b01319f3772..f112eb8bcfb 100644 --- a/service/ec2/generated.json +++ b/service/ec2/generated.json @@ -18,6 +18,7 @@ "api_op_AdvertiseByoipCidr.go", "api_op_AllocateAddress.go", "api_op_AllocateHosts.go", + "api_op_AllocateIpamPoolCidr.go", "api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go", "api_op_AssignIpv6Addresses.go", "api_op_AssignPrivateIpAddresses.go", @@ -73,6 +74,9 @@ "api_op_CreateInstanceEventWindow.go", "api_op_CreateInstanceExportTask.go", "api_op_CreateInternetGateway.go", + "api_op_CreateIpam.go", + "api_op_CreateIpamPool.go", + "api_op_CreateIpamScope.go", "api_op_CreateKeyPair.go", "api_op_CreateLaunchTemplate.go", "api_op_CreateLaunchTemplateVersion.go", @@ -82,10 +86,12 @@ "api_op_CreateNatGateway.go", "api_op_CreateNetworkAcl.go", "api_op_CreateNetworkAclEntry.go", + "api_op_CreateNetworkInsightsAccessScope.go", "api_op_CreateNetworkInsightsPath.go", "api_op_CreateNetworkInterface.go", "api_op_CreateNetworkInterfacePermission.go", "api_op_CreatePlacementGroup.go", + "api_op_CreatePublicIpv4Pool.go", "api_op_CreateReplaceRootVolumeTask.go", "api_op_CreateReservedInstancesListing.go", "api_op_CreateRestoreImageTask.go", @@ -132,6 +138,9 @@ "api_op_DeleteFpgaImage.go", "api_op_DeleteInstanceEventWindow.go", "api_op_DeleteInternetGateway.go", + "api_op_DeleteIpam.go", + "api_op_DeleteIpamPool.go", + "api_op_DeleteIpamScope.go", "api_op_DeleteKeyPair.go", "api_op_DeleteLaunchTemplate.go", "api_op_DeleteLaunchTemplateVersions.go", @@ -141,11 +150,14 @@ "api_op_DeleteNatGateway.go", "api_op_DeleteNetworkAcl.go", "api_op_DeleteNetworkAclEntry.go", + "api_op_DeleteNetworkInsightsAccessScope.go", + "api_op_DeleteNetworkInsightsAccessScopeAnalysis.go", "api_op_DeleteNetworkInsightsAnalysis.go", "api_op_DeleteNetworkInsightsPath.go", "api_op_DeleteNetworkInterface.go", "api_op_DeleteNetworkInterfacePermission.go", "api_op_DeletePlacementGroup.go", + "api_op_DeletePublicIpv4Pool.go", "api_op_DeleteQueuedReservedInstances.go", "api_op_DeleteRoute.go", "api_op_DeleteRouteTable.go", @@ -178,6 +190,8 @@ "api_op_DeleteVpnConnectionRoute.go", "api_op_DeleteVpnGateway.go", "api_op_DeprovisionByoipCidr.go", + "api_op_DeprovisionIpamPoolCidr.go", + "api_op_DeprovisionPublicIpv4PoolCidr.go", "api_op_DeregisterImage.go", "api_op_DeregisterInstanceEventNotificationAttributes.go", "api_op_DeregisterTransitGatewayMulticastGroupMembers.go", @@ -232,6 +246,9 @@ "api_op_DescribeInstanceTypes.go", "api_op_DescribeInstances.go", "api_op_DescribeInternetGateways.go", + "api_op_DescribeIpamPools.go", + "api_op_DescribeIpamScopes.go", + "api_op_DescribeIpams.go", "api_op_DescribeIpv6Pools.go", "api_op_DescribeKeyPairs.go", "api_op_DescribeLaunchTemplateVersions.go", @@ -246,6 +263,8 @@ "api_op_DescribeMovingAddresses.go", "api_op_DescribeNatGateways.go", "api_op_DescribeNetworkAcls.go", + "api_op_DescribeNetworkInsightsAccessScopeAnalyses.go", + "api_op_DescribeNetworkInsightsAccessScopes.go", "api_op_DescribeNetworkInsightsAnalyses.go", "api_op_DescribeNetworkInsightsPaths.go", "api_op_DescribeNetworkInterfaceAttribute.go", @@ -317,6 +336,7 @@ "api_op_DisableEbsEncryptionByDefault.go", "api_op_DisableFastSnapshotRestores.go", "api_op_DisableImageDeprecation.go", + "api_op_DisableIpamOrganizationAdminAccount.go", "api_op_DisableSerialConsoleAccess.go", "api_op_DisableTransitGatewayRouteTablePropagation.go", "api_op_DisableVgwRoutePropagation.go", @@ -336,6 +356,7 @@ "api_op_EnableEbsEncryptionByDefault.go", "api_op_EnableFastSnapshotRestores.go", "api_op_EnableImageDeprecation.go", + "api_op_EnableIpamOrganizationAdminAccount.go", "api_op_EnableSerialConsoleAccess.go", "api_op_EnableTransitGatewayRouteTablePropagation.go", "api_op_EnableVgwRoutePropagation.go", @@ -359,9 +380,15 @@ "api_op_GetGroupsForCapacityReservation.go", "api_op_GetHostReservationPurchasePreview.go", "api_op_GetInstanceTypesFromInstanceRequirements.go", + "api_op_GetIpamAddressHistory.go", + "api_op_GetIpamPoolAllocations.go", + "api_op_GetIpamPoolCidrs.go", + "api_op_GetIpamResourceCidrs.go", "api_op_GetLaunchTemplateData.go", "api_op_GetManagedPrefixListAssociations.go", "api_op_GetManagedPrefixListEntries.go", + "api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go", + "api_op_GetNetworkInsightsAccessScopeContent.go", "api_op_GetPasswordData.go", "api_op_GetReservedInstancesExchangeQuote.go", "api_op_GetSerialConsoleAccessStatus.go", @@ -401,6 +428,10 @@ "api_op_ModifyInstanceEventWindow.go", "api_op_ModifyInstanceMetadataOptions.go", "api_op_ModifyInstancePlacement.go", + "api_op_ModifyIpam.go", + "api_op_ModifyIpamPool.go", + "api_op_ModifyIpamResourceCidr.go", + "api_op_ModifyIpamScope.go", "api_op_ModifyLaunchTemplate.go", "api_op_ModifyManagedPrefixList.go", "api_op_ModifyNetworkInterfaceAttribute.go", @@ -432,7 +463,10 @@ "api_op_ModifyVpnTunnelOptions.go", "api_op_MonitorInstances.go", "api_op_MoveAddressToVpc.go", + "api_op_MoveByoipCidrToIpam.go", "api_op_ProvisionByoipCidr.go", + "api_op_ProvisionIpamPoolCidr.go", + "api_op_ProvisionPublicIpv4PoolCidr.go", "api_op_PurchaseHostReservation.go", "api_op_PurchaseReservedInstancesOffering.go", "api_op_PurchaseScheduledInstances.go", @@ -448,6 +482,7 @@ "api_op_RejectVpcPeeringConnection.go", "api_op_ReleaseAddress.go", "api_op_ReleaseHosts.go", + "api_op_ReleaseIpamPoolAllocation.go", "api_op_ReplaceIamInstanceProfileAssociation.go", "api_op_ReplaceNetworkAclAssociation.go", "api_op_ReplaceNetworkAclEntry.go", @@ -478,6 +513,7 @@ "api_op_SearchTransitGatewayRoutes.go", "api_op_SendDiagnosticInterrupt.go", "api_op_StartInstances.go", + "api_op_StartNetworkInsightsAccessScopeAnalysis.go", "api_op_StartNetworkInsightsAnalysis.go", "api_op_StartVpcEndpointServicePrivateDnsVerification.go", "api_op_StopInstances.go", diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 5825339059e..edba3819d41 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -593,6 +593,70 @@ func (m *awsEc2query_serializeOpAllocateHosts) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpAllocateIpamPoolCidr struct { +} + +func (*awsEc2query_serializeOpAllocateIpamPoolCidr) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpAllocateIpamPoolCidr) 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.(*AllocateIpamPoolCidrInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("AllocateIpamPoolCidr") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentAllocateIpamPoolCidrInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpApplySecurityGroupsToClientVpnTargetNetwork struct { } @@ -4049,6 +4113,198 @@ func (m *awsEc2query_serializeOpCreateInternetGateway) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateIpam struct { +} + +func (*awsEc2query_serializeOpCreateIpam) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateIpam) 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.(*CreateIpamInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateIpam") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateIpamInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateIpamPool struct { +} + +func (*awsEc2query_serializeOpCreateIpamPool) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateIpamPool) 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.(*CreateIpamPoolInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateIpamPool") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateIpamPoolInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateIpamScope struct { +} + +func (*awsEc2query_serializeOpCreateIpamScope) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateIpamScope) 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.(*CreateIpamScopeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateIpamScope") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateIpamScopeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateKeyPair struct { } @@ -4625,14 +4881,14 @@ func (m *awsEc2query_serializeOpCreateNetworkAclEntry) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateNetworkInsightsPath struct { +type awsEc2query_serializeOpCreateNetworkInsightsAccessScope struct { } -func (*awsEc2query_serializeOpCreateNetworkInsightsPath) ID() string { +func (*awsEc2query_serializeOpCreateNetworkInsightsAccessScope) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateNetworkInsightsPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateNetworkInsightsAccessScope) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -4640,7 +4896,7 @@ func (m *awsEc2query_serializeOpCreateNetworkInsightsPath) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateNetworkInsightsPathInput) + input, ok := in.Parameters.(*CreateNetworkInsightsAccessScopeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -4665,10 +4921,10 @@ func (m *awsEc2query_serializeOpCreateNetworkInsightsPath) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateNetworkInsightsPath") + body.Key("Action").String("CreateNetworkInsightsAccessScope") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateNetworkInsightsPathInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateNetworkInsightsAccessScopeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4689,14 +4945,14 @@ func (m *awsEc2query_serializeOpCreateNetworkInsightsPath) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateNetworkInterface struct { +type awsEc2query_serializeOpCreateNetworkInsightsPath struct { } -func (*awsEc2query_serializeOpCreateNetworkInterface) ID() string { +func (*awsEc2query_serializeOpCreateNetworkInsightsPath) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateNetworkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateNetworkInsightsPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -4704,7 +4960,7 @@ func (m *awsEc2query_serializeOpCreateNetworkInterface) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateNetworkInterfaceInput) + input, ok := in.Parameters.(*CreateNetworkInsightsPathInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -4729,10 +4985,10 @@ func (m *awsEc2query_serializeOpCreateNetworkInterface) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("CreateNetworkInterface") + body.Key("Action").String("CreateNetworkInsightsPath") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentCreateNetworkInsightsPathInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -4753,14 +5009,14 @@ func (m *awsEc2query_serializeOpCreateNetworkInterface) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpCreateNetworkInterfacePermission struct { +type awsEc2query_serializeOpCreateNetworkInterface struct { } -func (*awsEc2query_serializeOpCreateNetworkInterfacePermission) ID() string { +func (*awsEc2query_serializeOpCreateNetworkInterface) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpCreateNetworkInterfacePermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpCreateNetworkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -4768,7 +5024,71 @@ func (m *awsEc2query_serializeOpCreateNetworkInterfacePermission) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateNetworkInterfacePermissionInput) + input, ok := in.Parameters.(*CreateNetworkInterfaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateNetworkInterface") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpCreateNetworkInterfacePermission struct { +} + +func (*awsEc2query_serializeOpCreateNetworkInterfacePermission) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateNetworkInterfacePermission) 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.(*CreateNetworkInterfacePermissionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -4881,6 +5201,70 @@ func (m *awsEc2query_serializeOpCreatePlacementGroup) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreatePublicIpv4Pool struct { +} + +func (*awsEc2query_serializeOpCreatePublicIpv4Pool) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreatePublicIpv4Pool) 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.(*CreatePublicIpv4PoolInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreatePublicIpv4Pool") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreatePublicIpv4PoolInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateReplaceRootVolumeTask struct { } @@ -7825,14 +8209,14 @@ func (m *awsEc2query_serializeOpDeleteInternetGateway) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteKeyPair struct { +type awsEc2query_serializeOpDeleteIpam struct { } -func (*awsEc2query_serializeOpDeleteKeyPair) ID() string { +func (*awsEc2query_serializeOpDeleteIpam) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteIpam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7840,7 +8224,7 @@ func (m *awsEc2query_serializeOpDeleteKeyPair) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteKeyPairInput) + input, ok := in.Parameters.(*DeleteIpamInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -7865,10 +8249,10 @@ func (m *awsEc2query_serializeOpDeleteKeyPair) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteKeyPair") + body.Key("Action").String("DeleteIpam") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteKeyPairInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteIpamInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7889,14 +8273,14 @@ func (m *awsEc2query_serializeOpDeleteKeyPair) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteLaunchTemplate struct { +type awsEc2query_serializeOpDeleteIpamPool struct { } -func (*awsEc2query_serializeOpDeleteLaunchTemplate) ID() string { +func (*awsEc2query_serializeOpDeleteIpamPool) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteIpamPool) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7904,7 +8288,7 @@ func (m *awsEc2query_serializeOpDeleteLaunchTemplate) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteLaunchTemplateInput) + input, ok := in.Parameters.(*DeleteIpamPoolInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -7929,10 +8313,10 @@ func (m *awsEc2query_serializeOpDeleteLaunchTemplate) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteLaunchTemplate") + body.Key("Action").String("DeleteIpamPool") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteLaunchTemplateInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteIpamPoolInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7953,14 +8337,14 @@ func (m *awsEc2query_serializeOpDeleteLaunchTemplate) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteLaunchTemplateVersions struct { +type awsEc2query_serializeOpDeleteIpamScope struct { } -func (*awsEc2query_serializeOpDeleteLaunchTemplateVersions) ID() string { +func (*awsEc2query_serializeOpDeleteIpamScope) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteLaunchTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteIpamScope) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7968,7 +8352,7 @@ func (m *awsEc2query_serializeOpDeleteLaunchTemplateVersions) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteLaunchTemplateVersionsInput) + input, ok := in.Parameters.(*DeleteIpamScopeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -7993,10 +8377,10 @@ func (m *awsEc2query_serializeOpDeleteLaunchTemplateVersions) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteLaunchTemplateVersions") + body.Key("Action").String("DeleteIpamScope") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteLaunchTemplateVersionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteIpamScopeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8017,14 +8401,14 @@ func (m *awsEc2query_serializeOpDeleteLaunchTemplateVersions) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteLocalGatewayRoute struct { +type awsEc2query_serializeOpDeleteKeyPair struct { } -func (*awsEc2query_serializeOpDeleteLocalGatewayRoute) ID() string { +func (*awsEc2query_serializeOpDeleteKeyPair) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteLocalGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8032,7 +8416,7 @@ func (m *awsEc2query_serializeOpDeleteLocalGatewayRoute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteLocalGatewayRouteInput) + input, ok := in.Parameters.(*DeleteKeyPairInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8057,10 +8441,10 @@ func (m *awsEc2query_serializeOpDeleteLocalGatewayRoute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteLocalGatewayRoute") + body.Key("Action").String("DeleteKeyPair") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteKeyPairInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8081,14 +8465,14 @@ func (m *awsEc2query_serializeOpDeleteLocalGatewayRoute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation struct { +type awsEc2query_serializeOpDeleteLaunchTemplate struct { } -func (*awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) ID() string { +func (*awsEc2query_serializeOpDeleteLaunchTemplate) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8096,7 +8480,7 @@ func (m *awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) Hand return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteLocalGatewayRouteTableVpcAssociationInput) + input, ok := in.Parameters.(*DeleteLaunchTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8121,10 +8505,10 @@ func (m *awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) Hand bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteLocalGatewayRouteTableVpcAssociation") + body.Key("Action").String("DeleteLaunchTemplate") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteLaunchTemplateInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8145,14 +8529,14 @@ func (m *awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteManagedPrefixList struct { +type awsEc2query_serializeOpDeleteLaunchTemplateVersions struct { } -func (*awsEc2query_serializeOpDeleteManagedPrefixList) ID() string { +func (*awsEc2query_serializeOpDeleteLaunchTemplateVersions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteLaunchTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8160,7 +8544,7 @@ func (m *awsEc2query_serializeOpDeleteManagedPrefixList) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteManagedPrefixListInput) + input, ok := in.Parameters.(*DeleteLaunchTemplateVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8185,10 +8569,10 @@ func (m *awsEc2query_serializeOpDeleteManagedPrefixList) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteManagedPrefixList") + body.Key("Action").String("DeleteLaunchTemplateVersions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteManagedPrefixListInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteLaunchTemplateVersionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8209,14 +8593,14 @@ func (m *awsEc2query_serializeOpDeleteManagedPrefixList) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNatGateway struct { +type awsEc2query_serializeOpDeleteLocalGatewayRoute struct { } -func (*awsEc2query_serializeOpDeleteNatGateway) ID() string { +func (*awsEc2query_serializeOpDeleteLocalGatewayRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNatGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteLocalGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8224,7 +8608,7 @@ func (m *awsEc2query_serializeOpDeleteNatGateway) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNatGatewayInput) + input, ok := in.Parameters.(*DeleteLocalGatewayRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8249,10 +8633,10 @@ func (m *awsEc2query_serializeOpDeleteNatGateway) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNatGateway") + body.Key("Action").String("DeleteLocalGatewayRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNatGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8273,14 +8657,14 @@ func (m *awsEc2query_serializeOpDeleteNatGateway) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNetworkAcl struct { +type awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation struct { } -func (*awsEc2query_serializeOpDeleteNetworkAcl) ID() string { +func (*awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNetworkAcl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8288,7 +8672,7 @@ func (m *awsEc2query_serializeOpDeleteNetworkAcl) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNetworkAclInput) + input, ok := in.Parameters.(*DeleteLocalGatewayRouteTableVpcAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8313,10 +8697,10 @@ func (m *awsEc2query_serializeOpDeleteNetworkAcl) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNetworkAcl") + body.Key("Action").String("DeleteLocalGatewayRouteTableVpcAssociation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNetworkAclInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8337,14 +8721,14 @@ func (m *awsEc2query_serializeOpDeleteNetworkAcl) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNetworkAclEntry struct { +type awsEc2query_serializeOpDeleteManagedPrefixList struct { } -func (*awsEc2query_serializeOpDeleteNetworkAclEntry) ID() string { +func (*awsEc2query_serializeOpDeleteManagedPrefixList) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8352,7 +8736,7 @@ func (m *awsEc2query_serializeOpDeleteNetworkAclEntry) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNetworkAclEntryInput) + input, ok := in.Parameters.(*DeleteManagedPrefixListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8377,10 +8761,10 @@ func (m *awsEc2query_serializeOpDeleteNetworkAclEntry) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNetworkAclEntry") + body.Key("Action").String("DeleteManagedPrefixList") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteManagedPrefixListInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8401,14 +8785,14 @@ func (m *awsEc2query_serializeOpDeleteNetworkAclEntry) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNetworkInsightsAnalysis struct { +type awsEc2query_serializeOpDeleteNatGateway struct { } -func (*awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_serializeOpDeleteNatGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNatGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8416,7 +8800,7 @@ func (m *awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNetworkInsightsAnalysisInput) + input, ok := in.Parameters.(*DeleteNatGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8441,10 +8825,10 @@ func (m *awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNetworkInsightsAnalysis") + body.Key("Action").String("DeleteNatGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNetworkInsightsAnalysisInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNatGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8465,14 +8849,14 @@ func (m *awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNetworkInsightsPath struct { +type awsEc2query_serializeOpDeleteNetworkAcl struct { } -func (*awsEc2query_serializeOpDeleteNetworkInsightsPath) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkAcl) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNetworkInsightsPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkAcl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8480,7 +8864,7 @@ func (m *awsEc2query_serializeOpDeleteNetworkInsightsPath) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNetworkInsightsPathInput) + input, ok := in.Parameters.(*DeleteNetworkAclInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8505,10 +8889,10 @@ func (m *awsEc2query_serializeOpDeleteNetworkInsightsPath) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNetworkInsightsPath") + body.Key("Action").String("DeleteNetworkAcl") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNetworkInsightsPathInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkAclInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8529,14 +8913,14 @@ func (m *awsEc2query_serializeOpDeleteNetworkInsightsPath) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNetworkInterface struct { +type awsEc2query_serializeOpDeleteNetworkAclEntry struct { } -func (*awsEc2query_serializeOpDeleteNetworkInterface) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkAclEntry) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNetworkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8544,7 +8928,7 @@ func (m *awsEc2query_serializeOpDeleteNetworkInterface) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNetworkInterfaceInput) + input, ok := in.Parameters.(*DeleteNetworkAclEntryInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8569,10 +8953,10 @@ func (m *awsEc2query_serializeOpDeleteNetworkInterface) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNetworkInterface") + body.Key("Action").String("DeleteNetworkAclEntry") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNetworkInterfaceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8593,14 +8977,14 @@ func (m *awsEc2query_serializeOpDeleteNetworkInterface) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteNetworkInterfacePermission struct { +type awsEc2query_serializeOpDeleteNetworkInsightsAccessScope struct { } -func (*awsEc2query_serializeOpDeleteNetworkInterfacePermission) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkInsightsAccessScope) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteNetworkInterfacePermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkInsightsAccessScope) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8608,7 +8992,7 @@ func (m *awsEc2query_serializeOpDeleteNetworkInterfacePermission) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteNetworkInterfacePermissionInput) + input, ok := in.Parameters.(*DeleteNetworkInsightsAccessScopeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8633,10 +9017,10 @@ func (m *awsEc2query_serializeOpDeleteNetworkInterfacePermission) HandleSerializ bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteNetworkInterfacePermission") + body.Key("Action").String("DeleteNetworkInsightsAccessScope") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteNetworkInterfacePermissionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkInsightsAccessScopeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8657,14 +9041,14 @@ func (m *awsEc2query_serializeOpDeleteNetworkInterfacePermission) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeletePlacementGroup struct { +type awsEc2query_serializeOpDeleteNetworkInsightsAccessScopeAnalysis struct { } -func (*awsEc2query_serializeOpDeletePlacementGroup) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkInsightsAccessScopeAnalysis) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeletePlacementGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkInsightsAccessScopeAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8672,7 +9056,7 @@ func (m *awsEc2query_serializeOpDeletePlacementGroup) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeletePlacementGroupInput) + input, ok := in.Parameters.(*DeleteNetworkInsightsAccessScopeAnalysisInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8697,10 +9081,10 @@ func (m *awsEc2query_serializeOpDeletePlacementGroup) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeletePlacementGroup") + body.Key("Action").String("DeleteNetworkInsightsAccessScopeAnalysis") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeletePlacementGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkInsightsAccessScopeAnalysisInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8721,14 +9105,14 @@ func (m *awsEc2query_serializeOpDeletePlacementGroup) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteQueuedReservedInstances struct { +type awsEc2query_serializeOpDeleteNetworkInsightsAnalysis struct { } -func (*awsEc2query_serializeOpDeleteQueuedReservedInstances) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteQueuedReservedInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkInsightsAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8736,7 +9120,7 @@ func (m *awsEc2query_serializeOpDeleteQueuedReservedInstances) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteQueuedReservedInstancesInput) + input, ok := in.Parameters.(*DeleteNetworkInsightsAnalysisInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8761,10 +9145,10 @@ func (m *awsEc2query_serializeOpDeleteQueuedReservedInstances) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteQueuedReservedInstances") + body.Key("Action").String("DeleteNetworkInsightsAnalysis") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteQueuedReservedInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkInsightsAnalysisInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8785,14 +9169,14 @@ func (m *awsEc2query_serializeOpDeleteQueuedReservedInstances) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteRoute struct { +type awsEc2query_serializeOpDeleteNetworkInsightsPath struct { } -func (*awsEc2query_serializeOpDeleteRoute) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkInsightsPath) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkInsightsPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8800,7 +9184,7 @@ func (m *awsEc2query_serializeOpDeleteRoute) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteRouteInput) + input, ok := in.Parameters.(*DeleteNetworkInsightsPathInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8825,10 +9209,10 @@ func (m *awsEc2query_serializeOpDeleteRoute) HandleSerialize(ctx context.Context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteRoute") + body.Key("Action").String("DeleteNetworkInsightsPath") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkInsightsPathInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8849,14 +9233,14 @@ func (m *awsEc2query_serializeOpDeleteRoute) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteRouteTable struct { +type awsEc2query_serializeOpDeleteNetworkInterface struct { } -func (*awsEc2query_serializeOpDeleteRouteTable) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkInterface) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8864,7 +9248,7 @@ func (m *awsEc2query_serializeOpDeleteRouteTable) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteRouteTableInput) + input, ok := in.Parameters.(*DeleteNetworkInterfaceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8889,10 +9273,10 @@ func (m *awsEc2query_serializeOpDeleteRouteTable) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteRouteTable") + body.Key("Action").String("DeleteNetworkInterface") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteRouteTableInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkInterfaceInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8913,14 +9297,14 @@ func (m *awsEc2query_serializeOpDeleteRouteTable) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteSecurityGroup struct { +type awsEc2query_serializeOpDeleteNetworkInterfacePermission struct { } -func (*awsEc2query_serializeOpDeleteSecurityGroup) ID() string { +func (*awsEc2query_serializeOpDeleteNetworkInterfacePermission) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteSecurityGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteNetworkInterfacePermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8928,7 +9312,7 @@ func (m *awsEc2query_serializeOpDeleteSecurityGroup) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteSecurityGroupInput) + input, ok := in.Parameters.(*DeleteNetworkInterfacePermissionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -8953,10 +9337,10 @@ func (m *awsEc2query_serializeOpDeleteSecurityGroup) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteSecurityGroup") + body.Key("Action").String("DeleteNetworkInterfacePermission") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteSecurityGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteNetworkInterfacePermissionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8977,14 +9361,14 @@ func (m *awsEc2query_serializeOpDeleteSecurityGroup) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteSnapshot struct { +type awsEc2query_serializeOpDeletePlacementGroup struct { } -func (*awsEc2query_serializeOpDeleteSnapshot) ID() string { +func (*awsEc2query_serializeOpDeletePlacementGroup) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeletePlacementGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8992,7 +9376,7 @@ func (m *awsEc2query_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteSnapshotInput) + input, ok := in.Parameters.(*DeletePlacementGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9017,10 +9401,10 @@ func (m *awsEc2query_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteSnapshot") + body.Key("Action").String("DeletePlacementGroup") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteSnapshotInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeletePlacementGroupInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9041,14 +9425,14 @@ func (m *awsEc2query_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteSpotDatafeedSubscription struct { +type awsEc2query_serializeOpDeletePublicIpv4Pool struct { } -func (*awsEc2query_serializeOpDeleteSpotDatafeedSubscription) ID() string { +func (*awsEc2query_serializeOpDeletePublicIpv4Pool) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteSpotDatafeedSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeletePublicIpv4Pool) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9056,7 +9440,7 @@ func (m *awsEc2query_serializeOpDeleteSpotDatafeedSubscription) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteSpotDatafeedSubscriptionInput) + input, ok := in.Parameters.(*DeletePublicIpv4PoolInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9081,10 +9465,10 @@ func (m *awsEc2query_serializeOpDeleteSpotDatafeedSubscription) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteSpotDatafeedSubscription") + body.Key("Action").String("DeletePublicIpv4Pool") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteSpotDatafeedSubscriptionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeletePublicIpv4PoolInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9105,14 +9489,14 @@ func (m *awsEc2query_serializeOpDeleteSpotDatafeedSubscription) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteSubnet struct { +type awsEc2query_serializeOpDeleteQueuedReservedInstances struct { } -func (*awsEc2query_serializeOpDeleteSubnet) ID() string { +func (*awsEc2query_serializeOpDeleteQueuedReservedInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteQueuedReservedInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9120,7 +9504,7 @@ func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteSubnetInput) + input, ok := in.Parameters.(*DeleteQueuedReservedInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9145,10 +9529,10 @@ func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteSubnet") + body.Key("Action").String("DeleteQueuedReservedInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteSubnetInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteQueuedReservedInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9169,14 +9553,14 @@ func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteSubnetCidrReservation struct { +type awsEc2query_serializeOpDeleteRoute struct { } -func (*awsEc2query_serializeOpDeleteSubnetCidrReservation) ID() string { +func (*awsEc2query_serializeOpDeleteRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9184,7 +9568,7 @@ func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteSubnetCidrReservationInput) + input, ok := in.Parameters.(*DeleteRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9209,10 +9593,10 @@ func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteSubnetCidrReservation") + body.Key("Action").String("DeleteRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteSubnetCidrReservationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9233,14 +9617,14 @@ func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTags struct { +type awsEc2query_serializeOpDeleteRouteTable struct { } -func (*awsEc2query_serializeOpDeleteTags) ID() string { +func (*awsEc2query_serializeOpDeleteRouteTable) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9248,7 +9632,7 @@ func (m *awsEc2query_serializeOpDeleteTags) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTagsInput) + input, ok := in.Parameters.(*DeleteRouteTableInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9273,10 +9657,10 @@ func (m *awsEc2query_serializeOpDeleteTags) HandleSerialize(ctx context.Context, bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTags") + body.Key("Action").String("DeleteRouteTable") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTagsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteRouteTableInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9297,14 +9681,14 @@ func (m *awsEc2query_serializeOpDeleteTags) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTrafficMirrorFilter struct { +type awsEc2query_serializeOpDeleteSecurityGroup struct { } -func (*awsEc2query_serializeOpDeleteTrafficMirrorFilter) ID() string { +func (*awsEc2query_serializeOpDeleteSecurityGroup) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteSecurityGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9312,7 +9696,7 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilter) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTrafficMirrorFilterInput) + input, ok := in.Parameters.(*DeleteSecurityGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9337,10 +9721,10 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilter) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTrafficMirrorFilter") + body.Key("Action").String("DeleteSecurityGroup") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteSecurityGroupInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9361,14 +9745,14 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilter) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTrafficMirrorFilterRule struct { +type awsEc2query_serializeOpDeleteSnapshot struct { } -func (*awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_serializeOpDeleteSnapshot) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9376,7 +9760,7 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTrafficMirrorFilterRuleInput) + input, ok := in.Parameters.(*DeleteSnapshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9401,10 +9785,10 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTrafficMirrorFilterRule") + body.Key("Action").String("DeleteSnapshot") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterRuleInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteSnapshotInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9425,14 +9809,14 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTrafficMirrorSession struct { +type awsEc2query_serializeOpDeleteSpotDatafeedSubscription struct { } -func (*awsEc2query_serializeOpDeleteTrafficMirrorSession) ID() string { +func (*awsEc2query_serializeOpDeleteSpotDatafeedSubscription) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTrafficMirrorSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteSpotDatafeedSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9440,7 +9824,7 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorSession) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTrafficMirrorSessionInput) + input, ok := in.Parameters.(*DeleteSpotDatafeedSubscriptionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9465,10 +9849,10 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorSession) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTrafficMirrorSession") + body.Key("Action").String("DeleteSpotDatafeedSubscription") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorSessionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteSpotDatafeedSubscriptionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9489,14 +9873,14 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorSession) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTrafficMirrorTarget struct { +type awsEc2query_serializeOpDeleteSubnet struct { } -func (*awsEc2query_serializeOpDeleteTrafficMirrorTarget) ID() string { +func (*awsEc2query_serializeOpDeleteSubnet) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTrafficMirrorTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteSubnet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9504,7 +9888,7 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorTarget) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTrafficMirrorTargetInput) + input, ok := in.Parameters.(*DeleteSubnetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9529,10 +9913,10 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorTarget) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTrafficMirrorTarget") + body.Key("Action").String("DeleteSubnet") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorTargetInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteSubnetInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9553,14 +9937,14 @@ func (m *awsEc2query_serializeOpDeleteTrafficMirrorTarget) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGateway struct { +type awsEc2query_serializeOpDeleteSubnetCidrReservation struct { } -func (*awsEc2query_serializeOpDeleteTransitGateway) ID() string { +func (*awsEc2query_serializeOpDeleteSubnetCidrReservation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteSubnetCidrReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9568,7 +9952,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGateway) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayInput) + input, ok := in.Parameters.(*DeleteSubnetCidrReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9593,10 +9977,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGateway) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGateway") + body.Key("Action").String("DeleteSubnetCidrReservation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteSubnetCidrReservationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9617,14 +10001,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGateway) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayConnect struct { +type awsEc2query_serializeOpDeleteTags struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayConnect) ID() string { +func (*awsEc2query_serializeOpDeleteTags) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayConnect) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9632,7 +10016,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayConnect) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayConnectInput) + input, ok := in.Parameters.(*DeleteTagsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9657,10 +10041,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayConnect) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayConnect") + body.Key("Action").String("DeleteTags") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayConnectInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTagsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9681,14 +10065,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayConnect) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayConnectPeer struct { +type awsEc2query_serializeOpDeleteTrafficMirrorFilter struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) ID() string { +func (*awsEc2query_serializeOpDeleteTrafficMirrorFilter) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9696,7 +10080,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayConnectPeerInput) + input, ok := in.Parameters.(*DeleteTrafficMirrorFilterInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9721,10 +10105,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayConnectPeer") + body.Key("Action").String("DeleteTrafficMirrorFilter") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayConnectPeerInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9745,14 +10129,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain struct { +type awsEc2query_serializeOpDeleteTrafficMirrorFilterRule struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) ID() string { +func (*awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTrafficMirrorFilterRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9760,7 +10144,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayMulticastDomainInput) + input, ok := in.Parameters.(*DeleteTrafficMirrorFilterRuleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9785,10 +10169,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) HandleSeria bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayMulticastDomain") + body.Key("Action").String("DeleteTrafficMirrorFilterRule") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayMulticastDomainInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterRuleInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9809,14 +10193,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) HandleSeria return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment struct { +type awsEc2query_serializeOpDeleteTrafficMirrorSession struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_serializeOpDeleteTrafficMirrorSession) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTrafficMirrorSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9824,7 +10208,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayPeeringAttachmentInput) + input, ok := in.Parameters.(*DeleteTrafficMirrorSessionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9849,10 +10233,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayPeeringAttachment") + body.Key("Action").String("DeleteTrafficMirrorSession") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayPeeringAttachmentInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorSessionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9873,14 +10257,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference struct { +type awsEc2query_serializeOpDeleteTrafficMirrorTarget struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_serializeOpDeleteTrafficMirrorTarget) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTrafficMirrorTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9888,7 +10272,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayPrefixListReferenceInput) + input, ok := in.Parameters.(*DeleteTrafficMirrorTargetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9913,10 +10297,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayPrefixListReference") + body.Key("Action").String("DeleteTrafficMirrorTarget") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayPrefixListReferenceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTrafficMirrorTargetInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9937,14 +10321,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayRoute struct { +type awsEc2query_serializeOpDeleteTransitGateway struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayRoute) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9952,7 +10336,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayRoute) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayRouteInput) + input, ok := in.Parameters.(*DeleteTransitGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9977,10 +10361,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayRoute) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayRoute") + body.Key("Action").String("DeleteTransitGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10001,14 +10385,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayRoute) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayRouteTable struct { +type awsEc2query_serializeOpDeleteTransitGatewayConnect struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayRouteTable) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayConnect) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayConnect) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10016,7 +10400,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayRouteTable) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayRouteTableInput) + input, ok := in.Parameters.(*DeleteTransitGatewayConnectInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10041,10 +10425,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayRouteTable) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayRouteTable") + body.Key("Action").String("DeleteTransitGatewayConnect") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteTableInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayConnectInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10065,14 +10449,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayRouteTable) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment struct { +type awsEc2query_serializeOpDeleteTransitGatewayConnectPeer struct { } -func (*awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayConnectPeer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10080,7 +10464,7 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteTransitGatewayVpcAttachmentInput) + input, ok := in.Parameters.(*DeleteTransitGatewayConnectPeerInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10105,10 +10489,10 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteTransitGatewayVpcAttachment") + body.Key("Action").String("DeleteTransitGatewayConnectPeer") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayVpcAttachmentInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayConnectPeerInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10129,14 +10513,14 @@ func (m *awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVolume struct { +type awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain struct { } -func (*awsEc2query_serializeOpDeleteVolume) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10144,7 +10528,7 @@ func (m *awsEc2query_serializeOpDeleteVolume) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVolumeInput) + input, ok := in.Parameters.(*DeleteTransitGatewayMulticastDomainInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10169,10 +10553,10 @@ func (m *awsEc2query_serializeOpDeleteVolume) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVolume") + body.Key("Action").String("DeleteTransitGatewayMulticastDomain") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVolumeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayMulticastDomainInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10193,14 +10577,14 @@ func (m *awsEc2query_serializeOpDeleteVolume) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpc struct { +type awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_serializeOpDeleteVpc) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10208,7 +10592,7 @@ func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpcInput) + input, ok := in.Parameters.(*DeleteTransitGatewayPeeringAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10233,10 +10617,10 @@ func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpc") + body.Key("Action").String("DeleteTransitGatewayPeeringAttachment") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpcInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayPeeringAttachmentInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10257,14 +10641,14 @@ func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications struct { +type awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference struct { } -func (*awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10272,7 +10656,7 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) Handle return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpcEndpointConnectionNotificationsInput) + input, ok := in.Parameters.(*DeleteTransitGatewayPrefixListReferenceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10297,10 +10681,10 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) Handle bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpcEndpointConnectionNotifications") + body.Key("Action").String("DeleteTransitGatewayPrefixListReference") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayPrefixListReferenceInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10321,14 +10705,14 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) Handle return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpcEndpoints struct { +type awsEc2query_serializeOpDeleteTransitGatewayRoute struct { } -func (*awsEc2query_serializeOpDeleteVpcEndpoints) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpcEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10336,7 +10720,7 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpoints) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpcEndpointsInput) + input, ok := in.Parameters.(*DeleteTransitGatewayRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10361,10 +10745,10 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpoints) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpcEndpoints") + body.Key("Action").String("DeleteTransitGatewayRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpcEndpointsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10385,14 +10769,14 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpoints) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations struct { +type awsEc2query_serializeOpDeleteTransitGatewayRouteTable struct { } -func (*awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayRouteTable) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10400,7 +10784,7 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) HandleSe return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpcEndpointServiceConfigurationsInput) + input, ok := in.Parameters.(*DeleteTransitGatewayRouteTableInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10425,10 +10809,10 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) HandleSe bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpcEndpointServiceConfigurations") + body.Key("Action").String("DeleteTransitGatewayRouteTable") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpcEndpointServiceConfigurationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteTableInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10449,14 +10833,14 @@ func (m *awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) HandleSe return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpcPeeringConnection struct { +type awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment struct { } -func (*awsEc2query_serializeOpDeleteVpcPeeringConnection) ID() string { +func (*awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpcPeeringConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10464,7 +10848,7 @@ func (m *awsEc2query_serializeOpDeleteVpcPeeringConnection) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpcPeeringConnectionInput) + input, ok := in.Parameters.(*DeleteTransitGatewayVpcAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10489,10 +10873,10 @@ func (m *awsEc2query_serializeOpDeleteVpcPeeringConnection) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpcPeeringConnection") + body.Key("Action").String("DeleteTransitGatewayVpcAttachment") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpcPeeringConnectionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteTransitGatewayVpcAttachmentInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10513,14 +10897,14 @@ func (m *awsEc2query_serializeOpDeleteVpcPeeringConnection) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpnConnection struct { +type awsEc2query_serializeOpDeleteVolume struct { } -func (*awsEc2query_serializeOpDeleteVpnConnection) ID() string { +func (*awsEc2query_serializeOpDeleteVolume) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpnConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10528,7 +10912,7 @@ func (m *awsEc2query_serializeOpDeleteVpnConnection) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpnConnectionInput) + input, ok := in.Parameters.(*DeleteVolumeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10553,10 +10937,10 @@ func (m *awsEc2query_serializeOpDeleteVpnConnection) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpnConnection") + body.Key("Action").String("DeleteVolume") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpnConnectionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVolumeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10577,14 +10961,14 @@ func (m *awsEc2query_serializeOpDeleteVpnConnection) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpnConnectionRoute struct { +type awsEc2query_serializeOpDeleteVpc struct { } -func (*awsEc2query_serializeOpDeleteVpnConnectionRoute) ID() string { +func (*awsEc2query_serializeOpDeleteVpc) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpnConnectionRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10592,7 +10976,7 @@ func (m *awsEc2query_serializeOpDeleteVpnConnectionRoute) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpnConnectionRouteInput) + input, ok := in.Parameters.(*DeleteVpcInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10617,10 +11001,10 @@ func (m *awsEc2query_serializeOpDeleteVpnConnectionRoute) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpnConnectionRoute") + body.Key("Action").String("DeleteVpc") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpnConnectionRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpcInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10641,14 +11025,14 @@ func (m *awsEc2query_serializeOpDeleteVpnConnectionRoute) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeleteVpnGateway struct { +type awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_serializeOpDeleteVpnGateway) ID() string { +func (*awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeleteVpnGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10656,7 +11040,7 @@ func (m *awsEc2query_serializeOpDeleteVpnGateway) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVpnGatewayInput) + input, ok := in.Parameters.(*DeleteVpcEndpointConnectionNotificationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10681,10 +11065,10 @@ func (m *awsEc2query_serializeOpDeleteVpnGateway) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeleteVpnGateway") + body.Key("Action").String("DeleteVpcEndpointConnectionNotifications") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeleteVpnGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10705,14 +11089,14 @@ func (m *awsEc2query_serializeOpDeleteVpnGateway) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeprovisionByoipCidr struct { +type awsEc2query_serializeOpDeleteVpcEndpoints struct { } -func (*awsEc2query_serializeOpDeprovisionByoipCidr) ID() string { +func (*awsEc2query_serializeOpDeleteVpcEndpoints) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeprovisionByoipCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpcEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10720,7 +11104,7 @@ func (m *awsEc2query_serializeOpDeprovisionByoipCidr) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeprovisionByoipCidrInput) + input, ok := in.Parameters.(*DeleteVpcEndpointsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10745,10 +11129,10 @@ func (m *awsEc2query_serializeOpDeprovisionByoipCidr) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeprovisionByoipCidr") + body.Key("Action").String("DeleteVpcEndpoints") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeprovisionByoipCidrInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpcEndpointsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10769,14 +11153,14 @@ func (m *awsEc2query_serializeOpDeprovisionByoipCidr) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeregisterImage struct { +type awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations struct { } -func (*awsEc2query_serializeOpDeregisterImage) ID() string { +func (*awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeregisterImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10784,7 +11168,7 @@ func (m *awsEc2query_serializeOpDeregisterImage) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeregisterImageInput) + input, ok := in.Parameters.(*DeleteVpcEndpointServiceConfigurationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10809,10 +11193,10 @@ func (m *awsEc2query_serializeOpDeregisterImage) HandleSerialize(ctx context.Con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeregisterImage") + body.Key("Action").String("DeleteVpcEndpointServiceConfigurations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeregisterImageInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpcEndpointServiceConfigurationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10833,14 +11217,14 @@ func (m *awsEc2query_serializeOpDeregisterImage) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes struct { +type awsEc2query_serializeOpDeleteVpcPeeringConnection struct { } -func (*awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_serializeOpDeleteVpcPeeringConnection) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpcPeeringConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10848,7 +11232,7 @@ func (m *awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) H return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeregisterInstanceEventNotificationAttributesInput) + input, ok := in.Parameters.(*DeleteVpcPeeringConnectionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10873,10 +11257,10 @@ func (m *awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) H bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeregisterInstanceEventNotificationAttributes") + body.Key("Action").String("DeleteVpcPeeringConnection") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeregisterInstanceEventNotificationAttributesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpcPeeringConnectionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10897,14 +11281,14 @@ func (m *awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) H return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_serializeOpDeleteVpnConnection struct { } -func (*awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_serializeOpDeleteVpnConnection) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpnConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10912,7 +11296,7 @@ func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) H return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeregisterTransitGatewayMulticastGroupMembersInput) + input, ok := in.Parameters.(*DeleteVpnConnectionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -10937,10 +11321,10 @@ func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) H bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeregisterTransitGatewayMulticastGroupMembers") + body.Key("Action").String("DeleteVpnConnection") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupMembersInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpnConnectionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10961,14 +11345,14 @@ func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) H return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_serializeOpDeleteVpnConnectionRoute struct { } -func (*awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_serializeOpDeleteVpnConnectionRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpnConnectionRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10976,7 +11360,7 @@ func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) H return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeregisterTransitGatewayMulticastGroupSourcesInput) + input, ok := in.Parameters.(*DeleteVpnConnectionRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11001,10 +11385,10 @@ func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) H bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DeregisterTransitGatewayMulticastGroupSources") + body.Key("Action").String("DeleteVpnConnectionRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupSourcesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpnConnectionRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11025,14 +11409,14 @@ func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) H return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeAccountAttributes struct { +type awsEc2query_serializeOpDeleteVpnGateway struct { } -func (*awsEc2query_serializeOpDescribeAccountAttributes) ID() string { +func (*awsEc2query_serializeOpDeleteVpnGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeAccountAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeleteVpnGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11040,7 +11424,7 @@ func (m *awsEc2query_serializeOpDescribeAccountAttributes) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeAccountAttributesInput) + input, ok := in.Parameters.(*DeleteVpnGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11065,10 +11449,10 @@ func (m *awsEc2query_serializeOpDescribeAccountAttributes) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeAccountAttributes") + body.Key("Action").String("DeleteVpnGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeAccountAttributesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeleteVpnGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11089,14 +11473,14 @@ func (m *awsEc2query_serializeOpDescribeAccountAttributes) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeAddresses struct { +type awsEc2query_serializeOpDeprovisionByoipCidr struct { } -func (*awsEc2query_serializeOpDescribeAddresses) ID() string { +func (*awsEc2query_serializeOpDeprovisionByoipCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeAddresses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeprovisionByoipCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11104,7 +11488,7 @@ func (m *awsEc2query_serializeOpDescribeAddresses) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeAddressesInput) + input, ok := in.Parameters.(*DeprovisionByoipCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11129,10 +11513,10 @@ func (m *awsEc2query_serializeOpDescribeAddresses) HandleSerialize(ctx context.C bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeAddresses") + body.Key("Action").String("DeprovisionByoipCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeAddressesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeprovisionByoipCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11153,14 +11537,14 @@ func (m *awsEc2query_serializeOpDescribeAddresses) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeAddressesAttribute struct { +type awsEc2query_serializeOpDeprovisionIpamPoolCidr struct { } -func (*awsEc2query_serializeOpDescribeAddressesAttribute) ID() string { +func (*awsEc2query_serializeOpDeprovisionIpamPoolCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeAddressesAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeprovisionIpamPoolCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11168,7 +11552,7 @@ func (m *awsEc2query_serializeOpDescribeAddressesAttribute) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeAddressesAttributeInput) + input, ok := in.Parameters.(*DeprovisionIpamPoolCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11193,10 +11577,10 @@ func (m *awsEc2query_serializeOpDescribeAddressesAttribute) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeAddressesAttribute") + body.Key("Action").String("DeprovisionIpamPoolCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeAddressesAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeprovisionIpamPoolCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11217,14 +11601,14 @@ func (m *awsEc2query_serializeOpDescribeAddressesAttribute) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeAggregateIdFormat struct { +type awsEc2query_serializeOpDeprovisionPublicIpv4PoolCidr struct { } -func (*awsEc2query_serializeOpDescribeAggregateIdFormat) ID() string { +func (*awsEc2query_serializeOpDeprovisionPublicIpv4PoolCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeAggregateIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeprovisionPublicIpv4PoolCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11232,7 +11616,7 @@ func (m *awsEc2query_serializeOpDescribeAggregateIdFormat) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeAggregateIdFormatInput) + input, ok := in.Parameters.(*DeprovisionPublicIpv4PoolCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11257,10 +11641,10 @@ func (m *awsEc2query_serializeOpDescribeAggregateIdFormat) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeAggregateIdFormat") + body.Key("Action").String("DeprovisionPublicIpv4PoolCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeAggregateIdFormatInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeprovisionPublicIpv4PoolCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11281,14 +11665,14 @@ func (m *awsEc2query_serializeOpDescribeAggregateIdFormat) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeAvailabilityZones struct { +type awsEc2query_serializeOpDeregisterImage struct { } -func (*awsEc2query_serializeOpDescribeAvailabilityZones) ID() string { +func (*awsEc2query_serializeOpDeregisterImage) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeAvailabilityZones) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeregisterImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11296,7 +11680,7 @@ func (m *awsEc2query_serializeOpDescribeAvailabilityZones) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeAvailabilityZonesInput) + input, ok := in.Parameters.(*DeregisterImageInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11321,10 +11705,10 @@ func (m *awsEc2query_serializeOpDescribeAvailabilityZones) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeAvailabilityZones") + body.Key("Action").String("DeregisterImage") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeAvailabilityZonesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeregisterImageInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11345,14 +11729,14 @@ func (m *awsEc2query_serializeOpDescribeAvailabilityZones) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeBundleTasks struct { +type awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_serializeOpDescribeBundleTasks) ID() string { +func (*awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeBundleTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11360,7 +11744,7 @@ func (m *awsEc2query_serializeOpDescribeBundleTasks) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeBundleTasksInput) + input, ok := in.Parameters.(*DeregisterInstanceEventNotificationAttributesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11385,10 +11769,10 @@ func (m *awsEc2query_serializeOpDescribeBundleTasks) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeBundleTasks") + body.Key("Action").String("DeregisterInstanceEventNotificationAttributes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeBundleTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeregisterInstanceEventNotificationAttributesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11409,14 +11793,14 @@ func (m *awsEc2query_serializeOpDescribeBundleTasks) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeByoipCidrs struct { +type awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_serializeOpDescribeByoipCidrs) ID() string { +func (*awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11424,7 +11808,7 @@ func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeByoipCidrsInput) + input, ok := in.Parameters.(*DeregisterTransitGatewayMulticastGroupMembersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11449,10 +11833,10 @@ func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeByoipCidrs") + body.Key("Action").String("DeregisterTransitGatewayMulticastGroupMembers") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeByoipCidrsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupMembersInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11473,14 +11857,14 @@ func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeCapacityReservationFleets struct { +type awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_serializeOpDescribeCapacityReservationFleets) ID() string { +func (*awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeCapacityReservationFleets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11488,7 +11872,7 @@ func (m *awsEc2query_serializeOpDescribeCapacityReservationFleets) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeCapacityReservationFleetsInput) + input, ok := in.Parameters.(*DeregisterTransitGatewayMulticastGroupSourcesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11513,10 +11897,10 @@ func (m *awsEc2query_serializeOpDescribeCapacityReservationFleets) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeCapacityReservationFleets") + body.Key("Action").String("DeregisterTransitGatewayMulticastGroupSources") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeCapacityReservationFleetsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupSourcesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11537,14 +11921,14 @@ func (m *awsEc2query_serializeOpDescribeCapacityReservationFleets) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeCapacityReservations struct { +type awsEc2query_serializeOpDescribeAccountAttributes struct { } -func (*awsEc2query_serializeOpDescribeCapacityReservations) ID() string { +func (*awsEc2query_serializeOpDescribeAccountAttributes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeCapacityReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeAccountAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11552,7 +11936,7 @@ func (m *awsEc2query_serializeOpDescribeCapacityReservations) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeCapacityReservationsInput) + input, ok := in.Parameters.(*DescribeAccountAttributesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11577,10 +11961,10 @@ func (m *awsEc2query_serializeOpDescribeCapacityReservations) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeCapacityReservations") + body.Key("Action").String("DescribeAccountAttributes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeCapacityReservationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeAccountAttributesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11601,14 +11985,14 @@ func (m *awsEc2query_serializeOpDescribeCapacityReservations) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeCarrierGateways struct { +type awsEc2query_serializeOpDescribeAddresses struct { } -func (*awsEc2query_serializeOpDescribeCarrierGateways) ID() string { +func (*awsEc2query_serializeOpDescribeAddresses) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeCarrierGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeAddresses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11616,7 +12000,7 @@ func (m *awsEc2query_serializeOpDescribeCarrierGateways) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeCarrierGatewaysInput) + input, ok := in.Parameters.(*DescribeAddressesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11641,10 +12025,10 @@ func (m *awsEc2query_serializeOpDescribeCarrierGateways) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeCarrierGateways") + body.Key("Action").String("DescribeAddresses") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeCarrierGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeAddressesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11665,14 +12049,14 @@ func (m *awsEc2query_serializeOpDescribeCarrierGateways) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeClassicLinkInstances struct { +type awsEc2query_serializeOpDescribeAddressesAttribute struct { } -func (*awsEc2query_serializeOpDescribeClassicLinkInstances) ID() string { +func (*awsEc2query_serializeOpDescribeAddressesAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeClassicLinkInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeAddressesAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11680,7 +12064,7 @@ func (m *awsEc2query_serializeOpDescribeClassicLinkInstances) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeClassicLinkInstancesInput) + input, ok := in.Parameters.(*DescribeAddressesAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11705,10 +12089,10 @@ func (m *awsEc2query_serializeOpDescribeClassicLinkInstances) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeClassicLinkInstances") + body.Key("Action").String("DescribeAddressesAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeClassicLinkInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeAddressesAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11729,14 +12113,14 @@ func (m *awsEc2query_serializeOpDescribeClassicLinkInstances) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeClientVpnAuthorizationRules struct { +type awsEc2query_serializeOpDescribeAggregateIdFormat struct { } -func (*awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) ID() string { +func (*awsEc2query_serializeOpDescribeAggregateIdFormat) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeAggregateIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11744,7 +12128,7 @@ func (m *awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeClientVpnAuthorizationRulesInput) + input, ok := in.Parameters.(*DescribeAggregateIdFormatInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11769,10 +12153,10 @@ func (m *awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) HandleSeria bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeClientVpnAuthorizationRules") + body.Key("Action").String("DescribeAggregateIdFormat") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeClientVpnAuthorizationRulesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeAggregateIdFormatInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11793,14 +12177,14 @@ func (m *awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) HandleSeria return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeClientVpnConnections struct { +type awsEc2query_serializeOpDescribeAvailabilityZones struct { } -func (*awsEc2query_serializeOpDescribeClientVpnConnections) ID() string { +func (*awsEc2query_serializeOpDescribeAvailabilityZones) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeClientVpnConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeAvailabilityZones) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11808,7 +12192,7 @@ func (m *awsEc2query_serializeOpDescribeClientVpnConnections) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeClientVpnConnectionsInput) + input, ok := in.Parameters.(*DescribeAvailabilityZonesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11833,10 +12217,10 @@ func (m *awsEc2query_serializeOpDescribeClientVpnConnections) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeClientVpnConnections") + body.Key("Action").String("DescribeAvailabilityZones") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeClientVpnConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeAvailabilityZonesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11857,14 +12241,14 @@ func (m *awsEc2query_serializeOpDescribeClientVpnConnections) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeClientVpnEndpoints struct { +type awsEc2query_serializeOpDescribeBundleTasks struct { } -func (*awsEc2query_serializeOpDescribeClientVpnEndpoints) ID() string { +func (*awsEc2query_serializeOpDescribeBundleTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeClientVpnEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeBundleTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11872,7 +12256,7 @@ func (m *awsEc2query_serializeOpDescribeClientVpnEndpoints) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeClientVpnEndpointsInput) + input, ok := in.Parameters.(*DescribeBundleTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11897,10 +12281,10 @@ func (m *awsEc2query_serializeOpDescribeClientVpnEndpoints) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeClientVpnEndpoints") + body.Key("Action").String("DescribeBundleTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeClientVpnEndpointsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeBundleTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11921,14 +12305,14 @@ func (m *awsEc2query_serializeOpDescribeClientVpnEndpoints) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeClientVpnRoutes struct { +type awsEc2query_serializeOpDescribeByoipCidrs struct { } -func (*awsEc2query_serializeOpDescribeClientVpnRoutes) ID() string { +func (*awsEc2query_serializeOpDescribeByoipCidrs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeClientVpnRoutes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11936,7 +12320,7 @@ func (m *awsEc2query_serializeOpDescribeClientVpnRoutes) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeClientVpnRoutesInput) + input, ok := in.Parameters.(*DescribeByoipCidrsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11961,10 +12345,10 @@ func (m *awsEc2query_serializeOpDescribeClientVpnRoutes) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeClientVpnRoutes") + body.Key("Action").String("DescribeByoipCidrs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeClientVpnRoutesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeByoipCidrsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11985,14 +12369,14 @@ func (m *awsEc2query_serializeOpDescribeClientVpnRoutes) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeClientVpnTargetNetworks struct { +type awsEc2query_serializeOpDescribeCapacityReservationFleets struct { } -func (*awsEc2query_serializeOpDescribeClientVpnTargetNetworks) ID() string { +func (*awsEc2query_serializeOpDescribeCapacityReservationFleets) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeClientVpnTargetNetworks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeCapacityReservationFleets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12000,7 +12384,7 @@ func (m *awsEc2query_serializeOpDescribeClientVpnTargetNetworks) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeClientVpnTargetNetworksInput) + input, ok := in.Parameters.(*DescribeCapacityReservationFleetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12025,10 +12409,10 @@ func (m *awsEc2query_serializeOpDescribeClientVpnTargetNetworks) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeClientVpnTargetNetworks") + body.Key("Action").String("DescribeCapacityReservationFleets") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeClientVpnTargetNetworksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeCapacityReservationFleetsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12049,14 +12433,14 @@ func (m *awsEc2query_serializeOpDescribeClientVpnTargetNetworks) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeCoipPools struct { +type awsEc2query_serializeOpDescribeCapacityReservations struct { } -func (*awsEc2query_serializeOpDescribeCoipPools) ID() string { +func (*awsEc2query_serializeOpDescribeCapacityReservations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeCoipPools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeCapacityReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12064,7 +12448,7 @@ func (m *awsEc2query_serializeOpDescribeCoipPools) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeCoipPoolsInput) + input, ok := in.Parameters.(*DescribeCapacityReservationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12089,10 +12473,10 @@ func (m *awsEc2query_serializeOpDescribeCoipPools) HandleSerialize(ctx context.C bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeCoipPools") + body.Key("Action").String("DescribeCapacityReservations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeCoipPoolsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeCapacityReservationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12113,14 +12497,14 @@ func (m *awsEc2query_serializeOpDescribeCoipPools) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeConversionTasks struct { +type awsEc2query_serializeOpDescribeCarrierGateways struct { } -func (*awsEc2query_serializeOpDescribeConversionTasks) ID() string { +func (*awsEc2query_serializeOpDescribeCarrierGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeConversionTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeCarrierGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12128,7 +12512,7 @@ func (m *awsEc2query_serializeOpDescribeConversionTasks) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeConversionTasksInput) + input, ok := in.Parameters.(*DescribeCarrierGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12153,10 +12537,10 @@ func (m *awsEc2query_serializeOpDescribeConversionTasks) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeConversionTasks") + body.Key("Action").String("DescribeCarrierGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeConversionTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeCarrierGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12177,14 +12561,14 @@ func (m *awsEc2query_serializeOpDescribeConversionTasks) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeCustomerGateways struct { +type awsEc2query_serializeOpDescribeClassicLinkInstances struct { } -func (*awsEc2query_serializeOpDescribeCustomerGateways) ID() string { +func (*awsEc2query_serializeOpDescribeClassicLinkInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeCustomerGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeClassicLinkInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12192,7 +12576,7 @@ func (m *awsEc2query_serializeOpDescribeCustomerGateways) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeCustomerGatewaysInput) + input, ok := in.Parameters.(*DescribeClassicLinkInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12217,10 +12601,10 @@ func (m *awsEc2query_serializeOpDescribeCustomerGateways) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeCustomerGateways") + body.Key("Action").String("DescribeClassicLinkInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeCustomerGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeClassicLinkInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12241,14 +12625,14 @@ func (m *awsEc2query_serializeOpDescribeCustomerGateways) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeDhcpOptions struct { +type awsEc2query_serializeOpDescribeClientVpnAuthorizationRules struct { } -func (*awsEc2query_serializeOpDescribeDhcpOptions) ID() string { +func (*awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeDhcpOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeClientVpnAuthorizationRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12256,7 +12640,7 @@ func (m *awsEc2query_serializeOpDescribeDhcpOptions) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeDhcpOptionsInput) + input, ok := in.Parameters.(*DescribeClientVpnAuthorizationRulesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12281,10 +12665,10 @@ func (m *awsEc2query_serializeOpDescribeDhcpOptions) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeDhcpOptions") + body.Key("Action").String("DescribeClientVpnAuthorizationRules") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeDhcpOptionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeClientVpnAuthorizationRulesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12305,14 +12689,14 @@ func (m *awsEc2query_serializeOpDescribeDhcpOptions) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeEgressOnlyInternetGateways struct { +type awsEc2query_serializeOpDescribeClientVpnConnections struct { } -func (*awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) ID() string { +func (*awsEc2query_serializeOpDescribeClientVpnConnections) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeClientVpnConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12320,7 +12704,7 @@ func (m *awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeEgressOnlyInternetGatewaysInput) + input, ok := in.Parameters.(*DescribeClientVpnConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12345,10 +12729,10 @@ func (m *awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) HandleSerial bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeEgressOnlyInternetGateways") + body.Key("Action").String("DescribeClientVpnConnections") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeEgressOnlyInternetGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeClientVpnConnectionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12369,14 +12753,14 @@ func (m *awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) HandleSerial return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeElasticGpus struct { +type awsEc2query_serializeOpDescribeClientVpnEndpoints struct { } -func (*awsEc2query_serializeOpDescribeElasticGpus) ID() string { +func (*awsEc2query_serializeOpDescribeClientVpnEndpoints) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeElasticGpus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeClientVpnEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12384,7 +12768,7 @@ func (m *awsEc2query_serializeOpDescribeElasticGpus) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeElasticGpusInput) + input, ok := in.Parameters.(*DescribeClientVpnEndpointsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12409,10 +12793,10 @@ func (m *awsEc2query_serializeOpDescribeElasticGpus) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeElasticGpus") + body.Key("Action").String("DescribeClientVpnEndpoints") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeElasticGpusInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeClientVpnEndpointsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12433,14 +12817,14 @@ func (m *awsEc2query_serializeOpDescribeElasticGpus) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeExportImageTasks struct { +type awsEc2query_serializeOpDescribeClientVpnRoutes struct { } -func (*awsEc2query_serializeOpDescribeExportImageTasks) ID() string { +func (*awsEc2query_serializeOpDescribeClientVpnRoutes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeExportImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeClientVpnRoutes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12448,7 +12832,7 @@ func (m *awsEc2query_serializeOpDescribeExportImageTasks) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeExportImageTasksInput) + input, ok := in.Parameters.(*DescribeClientVpnRoutesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12473,10 +12857,10 @@ func (m *awsEc2query_serializeOpDescribeExportImageTasks) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeExportImageTasks") + body.Key("Action").String("DescribeClientVpnRoutes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeExportImageTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeClientVpnRoutesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12497,14 +12881,14 @@ func (m *awsEc2query_serializeOpDescribeExportImageTasks) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeExportTasks struct { +type awsEc2query_serializeOpDescribeClientVpnTargetNetworks struct { } -func (*awsEc2query_serializeOpDescribeExportTasks) ID() string { +func (*awsEc2query_serializeOpDescribeClientVpnTargetNetworks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeExportTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeClientVpnTargetNetworks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12512,7 +12896,7 @@ func (m *awsEc2query_serializeOpDescribeExportTasks) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeExportTasksInput) + input, ok := in.Parameters.(*DescribeClientVpnTargetNetworksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12537,10 +12921,10 @@ func (m *awsEc2query_serializeOpDescribeExportTasks) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeExportTasks") + body.Key("Action").String("DescribeClientVpnTargetNetworks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeExportTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeClientVpnTargetNetworksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12561,14 +12945,14 @@ func (m *awsEc2query_serializeOpDescribeExportTasks) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFastSnapshotRestores struct { +type awsEc2query_serializeOpDescribeCoipPools struct { } -func (*awsEc2query_serializeOpDescribeFastSnapshotRestores) ID() string { +func (*awsEc2query_serializeOpDescribeCoipPools) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFastSnapshotRestores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeCoipPools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12576,7 +12960,7 @@ func (m *awsEc2query_serializeOpDescribeFastSnapshotRestores) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFastSnapshotRestoresInput) + input, ok := in.Parameters.(*DescribeCoipPoolsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12601,10 +12985,10 @@ func (m *awsEc2query_serializeOpDescribeFastSnapshotRestores) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFastSnapshotRestores") + body.Key("Action").String("DescribeCoipPools") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFastSnapshotRestoresInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeCoipPoolsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12625,14 +13009,14 @@ func (m *awsEc2query_serializeOpDescribeFastSnapshotRestores) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFleetHistory struct { +type awsEc2query_serializeOpDescribeConversionTasks struct { } -func (*awsEc2query_serializeOpDescribeFleetHistory) ID() string { +func (*awsEc2query_serializeOpDescribeConversionTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFleetHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeConversionTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12640,7 +13024,7 @@ func (m *awsEc2query_serializeOpDescribeFleetHistory) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFleetHistoryInput) + input, ok := in.Parameters.(*DescribeConversionTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12665,10 +13049,10 @@ func (m *awsEc2query_serializeOpDescribeFleetHistory) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFleetHistory") + body.Key("Action").String("DescribeConversionTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFleetHistoryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeConversionTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12689,14 +13073,14 @@ func (m *awsEc2query_serializeOpDescribeFleetHistory) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFleetInstances struct { +type awsEc2query_serializeOpDescribeCustomerGateways struct { } -func (*awsEc2query_serializeOpDescribeFleetInstances) ID() string { +func (*awsEc2query_serializeOpDescribeCustomerGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFleetInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeCustomerGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12704,7 +13088,7 @@ func (m *awsEc2query_serializeOpDescribeFleetInstances) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFleetInstancesInput) + input, ok := in.Parameters.(*DescribeCustomerGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12729,10 +13113,10 @@ func (m *awsEc2query_serializeOpDescribeFleetInstances) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFleetInstances") + body.Key("Action").String("DescribeCustomerGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFleetInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeCustomerGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12753,14 +13137,14 @@ func (m *awsEc2query_serializeOpDescribeFleetInstances) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFleets struct { +type awsEc2query_serializeOpDescribeDhcpOptions struct { } -func (*awsEc2query_serializeOpDescribeFleets) ID() string { +func (*awsEc2query_serializeOpDescribeDhcpOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFleets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeDhcpOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12768,7 +13152,7 @@ func (m *awsEc2query_serializeOpDescribeFleets) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFleetsInput) + input, ok := in.Parameters.(*DescribeDhcpOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12793,10 +13177,10 @@ func (m *awsEc2query_serializeOpDescribeFleets) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFleets") + body.Key("Action").String("DescribeDhcpOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFleetsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeDhcpOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12817,14 +13201,14 @@ func (m *awsEc2query_serializeOpDescribeFleets) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFlowLogs struct { +type awsEc2query_serializeOpDescribeEgressOnlyInternetGateways struct { } -func (*awsEc2query_serializeOpDescribeFlowLogs) ID() string { +func (*awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFlowLogs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeEgressOnlyInternetGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12832,7 +13216,7 @@ func (m *awsEc2query_serializeOpDescribeFlowLogs) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFlowLogsInput) + input, ok := in.Parameters.(*DescribeEgressOnlyInternetGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12857,10 +13241,10 @@ func (m *awsEc2query_serializeOpDescribeFlowLogs) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFlowLogs") + body.Key("Action").String("DescribeEgressOnlyInternetGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFlowLogsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeEgressOnlyInternetGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12881,14 +13265,14 @@ func (m *awsEc2query_serializeOpDescribeFlowLogs) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFpgaImageAttribute struct { +type awsEc2query_serializeOpDescribeElasticGpus struct { } -func (*awsEc2query_serializeOpDescribeFpgaImageAttribute) ID() string { +func (*awsEc2query_serializeOpDescribeElasticGpus) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFpgaImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeElasticGpus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12896,7 +13280,7 @@ func (m *awsEc2query_serializeOpDescribeFpgaImageAttribute) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFpgaImageAttributeInput) + input, ok := in.Parameters.(*DescribeElasticGpusInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12921,10 +13305,10 @@ func (m *awsEc2query_serializeOpDescribeFpgaImageAttribute) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFpgaImageAttribute") + body.Key("Action").String("DescribeElasticGpus") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFpgaImageAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeElasticGpusInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -12945,14 +13329,14 @@ func (m *awsEc2query_serializeOpDescribeFpgaImageAttribute) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeFpgaImages struct { +type awsEc2query_serializeOpDescribeExportImageTasks struct { } -func (*awsEc2query_serializeOpDescribeFpgaImages) ID() string { +func (*awsEc2query_serializeOpDescribeExportImageTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeFpgaImages) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeExportImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -12960,7 +13344,7 @@ func (m *awsEc2query_serializeOpDescribeFpgaImages) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFpgaImagesInput) + input, ok := in.Parameters.(*DescribeExportImageTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -12985,10 +13369,10 @@ func (m *awsEc2query_serializeOpDescribeFpgaImages) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeFpgaImages") + body.Key("Action").String("DescribeExportImageTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeFpgaImagesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeExportImageTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13009,14 +13393,14 @@ func (m *awsEc2query_serializeOpDescribeFpgaImages) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeHostReservationOfferings struct { +type awsEc2query_serializeOpDescribeExportTasks struct { } -func (*awsEc2query_serializeOpDescribeHostReservationOfferings) ID() string { +func (*awsEc2query_serializeOpDescribeExportTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeHostReservationOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeExportTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13024,7 +13408,7 @@ func (m *awsEc2query_serializeOpDescribeHostReservationOfferings) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeHostReservationOfferingsInput) + input, ok := in.Parameters.(*DescribeExportTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13049,10 +13433,10 @@ func (m *awsEc2query_serializeOpDescribeHostReservationOfferings) HandleSerializ bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeHostReservationOfferings") + body.Key("Action").String("DescribeExportTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeHostReservationOfferingsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeExportTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13073,14 +13457,14 @@ func (m *awsEc2query_serializeOpDescribeHostReservationOfferings) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeHostReservations struct { +type awsEc2query_serializeOpDescribeFastSnapshotRestores struct { } -func (*awsEc2query_serializeOpDescribeHostReservations) ID() string { +func (*awsEc2query_serializeOpDescribeFastSnapshotRestores) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeHostReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFastSnapshotRestores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13088,7 +13472,7 @@ func (m *awsEc2query_serializeOpDescribeHostReservations) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeHostReservationsInput) + input, ok := in.Parameters.(*DescribeFastSnapshotRestoresInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13113,10 +13497,10 @@ func (m *awsEc2query_serializeOpDescribeHostReservations) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeHostReservations") + body.Key("Action").String("DescribeFastSnapshotRestores") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeHostReservationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFastSnapshotRestoresInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13137,14 +13521,14 @@ func (m *awsEc2query_serializeOpDescribeHostReservations) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeHosts struct { +type awsEc2query_serializeOpDescribeFleetHistory struct { } -func (*awsEc2query_serializeOpDescribeHosts) ID() string { +func (*awsEc2query_serializeOpDescribeFleetHistory) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFleetHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13152,7 +13536,7 @@ func (m *awsEc2query_serializeOpDescribeHosts) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeHostsInput) + input, ok := in.Parameters.(*DescribeFleetHistoryInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13177,10 +13561,10 @@ func (m *awsEc2query_serializeOpDescribeHosts) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeHosts") + body.Key("Action").String("DescribeFleetHistory") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeHostsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFleetHistoryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13201,14 +13585,14 @@ func (m *awsEc2query_serializeOpDescribeHosts) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeIamInstanceProfileAssociations struct { +type awsEc2query_serializeOpDescribeFleetInstances struct { } -func (*awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) ID() string { +func (*awsEc2query_serializeOpDescribeFleetInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFleetInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13216,7 +13600,7 @@ func (m *awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) HandleSe return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeIamInstanceProfileAssociationsInput) + input, ok := in.Parameters.(*DescribeFleetInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13241,10 +13625,10 @@ func (m *awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) HandleSe bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeIamInstanceProfileAssociations") + body.Key("Action").String("DescribeFleetInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeIamInstanceProfileAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFleetInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13265,14 +13649,14 @@ func (m *awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) HandleSe return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeIdentityIdFormat struct { +type awsEc2query_serializeOpDescribeFleets struct { } -func (*awsEc2query_serializeOpDescribeIdentityIdFormat) ID() string { +func (*awsEc2query_serializeOpDescribeFleets) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeIdentityIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFleets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13280,7 +13664,7 @@ func (m *awsEc2query_serializeOpDescribeIdentityIdFormat) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeIdentityIdFormatInput) + input, ok := in.Parameters.(*DescribeFleetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13305,10 +13689,10 @@ func (m *awsEc2query_serializeOpDescribeIdentityIdFormat) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeIdentityIdFormat") + body.Key("Action").String("DescribeFleets") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeIdentityIdFormatInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFleetsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13329,14 +13713,14 @@ func (m *awsEc2query_serializeOpDescribeIdentityIdFormat) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeIdFormat struct { +type awsEc2query_serializeOpDescribeFlowLogs struct { } -func (*awsEc2query_serializeOpDescribeIdFormat) ID() string { +func (*awsEc2query_serializeOpDescribeFlowLogs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFlowLogs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13344,7 +13728,7 @@ func (m *awsEc2query_serializeOpDescribeIdFormat) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeIdFormatInput) + input, ok := in.Parameters.(*DescribeFlowLogsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13369,10 +13753,10 @@ func (m *awsEc2query_serializeOpDescribeIdFormat) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeIdFormat") + body.Key("Action").String("DescribeFlowLogs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeIdFormatInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFlowLogsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13393,14 +13777,14 @@ func (m *awsEc2query_serializeOpDescribeIdFormat) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeImageAttribute struct { +type awsEc2query_serializeOpDescribeFpgaImageAttribute struct { } -func (*awsEc2query_serializeOpDescribeImageAttribute) ID() string { +func (*awsEc2query_serializeOpDescribeFpgaImageAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFpgaImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13408,7 +13792,7 @@ func (m *awsEc2query_serializeOpDescribeImageAttribute) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeImageAttributeInput) + input, ok := in.Parameters.(*DescribeFpgaImageAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13433,10 +13817,10 @@ func (m *awsEc2query_serializeOpDescribeImageAttribute) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeImageAttribute") + body.Key("Action").String("DescribeFpgaImageAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeImageAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFpgaImageAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13457,14 +13841,14 @@ func (m *awsEc2query_serializeOpDescribeImageAttribute) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeImages struct { +type awsEc2query_serializeOpDescribeFpgaImages struct { } -func (*awsEc2query_serializeOpDescribeImages) ID() string { +func (*awsEc2query_serializeOpDescribeFpgaImages) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeImages) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeFpgaImages) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13472,7 +13856,7 @@ func (m *awsEc2query_serializeOpDescribeImages) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeImagesInput) + input, ok := in.Parameters.(*DescribeFpgaImagesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13497,10 +13881,10 @@ func (m *awsEc2query_serializeOpDescribeImages) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeImages") + body.Key("Action").String("DescribeFpgaImages") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeImagesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeFpgaImagesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13521,14 +13905,14 @@ func (m *awsEc2query_serializeOpDescribeImages) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeImportImageTasks struct { +type awsEc2query_serializeOpDescribeHostReservationOfferings struct { } -func (*awsEc2query_serializeOpDescribeImportImageTasks) ID() string { +func (*awsEc2query_serializeOpDescribeHostReservationOfferings) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeImportImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeHostReservationOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13536,7 +13920,7 @@ func (m *awsEc2query_serializeOpDescribeImportImageTasks) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeImportImageTasksInput) + input, ok := in.Parameters.(*DescribeHostReservationOfferingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13561,10 +13945,10 @@ func (m *awsEc2query_serializeOpDescribeImportImageTasks) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeImportImageTasks") + body.Key("Action").String("DescribeHostReservationOfferings") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeImportImageTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeHostReservationOfferingsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13585,14 +13969,14 @@ func (m *awsEc2query_serializeOpDescribeImportImageTasks) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeImportSnapshotTasks struct { +type awsEc2query_serializeOpDescribeHostReservations struct { } -func (*awsEc2query_serializeOpDescribeImportSnapshotTasks) ID() string { +func (*awsEc2query_serializeOpDescribeHostReservations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeImportSnapshotTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeHostReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13600,7 +13984,7 @@ func (m *awsEc2query_serializeOpDescribeImportSnapshotTasks) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeImportSnapshotTasksInput) + input, ok := in.Parameters.(*DescribeHostReservationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13625,10 +14009,10 @@ func (m *awsEc2query_serializeOpDescribeImportSnapshotTasks) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeImportSnapshotTasks") + body.Key("Action").String("DescribeHostReservations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeImportSnapshotTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeHostReservationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13649,14 +14033,14 @@ func (m *awsEc2query_serializeOpDescribeImportSnapshotTasks) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceAttribute struct { +type awsEc2query_serializeOpDescribeHosts struct { } -func (*awsEc2query_serializeOpDescribeInstanceAttribute) ID() string { +func (*awsEc2query_serializeOpDescribeHosts) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13664,7 +14048,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceAttribute) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceAttributeInput) + input, ok := in.Parameters.(*DescribeHostsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13689,10 +14073,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceAttribute) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceAttribute") + body.Key("Action").String("DescribeHosts") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeHostsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13713,14 +14097,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceAttribute) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceCreditSpecifications struct { +type awsEc2query_serializeOpDescribeIamInstanceProfileAssociations struct { } -func (*awsEc2query_serializeOpDescribeInstanceCreditSpecifications) ID() string { +func (*awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceCreditSpecifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIamInstanceProfileAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13728,7 +14112,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceCreditSpecifications) HandleSeri return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceCreditSpecificationsInput) + input, ok := in.Parameters.(*DescribeIamInstanceProfileAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13753,10 +14137,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceCreditSpecifications) HandleSeri bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceCreditSpecifications") + body.Key("Action").String("DescribeIamInstanceProfileAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceCreditSpecificationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIamInstanceProfileAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13777,14 +14161,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceCreditSpecifications) HandleSeri return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes struct { +type awsEc2query_serializeOpDescribeIdentityIdFormat struct { } -func (*awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_serializeOpDescribeIdentityIdFormat) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIdentityIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13792,7 +14176,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) Han return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceEventNotificationAttributesInput) + input, ok := in.Parameters.(*DescribeIdentityIdFormatInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13817,10 +14201,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) Han bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceEventNotificationAttributes") + body.Key("Action").String("DescribeIdentityIdFormat") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceEventNotificationAttributesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIdentityIdFormatInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13841,14 +14225,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceEventWindows struct { +type awsEc2query_serializeOpDescribeIdFormat struct { } -func (*awsEc2query_serializeOpDescribeInstanceEventWindows) ID() string { +func (*awsEc2query_serializeOpDescribeIdFormat) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13856,7 +14240,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceEventWindowsInput) + input, ok := in.Parameters.(*DescribeIdFormatInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13881,10 +14265,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceEventWindows") + body.Key("Action").String("DescribeIdFormat") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceEventWindowsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIdFormatInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13905,14 +14289,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstances struct { +type awsEc2query_serializeOpDescribeImageAttribute struct { } -func (*awsEc2query_serializeOpDescribeInstances) ID() string { +func (*awsEc2query_serializeOpDescribeImageAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13920,7 +14304,7 @@ func (m *awsEc2query_serializeOpDescribeInstances) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstancesInput) + input, ok := in.Parameters.(*DescribeImageAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -13945,10 +14329,10 @@ func (m *awsEc2query_serializeOpDescribeInstances) HandleSerialize(ctx context.C bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstances") + body.Key("Action").String("DescribeImageAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeImageAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -13969,14 +14353,14 @@ func (m *awsEc2query_serializeOpDescribeInstances) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceStatus struct { +type awsEc2query_serializeOpDescribeImages struct { } -func (*awsEc2query_serializeOpDescribeInstanceStatus) ID() string { +func (*awsEc2query_serializeOpDescribeImages) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeImages) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13984,7 +14368,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceStatus) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceStatusInput) + input, ok := in.Parameters.(*DescribeImagesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14009,10 +14393,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceStatus) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceStatus") + body.Key("Action").String("DescribeImages") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeImagesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14033,14 +14417,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceStatus) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceTypeOfferings struct { +type awsEc2query_serializeOpDescribeImportImageTasks struct { } -func (*awsEc2query_serializeOpDescribeInstanceTypeOfferings) ID() string { +func (*awsEc2query_serializeOpDescribeImportImageTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceTypeOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeImportImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14048,7 +14432,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceTypeOfferings) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceTypeOfferingsInput) + input, ok := in.Parameters.(*DescribeImportImageTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14073,10 +14457,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceTypeOfferings) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceTypeOfferings") + body.Key("Action").String("DescribeImportImageTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceTypeOfferingsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeImportImageTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14097,14 +14481,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceTypeOfferings) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInstanceTypes struct { +type awsEc2query_serializeOpDescribeImportSnapshotTasks struct { } -func (*awsEc2query_serializeOpDescribeInstanceTypes) ID() string { +func (*awsEc2query_serializeOpDescribeImportSnapshotTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInstanceTypes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeImportSnapshotTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14112,7 +14496,7 @@ func (m *awsEc2query_serializeOpDescribeInstanceTypes) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInstanceTypesInput) + input, ok := in.Parameters.(*DescribeImportSnapshotTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14137,10 +14521,10 @@ func (m *awsEc2query_serializeOpDescribeInstanceTypes) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInstanceTypes") + body.Key("Action").String("DescribeImportSnapshotTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInstanceTypesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeImportSnapshotTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14161,14 +14545,14 @@ func (m *awsEc2query_serializeOpDescribeInstanceTypes) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeInternetGateways struct { +type awsEc2query_serializeOpDescribeInstanceAttribute struct { } -func (*awsEc2query_serializeOpDescribeInternetGateways) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeInternetGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14176,7 +14560,7 @@ func (m *awsEc2query_serializeOpDescribeInternetGateways) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeInternetGatewaysInput) + input, ok := in.Parameters.(*DescribeInstanceAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14201,10 +14585,10 @@ func (m *awsEc2query_serializeOpDescribeInternetGateways) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeInternetGateways") + body.Key("Action").String("DescribeInstanceAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14225,14 +14609,14 @@ func (m *awsEc2query_serializeOpDescribeInternetGateways) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeIpv6Pools struct { +type awsEc2query_serializeOpDescribeInstanceCreditSpecifications struct { } -func (*awsEc2query_serializeOpDescribeIpv6Pools) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceCreditSpecifications) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeIpv6Pools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceCreditSpecifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14240,7 +14624,7 @@ func (m *awsEc2query_serializeOpDescribeIpv6Pools) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeIpv6PoolsInput) + input, ok := in.Parameters.(*DescribeInstanceCreditSpecificationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14265,10 +14649,10 @@ func (m *awsEc2query_serializeOpDescribeIpv6Pools) HandleSerialize(ctx context.C bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeIpv6Pools") + body.Key("Action").String("DescribeInstanceCreditSpecifications") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceCreditSpecificationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14289,14 +14673,14 @@ func (m *awsEc2query_serializeOpDescribeIpv6Pools) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeKeyPairs struct { +type awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes struct { } -func (*awsEc2query_serializeOpDescribeKeyPairs) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeKeyPairs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14304,7 +14688,7 @@ func (m *awsEc2query_serializeOpDescribeKeyPairs) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeKeyPairsInput) + input, ok := in.Parameters.(*DescribeInstanceEventNotificationAttributesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14329,10 +14713,10 @@ func (m *awsEc2query_serializeOpDescribeKeyPairs) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeKeyPairs") + body.Key("Action").String("DescribeInstanceEventNotificationAttributes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeKeyPairsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceEventNotificationAttributesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14353,14 +14737,14 @@ func (m *awsEc2query_serializeOpDescribeKeyPairs) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLaunchTemplates struct { +type awsEc2query_serializeOpDescribeInstanceEventWindows struct { } -func (*awsEc2query_serializeOpDescribeLaunchTemplates) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceEventWindows) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLaunchTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceEventWindows) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14368,7 +14752,7 @@ func (m *awsEc2query_serializeOpDescribeLaunchTemplates) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLaunchTemplatesInput) + input, ok := in.Parameters.(*DescribeInstanceEventWindowsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14393,10 +14777,10 @@ func (m *awsEc2query_serializeOpDescribeLaunchTemplates) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLaunchTemplates") + body.Key("Action").String("DescribeInstanceEventWindows") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLaunchTemplatesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceEventWindowsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14417,14 +14801,14 @@ func (m *awsEc2query_serializeOpDescribeLaunchTemplates) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLaunchTemplateVersions struct { +type awsEc2query_serializeOpDescribeInstances struct { } -func (*awsEc2query_serializeOpDescribeLaunchTemplateVersions) ID() string { +func (*awsEc2query_serializeOpDescribeInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLaunchTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14432,7 +14816,7 @@ func (m *awsEc2query_serializeOpDescribeLaunchTemplateVersions) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLaunchTemplateVersionsInput) + input, ok := in.Parameters.(*DescribeInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14457,10 +14841,10 @@ func (m *awsEc2query_serializeOpDescribeLaunchTemplateVersions) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLaunchTemplateVersions") + body.Key("Action").String("DescribeInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLaunchTemplateVersionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14481,14 +14865,14 @@ func (m *awsEc2query_serializeOpDescribeLaunchTemplateVersions) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLocalGatewayRouteTables struct { +type awsEc2query_serializeOpDescribeInstanceStatus struct { } -func (*awsEc2query_serializeOpDescribeLocalGatewayRouteTables) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceStatus) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14496,7 +14880,7 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTables) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLocalGatewayRouteTablesInput) + input, ok := in.Parameters.(*DescribeInstanceStatusInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14521,10 +14905,10 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTables) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLocalGatewayRouteTables") + body.Key("Action").String("DescribeInstanceStatus") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTablesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14545,14 +14929,14 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTables) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations struct { +type awsEc2query_serializeOpDescribeInstanceTypeOfferings struct { } -func (*awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceTypeOfferings) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceTypeOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14560,7 +14944,7 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGr return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) + input, ok := in.Parameters.(*DescribeInstanceTypeOfferingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14585,10 +14969,10 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGr bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations") + body.Key("Action").String("DescribeInstanceTypeOfferings") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceTypeOfferingsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14609,14 +14993,14 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGr return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations struct { +type awsEc2query_serializeOpDescribeInstanceTypes struct { } -func (*awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) ID() string { +func (*awsEc2query_serializeOpDescribeInstanceTypes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInstanceTypes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14624,7 +15008,7 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) H return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLocalGatewayRouteTableVpcAssociationsInput) + input, ok := in.Parameters.(*DescribeInstanceTypesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14649,10 +15033,10 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) H bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLocalGatewayRouteTableVpcAssociations") + body.Key("Action").String("DescribeInstanceTypes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInstanceTypesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14673,14 +15057,14 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) H return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLocalGateways struct { +type awsEc2query_serializeOpDescribeInternetGateways struct { } -func (*awsEc2query_serializeOpDescribeLocalGateways) ID() string { +func (*awsEc2query_serializeOpDescribeInternetGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLocalGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeInternetGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14688,7 +15072,7 @@ func (m *awsEc2query_serializeOpDescribeLocalGateways) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLocalGatewaysInput) + input, ok := in.Parameters.(*DescribeInternetGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14713,10 +15097,10 @@ func (m *awsEc2query_serializeOpDescribeLocalGateways) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLocalGateways") + body.Key("Action").String("DescribeInternetGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLocalGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14737,14 +15121,14 @@ func (m *awsEc2query_serializeOpDescribeLocalGateways) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups struct { +type awsEc2query_serializeOpDescribeIpamPools struct { } -func (*awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) ID() string { +func (*awsEc2query_serializeOpDescribeIpamPools) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIpamPools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14752,7 +15136,7 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) Hand return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLocalGatewayVirtualInterfaceGroupsInput) + input, ok := in.Parameters.(*DescribeIpamPoolsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14777,10 +15161,10 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) Hand bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLocalGatewayVirtualInterfaceGroups") + body.Key("Action").String("DescribeIpamPools") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIpamPoolsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14801,14 +15185,14 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces struct { +type awsEc2query_serializeOpDescribeIpams struct { } -func (*awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) ID() string { +func (*awsEc2query_serializeOpDescribeIpams) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIpams) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14816,7 +15200,7 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeLocalGatewayVirtualInterfacesInput) + input, ok := in.Parameters.(*DescribeIpamsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14841,10 +15225,10 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeLocalGatewayVirtualInterfaces") + body.Key("Action").String("DescribeIpams") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfacesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIpamsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14865,14 +15249,14 @@ func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeManagedPrefixLists struct { +type awsEc2query_serializeOpDescribeIpamScopes struct { } -func (*awsEc2query_serializeOpDescribeManagedPrefixLists) ID() string { +func (*awsEc2query_serializeOpDescribeIpamScopes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeManagedPrefixLists) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIpamScopes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14880,7 +15264,7 @@ func (m *awsEc2query_serializeOpDescribeManagedPrefixLists) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeManagedPrefixListsInput) + input, ok := in.Parameters.(*DescribeIpamScopesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14905,10 +15289,10 @@ func (m *awsEc2query_serializeOpDescribeManagedPrefixLists) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeManagedPrefixLists") + body.Key("Action").String("DescribeIpamScopes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeManagedPrefixListsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIpamScopesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14929,14 +15313,14 @@ func (m *awsEc2query_serializeOpDescribeManagedPrefixLists) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeMovingAddresses struct { +type awsEc2query_serializeOpDescribeIpv6Pools struct { } -func (*awsEc2query_serializeOpDescribeMovingAddresses) ID() string { +func (*awsEc2query_serializeOpDescribeIpv6Pools) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeMovingAddresses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeIpv6Pools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -14944,7 +15328,7 @@ func (m *awsEc2query_serializeOpDescribeMovingAddresses) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeMovingAddressesInput) + input, ok := in.Parameters.(*DescribeIpv6PoolsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -14969,10 +15353,10 @@ func (m *awsEc2query_serializeOpDescribeMovingAddresses) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeMovingAddresses") + body.Key("Action").String("DescribeIpv6Pools") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeMovingAddressesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -14993,14 +15377,14 @@ func (m *awsEc2query_serializeOpDescribeMovingAddresses) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNatGateways struct { +type awsEc2query_serializeOpDescribeKeyPairs struct { } -func (*awsEc2query_serializeOpDescribeNatGateways) ID() string { +func (*awsEc2query_serializeOpDescribeKeyPairs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNatGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeKeyPairs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15008,7 +15392,7 @@ func (m *awsEc2query_serializeOpDescribeNatGateways) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNatGatewaysInput) + input, ok := in.Parameters.(*DescribeKeyPairsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15033,10 +15417,10 @@ func (m *awsEc2query_serializeOpDescribeNatGateways) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNatGateways") + body.Key("Action").String("DescribeKeyPairs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNatGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeKeyPairsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15057,14 +15441,14 @@ func (m *awsEc2query_serializeOpDescribeNatGateways) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNetworkAcls struct { +type awsEc2query_serializeOpDescribeLaunchTemplates struct { } -func (*awsEc2query_serializeOpDescribeNetworkAcls) ID() string { +func (*awsEc2query_serializeOpDescribeLaunchTemplates) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNetworkAcls) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLaunchTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15072,7 +15456,7 @@ func (m *awsEc2query_serializeOpDescribeNetworkAcls) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNetworkAclsInput) + input, ok := in.Parameters.(*DescribeLaunchTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15097,10 +15481,10 @@ func (m *awsEc2query_serializeOpDescribeNetworkAcls) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNetworkAcls") + body.Key("Action").String("DescribeLaunchTemplates") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLaunchTemplatesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15121,14 +15505,14 @@ func (m *awsEc2query_serializeOpDescribeNetworkAcls) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNetworkInsightsAnalyses struct { +type awsEc2query_serializeOpDescribeLaunchTemplateVersions struct { } -func (*awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) ID() string { +func (*awsEc2query_serializeOpDescribeLaunchTemplateVersions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLaunchTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15136,7 +15520,7 @@ func (m *awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNetworkInsightsAnalysesInput) + input, ok := in.Parameters.(*DescribeLaunchTemplateVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15161,10 +15545,10 @@ func (m *awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNetworkInsightsAnalyses") + body.Key("Action").String("DescribeLaunchTemplateVersions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNetworkInsightsAnalysesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLaunchTemplateVersionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15185,14 +15569,14 @@ func (m *awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNetworkInsightsPaths struct { +type awsEc2query_serializeOpDescribeLocalGatewayRouteTables struct { } -func (*awsEc2query_serializeOpDescribeNetworkInsightsPaths) ID() string { +func (*awsEc2query_serializeOpDescribeLocalGatewayRouteTables) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNetworkInsightsPaths) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15200,7 +15584,7 @@ func (m *awsEc2query_serializeOpDescribeNetworkInsightsPaths) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNetworkInsightsPathsInput) + input, ok := in.Parameters.(*DescribeLocalGatewayRouteTablesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15225,10 +15609,10 @@ func (m *awsEc2query_serializeOpDescribeNetworkInsightsPaths) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNetworkInsightsPaths") + body.Key("Action").String("DescribeLocalGatewayRouteTables") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNetworkInsightsPathsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTablesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15249,14 +15633,14 @@ func (m *awsEc2query_serializeOpDescribeNetworkInsightsPaths) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNetworkInterfaceAttribute struct { +type awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations struct { } -func (*awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15264,7 +15648,7 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNetworkInterfaceAttributeInput) + input, ok := in.Parameters.(*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15289,10 +15673,10 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNetworkInterfaceAttribute") + body.Key("Action").String("DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNetworkInterfaceAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15313,14 +15697,14 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNetworkInterfacePermissions struct { +type awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations struct { } -func (*awsEc2query_serializeOpDescribeNetworkInterfacePermissions) ID() string { +func (*awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNetworkInterfacePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15328,7 +15712,7 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfacePermissions) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNetworkInterfacePermissionsInput) + input, ok := in.Parameters.(*DescribeLocalGatewayRouteTableVpcAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15353,10 +15737,10 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfacePermissions) HandleSeria bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNetworkInterfacePermissions") + body.Key("Action").String("DescribeLocalGatewayRouteTableVpcAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNetworkInterfacePermissionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15377,14 +15761,14 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfacePermissions) HandleSeria return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeNetworkInterfaces struct { +type awsEc2query_serializeOpDescribeLocalGateways struct { } -func (*awsEc2query_serializeOpDescribeNetworkInterfaces) ID() string { +func (*awsEc2query_serializeOpDescribeLocalGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeNetworkInterfaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLocalGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15392,7 +15776,7 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfaces) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeNetworkInterfacesInput) + input, ok := in.Parameters.(*DescribeLocalGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15417,10 +15801,10 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfaces) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeNetworkInterfaces") + body.Key("Action").String("DescribeLocalGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeNetworkInterfacesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLocalGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15441,14 +15825,14 @@ func (m *awsEc2query_serializeOpDescribeNetworkInterfaces) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribePlacementGroups struct { +type awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups struct { } -func (*awsEc2query_serializeOpDescribePlacementGroups) ID() string { +func (*awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribePlacementGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15456,7 +15840,7 @@ func (m *awsEc2query_serializeOpDescribePlacementGroups) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribePlacementGroupsInput) + input, ok := in.Parameters.(*DescribeLocalGatewayVirtualInterfaceGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15481,10 +15865,10 @@ func (m *awsEc2query_serializeOpDescribePlacementGroups) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribePlacementGroups") + body.Key("Action").String("DescribeLocalGatewayVirtualInterfaceGroups") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribePlacementGroupsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15505,14 +15889,14 @@ func (m *awsEc2query_serializeOpDescribePlacementGroups) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribePrefixLists struct { +type awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces struct { } -func (*awsEc2query_serializeOpDescribePrefixLists) ID() string { +func (*awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribePrefixLists) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15520,7 +15904,7 @@ func (m *awsEc2query_serializeOpDescribePrefixLists) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribePrefixListsInput) + input, ok := in.Parameters.(*DescribeLocalGatewayVirtualInterfacesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15545,10 +15929,10 @@ func (m *awsEc2query_serializeOpDescribePrefixLists) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribePrefixLists") + body.Key("Action").String("DescribeLocalGatewayVirtualInterfaces") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribePrefixListsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfacesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15569,14 +15953,14 @@ func (m *awsEc2query_serializeOpDescribePrefixLists) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribePrincipalIdFormat struct { +type awsEc2query_serializeOpDescribeManagedPrefixLists struct { } -func (*awsEc2query_serializeOpDescribePrincipalIdFormat) ID() string { +func (*awsEc2query_serializeOpDescribeManagedPrefixLists) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribePrincipalIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeManagedPrefixLists) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15584,7 +15968,7 @@ func (m *awsEc2query_serializeOpDescribePrincipalIdFormat) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribePrincipalIdFormatInput) + input, ok := in.Parameters.(*DescribeManagedPrefixListsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15609,10 +15993,10 @@ func (m *awsEc2query_serializeOpDescribePrincipalIdFormat) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribePrincipalIdFormat") + body.Key("Action").String("DescribeManagedPrefixLists") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribePrincipalIdFormatInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeManagedPrefixListsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15633,14 +16017,14 @@ func (m *awsEc2query_serializeOpDescribePrincipalIdFormat) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribePublicIpv4Pools struct { +type awsEc2query_serializeOpDescribeMovingAddresses struct { } -func (*awsEc2query_serializeOpDescribePublicIpv4Pools) ID() string { +func (*awsEc2query_serializeOpDescribeMovingAddresses) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribePublicIpv4Pools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeMovingAddresses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15648,7 +16032,7 @@ func (m *awsEc2query_serializeOpDescribePublicIpv4Pools) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribePublicIpv4PoolsInput) + input, ok := in.Parameters.(*DescribeMovingAddressesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15673,10 +16057,10 @@ func (m *awsEc2query_serializeOpDescribePublicIpv4Pools) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribePublicIpv4Pools") + body.Key("Action").String("DescribeMovingAddresses") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribePublicIpv4PoolsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeMovingAddressesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15697,14 +16081,14 @@ func (m *awsEc2query_serializeOpDescribePublicIpv4Pools) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeRegions struct { +type awsEc2query_serializeOpDescribeNatGateways struct { } -func (*awsEc2query_serializeOpDescribeRegions) ID() string { +func (*awsEc2query_serializeOpDescribeNatGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeRegions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNatGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15712,7 +16096,7 @@ func (m *awsEc2query_serializeOpDescribeRegions) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeRegionsInput) + input, ok := in.Parameters.(*DescribeNatGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15737,10 +16121,10 @@ func (m *awsEc2query_serializeOpDescribeRegions) HandleSerialize(ctx context.Con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeRegions") + body.Key("Action").String("DescribeNatGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeRegionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNatGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15761,14 +16145,14 @@ func (m *awsEc2query_serializeOpDescribeRegions) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeReplaceRootVolumeTasks struct { +type awsEc2query_serializeOpDescribeNetworkAcls struct { } -func (*awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkAcls) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkAcls) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15776,7 +16160,7 @@ func (m *awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeReplaceRootVolumeTasksInput) + input, ok := in.Parameters.(*DescribeNetworkAclsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15801,10 +16185,10 @@ func (m *awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeReplaceRootVolumeTasks") + body.Key("Action").String("DescribeNetworkAcls") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeReplaceRootVolumeTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15825,14 +16209,14 @@ func (m *awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeReservedInstances struct { +type awsEc2query_serializeOpDescribeNetworkInsightsAccessScopeAnalyses struct { } -func (*awsEc2query_serializeOpDescribeReservedInstances) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInsightsAccessScopeAnalyses) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeReservedInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInsightsAccessScopeAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15840,7 +16224,7 @@ func (m *awsEc2query_serializeOpDescribeReservedInstances) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeReservedInstancesInput) + input, ok := in.Parameters.(*DescribeNetworkInsightsAccessScopeAnalysesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15865,10 +16249,10 @@ func (m *awsEc2query_serializeOpDescribeReservedInstances) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeReservedInstances") + body.Key("Action").String("DescribeNetworkInsightsAccessScopeAnalyses") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInsightsAccessScopeAnalysesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15889,14 +16273,14 @@ func (m *awsEc2query_serializeOpDescribeReservedInstances) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeReservedInstancesListings struct { +type awsEc2query_serializeOpDescribeNetworkInsightsAccessScopes struct { } -func (*awsEc2query_serializeOpDescribeReservedInstancesListings) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInsightsAccessScopes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeReservedInstancesListings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInsightsAccessScopes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15904,7 +16288,7 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesListings) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeReservedInstancesListingsInput) + input, ok := in.Parameters.(*DescribeNetworkInsightsAccessScopesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15929,10 +16313,10 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesListings) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeReservedInstancesListings") + body.Key("Action").String("DescribeNetworkInsightsAccessScopes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesListingsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInsightsAccessScopesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -15953,14 +16337,14 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesListings) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeReservedInstancesModifications struct { +type awsEc2query_serializeOpDescribeNetworkInsightsAnalyses struct { } -func (*awsEc2query_serializeOpDescribeReservedInstancesModifications) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeReservedInstancesModifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInsightsAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -15968,7 +16352,7 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesModifications) HandleSe return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeReservedInstancesModificationsInput) + input, ok := in.Parameters.(*DescribeNetworkInsightsAnalysesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -15993,10 +16377,10 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesModifications) HandleSe bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeReservedInstancesModifications") + body.Key("Action").String("DescribeNetworkInsightsAnalyses") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesModificationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInsightsAnalysesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16017,14 +16401,14 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesModifications) HandleSe return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeReservedInstancesOfferings struct { +type awsEc2query_serializeOpDescribeNetworkInsightsPaths struct { } -func (*awsEc2query_serializeOpDescribeReservedInstancesOfferings) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInsightsPaths) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeReservedInstancesOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInsightsPaths) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16032,7 +16416,7 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesOfferings) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeReservedInstancesOfferingsInput) + input, ok := in.Parameters.(*DescribeNetworkInsightsPathsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16057,10 +16441,10 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesOfferings) HandleSerial bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeReservedInstancesOfferings") + body.Key("Action").String("DescribeNetworkInsightsPaths") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInsightsPathsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16081,14 +16465,14 @@ func (m *awsEc2query_serializeOpDescribeReservedInstancesOfferings) HandleSerial return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeRouteTables struct { +type awsEc2query_serializeOpDescribeNetworkInterfaceAttribute struct { } -func (*awsEc2query_serializeOpDescribeRouteTables) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeRouteTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInterfaceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16096,7 +16480,7 @@ func (m *awsEc2query_serializeOpDescribeRouteTables) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeRouteTablesInput) + input, ok := in.Parameters.(*DescribeNetworkInterfaceAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16121,10 +16505,10 @@ func (m *awsEc2query_serializeOpDescribeRouteTables) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeRouteTables") + body.Key("Action").String("DescribeNetworkInterfaceAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeRouteTablesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInterfaceAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16145,14 +16529,14 @@ func (m *awsEc2query_serializeOpDescribeRouteTables) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeScheduledInstanceAvailability struct { +type awsEc2query_serializeOpDescribeNetworkInterfacePermissions struct { } -func (*awsEc2query_serializeOpDescribeScheduledInstanceAvailability) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInterfacePermissions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeScheduledInstanceAvailability) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInterfacePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16160,7 +16544,7 @@ func (m *awsEc2query_serializeOpDescribeScheduledInstanceAvailability) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeScheduledInstanceAvailabilityInput) + input, ok := in.Parameters.(*DescribeNetworkInterfacePermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16185,10 +16569,10 @@ func (m *awsEc2query_serializeOpDescribeScheduledInstanceAvailability) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeScheduledInstanceAvailability") + body.Key("Action").String("DescribeNetworkInterfacePermissions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeScheduledInstanceAvailabilityInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInterfacePermissionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16209,14 +16593,14 @@ func (m *awsEc2query_serializeOpDescribeScheduledInstanceAvailability) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeScheduledInstances struct { +type awsEc2query_serializeOpDescribeNetworkInterfaces struct { } -func (*awsEc2query_serializeOpDescribeScheduledInstances) ID() string { +func (*awsEc2query_serializeOpDescribeNetworkInterfaces) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeScheduledInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeNetworkInterfaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16224,7 +16608,7 @@ func (m *awsEc2query_serializeOpDescribeScheduledInstances) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeScheduledInstancesInput) + input, ok := in.Parameters.(*DescribeNetworkInterfacesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16249,10 +16633,10 @@ func (m *awsEc2query_serializeOpDescribeScheduledInstances) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeScheduledInstances") + body.Key("Action").String("DescribeNetworkInterfaces") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeScheduledInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeNetworkInterfacesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16273,14 +16657,14 @@ func (m *awsEc2query_serializeOpDescribeScheduledInstances) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSecurityGroupReferences struct { +type awsEc2query_serializeOpDescribePlacementGroups struct { } -func (*awsEc2query_serializeOpDescribeSecurityGroupReferences) ID() string { +func (*awsEc2query_serializeOpDescribePlacementGroups) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSecurityGroupReferences) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribePlacementGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16288,7 +16672,7 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroupReferences) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSecurityGroupReferencesInput) + input, ok := in.Parameters.(*DescribePlacementGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16313,10 +16697,10 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroupReferences) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSecurityGroupReferences") + body.Key("Action").String("DescribePlacementGroups") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSecurityGroupReferencesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribePlacementGroupsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16337,14 +16721,14 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroupReferences) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSecurityGroupRules struct { +type awsEc2query_serializeOpDescribePrefixLists struct { } -func (*awsEc2query_serializeOpDescribeSecurityGroupRules) ID() string { +func (*awsEc2query_serializeOpDescribePrefixLists) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSecurityGroupRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribePrefixLists) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16352,7 +16736,7 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroupRules) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSecurityGroupRulesInput) + input, ok := in.Parameters.(*DescribePrefixListsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16377,10 +16761,10 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroupRules) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSecurityGroupRules") + body.Key("Action").String("DescribePrefixLists") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSecurityGroupRulesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribePrefixListsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16401,14 +16785,14 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroupRules) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSecurityGroups struct { +type awsEc2query_serializeOpDescribePrincipalIdFormat struct { } -func (*awsEc2query_serializeOpDescribeSecurityGroups) ID() string { +func (*awsEc2query_serializeOpDescribePrincipalIdFormat) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSecurityGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribePrincipalIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16416,7 +16800,7 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroups) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSecurityGroupsInput) + input, ok := in.Parameters.(*DescribePrincipalIdFormatInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16441,10 +16825,10 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroups) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSecurityGroups") + body.Key("Action").String("DescribePrincipalIdFormat") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSecurityGroupsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribePrincipalIdFormatInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16465,14 +16849,14 @@ func (m *awsEc2query_serializeOpDescribeSecurityGroups) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSnapshotAttribute struct { +type awsEc2query_serializeOpDescribePublicIpv4Pools struct { } -func (*awsEc2query_serializeOpDescribeSnapshotAttribute) ID() string { +func (*awsEc2query_serializeOpDescribePublicIpv4Pools) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSnapshotAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribePublicIpv4Pools) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16480,7 +16864,7 @@ func (m *awsEc2query_serializeOpDescribeSnapshotAttribute) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSnapshotAttributeInput) + input, ok := in.Parameters.(*DescribePublicIpv4PoolsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16505,10 +16889,10 @@ func (m *awsEc2query_serializeOpDescribeSnapshotAttribute) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSnapshotAttribute") + body.Key("Action").String("DescribePublicIpv4Pools") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSnapshotAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribePublicIpv4PoolsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16529,14 +16913,14 @@ func (m *awsEc2query_serializeOpDescribeSnapshotAttribute) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSnapshots struct { +type awsEc2query_serializeOpDescribeRegions struct { } -func (*awsEc2query_serializeOpDescribeSnapshots) ID() string { +func (*awsEc2query_serializeOpDescribeRegions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeRegions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16544,7 +16928,7 @@ func (m *awsEc2query_serializeOpDescribeSnapshots) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSnapshotsInput) + input, ok := in.Parameters.(*DescribeRegionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16569,10 +16953,10 @@ func (m *awsEc2query_serializeOpDescribeSnapshots) HandleSerialize(ctx context.C bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSnapshots") + body.Key("Action").String("DescribeRegions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSnapshotsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeRegionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16593,14 +16977,14 @@ func (m *awsEc2query_serializeOpDescribeSnapshots) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSnapshotTierStatus struct { +type awsEc2query_serializeOpDescribeReplaceRootVolumeTasks struct { } -func (*awsEc2query_serializeOpDescribeSnapshotTierStatus) ID() string { +func (*awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSnapshotTierStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16608,7 +16992,7 @@ func (m *awsEc2query_serializeOpDescribeSnapshotTierStatus) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSnapshotTierStatusInput) + input, ok := in.Parameters.(*DescribeReplaceRootVolumeTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16633,10 +17017,10 @@ func (m *awsEc2query_serializeOpDescribeSnapshotTierStatus) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSnapshotTierStatus") + body.Key("Action").String("DescribeReplaceRootVolumeTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSnapshotTierStatusInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeReplaceRootVolumeTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16657,14 +17041,14 @@ func (m *awsEc2query_serializeOpDescribeSnapshotTierStatus) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSpotDatafeedSubscription struct { +type awsEc2query_serializeOpDescribeReservedInstances struct { } -func (*awsEc2query_serializeOpDescribeSpotDatafeedSubscription) ID() string { +func (*awsEc2query_serializeOpDescribeReservedInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSpotDatafeedSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeReservedInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16672,7 +17056,7 @@ func (m *awsEc2query_serializeOpDescribeSpotDatafeedSubscription) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSpotDatafeedSubscriptionInput) + input, ok := in.Parameters.(*DescribeReservedInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16697,10 +17081,10 @@ func (m *awsEc2query_serializeOpDescribeSpotDatafeedSubscription) HandleSerializ bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSpotDatafeedSubscription") + body.Key("Action").String("DescribeReservedInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSpotDatafeedSubscriptionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16721,14 +17105,14 @@ func (m *awsEc2query_serializeOpDescribeSpotDatafeedSubscription) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSpotFleetInstances struct { +type awsEc2query_serializeOpDescribeReservedInstancesListings struct { } -func (*awsEc2query_serializeOpDescribeSpotFleetInstances) ID() string { +func (*awsEc2query_serializeOpDescribeReservedInstancesListings) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSpotFleetInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeReservedInstancesListings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16736,7 +17120,7 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetInstances) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSpotFleetInstancesInput) + input, ok := in.Parameters.(*DescribeReservedInstancesListingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16761,10 +17145,10 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetInstances) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSpotFleetInstances") + body.Key("Action").String("DescribeReservedInstancesListings") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSpotFleetInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesListingsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16785,14 +17169,14 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetInstances) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSpotFleetRequestHistory struct { +type awsEc2query_serializeOpDescribeReservedInstancesModifications struct { } -func (*awsEc2query_serializeOpDescribeSpotFleetRequestHistory) ID() string { +func (*awsEc2query_serializeOpDescribeReservedInstancesModifications) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSpotFleetRequestHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeReservedInstancesModifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16800,7 +17184,7 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetRequestHistory) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSpotFleetRequestHistoryInput) + input, ok := in.Parameters.(*DescribeReservedInstancesModificationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16825,10 +17209,10 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetRequestHistory) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSpotFleetRequestHistory") + body.Key("Action").String("DescribeReservedInstancesModifications") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSpotFleetRequestHistoryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesModificationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16849,14 +17233,14 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetRequestHistory) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSpotFleetRequests struct { +type awsEc2query_serializeOpDescribeReservedInstancesOfferings struct { } -func (*awsEc2query_serializeOpDescribeSpotFleetRequests) ID() string { +func (*awsEc2query_serializeOpDescribeReservedInstancesOfferings) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSpotFleetRequests) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeReservedInstancesOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16864,7 +17248,7 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetRequests) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSpotFleetRequestsInput) + input, ok := in.Parameters.(*DescribeReservedInstancesOfferingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16889,10 +17273,10 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetRequests) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSpotFleetRequests") + body.Key("Action").String("DescribeReservedInstancesOfferings") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSpotFleetRequestsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16913,14 +17297,14 @@ func (m *awsEc2query_serializeOpDescribeSpotFleetRequests) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSpotInstanceRequests struct { +type awsEc2query_serializeOpDescribeRouteTables struct { } -func (*awsEc2query_serializeOpDescribeSpotInstanceRequests) ID() string { +func (*awsEc2query_serializeOpDescribeRouteTables) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSpotInstanceRequests) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeRouteTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16928,7 +17312,7 @@ func (m *awsEc2query_serializeOpDescribeSpotInstanceRequests) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSpotInstanceRequestsInput) + input, ok := in.Parameters.(*DescribeRouteTablesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -16953,10 +17337,10 @@ func (m *awsEc2query_serializeOpDescribeSpotInstanceRequests) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSpotInstanceRequests") + body.Key("Action").String("DescribeRouteTables") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSpotInstanceRequestsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeRouteTablesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -16977,14 +17361,14 @@ func (m *awsEc2query_serializeOpDescribeSpotInstanceRequests) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSpotPriceHistory struct { +type awsEc2query_serializeOpDescribeScheduledInstanceAvailability struct { } -func (*awsEc2query_serializeOpDescribeSpotPriceHistory) ID() string { +func (*awsEc2query_serializeOpDescribeScheduledInstanceAvailability) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSpotPriceHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeScheduledInstanceAvailability) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -16992,7 +17376,7 @@ func (m *awsEc2query_serializeOpDescribeSpotPriceHistory) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSpotPriceHistoryInput) + input, ok := in.Parameters.(*DescribeScheduledInstanceAvailabilityInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17017,10 +17401,10 @@ func (m *awsEc2query_serializeOpDescribeSpotPriceHistory) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSpotPriceHistory") + body.Key("Action").String("DescribeScheduledInstanceAvailability") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSpotPriceHistoryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeScheduledInstanceAvailabilityInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17041,14 +17425,14 @@ func (m *awsEc2query_serializeOpDescribeSpotPriceHistory) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeStaleSecurityGroups struct { +type awsEc2query_serializeOpDescribeScheduledInstances struct { } -func (*awsEc2query_serializeOpDescribeStaleSecurityGroups) ID() string { +func (*awsEc2query_serializeOpDescribeScheduledInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeStaleSecurityGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeScheduledInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17056,7 +17440,7 @@ func (m *awsEc2query_serializeOpDescribeStaleSecurityGroups) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeStaleSecurityGroupsInput) + input, ok := in.Parameters.(*DescribeScheduledInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17081,10 +17465,10 @@ func (m *awsEc2query_serializeOpDescribeStaleSecurityGroups) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeStaleSecurityGroups") + body.Key("Action").String("DescribeScheduledInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeStaleSecurityGroupsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeScheduledInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17105,14 +17489,14 @@ func (m *awsEc2query_serializeOpDescribeStaleSecurityGroups) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeStoreImageTasks struct { +type awsEc2query_serializeOpDescribeSecurityGroupReferences struct { } -func (*awsEc2query_serializeOpDescribeStoreImageTasks) ID() string { +func (*awsEc2query_serializeOpDescribeSecurityGroupReferences) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeStoreImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSecurityGroupReferences) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17120,7 +17504,7 @@ func (m *awsEc2query_serializeOpDescribeStoreImageTasks) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeStoreImageTasksInput) + input, ok := in.Parameters.(*DescribeSecurityGroupReferencesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17145,10 +17529,10 @@ func (m *awsEc2query_serializeOpDescribeStoreImageTasks) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeStoreImageTasks") + body.Key("Action").String("DescribeSecurityGroupReferences") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeStoreImageTasksInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSecurityGroupReferencesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17169,14 +17553,14 @@ func (m *awsEc2query_serializeOpDescribeStoreImageTasks) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeSubnets struct { +type awsEc2query_serializeOpDescribeSecurityGroupRules struct { } -func (*awsEc2query_serializeOpDescribeSubnets) ID() string { +func (*awsEc2query_serializeOpDescribeSecurityGroupRules) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeSubnets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSecurityGroupRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17184,7 +17568,7 @@ func (m *awsEc2query_serializeOpDescribeSubnets) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeSubnetsInput) + input, ok := in.Parameters.(*DescribeSecurityGroupRulesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17209,10 +17593,10 @@ func (m *awsEc2query_serializeOpDescribeSubnets) HandleSerialize(ctx context.Con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeSubnets") + body.Key("Action").String("DescribeSecurityGroupRules") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeSubnetsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSecurityGroupRulesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17233,14 +17617,14 @@ func (m *awsEc2query_serializeOpDescribeSubnets) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTags struct { +type awsEc2query_serializeOpDescribeSecurityGroups struct { } -func (*awsEc2query_serializeOpDescribeTags) ID() string { +func (*awsEc2query_serializeOpDescribeSecurityGroups) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSecurityGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17248,7 +17632,7 @@ func (m *awsEc2query_serializeOpDescribeTags) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTagsInput) + input, ok := in.Parameters.(*DescribeSecurityGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17273,10 +17657,10 @@ func (m *awsEc2query_serializeOpDescribeTags) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTags") + body.Key("Action").String("DescribeSecurityGroups") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTagsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSecurityGroupsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17297,14 +17681,14 @@ func (m *awsEc2query_serializeOpDescribeTags) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTrafficMirrorFilters struct { +type awsEc2query_serializeOpDescribeSnapshotAttribute struct { } -func (*awsEc2query_serializeOpDescribeTrafficMirrorFilters) ID() string { +func (*awsEc2query_serializeOpDescribeSnapshotAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTrafficMirrorFilters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSnapshotAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17312,7 +17696,7 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorFilters) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTrafficMirrorFiltersInput) + input, ok := in.Parameters.(*DescribeSnapshotAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17337,10 +17721,10 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorFilters) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrafficMirrorFilters") + body.Key("Action").String("DescribeSnapshotAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTrafficMirrorFiltersInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSnapshotAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17361,14 +17745,14 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorFilters) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTrafficMirrorSessions struct { +type awsEc2query_serializeOpDescribeSnapshots struct { } -func (*awsEc2query_serializeOpDescribeTrafficMirrorSessions) ID() string { +func (*awsEc2query_serializeOpDescribeSnapshots) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTrafficMirrorSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17376,7 +17760,7 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorSessions) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTrafficMirrorSessionsInput) + input, ok := in.Parameters.(*DescribeSnapshotsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17401,10 +17785,10 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorSessions) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrafficMirrorSessions") + body.Key("Action").String("DescribeSnapshots") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTrafficMirrorSessionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSnapshotsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17425,14 +17809,14 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorSessions) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTrafficMirrorTargets struct { +type awsEc2query_serializeOpDescribeSnapshotTierStatus struct { } -func (*awsEc2query_serializeOpDescribeTrafficMirrorTargets) ID() string { +func (*awsEc2query_serializeOpDescribeSnapshotTierStatus) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTrafficMirrorTargets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSnapshotTierStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17440,7 +17824,7 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorTargets) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTrafficMirrorTargetsInput) + input, ok := in.Parameters.(*DescribeSnapshotTierStatusInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17465,10 +17849,10 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorTargets) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrafficMirrorTargets") + body.Key("Action").String("DescribeSnapshotTierStatus") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTrafficMirrorTargetsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSnapshotTierStatusInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17489,14 +17873,14 @@ func (m *awsEc2query_serializeOpDescribeTrafficMirrorTargets) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayAttachments struct { +type awsEc2query_serializeOpDescribeSpotDatafeedSubscription struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayAttachments) ID() string { +func (*awsEc2query_serializeOpDescribeSpotDatafeedSubscription) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayAttachments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSpotDatafeedSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17504,7 +17888,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayAttachments) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayAttachmentsInput) + input, ok := in.Parameters.(*DescribeSpotDatafeedSubscriptionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17529,10 +17913,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayAttachments) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayAttachments") + body.Key("Action").String("DescribeSpotDatafeedSubscription") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayAttachmentsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSpotDatafeedSubscriptionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17553,14 +17937,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayAttachments) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayConnectPeers struct { +type awsEc2query_serializeOpDescribeSpotFleetInstances struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) ID() string { +func (*awsEc2query_serializeOpDescribeSpotFleetInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSpotFleetInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17568,7 +17952,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayConnectPeersInput) + input, ok := in.Parameters.(*DescribeSpotFleetInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17593,10 +17977,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) HandleSerial bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayConnectPeers") + body.Key("Action").String("DescribeSpotFleetInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectPeersInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSpotFleetInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17617,14 +18001,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) HandleSerial return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayConnects struct { +type awsEc2query_serializeOpDescribeSpotFleetRequestHistory struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayConnects) ID() string { +func (*awsEc2query_serializeOpDescribeSpotFleetRequestHistory) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayConnects) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSpotFleetRequestHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17632,7 +18016,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayConnects) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayConnectsInput) + input, ok := in.Parameters.(*DescribeSpotFleetRequestHistoryInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17657,10 +18041,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayConnects) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayConnects") + body.Key("Action").String("DescribeSpotFleetRequestHistory") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSpotFleetRequestHistoryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17681,14 +18065,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayConnects) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains struct { +type awsEc2query_serializeOpDescribeSpotFleetRequests struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) ID() string { +func (*awsEc2query_serializeOpDescribeSpotFleetRequests) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSpotFleetRequests) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17696,7 +18080,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) HandleSe return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayMulticastDomainsInput) + input, ok := in.Parameters.(*DescribeSpotFleetRequestsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17721,10 +18105,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) HandleSe bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayMulticastDomains") + body.Key("Action").String("DescribeSpotFleetRequests") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayMulticastDomainsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSpotFleetRequestsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17745,14 +18129,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) HandleSe return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments struct { +type awsEc2query_serializeOpDescribeSpotInstanceRequests struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) ID() string { +func (*awsEc2query_serializeOpDescribeSpotInstanceRequests) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSpotInstanceRequests) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17760,7 +18144,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) Handle return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayPeeringAttachmentsInput) + input, ok := in.Parameters.(*DescribeSpotInstanceRequestsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17785,10 +18169,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) Handle bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayPeeringAttachments") + body.Key("Action").String("DescribeSpotInstanceRequests") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayPeeringAttachmentsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSpotInstanceRequestsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17809,14 +18193,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) Handle return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayRouteTables struct { +type awsEc2query_serializeOpDescribeSpotPriceHistory struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayRouteTables) ID() string { +func (*awsEc2query_serializeOpDescribeSpotPriceHistory) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayRouteTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSpotPriceHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17824,7 +18208,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayRouteTables) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayRouteTablesInput) + input, ok := in.Parameters.(*DescribeSpotPriceHistoryInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17849,10 +18233,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayRouteTables) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayRouteTables") + body.Key("Action").String("DescribeSpotPriceHistory") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayRouteTablesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSpotPriceHistoryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17873,14 +18257,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayRouteTables) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGateways struct { +type awsEc2query_serializeOpDescribeStaleSecurityGroups struct { } -func (*awsEc2query_serializeOpDescribeTransitGateways) ID() string { +func (*awsEc2query_serializeOpDescribeStaleSecurityGroups) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeStaleSecurityGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17888,7 +18272,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGateways) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewaysInput) + input, ok := in.Parameters.(*DescribeStaleSecurityGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17913,10 +18297,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGateways) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGateways") + body.Key("Action").String("DescribeStaleSecurityGroups") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeStaleSecurityGroupsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -17937,14 +18321,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGateways) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments struct { +type awsEc2query_serializeOpDescribeStoreImageTasks struct { } -func (*awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) ID() string { +func (*awsEc2query_serializeOpDescribeStoreImageTasks) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeStoreImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -17952,7 +18336,7 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) HandleSeri return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTransitGatewayVpcAttachmentsInput) + input, ok := in.Parameters.(*DescribeStoreImageTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -17977,10 +18361,10 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) HandleSeri bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTransitGatewayVpcAttachments") + body.Key("Action").String("DescribeStoreImageTasks") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeStoreImageTasksInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18001,14 +18385,14 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) HandleSeri return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeTrunkInterfaceAssociations struct { +type awsEc2query_serializeOpDescribeSubnets struct { } -func (*awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) ID() string { +func (*awsEc2query_serializeOpDescribeSubnets) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeSubnets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18016,7 +18400,7 @@ func (m *awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeTrunkInterfaceAssociationsInput) + input, ok := in.Parameters.(*DescribeSubnetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18041,10 +18425,10 @@ func (m *awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) HandleSerial bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrunkInterfaceAssociations") + body.Key("Action").String("DescribeSubnets") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeTrunkInterfaceAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeSubnetsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18065,14 +18449,14 @@ func (m *awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) HandleSerial return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVolumeAttribute struct { +type awsEc2query_serializeOpDescribeTags struct { } -func (*awsEc2query_serializeOpDescribeVolumeAttribute) ID() string { +func (*awsEc2query_serializeOpDescribeTags) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVolumeAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18080,7 +18464,7 @@ func (m *awsEc2query_serializeOpDescribeVolumeAttribute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVolumeAttributeInput) + input, ok := in.Parameters.(*DescribeTagsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18105,10 +18489,10 @@ func (m *awsEc2query_serializeOpDescribeVolumeAttribute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVolumeAttribute") + body.Key("Action").String("DescribeTags") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVolumeAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTagsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18129,14 +18513,14 @@ func (m *awsEc2query_serializeOpDescribeVolumeAttribute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVolumes struct { +type awsEc2query_serializeOpDescribeTrafficMirrorFilters struct { } -func (*awsEc2query_serializeOpDescribeVolumes) ID() string { +func (*awsEc2query_serializeOpDescribeTrafficMirrorFilters) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVolumes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTrafficMirrorFilters) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18144,7 +18528,7 @@ func (m *awsEc2query_serializeOpDescribeVolumes) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVolumesInput) + input, ok := in.Parameters.(*DescribeTrafficMirrorFiltersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18169,10 +18553,10 @@ func (m *awsEc2query_serializeOpDescribeVolumes) HandleSerialize(ctx context.Con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVolumes") + body.Key("Action").String("DescribeTrafficMirrorFilters") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVolumesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTrafficMirrorFiltersInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18193,14 +18577,14 @@ func (m *awsEc2query_serializeOpDescribeVolumes) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVolumesModifications struct { +type awsEc2query_serializeOpDescribeTrafficMirrorSessions struct { } -func (*awsEc2query_serializeOpDescribeVolumesModifications) ID() string { +func (*awsEc2query_serializeOpDescribeTrafficMirrorSessions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVolumesModifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTrafficMirrorSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18208,7 +18592,7 @@ func (m *awsEc2query_serializeOpDescribeVolumesModifications) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVolumesModificationsInput) + input, ok := in.Parameters.(*DescribeTrafficMirrorSessionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18233,10 +18617,10 @@ func (m *awsEc2query_serializeOpDescribeVolumesModifications) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVolumesModifications") + body.Key("Action").String("DescribeTrafficMirrorSessions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVolumesModificationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTrafficMirrorSessionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18257,14 +18641,14 @@ func (m *awsEc2query_serializeOpDescribeVolumesModifications) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVolumeStatus struct { +type awsEc2query_serializeOpDescribeTrafficMirrorTargets struct { } -func (*awsEc2query_serializeOpDescribeVolumeStatus) ID() string { +func (*awsEc2query_serializeOpDescribeTrafficMirrorTargets) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVolumeStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTrafficMirrorTargets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18272,7 +18656,7 @@ func (m *awsEc2query_serializeOpDescribeVolumeStatus) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVolumeStatusInput) + input, ok := in.Parameters.(*DescribeTrafficMirrorTargetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18297,10 +18681,10 @@ func (m *awsEc2query_serializeOpDescribeVolumeStatus) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVolumeStatus") + body.Key("Action").String("DescribeTrafficMirrorTargets") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVolumeStatusInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTrafficMirrorTargetsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18321,14 +18705,14 @@ func (m *awsEc2query_serializeOpDescribeVolumeStatus) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcAttribute struct { +type awsEc2query_serializeOpDescribeTransitGatewayAttachments struct { } -func (*awsEc2query_serializeOpDescribeVpcAttribute) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayAttachments) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayAttachments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18336,7 +18720,7 @@ func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcAttributeInput) + input, ok := in.Parameters.(*DescribeTransitGatewayAttachmentsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18361,10 +18745,10 @@ func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcAttribute") + body.Key("Action").String("DescribeTransitGatewayAttachments") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayAttachmentsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18385,14 +18769,14 @@ func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcClassicLink struct { +type awsEc2query_serializeOpDescribeTransitGatewayConnectPeers struct { } -func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayConnectPeers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18400,7 +18784,7 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcClassicLinkInput) + input, ok := in.Parameters.(*DescribeTransitGatewayConnectPeersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18425,10 +18809,10 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcClassicLink") + body.Key("Action").String("DescribeTransitGatewayConnectPeers") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectPeersInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18449,14 +18833,14 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport struct { +type awsEc2query_serializeOpDescribeTransitGatewayConnects struct { } -func (*awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayConnects) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayConnects) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18464,7 +18848,7 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcClassicLinkDnsSupportInput) + input, ok := in.Parameters.(*DescribeTransitGatewayConnectsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18489,10 +18873,10 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerializ bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcClassicLinkDnsSupport") + body.Key("Action").String("DescribeTransitGatewayConnects") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18513,14 +18897,14 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications struct { +type awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18528,7 +18912,7 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) Hand return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcEndpointConnectionNotificationsInput) + input, ok := in.Parameters.(*DescribeTransitGatewayMulticastDomainsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18553,10 +18937,10 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) Hand bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcEndpointConnectionNotifications") + body.Key("Action").String("DescribeTransitGatewayMulticastDomains") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayMulticastDomainsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18577,14 +18961,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointConnections struct { +type awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointConnections) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18592,7 +18976,7 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcEndpointConnectionsInput) + input, ok := in.Parameters.(*DescribeTransitGatewayPeeringAttachmentsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18617,10 +19001,10 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcEndpointConnections") + body.Key("Action").String("DescribeTransitGatewayPeeringAttachments") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayPeeringAttachmentsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18641,14 +19025,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpoints struct { +type awsEc2query_serializeOpDescribeTransitGatewayRouteTables struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpoints) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayRouteTables) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayRouteTables) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18656,7 +19040,7 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcEndpointsInput) + input, ok := in.Parameters.(*DescribeTransitGatewayRouteTablesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18681,10 +19065,10 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcEndpoints") + body.Key("Action").String("DescribeTransitGatewayRouteTables") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayRouteTablesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18705,14 +19089,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations struct { +type awsEc2query_serializeOpDescribeTransitGateways struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18720,7 +19104,7 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) Handle return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcEndpointServiceConfigurationsInput) + input, ok := in.Parameters.(*DescribeTransitGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18745,10 +19129,10 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) Handle bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcEndpointServiceConfigurations") + body.Key("Action").String("DescribeTransitGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18769,14 +19153,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) Handle return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointServicePermissions struct { +type awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18784,7 +19168,7 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcEndpointServicePermissionsInput) + input, ok := in.Parameters.(*DescribeTransitGatewayVpcAttachmentsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18809,10 +19193,10 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcEndpointServicePermissions") + body.Key("Action").String("DescribeTransitGatewayVpcAttachments") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18833,14 +19217,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcEndpointServices struct { +type awsEc2query_serializeOpDescribeTrunkInterfaceAssociations struct { } -func (*awsEc2query_serializeOpDescribeVpcEndpointServices) ID() string { +func (*awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcEndpointServices) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18848,7 +19232,7 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServices) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcEndpointServicesInput) + input, ok := in.Parameters.(*DescribeTrunkInterfaceAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18873,10 +19257,10 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServices) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcEndpointServices") + body.Key("Action").String("DescribeTrunkInterfaceAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeTrunkInterfaceAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18897,14 +19281,14 @@ func (m *awsEc2query_serializeOpDescribeVpcEndpointServices) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcPeeringConnections struct { +type awsEc2query_serializeOpDescribeVolumeAttribute struct { } -func (*awsEc2query_serializeOpDescribeVpcPeeringConnections) ID() string { +func (*awsEc2query_serializeOpDescribeVolumeAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcPeeringConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVolumeAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18912,7 +19296,7 @@ func (m *awsEc2query_serializeOpDescribeVpcPeeringConnections) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcPeeringConnectionsInput) + input, ok := in.Parameters.(*DescribeVolumeAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -18937,10 +19321,10 @@ func (m *awsEc2query_serializeOpDescribeVpcPeeringConnections) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcPeeringConnections") + body.Key("Action").String("DescribeVolumeAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcPeeringConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVolumeAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -18961,14 +19345,14 @@ func (m *awsEc2query_serializeOpDescribeVpcPeeringConnections) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcs struct { +type awsEc2query_serializeOpDescribeVolumes struct { } -func (*awsEc2query_serializeOpDescribeVpcs) ID() string { +func (*awsEc2query_serializeOpDescribeVolumes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVolumes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -18976,7 +19360,7 @@ func (m *awsEc2query_serializeOpDescribeVpcs) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcsInput) + input, ok := in.Parameters.(*DescribeVolumesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19001,10 +19385,10 @@ func (m *awsEc2query_serializeOpDescribeVpcs) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpcs") + body.Key("Action").String("DescribeVolumes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpcsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVolumesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19025,14 +19409,14 @@ func (m *awsEc2query_serializeOpDescribeVpcs) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpnConnections struct { +type awsEc2query_serializeOpDescribeVolumesModifications struct { } -func (*awsEc2query_serializeOpDescribeVpnConnections) ID() string { +func (*awsEc2query_serializeOpDescribeVolumesModifications) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpnConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVolumesModifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19040,7 +19424,7 @@ func (m *awsEc2query_serializeOpDescribeVpnConnections) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpnConnectionsInput) + input, ok := in.Parameters.(*DescribeVolumesModificationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19065,10 +19449,10 @@ func (m *awsEc2query_serializeOpDescribeVpnConnections) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpnConnections") + body.Key("Action").String("DescribeVolumesModifications") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpnConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVolumesModificationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19089,14 +19473,14 @@ func (m *awsEc2query_serializeOpDescribeVpnConnections) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpnGateways struct { +type awsEc2query_serializeOpDescribeVolumeStatus struct { } -func (*awsEc2query_serializeOpDescribeVpnGateways) ID() string { +func (*awsEc2query_serializeOpDescribeVolumeStatus) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpnGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVolumeStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19104,7 +19488,7 @@ func (m *awsEc2query_serializeOpDescribeVpnGateways) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpnGatewaysInput) + input, ok := in.Parameters.(*DescribeVolumeStatusInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19129,10 +19513,10 @@ func (m *awsEc2query_serializeOpDescribeVpnGateways) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DescribeVpnGateways") + body.Key("Action").String("DescribeVolumeStatus") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDescribeVpnGatewaysInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVolumeStatusInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19153,14 +19537,14 @@ func (m *awsEc2query_serializeOpDescribeVpnGateways) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDetachClassicLinkVpc struct { +type awsEc2query_serializeOpDescribeVpcAttribute struct { } -func (*awsEc2query_serializeOpDetachClassicLinkVpc) ID() string { +func (*awsEc2query_serializeOpDescribeVpcAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDetachClassicLinkVpc) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19168,7 +19552,7 @@ func (m *awsEc2query_serializeOpDetachClassicLinkVpc) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DetachClassicLinkVpcInput) + input, ok := in.Parameters.(*DescribeVpcAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19193,10 +19577,10 @@ func (m *awsEc2query_serializeOpDetachClassicLinkVpc) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DetachClassicLinkVpc") + body.Key("Action").String("DescribeVpcAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDetachClassicLinkVpcInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19217,14 +19601,14 @@ func (m *awsEc2query_serializeOpDetachClassicLinkVpc) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDetachInternetGateway struct { +type awsEc2query_serializeOpDescribeVpcClassicLink struct { } -func (*awsEc2query_serializeOpDetachInternetGateway) ID() string { +func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDetachInternetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19232,7 +19616,7 @@ func (m *awsEc2query_serializeOpDetachInternetGateway) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DetachInternetGatewayInput) + input, ok := in.Parameters.(*DescribeVpcClassicLinkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19257,10 +19641,10 @@ func (m *awsEc2query_serializeOpDetachInternetGateway) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DetachInternetGateway") + body.Key("Action").String("DescribeVpcClassicLink") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDetachInternetGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19281,14 +19665,14 @@ func (m *awsEc2query_serializeOpDetachInternetGateway) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDetachNetworkInterface struct { +type awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_serializeOpDetachNetworkInterface) ID() string { +func (*awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDetachNetworkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19296,7 +19680,7 @@ func (m *awsEc2query_serializeOpDetachNetworkInterface) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DetachNetworkInterfaceInput) + input, ok := in.Parameters.(*DescribeVpcClassicLinkDnsSupportInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19321,10 +19705,10 @@ func (m *awsEc2query_serializeOpDetachNetworkInterface) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DetachNetworkInterface") + body.Key("Action").String("DescribeVpcClassicLinkDnsSupport") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDetachNetworkInterfaceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19345,14 +19729,14 @@ func (m *awsEc2query_serializeOpDetachNetworkInterface) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDetachVolume struct { +type awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_serializeOpDetachVolume) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDetachVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19360,7 +19744,7 @@ func (m *awsEc2query_serializeOpDetachVolume) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DetachVolumeInput) + input, ok := in.Parameters.(*DescribeVpcEndpointConnectionNotificationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19385,10 +19769,10 @@ func (m *awsEc2query_serializeOpDetachVolume) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DetachVolume") + body.Key("Action").String("DescribeVpcEndpointConnectionNotifications") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDetachVolumeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19409,14 +19793,14 @@ func (m *awsEc2query_serializeOpDetachVolume) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDetachVpnGateway struct { +type awsEc2query_serializeOpDescribeVpcEndpointConnections struct { } -func (*awsEc2query_serializeOpDetachVpnGateway) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointConnections) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDetachVpnGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcEndpointConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19424,7 +19808,7 @@ func (m *awsEc2query_serializeOpDetachVpnGateway) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DetachVpnGatewayInput) + input, ok := in.Parameters.(*DescribeVpcEndpointConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19449,10 +19833,10 @@ func (m *awsEc2query_serializeOpDetachVpnGateway) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DetachVpnGateway") + body.Key("Action").String("DescribeVpcEndpointConnections") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDetachVpnGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19473,14 +19857,14 @@ func (m *awsEc2query_serializeOpDetachVpnGateway) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableEbsEncryptionByDefault struct { +type awsEc2query_serializeOpDescribeVpcEndpoints struct { } -func (*awsEc2query_serializeOpDisableEbsEncryptionByDefault) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpoints) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableEbsEncryptionByDefault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19488,7 +19872,7 @@ func (m *awsEc2query_serializeOpDisableEbsEncryptionByDefault) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableEbsEncryptionByDefaultInput) + input, ok := in.Parameters.(*DescribeVpcEndpointsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19513,10 +19897,10 @@ func (m *awsEc2query_serializeOpDisableEbsEncryptionByDefault) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableEbsEncryptionByDefault") + body.Key("Action").String("DescribeVpcEndpoints") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableEbsEncryptionByDefaultInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19537,14 +19921,14 @@ func (m *awsEc2query_serializeOpDisableEbsEncryptionByDefault) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableFastSnapshotRestores struct { +type awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations struct { } -func (*awsEc2query_serializeOpDisableFastSnapshotRestores) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableFastSnapshotRestores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19552,7 +19936,7 @@ func (m *awsEc2query_serializeOpDisableFastSnapshotRestores) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableFastSnapshotRestoresInput) + input, ok := in.Parameters.(*DescribeVpcEndpointServiceConfigurationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19577,10 +19961,10 @@ func (m *awsEc2query_serializeOpDisableFastSnapshotRestores) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableFastSnapshotRestores") + body.Key("Action").String("DescribeVpcEndpointServiceConfigurations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableFastSnapshotRestoresInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19601,14 +19985,14 @@ func (m *awsEc2query_serializeOpDisableFastSnapshotRestores) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableImageDeprecation struct { +type awsEc2query_serializeOpDescribeVpcEndpointServicePermissions struct { } -func (*awsEc2query_serializeOpDisableImageDeprecation) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableImageDeprecation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcEndpointServicePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19616,7 +20000,7 @@ func (m *awsEc2query_serializeOpDisableImageDeprecation) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableImageDeprecationInput) + input, ok := in.Parameters.(*DescribeVpcEndpointServicePermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19641,10 +20025,10 @@ func (m *awsEc2query_serializeOpDisableImageDeprecation) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableImageDeprecation") + body.Key("Action").String("DescribeVpcEndpointServicePermissions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableImageDeprecationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19665,14 +20049,14 @@ func (m *awsEc2query_serializeOpDisableImageDeprecation) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableSerialConsoleAccess struct { +type awsEc2query_serializeOpDescribeVpcEndpointServices struct { } -func (*awsEc2query_serializeOpDisableSerialConsoleAccess) ID() string { +func (*awsEc2query_serializeOpDescribeVpcEndpointServices) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableSerialConsoleAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcEndpointServices) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19680,7 +20064,7 @@ func (m *awsEc2query_serializeOpDisableSerialConsoleAccess) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableSerialConsoleAccessInput) + input, ok := in.Parameters.(*DescribeVpcEndpointServicesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19705,10 +20089,10 @@ func (m *awsEc2query_serializeOpDisableSerialConsoleAccess) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableSerialConsoleAccess") + body.Key("Action").String("DescribeVpcEndpointServices") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableSerialConsoleAccessInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19729,14 +20113,14 @@ func (m *awsEc2query_serializeOpDisableSerialConsoleAccess) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation struct { +type awsEc2query_serializeOpDescribeVpcPeeringConnections struct { } -func (*awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) ID() string { +func (*awsEc2query_serializeOpDescribeVpcPeeringConnections) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcPeeringConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19744,7 +20128,7 @@ func (m *awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) Hand return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableTransitGatewayRouteTablePropagationInput) + input, ok := in.Parameters.(*DescribeVpcPeeringConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19769,10 +20153,10 @@ func (m *awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) Hand bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableTransitGatewayRouteTablePropagation") + body.Key("Action").String("DescribeVpcPeeringConnections") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableTransitGatewayRouteTablePropagationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcPeeringConnectionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19793,14 +20177,14 @@ func (m *awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) Hand return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableVgwRoutePropagation struct { +type awsEc2query_serializeOpDescribeVpcs struct { } -func (*awsEc2query_serializeOpDisableVgwRoutePropagation) ID() string { +func (*awsEc2query_serializeOpDescribeVpcs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableVgwRoutePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19808,7 +20192,7 @@ func (m *awsEc2query_serializeOpDisableVgwRoutePropagation) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableVgwRoutePropagationInput) + input, ok := in.Parameters.(*DescribeVpcsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19833,10 +20217,10 @@ func (m *awsEc2query_serializeOpDisableVgwRoutePropagation) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableVgwRoutePropagation") + body.Key("Action").String("DescribeVpcs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableVgwRoutePropagationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpcsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19857,14 +20241,14 @@ func (m *awsEc2query_serializeOpDisableVgwRoutePropagation) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableVpcClassicLink struct { +type awsEc2query_serializeOpDescribeVpnConnections struct { } -func (*awsEc2query_serializeOpDisableVpcClassicLink) ID() string { +func (*awsEc2query_serializeOpDescribeVpnConnections) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpnConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19872,7 +20256,7 @@ func (m *awsEc2query_serializeOpDisableVpcClassicLink) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableVpcClassicLinkInput) + input, ok := in.Parameters.(*DescribeVpnConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19897,10 +20281,10 @@ func (m *awsEc2query_serializeOpDisableVpcClassicLink) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableVpcClassicLink") + body.Key("Action").String("DescribeVpnConnections") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpnConnectionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19921,14 +20305,14 @@ func (m *awsEc2query_serializeOpDisableVpcClassicLink) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport struct { +type awsEc2query_serializeOpDescribeVpnGateways struct { } -func (*awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_serializeOpDescribeVpnGateways) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpnGateways) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -19936,7 +20320,7 @@ func (m *awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisableVpcClassicLinkDnsSupportInput) + input, ok := in.Parameters.(*DescribeVpnGatewaysInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -19961,10 +20345,10 @@ func (m *awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisableVpcClassicLinkDnsSupport") + body.Key("Action").String("DescribeVpnGateways") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisableVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDescribeVpnGatewaysInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -19985,14 +20369,14 @@ func (m *awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateAddress struct { +type awsEc2query_serializeOpDetachClassicLinkVpc struct { } -func (*awsEc2query_serializeOpDisassociateAddress) ID() string { +func (*awsEc2query_serializeOpDetachClassicLinkVpc) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateAddress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDetachClassicLinkVpc) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20000,7 +20384,7 @@ func (m *awsEc2query_serializeOpDisassociateAddress) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateAddressInput) + input, ok := in.Parameters.(*DetachClassicLinkVpcInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20025,10 +20409,10 @@ func (m *awsEc2query_serializeOpDisassociateAddress) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateAddress") + body.Key("Action").String("DetachClassicLinkVpc") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateAddressInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDetachClassicLinkVpcInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20049,14 +20433,14 @@ func (m *awsEc2query_serializeOpDisassociateAddress) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateClientVpnTargetNetwork struct { +type awsEc2query_serializeOpDetachInternetGateway struct { } -func (*awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) ID() string { +func (*awsEc2query_serializeOpDetachInternetGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDetachInternetGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20064,7 +20448,7 @@ func (m *awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateClientVpnTargetNetworkInput) + input, ok := in.Parameters.(*DetachInternetGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20089,10 +20473,10 @@ func (m *awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) HandleSerial bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateClientVpnTargetNetwork") + body.Key("Action").String("DetachInternetGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateClientVpnTargetNetworkInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDetachInternetGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20113,14 +20497,14 @@ func (m *awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) HandleSerial return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole struct { +type awsEc2query_serializeOpDetachNetworkInterface struct { } -func (*awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) ID() string { +func (*awsEc2query_serializeOpDetachNetworkInterface) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDetachNetworkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20128,7 +20512,7 @@ func (m *awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateEnclaveCertificateIamRoleInput) + input, ok := in.Parameters.(*DetachNetworkInterfaceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20153,10 +20537,10 @@ func (m *awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateEnclaveCertificateIamRole") + body.Key("Action").String("DetachNetworkInterface") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateEnclaveCertificateIamRoleInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDetachNetworkInterfaceInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20177,14 +20561,14 @@ func (m *awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateIamInstanceProfile struct { +type awsEc2query_serializeOpDetachVolume struct { } -func (*awsEc2query_serializeOpDisassociateIamInstanceProfile) ID() string { +func (*awsEc2query_serializeOpDetachVolume) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDetachVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20192,7 +20576,7 @@ func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateIamInstanceProfileInput) + input, ok := in.Parameters.(*DetachVolumeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20217,10 +20601,10 @@ func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateIamInstanceProfile") + body.Key("Action").String("DetachVolume") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateIamInstanceProfileInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDetachVolumeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20241,14 +20625,14 @@ func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateInstanceEventWindow struct { +type awsEc2query_serializeOpDetachVpnGateway struct { } -func (*awsEc2query_serializeOpDisassociateInstanceEventWindow) ID() string { +func (*awsEc2query_serializeOpDetachVpnGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDetachVpnGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20256,7 +20640,7 @@ func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateInstanceEventWindowInput) + input, ok := in.Parameters.(*DetachVpnGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20281,10 +20665,10 @@ func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateInstanceEventWindow") + body.Key("Action").String("DetachVpnGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDetachVpnGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20305,14 +20689,14 @@ func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateRouteTable struct { +type awsEc2query_serializeOpDisableEbsEncryptionByDefault struct { } -func (*awsEc2query_serializeOpDisassociateRouteTable) ID() string { +func (*awsEc2query_serializeOpDisableEbsEncryptionByDefault) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableEbsEncryptionByDefault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20320,7 +20704,7 @@ func (m *awsEc2query_serializeOpDisassociateRouteTable) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateRouteTableInput) + input, ok := in.Parameters.(*DisableEbsEncryptionByDefaultInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20345,10 +20729,10 @@ func (m *awsEc2query_serializeOpDisassociateRouteTable) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateRouteTable") + body.Key("Action").String("DisableEbsEncryptionByDefault") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateRouteTableInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableEbsEncryptionByDefaultInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20369,14 +20753,14 @@ func (m *awsEc2query_serializeOpDisassociateRouteTable) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateSubnetCidrBlock struct { +type awsEc2query_serializeOpDisableFastSnapshotRestores struct { } -func (*awsEc2query_serializeOpDisassociateSubnetCidrBlock) ID() string { +func (*awsEc2query_serializeOpDisableFastSnapshotRestores) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateSubnetCidrBlock) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableFastSnapshotRestores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20384,7 +20768,7 @@ func (m *awsEc2query_serializeOpDisassociateSubnetCidrBlock) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateSubnetCidrBlockInput) + input, ok := in.Parameters.(*DisableFastSnapshotRestoresInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20409,10 +20793,10 @@ func (m *awsEc2query_serializeOpDisassociateSubnetCidrBlock) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateSubnetCidrBlock") + body.Key("Action").String("DisableFastSnapshotRestores") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateSubnetCidrBlockInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableFastSnapshotRestoresInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20433,14 +20817,14 @@ func (m *awsEc2query_serializeOpDisassociateSubnetCidrBlock) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain struct { +type awsEc2query_serializeOpDisableImageDeprecation struct { } -func (*awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) ID() string { +func (*awsEc2query_serializeOpDisableImageDeprecation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableImageDeprecation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20448,7 +20832,7 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) Handl return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateTransitGatewayMulticastDomainInput) + input, ok := in.Parameters.(*DisableImageDeprecationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20473,10 +20857,10 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) Handl bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateTransitGatewayMulticastDomain") + body.Key("Action").String("DisableImageDeprecation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateTransitGatewayMulticastDomainInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableImageDeprecationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20497,14 +20881,14 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) Handl return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateTransitGatewayRouteTable struct { +type awsEc2query_serializeOpDisableIpamOrganizationAdminAccount struct { } -func (*awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) ID() string { +func (*awsEc2query_serializeOpDisableIpamOrganizationAdminAccount) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableIpamOrganizationAdminAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20512,7 +20896,7 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) HandleSeri return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateTransitGatewayRouteTableInput) + input, ok := in.Parameters.(*DisableIpamOrganizationAdminAccountInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20537,10 +20921,10 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) HandleSeri bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateTransitGatewayRouteTable") + body.Key("Action").String("DisableIpamOrganizationAdminAccount") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateTransitGatewayRouteTableInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableIpamOrganizationAdminAccountInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20561,14 +20945,14 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) HandleSeri return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateTrunkInterface struct { +type awsEc2query_serializeOpDisableSerialConsoleAccess struct { } -func (*awsEc2query_serializeOpDisassociateTrunkInterface) ID() string { +func (*awsEc2query_serializeOpDisableSerialConsoleAccess) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateTrunkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableSerialConsoleAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20576,7 +20960,7 @@ func (m *awsEc2query_serializeOpDisassociateTrunkInterface) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateTrunkInterfaceInput) + input, ok := in.Parameters.(*DisableSerialConsoleAccessInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20601,10 +20985,10 @@ func (m *awsEc2query_serializeOpDisassociateTrunkInterface) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateTrunkInterface") + body.Key("Action").String("DisableSerialConsoleAccess") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateTrunkInterfaceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableSerialConsoleAccessInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20625,14 +21009,14 @@ func (m *awsEc2query_serializeOpDisassociateTrunkInterface) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDisassociateVpcCidrBlock struct { +type awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation struct { } -func (*awsEc2query_serializeOpDisassociateVpcCidrBlock) ID() string { +func (*awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDisassociateVpcCidrBlock) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20640,7 +21024,7 @@ func (m *awsEc2query_serializeOpDisassociateVpcCidrBlock) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateVpcCidrBlockInput) + input, ok := in.Parameters.(*DisableTransitGatewayRouteTablePropagationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20665,10 +21049,10 @@ func (m *awsEc2query_serializeOpDisassociateVpcCidrBlock) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("DisassociateVpcCidrBlock") + body.Key("Action").String("DisableTransitGatewayRouteTablePropagation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentDisassociateVpcCidrBlockInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableTransitGatewayRouteTablePropagationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20689,14 +21073,14 @@ func (m *awsEc2query_serializeOpDisassociateVpcCidrBlock) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableEbsEncryptionByDefault struct { +type awsEc2query_serializeOpDisableVgwRoutePropagation struct { } -func (*awsEc2query_serializeOpEnableEbsEncryptionByDefault) ID() string { +func (*awsEc2query_serializeOpDisableVgwRoutePropagation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableEbsEncryptionByDefault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableVgwRoutePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20704,7 +21088,7 @@ func (m *awsEc2query_serializeOpEnableEbsEncryptionByDefault) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableEbsEncryptionByDefaultInput) + input, ok := in.Parameters.(*DisableVgwRoutePropagationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20729,10 +21113,10 @@ func (m *awsEc2query_serializeOpEnableEbsEncryptionByDefault) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableEbsEncryptionByDefault") + body.Key("Action").String("DisableVgwRoutePropagation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableEbsEncryptionByDefaultInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableVgwRoutePropagationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20753,14 +21137,14 @@ func (m *awsEc2query_serializeOpEnableEbsEncryptionByDefault) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableFastSnapshotRestores struct { +type awsEc2query_serializeOpDisableVpcClassicLink struct { } -func (*awsEc2query_serializeOpEnableFastSnapshotRestores) ID() string { +func (*awsEc2query_serializeOpDisableVpcClassicLink) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableFastSnapshotRestores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20768,7 +21152,7 @@ func (m *awsEc2query_serializeOpEnableFastSnapshotRestores) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableFastSnapshotRestoresInput) + input, ok := in.Parameters.(*DisableVpcClassicLinkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20793,10 +21177,10 @@ func (m *awsEc2query_serializeOpEnableFastSnapshotRestores) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableFastSnapshotRestores") + body.Key("Action").String("DisableVpcClassicLink") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableFastSnapshotRestoresInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20817,14 +21201,14 @@ func (m *awsEc2query_serializeOpEnableFastSnapshotRestores) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableImageDeprecation struct { +type awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_serializeOpEnableImageDeprecation) ID() string { +func (*awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableImageDeprecation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20832,7 +21216,7 @@ func (m *awsEc2query_serializeOpEnableImageDeprecation) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableImageDeprecationInput) + input, ok := in.Parameters.(*DisableVpcClassicLinkDnsSupportInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20857,10 +21241,10 @@ func (m *awsEc2query_serializeOpEnableImageDeprecation) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableImageDeprecation") + body.Key("Action").String("DisableVpcClassicLinkDnsSupport") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableImageDeprecationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisableVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20881,14 +21265,14 @@ func (m *awsEc2query_serializeOpEnableImageDeprecation) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableSerialConsoleAccess struct { +type awsEc2query_serializeOpDisassociateAddress struct { } -func (*awsEc2query_serializeOpEnableSerialConsoleAccess) ID() string { +func (*awsEc2query_serializeOpDisassociateAddress) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableSerialConsoleAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateAddress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20896,7 +21280,7 @@ func (m *awsEc2query_serializeOpEnableSerialConsoleAccess) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableSerialConsoleAccessInput) + input, ok := in.Parameters.(*DisassociateAddressInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20921,10 +21305,10 @@ func (m *awsEc2query_serializeOpEnableSerialConsoleAccess) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableSerialConsoleAccess") + body.Key("Action").String("DisassociateAddress") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableSerialConsoleAccessInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateAddressInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -20945,14 +21329,14 @@ func (m *awsEc2query_serializeOpEnableSerialConsoleAccess) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation struct { +type awsEc2query_serializeOpDisassociateClientVpnTargetNetwork struct { } -func (*awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) ID() string { +func (*awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateClientVpnTargetNetwork) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -20960,7 +21344,7 @@ func (m *awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) Handl return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableTransitGatewayRouteTablePropagationInput) + input, ok := in.Parameters.(*DisassociateClientVpnTargetNetworkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -20985,10 +21369,10 @@ func (m *awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) Handl bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableTransitGatewayRouteTablePropagation") + body.Key("Action").String("DisassociateClientVpnTargetNetwork") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableTransitGatewayRouteTablePropagationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateClientVpnTargetNetworkInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21009,14 +21393,14 @@ func (m *awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) Handl return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableVgwRoutePropagation struct { +type awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole struct { } -func (*awsEc2query_serializeOpEnableVgwRoutePropagation) ID() string { +func (*awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableVgwRoutePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21024,7 +21408,7 @@ func (m *awsEc2query_serializeOpEnableVgwRoutePropagation) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableVgwRoutePropagationInput) + input, ok := in.Parameters.(*DisassociateEnclaveCertificateIamRoleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21049,10 +21433,10 @@ func (m *awsEc2query_serializeOpEnableVgwRoutePropagation) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableVgwRoutePropagation") + body.Key("Action").String("DisassociateEnclaveCertificateIamRole") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableVgwRoutePropagationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateEnclaveCertificateIamRoleInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21073,14 +21457,14 @@ func (m *awsEc2query_serializeOpEnableVgwRoutePropagation) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableVolumeIO struct { +type awsEc2query_serializeOpDisassociateIamInstanceProfile struct { } -func (*awsEc2query_serializeOpEnableVolumeIO) ID() string { +func (*awsEc2query_serializeOpDisassociateIamInstanceProfile) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableVolumeIO) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateIamInstanceProfile) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21088,7 +21472,7 @@ func (m *awsEc2query_serializeOpEnableVolumeIO) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableVolumeIOInput) + input, ok := in.Parameters.(*DisassociateIamInstanceProfileInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21113,10 +21497,10 @@ func (m *awsEc2query_serializeOpEnableVolumeIO) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableVolumeIO") + body.Key("Action").String("DisassociateIamInstanceProfile") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableVolumeIOInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateIamInstanceProfileInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21137,14 +21521,14 @@ func (m *awsEc2query_serializeOpEnableVolumeIO) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableVpcClassicLink struct { +type awsEc2query_serializeOpDisassociateInstanceEventWindow struct { } -func (*awsEc2query_serializeOpEnableVpcClassicLink) ID() string { +func (*awsEc2query_serializeOpDisassociateInstanceEventWindow) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21152,7 +21536,7 @@ func (m *awsEc2query_serializeOpEnableVpcClassicLink) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableVpcClassicLinkInput) + input, ok := in.Parameters.(*DisassociateInstanceEventWindowInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21177,10 +21561,10 @@ func (m *awsEc2query_serializeOpEnableVpcClassicLink) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableVpcClassicLink") + body.Key("Action").String("DisassociateInstanceEventWindow") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21201,14 +21585,14 @@ func (m *awsEc2query_serializeOpEnableVpcClassicLink) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport struct { +type awsEc2query_serializeOpDisassociateRouteTable struct { } -func (*awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_serializeOpDisassociateRouteTable) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21216,7 +21600,7 @@ func (m *awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*EnableVpcClassicLinkDnsSupportInput) + input, ok := in.Parameters.(*DisassociateRouteTableInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21241,10 +21625,10 @@ func (m *awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("EnableVpcClassicLinkDnsSupport") + body.Key("Action").String("DisassociateRouteTable") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentEnableVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateRouteTableInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21265,14 +21649,14 @@ func (m *awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList struct { +type awsEc2query_serializeOpDisassociateSubnetCidrBlock struct { } -func (*awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) ID() string { +func (*awsEc2query_serializeOpDisassociateSubnetCidrBlock) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateSubnetCidrBlock) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21280,7 +21664,7 @@ func (m *awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ExportClientVpnClientCertificateRevocationListInput) + input, ok := in.Parameters.(*DisassociateSubnetCidrBlockInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21305,10 +21689,10 @@ func (m *awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ExportClientVpnClientCertificateRevocationList") + body.Key("Action").String("DisassociateSubnetCidrBlock") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentExportClientVpnClientCertificateRevocationListInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateSubnetCidrBlockInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21329,14 +21713,14 @@ func (m *awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpExportClientVpnClientConfiguration struct { +type awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain struct { } -func (*awsEc2query_serializeOpExportClientVpnClientConfiguration) ID() string { +func (*awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpExportClientVpnClientConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21344,7 +21728,7 @@ func (m *awsEc2query_serializeOpExportClientVpnClientConfiguration) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ExportClientVpnClientConfigurationInput) + input, ok := in.Parameters.(*DisassociateTransitGatewayMulticastDomainInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21369,10 +21753,10 @@ func (m *awsEc2query_serializeOpExportClientVpnClientConfiguration) HandleSerial bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ExportClientVpnClientConfiguration") + body.Key("Action").String("DisassociateTransitGatewayMulticastDomain") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentExportClientVpnClientConfigurationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateTransitGatewayMulticastDomainInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21393,14 +21777,14 @@ func (m *awsEc2query_serializeOpExportClientVpnClientConfiguration) HandleSerial return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpExportImage struct { +type awsEc2query_serializeOpDisassociateTransitGatewayRouteTable struct { } -func (*awsEc2query_serializeOpExportImage) ID() string { +func (*awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpExportImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21408,7 +21792,7 @@ func (m *awsEc2query_serializeOpExportImage) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ExportImageInput) + input, ok := in.Parameters.(*DisassociateTransitGatewayRouteTableInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21433,10 +21817,10 @@ func (m *awsEc2query_serializeOpExportImage) HandleSerialize(ctx context.Context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ExportImage") + body.Key("Action").String("DisassociateTransitGatewayRouteTable") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentExportImageInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateTransitGatewayRouteTableInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21457,14 +21841,14 @@ func (m *awsEc2query_serializeOpExportImage) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpExportTransitGatewayRoutes struct { +type awsEc2query_serializeOpDisassociateTrunkInterface struct { } -func (*awsEc2query_serializeOpExportTransitGatewayRoutes) ID() string { +func (*awsEc2query_serializeOpDisassociateTrunkInterface) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpExportTransitGatewayRoutes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateTrunkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21472,7 +21856,7 @@ func (m *awsEc2query_serializeOpExportTransitGatewayRoutes) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ExportTransitGatewayRoutesInput) + input, ok := in.Parameters.(*DisassociateTrunkInterfaceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21497,10 +21881,10 @@ func (m *awsEc2query_serializeOpExportTransitGatewayRoutes) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ExportTransitGatewayRoutes") + body.Key("Action").String("DisassociateTrunkInterface") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentExportTransitGatewayRoutesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateTrunkInterfaceInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21521,14 +21905,14 @@ func (m *awsEc2query_serializeOpExportTransitGatewayRoutes) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles struct { +type awsEc2query_serializeOpDisassociateVpcCidrBlock struct { } -func (*awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string { +func (*awsEc2query_serializeOpDisassociateVpcCidrBlock) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDisassociateVpcCidrBlock) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21536,7 +21920,7 @@ func (m *awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetAssociatedEnclaveCertificateIamRolesInput) + input, ok := in.Parameters.(*DisassociateVpcCidrBlockInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21561,10 +21945,10 @@ func (m *awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetAssociatedEnclaveCertificateIamRoles") + body.Key("Action").String("DisassociateVpcCidrBlock") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetAssociatedEnclaveCertificateIamRolesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentDisassociateVpcCidrBlockInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21585,14 +21969,14 @@ func (m *awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs struct { +type awsEc2query_serializeOpEnableEbsEncryptionByDefault struct { } -func (*awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) ID() string { +func (*awsEc2query_serializeOpEnableEbsEncryptionByDefault) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableEbsEncryptionByDefault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21600,7 +21984,7 @@ func (m *awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetAssociatedIpv6PoolCidrsInput) + input, ok := in.Parameters.(*EnableEbsEncryptionByDefaultInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21625,10 +22009,10 @@ func (m *awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetAssociatedIpv6PoolCidrs") + body.Key("Action").String("EnableEbsEncryptionByDefault") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetAssociatedIpv6PoolCidrsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableEbsEncryptionByDefaultInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21649,14 +22033,14 @@ func (m *awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetCapacityReservationUsage struct { +type awsEc2query_serializeOpEnableFastSnapshotRestores struct { } -func (*awsEc2query_serializeOpGetCapacityReservationUsage) ID() string { +func (*awsEc2query_serializeOpEnableFastSnapshotRestores) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetCapacityReservationUsage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableFastSnapshotRestores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21664,7 +22048,7 @@ func (m *awsEc2query_serializeOpGetCapacityReservationUsage) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetCapacityReservationUsageInput) + input, ok := in.Parameters.(*EnableFastSnapshotRestoresInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21689,10 +22073,10 @@ func (m *awsEc2query_serializeOpGetCapacityReservationUsage) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetCapacityReservationUsage") + body.Key("Action").String("EnableFastSnapshotRestores") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetCapacityReservationUsageInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableFastSnapshotRestoresInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21713,14 +22097,14 @@ func (m *awsEc2query_serializeOpGetCapacityReservationUsage) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetCoipPoolUsage struct { +type awsEc2query_serializeOpEnableImageDeprecation struct { } -func (*awsEc2query_serializeOpGetCoipPoolUsage) ID() string { +func (*awsEc2query_serializeOpEnableImageDeprecation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetCoipPoolUsage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableImageDeprecation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21728,7 +22112,7 @@ func (m *awsEc2query_serializeOpGetCoipPoolUsage) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetCoipPoolUsageInput) + input, ok := in.Parameters.(*EnableImageDeprecationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21753,10 +22137,10 @@ func (m *awsEc2query_serializeOpGetCoipPoolUsage) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetCoipPoolUsage") + body.Key("Action").String("EnableImageDeprecation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetCoipPoolUsageInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableImageDeprecationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21777,14 +22161,14 @@ func (m *awsEc2query_serializeOpGetCoipPoolUsage) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetConsoleOutput struct { +type awsEc2query_serializeOpEnableIpamOrganizationAdminAccount struct { } -func (*awsEc2query_serializeOpGetConsoleOutput) ID() string { +func (*awsEc2query_serializeOpEnableIpamOrganizationAdminAccount) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetConsoleOutput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableIpamOrganizationAdminAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21792,7 +22176,7 @@ func (m *awsEc2query_serializeOpGetConsoleOutput) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetConsoleOutputInput) + input, ok := in.Parameters.(*EnableIpamOrganizationAdminAccountInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21817,10 +22201,10 @@ func (m *awsEc2query_serializeOpGetConsoleOutput) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetConsoleOutput") + body.Key("Action").String("EnableIpamOrganizationAdminAccount") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetConsoleOutputInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableIpamOrganizationAdminAccountInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21841,14 +22225,14 @@ func (m *awsEc2query_serializeOpGetConsoleOutput) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetConsoleScreenshot struct { +type awsEc2query_serializeOpEnableSerialConsoleAccess struct { } -func (*awsEc2query_serializeOpGetConsoleScreenshot) ID() string { +func (*awsEc2query_serializeOpEnableSerialConsoleAccess) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetConsoleScreenshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableSerialConsoleAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21856,7 +22240,7 @@ func (m *awsEc2query_serializeOpGetConsoleScreenshot) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetConsoleScreenshotInput) + input, ok := in.Parameters.(*EnableSerialConsoleAccessInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21881,10 +22265,10 @@ func (m *awsEc2query_serializeOpGetConsoleScreenshot) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetConsoleScreenshot") + body.Key("Action").String("EnableSerialConsoleAccess") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetConsoleScreenshotInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableSerialConsoleAccessInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21905,14 +22289,14 @@ func (m *awsEc2query_serializeOpGetConsoleScreenshot) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetDefaultCreditSpecification struct { +type awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation struct { } -func (*awsEc2query_serializeOpGetDefaultCreditSpecification) ID() string { +func (*awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetDefaultCreditSpecification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21920,7 +22304,7 @@ func (m *awsEc2query_serializeOpGetDefaultCreditSpecification) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetDefaultCreditSpecificationInput) + input, ok := in.Parameters.(*EnableTransitGatewayRouteTablePropagationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -21945,10 +22329,10 @@ func (m *awsEc2query_serializeOpGetDefaultCreditSpecification) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetDefaultCreditSpecification") + body.Key("Action").String("EnableTransitGatewayRouteTablePropagation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetDefaultCreditSpecificationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableTransitGatewayRouteTablePropagationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -21969,14 +22353,14 @@ func (m *awsEc2query_serializeOpGetDefaultCreditSpecification) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetEbsDefaultKmsKeyId struct { +type awsEc2query_serializeOpEnableVgwRoutePropagation struct { } -func (*awsEc2query_serializeOpGetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_serializeOpEnableVgwRoutePropagation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetEbsDefaultKmsKeyId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableVgwRoutePropagation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -21984,7 +22368,7 @@ func (m *awsEc2query_serializeOpGetEbsDefaultKmsKeyId) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetEbsDefaultKmsKeyIdInput) + input, ok := in.Parameters.(*EnableVgwRoutePropagationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22009,10 +22393,10 @@ func (m *awsEc2query_serializeOpGetEbsDefaultKmsKeyId) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetEbsDefaultKmsKeyId") + body.Key("Action").String("EnableVgwRoutePropagation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetEbsDefaultKmsKeyIdInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableVgwRoutePropagationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22033,14 +22417,14 @@ func (m *awsEc2query_serializeOpGetEbsDefaultKmsKeyId) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetEbsEncryptionByDefault struct { +type awsEc2query_serializeOpEnableVolumeIO struct { } -func (*awsEc2query_serializeOpGetEbsEncryptionByDefault) ID() string { +func (*awsEc2query_serializeOpEnableVolumeIO) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetEbsEncryptionByDefault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableVolumeIO) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22048,7 +22432,7 @@ func (m *awsEc2query_serializeOpGetEbsEncryptionByDefault) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetEbsEncryptionByDefaultInput) + input, ok := in.Parameters.(*EnableVolumeIOInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22073,10 +22457,10 @@ func (m *awsEc2query_serializeOpGetEbsEncryptionByDefault) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetEbsEncryptionByDefault") + body.Key("Action").String("EnableVolumeIO") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetEbsEncryptionByDefaultInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableVolumeIOInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22097,14 +22481,14 @@ func (m *awsEc2query_serializeOpGetEbsEncryptionByDefault) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetFlowLogsIntegrationTemplate struct { +type awsEc2query_serializeOpEnableVpcClassicLink struct { } -func (*awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) ID() string { +func (*awsEc2query_serializeOpEnableVpcClassicLink) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22112,7 +22496,7 @@ func (m *awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetFlowLogsIntegrationTemplateInput) + input, ok := in.Parameters.(*EnableVpcClassicLinkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22137,10 +22521,10 @@ func (m *awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetFlowLogsIntegrationTemplate") + body.Key("Action").String("EnableVpcClassicLink") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetFlowLogsIntegrationTemplateInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableVpcClassicLinkInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22161,14 +22545,14 @@ func (m *awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetGroupsForCapacityReservation struct { +type awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_serializeOpGetGroupsForCapacityReservation) ID() string { +func (*awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetGroupsForCapacityReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22176,7 +22560,7 @@ func (m *awsEc2query_serializeOpGetGroupsForCapacityReservation) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetGroupsForCapacityReservationInput) + input, ok := in.Parameters.(*EnableVpcClassicLinkDnsSupportInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22201,10 +22585,10 @@ func (m *awsEc2query_serializeOpGetGroupsForCapacityReservation) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetGroupsForCapacityReservation") + body.Key("Action").String("EnableVpcClassicLinkDnsSupport") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetGroupsForCapacityReservationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentEnableVpcClassicLinkDnsSupportInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22225,14 +22609,14 @@ func (m *awsEc2query_serializeOpGetGroupsForCapacityReservation) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetHostReservationPurchasePreview struct { +type awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList struct { } -func (*awsEc2query_serializeOpGetHostReservationPurchasePreview) ID() string { +func (*awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetHostReservationPurchasePreview) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22240,7 +22624,7 @@ func (m *awsEc2query_serializeOpGetHostReservationPurchasePreview) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetHostReservationPurchasePreviewInput) + input, ok := in.Parameters.(*ExportClientVpnClientCertificateRevocationListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22265,10 +22649,10 @@ func (m *awsEc2query_serializeOpGetHostReservationPurchasePreview) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetHostReservationPurchasePreview") + body.Key("Action").String("ExportClientVpnClientCertificateRevocationList") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetHostReservationPurchasePreviewInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentExportClientVpnClientCertificateRevocationListInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22289,14 +22673,14 @@ func (m *awsEc2query_serializeOpGetHostReservationPurchasePreview) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements struct { +type awsEc2query_serializeOpExportClientVpnClientConfiguration struct { } -func (*awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) ID() string { +func (*awsEc2query_serializeOpExportClientVpnClientConfiguration) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpExportClientVpnClientConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22304,7 +22688,7 @@ func (m *awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) Handle return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetInstanceTypesFromInstanceRequirementsInput) + input, ok := in.Parameters.(*ExportClientVpnClientConfigurationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22329,10 +22713,10 @@ func (m *awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) Handle bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetInstanceTypesFromInstanceRequirements") + body.Key("Action").String("ExportClientVpnClientConfiguration") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetInstanceTypesFromInstanceRequirementsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentExportClientVpnClientConfigurationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22353,14 +22737,14 @@ func (m *awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) Handle return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetLaunchTemplateData struct { +type awsEc2query_serializeOpExportImage struct { } -func (*awsEc2query_serializeOpGetLaunchTemplateData) ID() string { +func (*awsEc2query_serializeOpExportImage) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetLaunchTemplateData) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpExportImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22368,7 +22752,7 @@ func (m *awsEc2query_serializeOpGetLaunchTemplateData) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetLaunchTemplateDataInput) + input, ok := in.Parameters.(*ExportImageInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22393,10 +22777,10 @@ func (m *awsEc2query_serializeOpGetLaunchTemplateData) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetLaunchTemplateData") + body.Key("Action").String("ExportImage") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetLaunchTemplateDataInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentExportImageInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22417,14 +22801,14 @@ func (m *awsEc2query_serializeOpGetLaunchTemplateData) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetManagedPrefixListAssociations struct { +type awsEc2query_serializeOpExportTransitGatewayRoutes struct { } -func (*awsEc2query_serializeOpGetManagedPrefixListAssociations) ID() string { +func (*awsEc2query_serializeOpExportTransitGatewayRoutes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetManagedPrefixListAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpExportTransitGatewayRoutes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22432,7 +22816,7 @@ func (m *awsEc2query_serializeOpGetManagedPrefixListAssociations) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetManagedPrefixListAssociationsInput) + input, ok := in.Parameters.(*ExportTransitGatewayRoutesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22457,10 +22841,10 @@ func (m *awsEc2query_serializeOpGetManagedPrefixListAssociations) HandleSerializ bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetManagedPrefixListAssociations") + body.Key("Action").String("ExportTransitGatewayRoutes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetManagedPrefixListAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentExportTransitGatewayRoutesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22481,14 +22865,14 @@ func (m *awsEc2query_serializeOpGetManagedPrefixListAssociations) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetManagedPrefixListEntries struct { +type awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles struct { } -func (*awsEc2query_serializeOpGetManagedPrefixListEntries) ID() string { +func (*awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetManagedPrefixListEntries) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22496,7 +22880,7 @@ func (m *awsEc2query_serializeOpGetManagedPrefixListEntries) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetManagedPrefixListEntriesInput) + input, ok := in.Parameters.(*GetAssociatedEnclaveCertificateIamRolesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22521,10 +22905,10 @@ func (m *awsEc2query_serializeOpGetManagedPrefixListEntries) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetManagedPrefixListEntries") + body.Key("Action").String("GetAssociatedEnclaveCertificateIamRoles") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetAssociatedEnclaveCertificateIamRolesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22545,14 +22929,14 @@ func (m *awsEc2query_serializeOpGetManagedPrefixListEntries) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetPasswordData struct { +type awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs struct { } -func (*awsEc2query_serializeOpGetPasswordData) ID() string { +func (*awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetPasswordData) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22560,7 +22944,7 @@ func (m *awsEc2query_serializeOpGetPasswordData) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetPasswordDataInput) + input, ok := in.Parameters.(*GetAssociatedIpv6PoolCidrsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22585,10 +22969,10 @@ func (m *awsEc2query_serializeOpGetPasswordData) HandleSerialize(ctx context.Con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetPasswordData") + body.Key("Action").String("GetAssociatedIpv6PoolCidrs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetPasswordDataInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetAssociatedIpv6PoolCidrsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22609,14 +22993,14 @@ func (m *awsEc2query_serializeOpGetPasswordData) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetReservedInstancesExchangeQuote struct { +type awsEc2query_serializeOpGetCapacityReservationUsage struct { } -func (*awsEc2query_serializeOpGetReservedInstancesExchangeQuote) ID() string { +func (*awsEc2query_serializeOpGetCapacityReservationUsage) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetReservedInstancesExchangeQuote) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetCapacityReservationUsage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22624,7 +23008,7 @@ func (m *awsEc2query_serializeOpGetReservedInstancesExchangeQuote) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetReservedInstancesExchangeQuoteInput) + input, ok := in.Parameters.(*GetCapacityReservationUsageInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22649,10 +23033,10 @@ func (m *awsEc2query_serializeOpGetReservedInstancesExchangeQuote) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetReservedInstancesExchangeQuote") + body.Key("Action").String("GetCapacityReservationUsage") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetReservedInstancesExchangeQuoteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetCapacityReservationUsageInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22673,14 +23057,14 @@ func (m *awsEc2query_serializeOpGetReservedInstancesExchangeQuote) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetSerialConsoleAccessStatus struct { +type awsEc2query_serializeOpGetCoipPoolUsage struct { } -func (*awsEc2query_serializeOpGetSerialConsoleAccessStatus) ID() string { +func (*awsEc2query_serializeOpGetCoipPoolUsage) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetCoipPoolUsage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22688,7 +23072,7 @@ func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSerialConsoleAccessStatusInput) + input, ok := in.Parameters.(*GetCoipPoolUsageInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22713,10 +23097,10 @@ func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetSerialConsoleAccessStatus") + body.Key("Action").String("GetCoipPoolUsage") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetSerialConsoleAccessStatusInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetCoipPoolUsageInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22737,14 +23121,14 @@ func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetSpotPlacementScores struct { +type awsEc2query_serializeOpGetConsoleOutput struct { } -func (*awsEc2query_serializeOpGetSpotPlacementScores) ID() string { +func (*awsEc2query_serializeOpGetConsoleOutput) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetSpotPlacementScores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetConsoleOutput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22752,7 +23136,7 @@ func (m *awsEc2query_serializeOpGetSpotPlacementScores) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSpotPlacementScoresInput) + input, ok := in.Parameters.(*GetConsoleOutputInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22777,10 +23161,10 @@ func (m *awsEc2query_serializeOpGetSpotPlacementScores) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetSpotPlacementScores") + body.Key("Action").String("GetConsoleOutput") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetSpotPlacementScoresInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetConsoleOutputInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22801,14 +23185,14 @@ func (m *awsEc2query_serializeOpGetSpotPlacementScores) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetSubnetCidrReservations struct { +type awsEc2query_serializeOpGetConsoleScreenshot struct { } -func (*awsEc2query_serializeOpGetSubnetCidrReservations) ID() string { +func (*awsEc2query_serializeOpGetConsoleScreenshot) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetConsoleScreenshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22816,7 +23200,7 @@ func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSubnetCidrReservationsInput) + input, ok := in.Parameters.(*GetConsoleScreenshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22841,10 +23225,10 @@ func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetSubnetCidrReservations") + body.Key("Action").String("GetConsoleScreenshot") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetSubnetCidrReservationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetConsoleScreenshotInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22865,14 +23249,14 @@ func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations struct { +type awsEc2query_serializeOpGetDefaultCreditSpecification struct { } -func (*awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) ID() string { +func (*awsEc2query_serializeOpGetDefaultCreditSpecification) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetDefaultCreditSpecification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22880,7 +23264,7 @@ func (m *awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetTransitGatewayAttachmentPropagationsInput) + input, ok := in.Parameters.(*GetDefaultCreditSpecificationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22905,10 +23289,10 @@ func (m *awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetTransitGatewayAttachmentPropagations") + body.Key("Action").String("GetDefaultCreditSpecification") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetDefaultCreditSpecificationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22929,14 +23313,14 @@ func (m *awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_serializeOpGetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_serializeOpGetEbsDefaultKmsKeyId) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetEbsDefaultKmsKeyId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -22944,7 +23328,7 @@ func (m *awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) Ha return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetTransitGatewayMulticastDomainAssociationsInput) + input, ok := in.Parameters.(*GetEbsDefaultKmsKeyIdInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -22969,10 +23353,10 @@ func (m *awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) Ha bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetTransitGatewayMulticastDomainAssociations") + body.Key("Action").String("GetEbsDefaultKmsKeyId") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetTransitGatewayMulticastDomainAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetEbsDefaultKmsKeyIdInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -22993,14 +23377,14 @@ func (m *awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) Ha return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetTransitGatewayPrefixListReferences struct { +type awsEc2query_serializeOpGetEbsEncryptionByDefault struct { } -func (*awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) ID() string { +func (*awsEc2query_serializeOpGetEbsEncryptionByDefault) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetEbsEncryptionByDefault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23008,7 +23392,7 @@ func (m *awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetTransitGatewayPrefixListReferencesInput) + input, ok := in.Parameters.(*GetEbsEncryptionByDefaultInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23033,10 +23417,10 @@ func (m *awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetTransitGatewayPrefixListReferences") + body.Key("Action").String("GetEbsEncryptionByDefault") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetTransitGatewayPrefixListReferencesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetEbsEncryptionByDefaultInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23057,14 +23441,14 @@ func (m *awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations struct { +type awsEc2query_serializeOpGetFlowLogsIntegrationTemplate struct { } -func (*awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) ID() string { +func (*awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23072,7 +23456,7 @@ func (m *awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetTransitGatewayRouteTableAssociationsInput) + input, ok := in.Parameters.(*GetFlowLogsIntegrationTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23097,10 +23481,10 @@ func (m *awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetTransitGatewayRouteTableAssociations") + body.Key("Action").String("GetFlowLogsIntegrationTemplate") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetTransitGatewayRouteTableAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetFlowLogsIntegrationTemplateInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23121,14 +23505,14 @@ func (m *awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations struct { +type awsEc2query_serializeOpGetGroupsForCapacityReservation struct { } -func (*awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) ID() string { +func (*awsEc2query_serializeOpGetGroupsForCapacityReservation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetGroupsForCapacityReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23136,7 +23520,7 @@ func (m *awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetTransitGatewayRouteTablePropagationsInput) + input, ok := in.Parameters.(*GetGroupsForCapacityReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23161,10 +23545,10 @@ func (m *awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetTransitGatewayRouteTablePropagations") + body.Key("Action").String("GetGroupsForCapacityReservation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetTransitGatewayRouteTablePropagationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetGroupsForCapacityReservationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23185,14 +23569,14 @@ func (m *awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration struct { +type awsEc2query_serializeOpGetHostReservationPurchasePreview struct { } -func (*awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) ID() string { +func (*awsEc2query_serializeOpGetHostReservationPurchasePreview) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetHostReservationPurchasePreview) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23200,7 +23584,7 @@ func (m *awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) Handl return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetVpnConnectionDeviceSampleConfigurationInput) + input, ok := in.Parameters.(*GetHostReservationPurchasePreviewInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23225,10 +23609,10 @@ func (m *awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) Handl bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetVpnConnectionDeviceSampleConfiguration") + body.Key("Action").String("GetHostReservationPurchasePreview") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetVpnConnectionDeviceSampleConfigurationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetHostReservationPurchasePreviewInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23249,14 +23633,14 @@ func (m *awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) Handl return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpGetVpnConnectionDeviceTypes struct { +type awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements struct { } -func (*awsEc2query_serializeOpGetVpnConnectionDeviceTypes) ID() string { +func (*awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpGetVpnConnectionDeviceTypes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23264,7 +23648,7 @@ func (m *awsEc2query_serializeOpGetVpnConnectionDeviceTypes) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetVpnConnectionDeviceTypesInput) + input, ok := in.Parameters.(*GetInstanceTypesFromInstanceRequirementsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23289,10 +23673,10 @@ func (m *awsEc2query_serializeOpGetVpnConnectionDeviceTypes) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("GetVpnConnectionDeviceTypes") + body.Key("Action").String("GetInstanceTypesFromInstanceRequirements") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentGetVpnConnectionDeviceTypesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetInstanceTypesFromInstanceRequirementsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23313,14 +23697,14 @@ func (m *awsEc2query_serializeOpGetVpnConnectionDeviceTypes) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList struct { +type awsEc2query_serializeOpGetIpamAddressHistory struct { } -func (*awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) ID() string { +func (*awsEc2query_serializeOpGetIpamAddressHistory) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetIpamAddressHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23328,7 +23712,7 @@ func (m *awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ImportClientVpnClientCertificateRevocationListInput) + input, ok := in.Parameters.(*GetIpamAddressHistoryInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23353,10 +23737,10 @@ func (m *awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ImportClientVpnClientCertificateRevocationList") + body.Key("Action").String("GetIpamAddressHistory") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentImportClientVpnClientCertificateRevocationListInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetIpamAddressHistoryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23377,14 +23761,14 @@ func (m *awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpImportImage struct { +type awsEc2query_serializeOpGetIpamPoolAllocations struct { } -func (*awsEc2query_serializeOpImportImage) ID() string { +func (*awsEc2query_serializeOpGetIpamPoolAllocations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpImportImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetIpamPoolAllocations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23392,7 +23776,7 @@ func (m *awsEc2query_serializeOpImportImage) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ImportImageInput) + input, ok := in.Parameters.(*GetIpamPoolAllocationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23417,10 +23801,10 @@ func (m *awsEc2query_serializeOpImportImage) HandleSerialize(ctx context.Context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ImportImage") + body.Key("Action").String("GetIpamPoolAllocations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentImportImageInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetIpamPoolAllocationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23441,14 +23825,14 @@ func (m *awsEc2query_serializeOpImportImage) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpImportInstance struct { +type awsEc2query_serializeOpGetIpamPoolCidrs struct { } -func (*awsEc2query_serializeOpImportInstance) ID() string { +func (*awsEc2query_serializeOpGetIpamPoolCidrs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpImportInstance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetIpamPoolCidrs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23456,7 +23840,7 @@ func (m *awsEc2query_serializeOpImportInstance) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ImportInstanceInput) + input, ok := in.Parameters.(*GetIpamPoolCidrsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23481,10 +23865,10 @@ func (m *awsEc2query_serializeOpImportInstance) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ImportInstance") + body.Key("Action").String("GetIpamPoolCidrs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentImportInstanceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetIpamPoolCidrsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23505,14 +23889,14 @@ func (m *awsEc2query_serializeOpImportInstance) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpImportKeyPair struct { +type awsEc2query_serializeOpGetIpamResourceCidrs struct { } -func (*awsEc2query_serializeOpImportKeyPair) ID() string { +func (*awsEc2query_serializeOpGetIpamResourceCidrs) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpImportKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetIpamResourceCidrs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23520,7 +23904,7 @@ func (m *awsEc2query_serializeOpImportKeyPair) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ImportKeyPairInput) + input, ok := in.Parameters.(*GetIpamResourceCidrsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23545,10 +23929,10 @@ func (m *awsEc2query_serializeOpImportKeyPair) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ImportKeyPair") + body.Key("Action").String("GetIpamResourceCidrs") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentImportKeyPairInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetIpamResourceCidrsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23569,14 +23953,14 @@ func (m *awsEc2query_serializeOpImportKeyPair) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpImportSnapshot struct { +type awsEc2query_serializeOpGetLaunchTemplateData struct { } -func (*awsEc2query_serializeOpImportSnapshot) ID() string { +func (*awsEc2query_serializeOpGetLaunchTemplateData) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpImportSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetLaunchTemplateData) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23584,7 +23968,7 @@ func (m *awsEc2query_serializeOpImportSnapshot) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ImportSnapshotInput) + input, ok := in.Parameters.(*GetLaunchTemplateDataInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23609,10 +23993,10 @@ func (m *awsEc2query_serializeOpImportSnapshot) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ImportSnapshot") + body.Key("Action").String("GetLaunchTemplateData") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentImportSnapshotInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetLaunchTemplateDataInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23633,14 +24017,14 @@ func (m *awsEc2query_serializeOpImportSnapshot) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpImportVolume struct { +type awsEc2query_serializeOpGetManagedPrefixListAssociations struct { } -func (*awsEc2query_serializeOpImportVolume) ID() string { +func (*awsEc2query_serializeOpGetManagedPrefixListAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpImportVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetManagedPrefixListAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23648,7 +24032,7 @@ func (m *awsEc2query_serializeOpImportVolume) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ImportVolumeInput) + input, ok := in.Parameters.(*GetManagedPrefixListAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23673,10 +24057,10 @@ func (m *awsEc2query_serializeOpImportVolume) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ImportVolume") + body.Key("Action").String("GetManagedPrefixListAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentImportVolumeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetManagedPrefixListAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23697,14 +24081,14 @@ func (m *awsEc2query_serializeOpImportVolume) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpListSnapshotsInRecycleBin struct { +type awsEc2query_serializeOpGetManagedPrefixListEntries struct { } -func (*awsEc2query_serializeOpListSnapshotsInRecycleBin) ID() string { +func (*awsEc2query_serializeOpGetManagedPrefixListEntries) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpListSnapshotsInRecycleBin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetManagedPrefixListEntries) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23712,7 +24096,7 @@ func (m *awsEc2query_serializeOpListSnapshotsInRecycleBin) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListSnapshotsInRecycleBinInput) + input, ok := in.Parameters.(*GetManagedPrefixListEntriesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23737,10 +24121,10 @@ func (m *awsEc2query_serializeOpListSnapshotsInRecycleBin) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ListSnapshotsInRecycleBin") + body.Key("Action").String("GetManagedPrefixListEntries") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentListSnapshotsInRecycleBinInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23761,14 +24145,14 @@ func (m *awsEc2query_serializeOpListSnapshotsInRecycleBin) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyAddressAttribute struct { +type awsEc2query_serializeOpGetNetworkInsightsAccessScopeAnalysisFindings struct { } -func (*awsEc2query_serializeOpModifyAddressAttribute) ID() string { +func (*awsEc2query_serializeOpGetNetworkInsightsAccessScopeAnalysisFindings) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyAddressAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetNetworkInsightsAccessScopeAnalysisFindings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23776,7 +24160,7 @@ func (m *awsEc2query_serializeOpModifyAddressAttribute) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyAddressAttributeInput) + input, ok := in.Parameters.(*GetNetworkInsightsAccessScopeAnalysisFindingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23801,10 +24185,10 @@ func (m *awsEc2query_serializeOpModifyAddressAttribute) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyAddressAttribute") + body.Key("Action").String("GetNetworkInsightsAccessScopeAnalysisFindings") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyAddressAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetNetworkInsightsAccessScopeAnalysisFindingsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23825,14 +24209,14 @@ func (m *awsEc2query_serializeOpModifyAddressAttribute) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyAvailabilityZoneGroup struct { +type awsEc2query_serializeOpGetNetworkInsightsAccessScopeContent struct { } -func (*awsEc2query_serializeOpModifyAvailabilityZoneGroup) ID() string { +func (*awsEc2query_serializeOpGetNetworkInsightsAccessScopeContent) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyAvailabilityZoneGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetNetworkInsightsAccessScopeContent) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23840,7 +24224,7 @@ func (m *awsEc2query_serializeOpModifyAvailabilityZoneGroup) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyAvailabilityZoneGroupInput) + input, ok := in.Parameters.(*GetNetworkInsightsAccessScopeContentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23865,10 +24249,10 @@ func (m *awsEc2query_serializeOpModifyAvailabilityZoneGroup) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyAvailabilityZoneGroup") + body.Key("Action").String("GetNetworkInsightsAccessScopeContent") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyAvailabilityZoneGroupInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetNetworkInsightsAccessScopeContentInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23889,14 +24273,14 @@ func (m *awsEc2query_serializeOpModifyAvailabilityZoneGroup) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyCapacityReservation struct { +type awsEc2query_serializeOpGetPasswordData struct { } -func (*awsEc2query_serializeOpModifyCapacityReservation) ID() string { +func (*awsEc2query_serializeOpGetPasswordData) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyCapacityReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetPasswordData) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23904,7 +24288,7 @@ func (m *awsEc2query_serializeOpModifyCapacityReservation) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyCapacityReservationInput) + input, ok := in.Parameters.(*GetPasswordDataInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23929,10 +24313,10 @@ func (m *awsEc2query_serializeOpModifyCapacityReservation) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyCapacityReservation") + body.Key("Action").String("GetPasswordData") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyCapacityReservationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetPasswordDataInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -23953,14 +24337,14 @@ func (m *awsEc2query_serializeOpModifyCapacityReservation) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyCapacityReservationFleet struct { +type awsEc2query_serializeOpGetReservedInstancesExchangeQuote struct { } -func (*awsEc2query_serializeOpModifyCapacityReservationFleet) ID() string { +func (*awsEc2query_serializeOpGetReservedInstancesExchangeQuote) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyCapacityReservationFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetReservedInstancesExchangeQuote) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -23968,7 +24352,7 @@ func (m *awsEc2query_serializeOpModifyCapacityReservationFleet) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyCapacityReservationFleetInput) + input, ok := in.Parameters.(*GetReservedInstancesExchangeQuoteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -23993,10 +24377,10 @@ func (m *awsEc2query_serializeOpModifyCapacityReservationFleet) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyCapacityReservationFleet") + body.Key("Action").String("GetReservedInstancesExchangeQuote") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyCapacityReservationFleetInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetReservedInstancesExchangeQuoteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24017,14 +24401,14 @@ func (m *awsEc2query_serializeOpModifyCapacityReservationFleet) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyClientVpnEndpoint struct { +type awsEc2query_serializeOpGetSerialConsoleAccessStatus struct { } -func (*awsEc2query_serializeOpModifyClientVpnEndpoint) ID() string { +func (*awsEc2query_serializeOpGetSerialConsoleAccessStatus) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyClientVpnEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24032,7 +24416,7 @@ func (m *awsEc2query_serializeOpModifyClientVpnEndpoint) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyClientVpnEndpointInput) + input, ok := in.Parameters.(*GetSerialConsoleAccessStatusInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24057,10 +24441,10 @@ func (m *awsEc2query_serializeOpModifyClientVpnEndpoint) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyClientVpnEndpoint") + body.Key("Action").String("GetSerialConsoleAccessStatus") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetSerialConsoleAccessStatusInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24081,14 +24465,14 @@ func (m *awsEc2query_serializeOpModifyClientVpnEndpoint) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyDefaultCreditSpecification struct { +type awsEc2query_serializeOpGetSpotPlacementScores struct { } -func (*awsEc2query_serializeOpModifyDefaultCreditSpecification) ID() string { +func (*awsEc2query_serializeOpGetSpotPlacementScores) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyDefaultCreditSpecification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetSpotPlacementScores) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24096,7 +24480,7 @@ func (m *awsEc2query_serializeOpModifyDefaultCreditSpecification) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyDefaultCreditSpecificationInput) + input, ok := in.Parameters.(*GetSpotPlacementScoresInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24121,10 +24505,10 @@ func (m *awsEc2query_serializeOpModifyDefaultCreditSpecification) HandleSerializ bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyDefaultCreditSpecification") + body.Key("Action").String("GetSpotPlacementScores") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyDefaultCreditSpecificationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetSpotPlacementScoresInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24145,14 +24529,14 @@ func (m *awsEc2query_serializeOpModifyDefaultCreditSpecification) HandleSerializ return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyEbsDefaultKmsKeyId struct { +type awsEc2query_serializeOpGetSubnetCidrReservations struct { } -func (*awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_serializeOpGetSubnetCidrReservations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetSubnetCidrReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24160,7 +24544,7 @@ func (m *awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyEbsDefaultKmsKeyIdInput) + input, ok := in.Parameters.(*GetSubnetCidrReservationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24185,10 +24569,10 @@ func (m *awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyEbsDefaultKmsKeyId") + body.Key("Action").String("GetSubnetCidrReservations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyEbsDefaultKmsKeyIdInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetSubnetCidrReservationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24209,14 +24593,14 @@ func (m *awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyFleet struct { +type awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations struct { } -func (*awsEc2query_serializeOpModifyFleet) ID() string { +func (*awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24224,7 +24608,7 @@ func (m *awsEc2query_serializeOpModifyFleet) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyFleetInput) + input, ok := in.Parameters.(*GetTransitGatewayAttachmentPropagationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24249,10 +24633,10 @@ func (m *awsEc2query_serializeOpModifyFleet) HandleSerialize(ctx context.Context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyFleet") + body.Key("Action").String("GetTransitGatewayAttachmentPropagations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyFleetInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24273,14 +24657,14 @@ func (m *awsEc2query_serializeOpModifyFleet) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyFpgaImageAttribute struct { +type awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_serializeOpModifyFpgaImageAttribute) ID() string { +func (*awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyFpgaImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24288,7 +24672,7 @@ func (m *awsEc2query_serializeOpModifyFpgaImageAttribute) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyFpgaImageAttributeInput) + input, ok := in.Parameters.(*GetTransitGatewayMulticastDomainAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24313,10 +24697,10 @@ func (m *awsEc2query_serializeOpModifyFpgaImageAttribute) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyFpgaImageAttribute") + body.Key("Action").String("GetTransitGatewayMulticastDomainAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyFpgaImageAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetTransitGatewayMulticastDomainAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24337,14 +24721,14 @@ func (m *awsEc2query_serializeOpModifyFpgaImageAttribute) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyHosts struct { +type awsEc2query_serializeOpGetTransitGatewayPrefixListReferences struct { } -func (*awsEc2query_serializeOpModifyHosts) ID() string { +func (*awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetTransitGatewayPrefixListReferences) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24352,7 +24736,7 @@ func (m *awsEc2query_serializeOpModifyHosts) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyHostsInput) + input, ok := in.Parameters.(*GetTransitGatewayPrefixListReferencesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24377,10 +24761,10 @@ func (m *awsEc2query_serializeOpModifyHosts) HandleSerialize(ctx context.Context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyHosts") + body.Key("Action").String("GetTransitGatewayPrefixListReferences") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyHostsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetTransitGatewayPrefixListReferencesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24401,14 +24785,14 @@ func (m *awsEc2query_serializeOpModifyHosts) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyIdentityIdFormat struct { +type awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations struct { } -func (*awsEc2query_serializeOpModifyIdentityIdFormat) ID() string { +func (*awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyIdentityIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24416,7 +24800,7 @@ func (m *awsEc2query_serializeOpModifyIdentityIdFormat) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyIdentityIdFormatInput) + input, ok := in.Parameters.(*GetTransitGatewayRouteTableAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24441,10 +24825,10 @@ func (m *awsEc2query_serializeOpModifyIdentityIdFormat) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyIdentityIdFormat") + body.Key("Action").String("GetTransitGatewayRouteTableAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyIdentityIdFormatInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetTransitGatewayRouteTableAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24465,14 +24849,14 @@ func (m *awsEc2query_serializeOpModifyIdentityIdFormat) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyIdFormat struct { +type awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations struct { } -func (*awsEc2query_serializeOpModifyIdFormat) ID() string { +func (*awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24480,7 +24864,7 @@ func (m *awsEc2query_serializeOpModifyIdFormat) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyIdFormatInput) + input, ok := in.Parameters.(*GetTransitGatewayRouteTablePropagationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24505,10 +24889,10 @@ func (m *awsEc2query_serializeOpModifyIdFormat) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyIdFormat") + body.Key("Action").String("GetTransitGatewayRouteTablePropagations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyIdFormatInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetTransitGatewayRouteTablePropagationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24529,14 +24913,14 @@ func (m *awsEc2query_serializeOpModifyIdFormat) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyImageAttribute struct { +type awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration struct { } -func (*awsEc2query_serializeOpModifyImageAttribute) ID() string { +func (*awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24544,7 +24928,7 @@ func (m *awsEc2query_serializeOpModifyImageAttribute) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyImageAttributeInput) + input, ok := in.Parameters.(*GetVpnConnectionDeviceSampleConfigurationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24569,10 +24953,10 @@ func (m *awsEc2query_serializeOpModifyImageAttribute) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyImageAttribute") + body.Key("Action").String("GetVpnConnectionDeviceSampleConfiguration") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyImageAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetVpnConnectionDeviceSampleConfigurationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24593,14 +24977,14 @@ func (m *awsEc2query_serializeOpModifyImageAttribute) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceAttribute struct { +type awsEc2query_serializeOpGetVpnConnectionDeviceTypes struct { } -func (*awsEc2query_serializeOpModifyInstanceAttribute) ID() string { +func (*awsEc2query_serializeOpGetVpnConnectionDeviceTypes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstanceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpGetVpnConnectionDeviceTypes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24608,7 +24992,7 @@ func (m *awsEc2query_serializeOpModifyInstanceAttribute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstanceAttributeInput) + input, ok := in.Parameters.(*GetVpnConnectionDeviceTypesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24633,10 +25017,10 @@ func (m *awsEc2query_serializeOpModifyInstanceAttribute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceAttribute") + body.Key("Action").String("GetVpnConnectionDeviceTypes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstanceAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentGetVpnConnectionDeviceTypesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24657,14 +25041,14 @@ func (m *awsEc2query_serializeOpModifyInstanceAttribute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes struct { +type awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList struct { } -func (*awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) ID() string { +func (*awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24672,7 +25056,7 @@ func (m *awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) Han return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstanceCapacityReservationAttributesInput) + input, ok := in.Parameters.(*ImportClientVpnClientCertificateRevocationListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24697,10 +25081,10 @@ func (m *awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) Han bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceCapacityReservationAttributes") + body.Key("Action").String("ImportClientVpnClientCertificateRevocationList") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstanceCapacityReservationAttributesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentImportClientVpnClientCertificateRevocationListInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24721,14 +25105,14 @@ func (m *awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceCreditSpecification struct { +type awsEc2query_serializeOpImportImage struct { } -func (*awsEc2query_serializeOpModifyInstanceCreditSpecification) ID() string { +func (*awsEc2query_serializeOpImportImage) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstanceCreditSpecification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpImportImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24736,7 +25120,7 @@ func (m *awsEc2query_serializeOpModifyInstanceCreditSpecification) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstanceCreditSpecificationInput) + input, ok := in.Parameters.(*ImportImageInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24761,10 +25145,10 @@ func (m *awsEc2query_serializeOpModifyInstanceCreditSpecification) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceCreditSpecification") + body.Key("Action").String("ImportImage") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstanceCreditSpecificationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentImportImageInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24785,14 +25169,14 @@ func (m *awsEc2query_serializeOpModifyInstanceCreditSpecification) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceEventStartTime struct { +type awsEc2query_serializeOpImportInstance struct { } -func (*awsEc2query_serializeOpModifyInstanceEventStartTime) ID() string { +func (*awsEc2query_serializeOpImportInstance) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpImportInstance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24800,7 +25184,7 @@ func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstanceEventStartTimeInput) + input, ok := in.Parameters.(*ImportInstanceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24825,10 +25209,10 @@ func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceEventStartTime") + body.Key("Action").String("ImportInstance") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstanceEventStartTimeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentImportInstanceInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24849,14 +25233,14 @@ func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceEventWindow struct { +type awsEc2query_serializeOpImportKeyPair struct { } -func (*awsEc2query_serializeOpModifyInstanceEventWindow) ID() string { +func (*awsEc2query_serializeOpImportKeyPair) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpImportKeyPair) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24864,7 +25248,7 @@ func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstanceEventWindowInput) + input, ok := in.Parameters.(*ImportKeyPairInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24889,10 +25273,10 @@ func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceEventWindow") + body.Key("Action").String("ImportKeyPair") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentImportKeyPairInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24913,14 +25297,14 @@ func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstanceMetadataOptions struct { +type awsEc2query_serializeOpImportSnapshot struct { } -func (*awsEc2query_serializeOpModifyInstanceMetadataOptions) ID() string { +func (*awsEc2query_serializeOpImportSnapshot) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstanceMetadataOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpImportSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24928,7 +25312,7 @@ func (m *awsEc2query_serializeOpModifyInstanceMetadataOptions) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstanceMetadataOptionsInput) + input, ok := in.Parameters.(*ImportSnapshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -24953,10 +25337,10 @@ func (m *awsEc2query_serializeOpModifyInstanceMetadataOptions) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstanceMetadataOptions") + body.Key("Action").String("ImportSnapshot") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentImportSnapshotInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -24977,14 +25361,14 @@ func (m *awsEc2query_serializeOpModifyInstanceMetadataOptions) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyInstancePlacement struct { +type awsEc2query_serializeOpImportVolume struct { } -func (*awsEc2query_serializeOpModifyInstancePlacement) ID() string { +func (*awsEc2query_serializeOpImportVolume) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyInstancePlacement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpImportVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -24992,7 +25376,7 @@ func (m *awsEc2query_serializeOpModifyInstancePlacement) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyInstancePlacementInput) + input, ok := in.Parameters.(*ImportVolumeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25017,10 +25401,10 @@ func (m *awsEc2query_serializeOpModifyInstancePlacement) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyInstancePlacement") + body.Key("Action").String("ImportVolume") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyInstancePlacementInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentImportVolumeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25041,14 +25425,14 @@ func (m *awsEc2query_serializeOpModifyInstancePlacement) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyLaunchTemplate struct { +type awsEc2query_serializeOpListSnapshotsInRecycleBin struct { } -func (*awsEc2query_serializeOpModifyLaunchTemplate) ID() string { +func (*awsEc2query_serializeOpListSnapshotsInRecycleBin) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpListSnapshotsInRecycleBin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25056,7 +25440,7 @@ func (m *awsEc2query_serializeOpModifyLaunchTemplate) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyLaunchTemplateInput) + input, ok := in.Parameters.(*ListSnapshotsInRecycleBinInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25081,10 +25465,10 @@ func (m *awsEc2query_serializeOpModifyLaunchTemplate) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyLaunchTemplate") + body.Key("Action").String("ListSnapshotsInRecycleBin") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyLaunchTemplateInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentListSnapshotsInRecycleBinInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25105,14 +25489,14 @@ func (m *awsEc2query_serializeOpModifyLaunchTemplate) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyManagedPrefixList struct { +type awsEc2query_serializeOpModifyAddressAttribute struct { } -func (*awsEc2query_serializeOpModifyManagedPrefixList) ID() string { +func (*awsEc2query_serializeOpModifyAddressAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyAddressAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25120,7 +25504,7 @@ func (m *awsEc2query_serializeOpModifyManagedPrefixList) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyManagedPrefixListInput) + input, ok := in.Parameters.(*ModifyAddressAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25145,10 +25529,10 @@ func (m *awsEc2query_serializeOpModifyManagedPrefixList) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyManagedPrefixList") + body.Key("Action").String("ModifyAddressAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyManagedPrefixListInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyAddressAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25169,14 +25553,14 @@ func (m *awsEc2query_serializeOpModifyManagedPrefixList) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyNetworkInterfaceAttribute struct { +type awsEc2query_serializeOpModifyAvailabilityZoneGroup struct { } -func (*awsEc2query_serializeOpModifyNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_serializeOpModifyAvailabilityZoneGroup) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyNetworkInterfaceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyAvailabilityZoneGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25184,7 +25568,7 @@ func (m *awsEc2query_serializeOpModifyNetworkInterfaceAttribute) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyNetworkInterfaceAttributeInput) + input, ok := in.Parameters.(*ModifyAvailabilityZoneGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25209,10 +25593,10 @@ func (m *awsEc2query_serializeOpModifyNetworkInterfaceAttribute) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyNetworkInterfaceAttribute") + body.Key("Action").String("ModifyAvailabilityZoneGroup") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyNetworkInterfaceAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyAvailabilityZoneGroupInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25233,14 +25617,14 @@ func (m *awsEc2query_serializeOpModifyNetworkInterfaceAttribute) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyPrivateDnsNameOptions struct { +type awsEc2query_serializeOpModifyCapacityReservation struct { } -func (*awsEc2query_serializeOpModifyPrivateDnsNameOptions) ID() string { +func (*awsEc2query_serializeOpModifyCapacityReservation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyPrivateDnsNameOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyCapacityReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25248,7 +25632,7 @@ func (m *awsEc2query_serializeOpModifyPrivateDnsNameOptions) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyPrivateDnsNameOptionsInput) + input, ok := in.Parameters.(*ModifyCapacityReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25273,10 +25657,10 @@ func (m *awsEc2query_serializeOpModifyPrivateDnsNameOptions) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyPrivateDnsNameOptions") + body.Key("Action").String("ModifyCapacityReservation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyPrivateDnsNameOptionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyCapacityReservationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25297,14 +25681,14 @@ func (m *awsEc2query_serializeOpModifyPrivateDnsNameOptions) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyReservedInstances struct { +type awsEc2query_serializeOpModifyCapacityReservationFleet struct { } -func (*awsEc2query_serializeOpModifyReservedInstances) ID() string { +func (*awsEc2query_serializeOpModifyCapacityReservationFleet) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyReservedInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyCapacityReservationFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25312,7 +25696,7 @@ func (m *awsEc2query_serializeOpModifyReservedInstances) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyReservedInstancesInput) + input, ok := in.Parameters.(*ModifyCapacityReservationFleetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25337,10 +25721,10 @@ func (m *awsEc2query_serializeOpModifyReservedInstances) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyReservedInstances") + body.Key("Action").String("ModifyCapacityReservationFleet") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyReservedInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyCapacityReservationFleetInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25361,14 +25745,14 @@ func (m *awsEc2query_serializeOpModifyReservedInstances) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifySecurityGroupRules struct { +type awsEc2query_serializeOpModifyClientVpnEndpoint struct { } -func (*awsEc2query_serializeOpModifySecurityGroupRules) ID() string { +func (*awsEc2query_serializeOpModifyClientVpnEndpoint) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifySecurityGroupRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyClientVpnEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25376,7 +25760,7 @@ func (m *awsEc2query_serializeOpModifySecurityGroupRules) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifySecurityGroupRulesInput) + input, ok := in.Parameters.(*ModifyClientVpnEndpointInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25401,10 +25785,10 @@ func (m *awsEc2query_serializeOpModifySecurityGroupRules) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifySecurityGroupRules") + body.Key("Action").String("ModifyClientVpnEndpoint") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifySecurityGroupRulesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25425,14 +25809,14 @@ func (m *awsEc2query_serializeOpModifySecurityGroupRules) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifySnapshotAttribute struct { +type awsEc2query_serializeOpModifyDefaultCreditSpecification struct { } -func (*awsEc2query_serializeOpModifySnapshotAttribute) ID() string { +func (*awsEc2query_serializeOpModifyDefaultCreditSpecification) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifySnapshotAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyDefaultCreditSpecification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25440,7 +25824,7 @@ func (m *awsEc2query_serializeOpModifySnapshotAttribute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifySnapshotAttributeInput) + input, ok := in.Parameters.(*ModifyDefaultCreditSpecificationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25465,10 +25849,10 @@ func (m *awsEc2query_serializeOpModifySnapshotAttribute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifySnapshotAttribute") + body.Key("Action").String("ModifyDefaultCreditSpecification") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifySnapshotAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyDefaultCreditSpecificationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25489,14 +25873,14 @@ func (m *awsEc2query_serializeOpModifySnapshotAttribute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifySnapshotTier struct { +type awsEc2query_serializeOpModifyEbsDefaultKmsKeyId struct { } -func (*awsEc2query_serializeOpModifySnapshotTier) ID() string { +func (*awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifySnapshotTier) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyEbsDefaultKmsKeyId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25504,7 +25888,7 @@ func (m *awsEc2query_serializeOpModifySnapshotTier) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifySnapshotTierInput) + input, ok := in.Parameters.(*ModifyEbsDefaultKmsKeyIdInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25529,10 +25913,10 @@ func (m *awsEc2query_serializeOpModifySnapshotTier) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifySnapshotTier") + body.Key("Action").String("ModifyEbsDefaultKmsKeyId") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifySnapshotTierInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyEbsDefaultKmsKeyIdInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25553,14 +25937,14 @@ func (m *awsEc2query_serializeOpModifySnapshotTier) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifySpotFleetRequest struct { +type awsEc2query_serializeOpModifyFleet struct { } -func (*awsEc2query_serializeOpModifySpotFleetRequest) ID() string { +func (*awsEc2query_serializeOpModifyFleet) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifySpotFleetRequest) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25568,7 +25952,7 @@ func (m *awsEc2query_serializeOpModifySpotFleetRequest) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifySpotFleetRequestInput) + input, ok := in.Parameters.(*ModifyFleetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25593,10 +25977,10 @@ func (m *awsEc2query_serializeOpModifySpotFleetRequest) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifySpotFleetRequest") + body.Key("Action").String("ModifyFleet") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyFleetInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25617,14 +26001,14 @@ func (m *awsEc2query_serializeOpModifySpotFleetRequest) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifySubnetAttribute struct { +type awsEc2query_serializeOpModifyFpgaImageAttribute struct { } -func (*awsEc2query_serializeOpModifySubnetAttribute) ID() string { +func (*awsEc2query_serializeOpModifyFpgaImageAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifySubnetAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyFpgaImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25632,7 +26016,7 @@ func (m *awsEc2query_serializeOpModifySubnetAttribute) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifySubnetAttributeInput) + input, ok := in.Parameters.(*ModifyFpgaImageAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25657,10 +26041,10 @@ func (m *awsEc2query_serializeOpModifySubnetAttribute) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifySubnetAttribute") + body.Key("Action").String("ModifyFpgaImageAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifySubnetAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyFpgaImageAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25681,14 +26065,14 @@ func (m *awsEc2query_serializeOpModifySubnetAttribute) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices struct { +type awsEc2query_serializeOpModifyHosts struct { } -func (*awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { +func (*awsEc2query_serializeOpModifyHosts) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25696,7 +26080,7 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) Handle return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyTrafficMirrorFilterNetworkServicesInput) + input, ok := in.Parameters.(*ModifyHostsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25721,10 +26105,10 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) Handle bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyTrafficMirrorFilterNetworkServices") + body.Key("Action").String("ModifyHosts") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterNetworkServicesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyHostsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25745,14 +26129,14 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) Handle return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyTrafficMirrorFilterRule struct { +type awsEc2query_serializeOpModifyIdentityIdFormat struct { } -func (*awsEc2query_serializeOpModifyTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_serializeOpModifyIdentityIdFormat) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyIdentityIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25760,7 +26144,7 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterRule) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyTrafficMirrorFilterRuleInput) + input, ok := in.Parameters.(*ModifyIdentityIdFormatInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25785,10 +26169,10 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterRule) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyTrafficMirrorFilterRule") + body.Key("Action").String("ModifyIdentityIdFormat") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterRuleInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyIdentityIdFormatInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25809,14 +26193,14 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterRule) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyTrafficMirrorSession struct { +type awsEc2query_serializeOpModifyIdFormat struct { } -func (*awsEc2query_serializeOpModifyTrafficMirrorSession) ID() string { +func (*awsEc2query_serializeOpModifyIdFormat) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyTrafficMirrorSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyIdFormat) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25824,7 +26208,7 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorSession) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyTrafficMirrorSessionInput) + input, ok := in.Parameters.(*ModifyIdFormatInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25849,10 +26233,10 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorSession) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyTrafficMirrorSession") + body.Key("Action").String("ModifyIdFormat") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyIdFormatInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25873,14 +26257,14 @@ func (m *awsEc2query_serializeOpModifyTrafficMirrorSession) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyTransitGateway struct { +type awsEc2query_serializeOpModifyImageAttribute struct { } -func (*awsEc2query_serializeOpModifyTransitGateway) ID() string { +func (*awsEc2query_serializeOpModifyImageAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyTransitGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25888,7 +26272,7 @@ func (m *awsEc2query_serializeOpModifyTransitGateway) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyTransitGatewayInput) + input, ok := in.Parameters.(*ModifyImageAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25913,10 +26297,10 @@ func (m *awsEc2query_serializeOpModifyTransitGateway) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyTransitGateway") + body.Key("Action").String("ModifyImageAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyTransitGatewayInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyImageAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -25937,14 +26321,14 @@ func (m *awsEc2query_serializeOpModifyTransitGateway) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyTransitGatewayPrefixListReference struct { +type awsEc2query_serializeOpModifyInstanceAttribute struct { } -func (*awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_serializeOpModifyInstanceAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstanceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -25952,7 +26336,7 @@ func (m *awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyTransitGatewayPrefixListReferenceInput) + input, ok := in.Parameters.(*ModifyInstanceAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -25977,10 +26361,10 @@ func (m *awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyTransitGatewayPrefixListReference") + body.Key("Action").String("ModifyInstanceAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyTransitGatewayPrefixListReferenceInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstanceAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26001,14 +26385,14 @@ func (m *awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyTransitGatewayVpcAttachment struct { +type awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes struct { } -func (*awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26016,7 +26400,7 @@ func (m *awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyTransitGatewayVpcAttachmentInput) + input, ok := in.Parameters.(*ModifyInstanceCapacityReservationAttributesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26041,10 +26425,10 @@ func (m *awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyTransitGatewayVpcAttachment") + body.Key("Action").String("ModifyInstanceCapacityReservationAttributes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyTransitGatewayVpcAttachmentInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstanceCapacityReservationAttributesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26065,14 +26449,14 @@ func (m *awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVolume struct { +type awsEc2query_serializeOpModifyInstanceCreditSpecification struct { } -func (*awsEc2query_serializeOpModifyVolume) ID() string { +func (*awsEc2query_serializeOpModifyInstanceCreditSpecification) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstanceCreditSpecification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26080,7 +26464,7 @@ func (m *awsEc2query_serializeOpModifyVolume) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVolumeInput) + input, ok := in.Parameters.(*ModifyInstanceCreditSpecificationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26105,10 +26489,10 @@ func (m *awsEc2query_serializeOpModifyVolume) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVolume") + body.Key("Action").String("ModifyInstanceCreditSpecification") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVolumeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstanceCreditSpecificationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26129,14 +26513,14 @@ func (m *awsEc2query_serializeOpModifyVolume) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVolumeAttribute struct { +type awsEc2query_serializeOpModifyInstanceEventStartTime struct { } -func (*awsEc2query_serializeOpModifyVolumeAttribute) ID() string { +func (*awsEc2query_serializeOpModifyInstanceEventStartTime) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVolumeAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstanceEventStartTime) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26144,7 +26528,7 @@ func (m *awsEc2query_serializeOpModifyVolumeAttribute) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVolumeAttributeInput) + input, ok := in.Parameters.(*ModifyInstanceEventStartTimeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26169,10 +26553,10 @@ func (m *awsEc2query_serializeOpModifyVolumeAttribute) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVolumeAttribute") + body.Key("Action").String("ModifyInstanceEventStartTime") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVolumeAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstanceEventStartTimeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26193,14 +26577,14 @@ func (m *awsEc2query_serializeOpModifyVolumeAttribute) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcAttribute struct { +type awsEc2query_serializeOpModifyInstanceEventWindow struct { } -func (*awsEc2query_serializeOpModifyVpcAttribute) ID() string { +func (*awsEc2query_serializeOpModifyInstanceEventWindow) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstanceEventWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26208,7 +26592,7 @@ func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcAttributeInput) + input, ok := in.Parameters.(*ModifyInstanceEventWindowInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26233,10 +26617,10 @@ func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcAttribute") + body.Key("Action").String("ModifyInstanceEventWindow") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstanceEventWindowInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26257,14 +26641,14 @@ func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpoint struct { +type awsEc2query_serializeOpModifyInstanceMetadataOptions struct { } -func (*awsEc2query_serializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_serializeOpModifyInstanceMetadataOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstanceMetadataOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26272,7 +26656,7 @@ func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcEndpointInput) + input, ok := in.Parameters.(*ModifyInstanceMetadataOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26297,10 +26681,10 @@ func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.C bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcEndpoint") + body.Key("Action").String("ModifyInstanceMetadataOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26321,14 +26705,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_serializeOpModifyInstancePlacement struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_serializeOpModifyInstancePlacement) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyInstancePlacement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26336,7 +26720,7 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleS return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcEndpointConnectionNotificationInput) + input, ok := in.Parameters.(*ModifyInstancePlacementInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26361,10 +26745,10 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleS bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcEndpointConnectionNotification") + body.Key("Action").String("ModifyInstancePlacement") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyInstancePlacementInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26385,14 +26769,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleS return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_serializeOpModifyIpam struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_serializeOpModifyIpam) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyIpam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26400,7 +26784,7 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcEndpointServiceConfigurationInput) + input, ok := in.Parameters.(*ModifyIpamInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26425,10 +26809,10 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcEndpointServiceConfiguration") + body.Key("Action").String("ModifyIpam") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyIpamInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26449,14 +26833,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_serializeOpModifyIpamPool struct { } -func (*awsEc2query_serializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_serializeOpModifyIpamPool) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyIpamPool) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26464,7 +26848,7 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcEndpointServicePermissionsInput) + input, ok := in.Parameters.(*ModifyIpamPoolInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26489,10 +26873,10 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) HandleSeria bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcEndpointServicePermissions") + body.Key("Action").String("ModifyIpamPool") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyIpamPoolInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26513,14 +26897,14 @@ func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) HandleSeria return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_serializeOpModifyIpamResourceCidr struct { } -func (*awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_serializeOpModifyIpamResourceCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyIpamResourceCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26528,7 +26912,7 @@ func (m *awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcPeeringConnectionOptionsInput) + input, ok := in.Parameters.(*ModifyIpamResourceCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26553,10 +26937,10 @@ func (m *awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcPeeringConnectionOptions") + body.Key("Action").String("ModifyIpamResourceCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcPeeringConnectionOptionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyIpamResourceCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26577,14 +26961,14 @@ func (m *awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpcTenancy struct { +type awsEc2query_serializeOpModifyIpamScope struct { } -func (*awsEc2query_serializeOpModifyVpcTenancy) ID() string { +func (*awsEc2query_serializeOpModifyIpamScope) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpcTenancy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyIpamScope) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26592,7 +26976,7 @@ func (m *awsEc2query_serializeOpModifyVpcTenancy) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpcTenancyInput) + input, ok := in.Parameters.(*ModifyIpamScopeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26617,10 +27001,10 @@ func (m *awsEc2query_serializeOpModifyVpcTenancy) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpcTenancy") + body.Key("Action").String("ModifyIpamScope") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpcTenancyInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyIpamScopeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26641,14 +27025,14 @@ func (m *awsEc2query_serializeOpModifyVpcTenancy) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpnConnection struct { +type awsEc2query_serializeOpModifyLaunchTemplate struct { } -func (*awsEc2query_serializeOpModifyVpnConnection) ID() string { +func (*awsEc2query_serializeOpModifyLaunchTemplate) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpnConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyLaunchTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26656,7 +27040,7 @@ func (m *awsEc2query_serializeOpModifyVpnConnection) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpnConnectionInput) + input, ok := in.Parameters.(*ModifyLaunchTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26681,10 +27065,10 @@ func (m *awsEc2query_serializeOpModifyVpnConnection) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpnConnection") + body.Key("Action").String("ModifyLaunchTemplate") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpnConnectionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyLaunchTemplateInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26705,14 +27089,14 @@ func (m *awsEc2query_serializeOpModifyVpnConnection) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpnConnectionOptions struct { +type awsEc2query_serializeOpModifyManagedPrefixList struct { } -func (*awsEc2query_serializeOpModifyVpnConnectionOptions) ID() string { +func (*awsEc2query_serializeOpModifyManagedPrefixList) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpnConnectionOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyManagedPrefixList) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26720,7 +27104,7 @@ func (m *awsEc2query_serializeOpModifyVpnConnectionOptions) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpnConnectionOptionsInput) + input, ok := in.Parameters.(*ModifyManagedPrefixListInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26745,10 +27129,10 @@ func (m *awsEc2query_serializeOpModifyVpnConnectionOptions) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpnConnectionOptions") + body.Key("Action").String("ModifyManagedPrefixList") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpnConnectionOptionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyManagedPrefixListInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26769,14 +27153,14 @@ func (m *awsEc2query_serializeOpModifyVpnConnectionOptions) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpnTunnelCertificate struct { +type awsEc2query_serializeOpModifyNetworkInterfaceAttribute struct { } -func (*awsEc2query_serializeOpModifyVpnTunnelCertificate) ID() string { +func (*awsEc2query_serializeOpModifyNetworkInterfaceAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpnTunnelCertificate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyNetworkInterfaceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26784,7 +27168,7 @@ func (m *awsEc2query_serializeOpModifyVpnTunnelCertificate) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpnTunnelCertificateInput) + input, ok := in.Parameters.(*ModifyNetworkInterfaceAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26809,10 +27193,10 @@ func (m *awsEc2query_serializeOpModifyVpnTunnelCertificate) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpnTunnelCertificate") + body.Key("Action").String("ModifyNetworkInterfaceAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpnTunnelCertificateInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyNetworkInterfaceAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26833,14 +27217,14 @@ func (m *awsEc2query_serializeOpModifyVpnTunnelCertificate) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpModifyVpnTunnelOptions struct { +type awsEc2query_serializeOpModifyPrivateDnsNameOptions struct { } -func (*awsEc2query_serializeOpModifyVpnTunnelOptions) ID() string { +func (*awsEc2query_serializeOpModifyPrivateDnsNameOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpModifyVpnTunnelOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyPrivateDnsNameOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26848,7 +27232,7 @@ func (m *awsEc2query_serializeOpModifyVpnTunnelOptions) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ModifyVpnTunnelOptionsInput) + input, ok := in.Parameters.(*ModifyPrivateDnsNameOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26873,10 +27257,10 @@ func (m *awsEc2query_serializeOpModifyVpnTunnelOptions) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ModifyVpnTunnelOptions") + body.Key("Action").String("ModifyPrivateDnsNameOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentModifyVpnTunnelOptionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyPrivateDnsNameOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26897,14 +27281,14 @@ func (m *awsEc2query_serializeOpModifyVpnTunnelOptions) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpMonitorInstances struct { +type awsEc2query_serializeOpModifyReservedInstances struct { } -func (*awsEc2query_serializeOpMonitorInstances) ID() string { +func (*awsEc2query_serializeOpModifyReservedInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpMonitorInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyReservedInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26912,7 +27296,7 @@ func (m *awsEc2query_serializeOpMonitorInstances) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*MonitorInstancesInput) + input, ok := in.Parameters.(*ModifyReservedInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -26937,10 +27321,10 @@ func (m *awsEc2query_serializeOpMonitorInstances) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("MonitorInstances") + body.Key("Action").String("ModifyReservedInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentMonitorInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyReservedInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -26961,14 +27345,14 @@ func (m *awsEc2query_serializeOpMonitorInstances) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpMoveAddressToVpc struct { +type awsEc2query_serializeOpModifySecurityGroupRules struct { } -func (*awsEc2query_serializeOpMoveAddressToVpc) ID() string { +func (*awsEc2query_serializeOpModifySecurityGroupRules) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpMoveAddressToVpc) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifySecurityGroupRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -26976,7 +27360,7 @@ func (m *awsEc2query_serializeOpMoveAddressToVpc) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*MoveAddressToVpcInput) + input, ok := in.Parameters.(*ModifySecurityGroupRulesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27001,10 +27385,10 @@ func (m *awsEc2query_serializeOpMoveAddressToVpc) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("MoveAddressToVpc") + body.Key("Action").String("ModifySecurityGroupRules") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentMoveAddressToVpcInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifySecurityGroupRulesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27025,14 +27409,14 @@ func (m *awsEc2query_serializeOpMoveAddressToVpc) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpProvisionByoipCidr struct { +type awsEc2query_serializeOpModifySnapshotAttribute struct { } -func (*awsEc2query_serializeOpProvisionByoipCidr) ID() string { +func (*awsEc2query_serializeOpModifySnapshotAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpProvisionByoipCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifySnapshotAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27040,7 +27424,7 @@ func (m *awsEc2query_serializeOpProvisionByoipCidr) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ProvisionByoipCidrInput) + input, ok := in.Parameters.(*ModifySnapshotAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27065,10 +27449,10 @@ func (m *awsEc2query_serializeOpProvisionByoipCidr) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ProvisionByoipCidr") + body.Key("Action").String("ModifySnapshotAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentProvisionByoipCidrInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifySnapshotAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27089,14 +27473,14 @@ func (m *awsEc2query_serializeOpProvisionByoipCidr) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpPurchaseHostReservation struct { +type awsEc2query_serializeOpModifySnapshotTier struct { } -func (*awsEc2query_serializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_serializeOpModifySnapshotTier) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpPurchaseHostReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifySnapshotTier) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27104,7 +27488,7 @@ func (m *awsEc2query_serializeOpPurchaseHostReservation) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*PurchaseHostReservationInput) + input, ok := in.Parameters.(*ModifySnapshotTierInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27129,10 +27513,10 @@ func (m *awsEc2query_serializeOpPurchaseHostReservation) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("PurchaseHostReservation") + body.Key("Action").String("ModifySnapshotTier") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentPurchaseHostReservationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifySnapshotTierInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27153,14 +27537,14 @@ func (m *awsEc2query_serializeOpPurchaseHostReservation) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_serializeOpModifySpotFleetRequest struct { } -func (*awsEc2query_serializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_serializeOpModifySpotFleetRequest) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpPurchaseReservedInstancesOffering) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifySpotFleetRequest) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27168,7 +27552,7 @@ func (m *awsEc2query_serializeOpPurchaseReservedInstancesOffering) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*PurchaseReservedInstancesOfferingInput) + input, ok := in.Parameters.(*ModifySpotFleetRequestInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27193,10 +27577,10 @@ func (m *awsEc2query_serializeOpPurchaseReservedInstancesOffering) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("PurchaseReservedInstancesOffering") + body.Key("Action").String("ModifySpotFleetRequest") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentPurchaseReservedInstancesOfferingInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27217,14 +27601,14 @@ func (m *awsEc2query_serializeOpPurchaseReservedInstancesOffering) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpPurchaseScheduledInstances struct { +type awsEc2query_serializeOpModifySubnetAttribute struct { } -func (*awsEc2query_serializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_serializeOpModifySubnetAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpPurchaseScheduledInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifySubnetAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27232,7 +27616,7 @@ func (m *awsEc2query_serializeOpPurchaseScheduledInstances) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*PurchaseScheduledInstancesInput) + input, ok := in.Parameters.(*ModifySubnetAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27257,10 +27641,10 @@ func (m *awsEc2query_serializeOpPurchaseScheduledInstances) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("PurchaseScheduledInstances") + body.Key("Action").String("ModifySubnetAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentPurchaseScheduledInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifySubnetAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27281,14 +27665,14 @@ func (m *awsEc2query_serializeOpPurchaseScheduledInstances) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRebootInstances struct { +type awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices struct { } -func (*awsEc2query_serializeOpRebootInstances) ID() string { +func (*awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRebootInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27296,7 +27680,7 @@ func (m *awsEc2query_serializeOpRebootInstances) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RebootInstancesInput) + input, ok := in.Parameters.(*ModifyTrafficMirrorFilterNetworkServicesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27321,10 +27705,10 @@ func (m *awsEc2query_serializeOpRebootInstances) HandleSerialize(ctx context.Con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RebootInstances") + body.Key("Action").String("ModifyTrafficMirrorFilterNetworkServices") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRebootInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterNetworkServicesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27345,14 +27729,14 @@ func (m *awsEc2query_serializeOpRebootInstances) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRegisterImage struct { +type awsEc2query_serializeOpModifyTrafficMirrorFilterRule struct { } -func (*awsEc2query_serializeOpRegisterImage) ID() string { +func (*awsEc2query_serializeOpModifyTrafficMirrorFilterRule) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRegisterImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyTrafficMirrorFilterRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27360,7 +27744,7 @@ func (m *awsEc2query_serializeOpRegisterImage) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RegisterImageInput) + input, ok := in.Parameters.(*ModifyTrafficMirrorFilterRuleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27385,10 +27769,10 @@ func (m *awsEc2query_serializeOpRegisterImage) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RegisterImage") + body.Key("Action").String("ModifyTrafficMirrorFilterRule") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRegisterImageInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterRuleInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27409,14 +27793,14 @@ func (m *awsEc2query_serializeOpRegisterImage) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes struct { +type awsEc2query_serializeOpModifyTrafficMirrorSession struct { } -func (*awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_serializeOpModifyTrafficMirrorSession) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyTrafficMirrorSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27424,7 +27808,7 @@ func (m *awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) Han return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RegisterInstanceEventNotificationAttributesInput) + input, ok := in.Parameters.(*ModifyTrafficMirrorSessionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27449,10 +27833,10 @@ func (m *awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) Han bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RegisterInstanceEventNotificationAttributes") + body.Key("Action").String("ModifyTrafficMirrorSession") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRegisterInstanceEventNotificationAttributesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27473,14 +27857,14 @@ func (m *awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_serializeOpModifyTransitGateway struct { } -func (*awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_serializeOpModifyTransitGateway) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyTransitGateway) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27488,7 +27872,7 @@ func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) Han return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RegisterTransitGatewayMulticastGroupMembersInput) + input, ok := in.Parameters.(*ModifyTransitGatewayInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27513,10 +27897,10 @@ func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) Han bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RegisterTransitGatewayMulticastGroupMembers") + body.Key("Action").String("ModifyTransitGateway") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupMembersInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyTransitGatewayInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27537,14 +27921,14 @@ func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_serializeOpModifyTransitGatewayPrefixListReference struct { } -func (*awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyTransitGatewayPrefixListReference) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27552,7 +27936,7 @@ func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) Han return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RegisterTransitGatewayMulticastGroupSourcesInput) + input, ok := in.Parameters.(*ModifyTransitGatewayPrefixListReferenceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27577,10 +27961,10 @@ func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) Han bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RegisterTransitGatewayMulticastGroupSources") + body.Key("Action").String("ModifyTransitGatewayPrefixListReference") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyTransitGatewayPrefixListReferenceInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27601,14 +27985,14 @@ func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) Han return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_serializeOpModifyTransitGatewayVpcAttachment struct { } -func (*awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyTransitGatewayVpcAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27616,7 +28000,7 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RejectTransitGatewayMulticastDomainAssociationsInput) + input, ok := in.Parameters.(*ModifyTransitGatewayVpcAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27641,10 +28025,10 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RejectTransitGatewayMulticastDomainAssociations") + body.Key("Action").String("ModifyTransitGatewayVpcAttachment") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyTransitGatewayVpcAttachmentInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27665,14 +28049,14 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment struct { +type awsEc2query_serializeOpModifyVolume struct { } -func (*awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_serializeOpModifyVolume) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27680,7 +28064,7 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) HandleSer return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RejectTransitGatewayPeeringAttachmentInput) + input, ok := in.Parameters.(*ModifyVolumeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27705,10 +28089,10 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) HandleSer bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RejectTransitGatewayPeeringAttachment") + body.Key("Action").String("ModifyVolume") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRejectTransitGatewayPeeringAttachmentInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVolumeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27729,14 +28113,14 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) HandleSer return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRejectTransitGatewayVpcAttachment struct { +type awsEc2query_serializeOpModifyVolumeAttribute struct { } -func (*awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_serializeOpModifyVolumeAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVolumeAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27744,7 +28128,7 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RejectTransitGatewayVpcAttachmentInput) + input, ok := in.Parameters.(*ModifyVolumeAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27769,10 +28153,10 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) HandleSeriali bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RejectTransitGatewayVpcAttachment") + body.Key("Action").String("ModifyVolumeAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRejectTransitGatewayVpcAttachmentInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVolumeAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27793,14 +28177,14 @@ func (m *awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) HandleSeriali return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRejectVpcEndpointConnections struct { +type awsEc2query_serializeOpModifyVpcAttribute struct { } -func (*awsEc2query_serializeOpRejectVpcEndpointConnections) ID() string { +func (*awsEc2query_serializeOpModifyVpcAttribute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRejectVpcEndpointConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27808,7 +28192,7 @@ func (m *awsEc2query_serializeOpRejectVpcEndpointConnections) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RejectVpcEndpointConnectionsInput) + input, ok := in.Parameters.(*ModifyVpcAttributeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27833,10 +28217,10 @@ func (m *awsEc2query_serializeOpRejectVpcEndpointConnections) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RejectVpcEndpointConnections") + body.Key("Action").String("ModifyVpcAttribute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRejectVpcEndpointConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcAttributeInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27857,14 +28241,14 @@ func (m *awsEc2query_serializeOpRejectVpcEndpointConnections) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRejectVpcPeeringConnection struct { +type awsEc2query_serializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_serializeOpRejectVpcPeeringConnection) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpoint) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRejectVpcPeeringConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27872,7 +28256,7 @@ func (m *awsEc2query_serializeOpRejectVpcPeeringConnection) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RejectVpcPeeringConnectionInput) + input, ok := in.Parameters.(*ModifyVpcEndpointInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27897,10 +28281,10 @@ func (m *awsEc2query_serializeOpRejectVpcPeeringConnection) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RejectVpcPeeringConnection") + body.Key("Action").String("ModifyVpcEndpoint") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRejectVpcPeeringConnectionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27921,14 +28305,14 @@ func (m *awsEc2query_serializeOpRejectVpcPeeringConnection) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReleaseAddress struct { +type awsEc2query_serializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_serializeOpReleaseAddress) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReleaseAddress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcEndpointConnectionNotification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -27936,7 +28320,7 @@ func (m *awsEc2query_serializeOpReleaseAddress) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReleaseAddressInput) + input, ok := in.Parameters.(*ModifyVpcEndpointConnectionNotificationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -27961,10 +28345,10 @@ func (m *awsEc2query_serializeOpReleaseAddress) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReleaseAddress") + body.Key("Action").String("ModifyVpcEndpointConnectionNotification") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReleaseAddressInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -27985,14 +28369,14 @@ func (m *awsEc2query_serializeOpReleaseAddress) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReleaseHosts struct { +type awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_serializeOpReleaseHosts) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReleaseHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28000,7 +28384,7 @@ func (m *awsEc2query_serializeOpReleaseHosts) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReleaseHostsInput) + input, ok := in.Parameters.(*ModifyVpcEndpointServiceConfigurationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28025,10 +28409,10 @@ func (m *awsEc2query_serializeOpReleaseHosts) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReleaseHosts") + body.Key("Action").String("ModifyVpcEndpointServiceConfiguration") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReleaseHostsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28049,14 +28433,14 @@ func (m *awsEc2query_serializeOpReleaseHosts) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReplaceIamInstanceProfileAssociation struct { +type awsEc2query_serializeOpModifyVpcEndpointServicePermissions struct { } -func (*awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) ID() string { +func (*awsEc2query_serializeOpModifyVpcEndpointServicePermissions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcEndpointServicePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28064,7 +28448,7 @@ func (m *awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) HandleSeri return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReplaceIamInstanceProfileAssociationInput) + input, ok := in.Parameters.(*ModifyVpcEndpointServicePermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28089,10 +28473,10 @@ func (m *awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) HandleSeri bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReplaceIamInstanceProfileAssociation") + body.Key("Action").String("ModifyVpcEndpointServicePermissions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReplaceIamInstanceProfileAssociationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcEndpointServicePermissionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28113,14 +28497,14 @@ func (m *awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) HandleSeri return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReplaceNetworkAclAssociation struct { +type awsEc2query_serializeOpModifyVpcPeeringConnectionOptions struct { } -func (*awsEc2query_serializeOpReplaceNetworkAclAssociation) ID() string { +func (*awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReplaceNetworkAclAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcPeeringConnectionOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28128,7 +28512,7 @@ func (m *awsEc2query_serializeOpReplaceNetworkAclAssociation) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReplaceNetworkAclAssociationInput) + input, ok := in.Parameters.(*ModifyVpcPeeringConnectionOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28153,10 +28537,10 @@ func (m *awsEc2query_serializeOpReplaceNetworkAclAssociation) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReplaceNetworkAclAssociation") + body.Key("Action").String("ModifyVpcPeeringConnectionOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReplaceNetworkAclAssociationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcPeeringConnectionOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28177,14 +28561,14 @@ func (m *awsEc2query_serializeOpReplaceNetworkAclAssociation) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReplaceNetworkAclEntry struct { +type awsEc2query_serializeOpModifyVpcTenancy struct { } -func (*awsEc2query_serializeOpReplaceNetworkAclEntry) ID() string { +func (*awsEc2query_serializeOpModifyVpcTenancy) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReplaceNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpcTenancy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28192,7 +28576,7 @@ func (m *awsEc2query_serializeOpReplaceNetworkAclEntry) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReplaceNetworkAclEntryInput) + input, ok := in.Parameters.(*ModifyVpcTenancyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28217,10 +28601,10 @@ func (m *awsEc2query_serializeOpReplaceNetworkAclEntry) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReplaceNetworkAclEntry") + body.Key("Action").String("ModifyVpcTenancy") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReplaceNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpcTenancyInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28241,14 +28625,14 @@ func (m *awsEc2query_serializeOpReplaceNetworkAclEntry) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReplaceRoute struct { +type awsEc2query_serializeOpModifyVpnConnection struct { } -func (*awsEc2query_serializeOpReplaceRoute) ID() string { +func (*awsEc2query_serializeOpModifyVpnConnection) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReplaceRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpnConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28256,7 +28640,7 @@ func (m *awsEc2query_serializeOpReplaceRoute) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReplaceRouteInput) + input, ok := in.Parameters.(*ModifyVpnConnectionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28281,10 +28665,10 @@ func (m *awsEc2query_serializeOpReplaceRoute) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReplaceRoute") + body.Key("Action").String("ModifyVpnConnection") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReplaceRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpnConnectionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28305,14 +28689,14 @@ func (m *awsEc2query_serializeOpReplaceRoute) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReplaceRouteTableAssociation struct { +type awsEc2query_serializeOpModifyVpnConnectionOptions struct { } -func (*awsEc2query_serializeOpReplaceRouteTableAssociation) ID() string { +func (*awsEc2query_serializeOpModifyVpnConnectionOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReplaceRouteTableAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpnConnectionOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28320,7 +28704,7 @@ func (m *awsEc2query_serializeOpReplaceRouteTableAssociation) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReplaceRouteTableAssociationInput) + input, ok := in.Parameters.(*ModifyVpnConnectionOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28345,10 +28729,10 @@ func (m *awsEc2query_serializeOpReplaceRouteTableAssociation) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReplaceRouteTableAssociation") + body.Key("Action").String("ModifyVpnConnectionOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReplaceRouteTableAssociationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpnConnectionOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28369,14 +28753,14 @@ func (m *awsEc2query_serializeOpReplaceRouteTableAssociation) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReplaceTransitGatewayRoute struct { +type awsEc2query_serializeOpModifyVpnTunnelCertificate struct { } -func (*awsEc2query_serializeOpReplaceTransitGatewayRoute) ID() string { +func (*awsEc2query_serializeOpModifyVpnTunnelCertificate) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReplaceTransitGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpnTunnelCertificate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28384,7 +28768,7 @@ func (m *awsEc2query_serializeOpReplaceTransitGatewayRoute) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReplaceTransitGatewayRouteInput) + input, ok := in.Parameters.(*ModifyVpnTunnelCertificateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28409,10 +28793,10 @@ func (m *awsEc2query_serializeOpReplaceTransitGatewayRoute) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReplaceTransitGatewayRoute") + body.Key("Action").String("ModifyVpnTunnelCertificate") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReplaceTransitGatewayRouteInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpnTunnelCertificateInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28433,14 +28817,14 @@ func (m *awsEc2query_serializeOpReplaceTransitGatewayRoute) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpReportInstanceStatus struct { +type awsEc2query_serializeOpModifyVpnTunnelOptions struct { } -func (*awsEc2query_serializeOpReportInstanceStatus) ID() string { +func (*awsEc2query_serializeOpModifyVpnTunnelOptions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpReportInstanceStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpModifyVpnTunnelOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28448,7 +28832,7 @@ func (m *awsEc2query_serializeOpReportInstanceStatus) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ReportInstanceStatusInput) + input, ok := in.Parameters.(*ModifyVpnTunnelOptionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28473,10 +28857,10 @@ func (m *awsEc2query_serializeOpReportInstanceStatus) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ReportInstanceStatus") + body.Key("Action").String("ModifyVpnTunnelOptions") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentReportInstanceStatusInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentModifyVpnTunnelOptionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28497,14 +28881,14 @@ func (m *awsEc2query_serializeOpReportInstanceStatus) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRequestSpotFleet struct { +type awsEc2query_serializeOpMonitorInstances struct { } -func (*awsEc2query_serializeOpRequestSpotFleet) ID() string { +func (*awsEc2query_serializeOpMonitorInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRequestSpotFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpMonitorInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28512,7 +28896,7 @@ func (m *awsEc2query_serializeOpRequestSpotFleet) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RequestSpotFleetInput) + input, ok := in.Parameters.(*MonitorInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28537,10 +28921,10 @@ func (m *awsEc2query_serializeOpRequestSpotFleet) HandleSerialize(ctx context.Co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RequestSpotFleet") + body.Key("Action").String("MonitorInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRequestSpotFleetInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentMonitorInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28561,14 +28945,14 @@ func (m *awsEc2query_serializeOpRequestSpotFleet) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRequestSpotInstances struct { +type awsEc2query_serializeOpMoveAddressToVpc struct { } -func (*awsEc2query_serializeOpRequestSpotInstances) ID() string { +func (*awsEc2query_serializeOpMoveAddressToVpc) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRequestSpotInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpMoveAddressToVpc) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28576,7 +28960,7 @@ func (m *awsEc2query_serializeOpRequestSpotInstances) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RequestSpotInstancesInput) + input, ok := in.Parameters.(*MoveAddressToVpcInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28601,10 +28985,10 @@ func (m *awsEc2query_serializeOpRequestSpotInstances) HandleSerialize(ctx contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RequestSpotInstances") + body.Key("Action").String("MoveAddressToVpc") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRequestSpotInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentMoveAddressToVpcInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28625,14 +29009,14 @@ func (m *awsEc2query_serializeOpRequestSpotInstances) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetAddressAttribute struct { +type awsEc2query_serializeOpMoveByoipCidrToIpam struct { } -func (*awsEc2query_serializeOpResetAddressAttribute) ID() string { +func (*awsEc2query_serializeOpMoveByoipCidrToIpam) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetAddressAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpMoveByoipCidrToIpam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28640,7 +29024,7 @@ func (m *awsEc2query_serializeOpResetAddressAttribute) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetAddressAttributeInput) + input, ok := in.Parameters.(*MoveByoipCidrToIpamInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28665,10 +29049,10 @@ func (m *awsEc2query_serializeOpResetAddressAttribute) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetAddressAttribute") + body.Key("Action").String("MoveByoipCidrToIpam") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetAddressAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentMoveByoipCidrToIpamInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28689,14 +29073,14 @@ func (m *awsEc2query_serializeOpResetAddressAttribute) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetEbsDefaultKmsKeyId struct { +type awsEc2query_serializeOpProvisionByoipCidr struct { } -func (*awsEc2query_serializeOpResetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_serializeOpProvisionByoipCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetEbsDefaultKmsKeyId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpProvisionByoipCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28704,7 +29088,7 @@ func (m *awsEc2query_serializeOpResetEbsDefaultKmsKeyId) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetEbsDefaultKmsKeyIdInput) + input, ok := in.Parameters.(*ProvisionByoipCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28729,10 +29113,10 @@ func (m *awsEc2query_serializeOpResetEbsDefaultKmsKeyId) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetEbsDefaultKmsKeyId") + body.Key("Action").String("ProvisionByoipCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetEbsDefaultKmsKeyIdInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentProvisionByoipCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28753,14 +29137,14 @@ func (m *awsEc2query_serializeOpResetEbsDefaultKmsKeyId) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetFpgaImageAttribute struct { +type awsEc2query_serializeOpProvisionIpamPoolCidr struct { } -func (*awsEc2query_serializeOpResetFpgaImageAttribute) ID() string { +func (*awsEc2query_serializeOpProvisionIpamPoolCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetFpgaImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpProvisionIpamPoolCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28768,7 +29152,7 @@ func (m *awsEc2query_serializeOpResetFpgaImageAttribute) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetFpgaImageAttributeInput) + input, ok := in.Parameters.(*ProvisionIpamPoolCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28793,10 +29177,10 @@ func (m *awsEc2query_serializeOpResetFpgaImageAttribute) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetFpgaImageAttribute") + body.Key("Action").String("ProvisionIpamPoolCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetFpgaImageAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentProvisionIpamPoolCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28817,14 +29201,14 @@ func (m *awsEc2query_serializeOpResetFpgaImageAttribute) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetImageAttribute struct { +type awsEc2query_serializeOpProvisionPublicIpv4PoolCidr struct { } -func (*awsEc2query_serializeOpResetImageAttribute) ID() string { +func (*awsEc2query_serializeOpProvisionPublicIpv4PoolCidr) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetImageAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpProvisionPublicIpv4PoolCidr) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28832,7 +29216,7 @@ func (m *awsEc2query_serializeOpResetImageAttribute) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetImageAttributeInput) + input, ok := in.Parameters.(*ProvisionPublicIpv4PoolCidrInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28857,10 +29241,10 @@ func (m *awsEc2query_serializeOpResetImageAttribute) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetImageAttribute") + body.Key("Action").String("ProvisionPublicIpv4PoolCidr") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetImageAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentProvisionPublicIpv4PoolCidrInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28881,14 +29265,14 @@ func (m *awsEc2query_serializeOpResetImageAttribute) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetInstanceAttribute struct { +type awsEc2query_serializeOpPurchaseHostReservation struct { } -func (*awsEc2query_serializeOpResetInstanceAttribute) ID() string { +func (*awsEc2query_serializeOpPurchaseHostReservation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetInstanceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpPurchaseHostReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28896,7 +29280,7 @@ func (m *awsEc2query_serializeOpResetInstanceAttribute) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetInstanceAttributeInput) + input, ok := in.Parameters.(*PurchaseHostReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28921,10 +29305,10 @@ func (m *awsEc2query_serializeOpResetInstanceAttribute) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetInstanceAttribute") + body.Key("Action").String("PurchaseHostReservation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetInstanceAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentPurchaseHostReservationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -28945,14 +29329,14 @@ func (m *awsEc2query_serializeOpResetInstanceAttribute) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetNetworkInterfaceAttribute struct { +type awsEc2query_serializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_serializeOpResetNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_serializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetNetworkInterfaceAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpPurchaseReservedInstancesOffering) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -28960,7 +29344,7 @@ func (m *awsEc2query_serializeOpResetNetworkInterfaceAttribute) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetNetworkInterfaceAttributeInput) + input, ok := in.Parameters.(*PurchaseReservedInstancesOfferingInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -28985,10 +29369,10 @@ func (m *awsEc2query_serializeOpResetNetworkInterfaceAttribute) HandleSerialize( bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetNetworkInterfaceAttribute") + body.Key("Action").String("PurchaseReservedInstancesOffering") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetNetworkInterfaceAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentPurchaseReservedInstancesOfferingInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29009,14 +29393,14 @@ func (m *awsEc2query_serializeOpResetNetworkInterfaceAttribute) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpResetSnapshotAttribute struct { +type awsEc2query_serializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_serializeOpResetSnapshotAttribute) ID() string { +func (*awsEc2query_serializeOpPurchaseScheduledInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpResetSnapshotAttribute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpPurchaseScheduledInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29024,7 +29408,7 @@ func (m *awsEc2query_serializeOpResetSnapshotAttribute) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ResetSnapshotAttributeInput) + input, ok := in.Parameters.(*PurchaseScheduledInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29049,10 +29433,10 @@ func (m *awsEc2query_serializeOpResetSnapshotAttribute) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("ResetSnapshotAttribute") + body.Key("Action").String("PurchaseScheduledInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentResetSnapshotAttributeInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentPurchaseScheduledInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29073,14 +29457,14 @@ func (m *awsEc2query_serializeOpResetSnapshotAttribute) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRestoreAddressToClassic struct { +type awsEc2query_serializeOpRebootInstances struct { } -func (*awsEc2query_serializeOpRestoreAddressToClassic) ID() string { +func (*awsEc2query_serializeOpRebootInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRestoreAddressToClassic) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRebootInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29088,7 +29472,7 @@ func (m *awsEc2query_serializeOpRestoreAddressToClassic) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RestoreAddressToClassicInput) + input, ok := in.Parameters.(*RebootInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29113,10 +29497,10 @@ func (m *awsEc2query_serializeOpRestoreAddressToClassic) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RestoreAddressToClassic") + body.Key("Action").String("RebootInstances") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRestoreAddressToClassicInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRebootInstancesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29137,14 +29521,14 @@ func (m *awsEc2query_serializeOpRestoreAddressToClassic) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRestoreManagedPrefixListVersion struct { +type awsEc2query_serializeOpRegisterImage struct { } -func (*awsEc2query_serializeOpRestoreManagedPrefixListVersion) ID() string { +func (*awsEc2query_serializeOpRegisterImage) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRestoreManagedPrefixListVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRegisterImage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29152,7 +29536,7 @@ func (m *awsEc2query_serializeOpRestoreManagedPrefixListVersion) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RestoreManagedPrefixListVersionInput) + input, ok := in.Parameters.(*RegisterImageInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29177,10 +29561,10 @@ func (m *awsEc2query_serializeOpRestoreManagedPrefixListVersion) HandleSerialize bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RestoreManagedPrefixListVersion") + body.Key("Action").String("RegisterImage") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRestoreManagedPrefixListVersionInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRegisterImageInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29201,14 +29585,14 @@ func (m *awsEc2query_serializeOpRestoreManagedPrefixListVersion) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRestoreSnapshotFromRecycleBin struct { +type awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) ID() string { +func (*awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29216,7 +29600,7 @@ func (m *awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RestoreSnapshotFromRecycleBinInput) + input, ok := in.Parameters.(*RegisterInstanceEventNotificationAttributesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29241,10 +29625,10 @@ func (m *awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RestoreSnapshotFromRecycleBin") + body.Key("Action").String("RegisterInstanceEventNotificationAttributes") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRestoreSnapshotFromRecycleBinInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRegisterInstanceEventNotificationAttributesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29265,14 +29649,14 @@ func (m *awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRestoreSnapshotTier struct { +type awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_serializeOpRestoreSnapshotTier) ID() string { +func (*awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRestoreSnapshotTier) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29280,7 +29664,7 @@ func (m *awsEc2query_serializeOpRestoreSnapshotTier) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RestoreSnapshotTierInput) + input, ok := in.Parameters.(*RegisterTransitGatewayMulticastGroupMembersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29305,10 +29689,10 @@ func (m *awsEc2query_serializeOpRestoreSnapshotTier) HandleSerialize(ctx context bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RestoreSnapshotTier") + body.Key("Action").String("RegisterTransitGatewayMulticastGroupMembers") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRestoreSnapshotTierInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupMembersInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29329,14 +29713,14 @@ func (m *awsEc2query_serializeOpRestoreSnapshotTier) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRevokeClientVpnIngress struct { +type awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_serializeOpRevokeClientVpnIngress) ID() string { +func (*awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRevokeClientVpnIngress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29344,7 +29728,7 @@ func (m *awsEc2query_serializeOpRevokeClientVpnIngress) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RevokeClientVpnIngressInput) + input, ok := in.Parameters.(*RegisterTransitGatewayMulticastGroupSourcesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29369,10 +29753,10 @@ func (m *awsEc2query_serializeOpRevokeClientVpnIngress) HandleSerialize(ctx cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RevokeClientVpnIngress") + body.Key("Action").String("RegisterTransitGatewayMulticastGroupSources") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRevokeClientVpnIngressInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29393,14 +29777,14 @@ func (m *awsEc2query_serializeOpRevokeClientVpnIngress) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRevokeSecurityGroupEgress struct { +type awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_serializeOpRevokeSecurityGroupEgress) ID() string { +func (*awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRevokeSecurityGroupEgress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29408,7 +29792,7 @@ func (m *awsEc2query_serializeOpRevokeSecurityGroupEgress) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RevokeSecurityGroupEgressInput) + input, ok := in.Parameters.(*RejectTransitGatewayMulticastDomainAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29433,10 +29817,10 @@ func (m *awsEc2query_serializeOpRevokeSecurityGroupEgress) HandleSerialize(ctx c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RevokeSecurityGroupEgress") + body.Key("Action").String("RejectTransitGatewayMulticastDomainAssociations") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRevokeSecurityGroupEgressInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29457,14 +29841,14 @@ func (m *awsEc2query_serializeOpRevokeSecurityGroupEgress) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRevokeSecurityGroupIngress struct { +type awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_serializeOpRevokeSecurityGroupIngress) ID() string { +func (*awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRevokeSecurityGroupIngress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29472,7 +29856,7 @@ func (m *awsEc2query_serializeOpRevokeSecurityGroupIngress) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RevokeSecurityGroupIngressInput) + input, ok := in.Parameters.(*RejectTransitGatewayPeeringAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29497,10 +29881,10 @@ func (m *awsEc2query_serializeOpRevokeSecurityGroupIngress) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RevokeSecurityGroupIngress") + body.Key("Action").String("RejectTransitGatewayPeeringAttachment") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRevokeSecurityGroupIngressInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRejectTransitGatewayPeeringAttachmentInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29521,14 +29905,14 @@ func (m *awsEc2query_serializeOpRevokeSecurityGroupIngress) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRunInstances struct { +type awsEc2query_serializeOpRejectTransitGatewayVpcAttachment struct { } -func (*awsEc2query_serializeOpRunInstances) ID() string { +func (*awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRunInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRejectTransitGatewayVpcAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29536,7 +29920,7 @@ func (m *awsEc2query_serializeOpRunInstances) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RunInstancesInput) + input, ok := in.Parameters.(*RejectTransitGatewayVpcAttachmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29561,10 +29945,10 @@ func (m *awsEc2query_serializeOpRunInstances) HandleSerialize(ctx context.Contex bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RunInstances") + body.Key("Action").String("RejectTransitGatewayVpcAttachment") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRunInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRejectTransitGatewayVpcAttachmentInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29585,14 +29969,14 @@ func (m *awsEc2query_serializeOpRunInstances) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpRunScheduledInstances struct { +type awsEc2query_serializeOpRejectVpcEndpointConnections struct { } -func (*awsEc2query_serializeOpRunScheduledInstances) ID() string { +func (*awsEc2query_serializeOpRejectVpcEndpointConnections) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpRunScheduledInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRejectVpcEndpointConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29600,7 +29984,7 @@ func (m *awsEc2query_serializeOpRunScheduledInstances) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RunScheduledInstancesInput) + input, ok := in.Parameters.(*RejectVpcEndpointConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29625,10 +30009,10 @@ func (m *awsEc2query_serializeOpRunScheduledInstances) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("RunScheduledInstances") + body.Key("Action").String("RejectVpcEndpointConnections") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentRunScheduledInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRejectVpcEndpointConnectionsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29649,14 +30033,14 @@ func (m *awsEc2query_serializeOpRunScheduledInstances) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpSearchLocalGatewayRoutes struct { +type awsEc2query_serializeOpRejectVpcPeeringConnection struct { } -func (*awsEc2query_serializeOpSearchLocalGatewayRoutes) ID() string { +func (*awsEc2query_serializeOpRejectVpcPeeringConnection) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpSearchLocalGatewayRoutes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRejectVpcPeeringConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29664,7 +30048,7 @@ func (m *awsEc2query_serializeOpSearchLocalGatewayRoutes) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchLocalGatewayRoutesInput) + input, ok := in.Parameters.(*RejectVpcPeeringConnectionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29689,10 +30073,10 @@ func (m *awsEc2query_serializeOpSearchLocalGatewayRoutes) HandleSerialize(ctx co bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("SearchLocalGatewayRoutes") + body.Key("Action").String("RejectVpcPeeringConnection") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentSearchLocalGatewayRoutesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRejectVpcPeeringConnectionInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29713,14 +30097,14 @@ func (m *awsEc2query_serializeOpSearchLocalGatewayRoutes) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpSearchTransitGatewayMulticastGroups struct { +type awsEc2query_serializeOpReleaseAddress struct { } -func (*awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) ID() string { +func (*awsEc2query_serializeOpReleaseAddress) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReleaseAddress) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29728,7 +30112,7 @@ func (m *awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) HandleSeria return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchTransitGatewayMulticastGroupsInput) + input, ok := in.Parameters.(*ReleaseAddressInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29753,10 +30137,10 @@ func (m *awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) HandleSeria bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("SearchTransitGatewayMulticastGroups") + body.Key("Action").String("ReleaseAddress") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentSearchTransitGatewayMulticastGroupsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReleaseAddressInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29777,14 +30161,14 @@ func (m *awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) HandleSeria return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpSearchTransitGatewayRoutes struct { +type awsEc2query_serializeOpReleaseHosts struct { } -func (*awsEc2query_serializeOpSearchTransitGatewayRoutes) ID() string { +func (*awsEc2query_serializeOpReleaseHosts) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpSearchTransitGatewayRoutes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReleaseHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29792,7 +30176,7 @@ func (m *awsEc2query_serializeOpSearchTransitGatewayRoutes) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchTransitGatewayRoutesInput) + input, ok := in.Parameters.(*ReleaseHostsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29817,10 +30201,10 @@ func (m *awsEc2query_serializeOpSearchTransitGatewayRoutes) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("SearchTransitGatewayRoutes") + body.Key("Action").String("ReleaseHosts") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentSearchTransitGatewayRoutesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReleaseHostsInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29841,14 +30225,14 @@ func (m *awsEc2query_serializeOpSearchTransitGatewayRoutes) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpSendDiagnosticInterrupt struct { +type awsEc2query_serializeOpReleaseIpamPoolAllocation struct { } -func (*awsEc2query_serializeOpSendDiagnosticInterrupt) ID() string { +func (*awsEc2query_serializeOpReleaseIpamPoolAllocation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpSendDiagnosticInterrupt) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReleaseIpamPoolAllocation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29856,7 +30240,7 @@ func (m *awsEc2query_serializeOpSendDiagnosticInterrupt) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SendDiagnosticInterruptInput) + input, ok := in.Parameters.(*ReleaseIpamPoolAllocationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29881,10 +30265,10 @@ func (m *awsEc2query_serializeOpSendDiagnosticInterrupt) HandleSerialize(ctx con bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("SendDiagnosticInterrupt") + body.Key("Action").String("ReleaseIpamPoolAllocation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentSendDiagnosticInterruptInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReleaseIpamPoolAllocationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29905,14 +30289,14 @@ func (m *awsEc2query_serializeOpSendDiagnosticInterrupt) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpStartInstances struct { +type awsEc2query_serializeOpReplaceIamInstanceProfileAssociation struct { } -func (*awsEc2query_serializeOpStartInstances) ID() string { +func (*awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpStartInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReplaceIamInstanceProfileAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29920,7 +30304,7 @@ func (m *awsEc2query_serializeOpStartInstances) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StartInstancesInput) + input, ok := in.Parameters.(*ReplaceIamInstanceProfileAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -29945,10 +30329,10 @@ func (m *awsEc2query_serializeOpStartInstances) HandleSerialize(ctx context.Cont bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("StartInstances") + body.Key("Action").String("ReplaceIamInstanceProfileAssociation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentStartInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReplaceIamInstanceProfileAssociationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -29969,14 +30353,14 @@ func (m *awsEc2query_serializeOpStartInstances) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpStartNetworkInsightsAnalysis struct { +type awsEc2query_serializeOpReplaceNetworkAclAssociation struct { } -func (*awsEc2query_serializeOpStartNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_serializeOpReplaceNetworkAclAssociation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpStartNetworkInsightsAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReplaceNetworkAclAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -29984,7 +30368,7 @@ func (m *awsEc2query_serializeOpStartNetworkInsightsAnalysis) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StartNetworkInsightsAnalysisInput) + input, ok := in.Parameters.(*ReplaceNetworkAclAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30009,10 +30393,10 @@ func (m *awsEc2query_serializeOpStartNetworkInsightsAnalysis) HandleSerialize(ct bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("StartNetworkInsightsAnalysis") + body.Key("Action").String("ReplaceNetworkAclAssociation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentStartNetworkInsightsAnalysisInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReplaceNetworkAclAssociationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30033,14 +30417,14 @@ func (m *awsEc2query_serializeOpStartNetworkInsightsAnalysis) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification struct { +type awsEc2query_serializeOpReplaceNetworkAclEntry struct { } -func (*awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { +func (*awsEc2query_serializeOpReplaceNetworkAclEntry) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReplaceNetworkAclEntry) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30048,7 +30432,7 @@ func (m *awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) H return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StartVpcEndpointServicePrivateDnsVerificationInput) + input, ok := in.Parameters.(*ReplaceNetworkAclEntryInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30073,10 +30457,10 @@ func (m *awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) H bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("StartVpcEndpointServicePrivateDnsVerification") + body.Key("Action").String("ReplaceNetworkAclEntry") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReplaceNetworkAclEntryInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30097,14 +30481,14 @@ func (m *awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) H return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpStopInstances struct { +type awsEc2query_serializeOpReplaceRoute struct { } -func (*awsEc2query_serializeOpStopInstances) ID() string { +func (*awsEc2query_serializeOpReplaceRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpStopInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReplaceRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30112,7 +30496,7 @@ func (m *awsEc2query_serializeOpStopInstances) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StopInstancesInput) + input, ok := in.Parameters.(*ReplaceRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30137,10 +30521,10 @@ func (m *awsEc2query_serializeOpStopInstances) HandleSerialize(ctx context.Conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("StopInstances") + body.Key("Action").String("ReplaceRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentStopInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReplaceRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30161,14 +30545,14 @@ func (m *awsEc2query_serializeOpStopInstances) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpTerminateClientVpnConnections struct { +type awsEc2query_serializeOpReplaceRouteTableAssociation struct { } -func (*awsEc2query_serializeOpTerminateClientVpnConnections) ID() string { +func (*awsEc2query_serializeOpReplaceRouteTableAssociation) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpTerminateClientVpnConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReplaceRouteTableAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30176,7 +30560,7 @@ func (m *awsEc2query_serializeOpTerminateClientVpnConnections) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*TerminateClientVpnConnectionsInput) + input, ok := in.Parameters.(*ReplaceRouteTableAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30201,10 +30585,10 @@ func (m *awsEc2query_serializeOpTerminateClientVpnConnections) HandleSerialize(c bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("TerminateClientVpnConnections") + body.Key("Action").String("ReplaceRouteTableAssociation") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentTerminateClientVpnConnectionsInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReplaceRouteTableAssociationInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30225,14 +30609,14 @@ func (m *awsEc2query_serializeOpTerminateClientVpnConnections) HandleSerialize(c return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpTerminateInstances struct { +type awsEc2query_serializeOpReplaceTransitGatewayRoute struct { } -func (*awsEc2query_serializeOpTerminateInstances) ID() string { +func (*awsEc2query_serializeOpReplaceTransitGatewayRoute) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpTerminateInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReplaceTransitGatewayRoute) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30240,7 +30624,7 @@ func (m *awsEc2query_serializeOpTerminateInstances) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*TerminateInstancesInput) + input, ok := in.Parameters.(*ReplaceTransitGatewayRouteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30265,10 +30649,10 @@ func (m *awsEc2query_serializeOpTerminateInstances) HandleSerialize(ctx context. bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("TerminateInstances") + body.Key("Action").String("ReplaceTransitGatewayRoute") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentTerminateInstancesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReplaceTransitGatewayRouteInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30289,14 +30673,14 @@ func (m *awsEc2query_serializeOpTerminateInstances) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpUnassignIpv6Addresses struct { +type awsEc2query_serializeOpReportInstanceStatus struct { } -func (*awsEc2query_serializeOpUnassignIpv6Addresses) ID() string { +func (*awsEc2query_serializeOpReportInstanceStatus) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpUnassignIpv6Addresses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpReportInstanceStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30304,7 +30688,7 @@ func (m *awsEc2query_serializeOpUnassignIpv6Addresses) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UnassignIpv6AddressesInput) + input, ok := in.Parameters.(*ReportInstanceStatusInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30329,10 +30713,10 @@ func (m *awsEc2query_serializeOpUnassignIpv6Addresses) HandleSerialize(ctx conte bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("UnassignIpv6Addresses") + body.Key("Action").String("ReportInstanceStatus") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentUnassignIpv6AddressesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentReportInstanceStatusInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30353,14 +30737,14 @@ func (m *awsEc2query_serializeOpUnassignIpv6Addresses) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpUnassignPrivateIpAddresses struct { +type awsEc2query_serializeOpRequestSpotFleet struct { } -func (*awsEc2query_serializeOpUnassignPrivateIpAddresses) ID() string { +func (*awsEc2query_serializeOpRequestSpotFleet) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpUnassignPrivateIpAddresses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRequestSpotFleet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30368,7 +30752,7 @@ func (m *awsEc2query_serializeOpUnassignPrivateIpAddresses) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UnassignPrivateIpAddressesInput) + input, ok := in.Parameters.(*RequestSpotFleetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30393,10 +30777,10 @@ func (m *awsEc2query_serializeOpUnassignPrivateIpAddresses) HandleSerialize(ctx bodyWriter := bytes.NewBuffer(nil) bodyEncoder := query.NewEncoder(bodyWriter) body := bodyEncoder.Object() - body.Key("Action").String("UnassignPrivateIpAddresses") + body.Key("Action").String("RequestSpotFleet") body.Key("Version").String("2016-11-15") - if err := awsEc2query_serializeOpDocumentUnassignPrivateIpAddressesInput(input, bodyEncoder.Value); err != nil { + if err := awsEc2query_serializeOpDocumentRequestSpotFleetInput(input, bodyEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -30417,14 +30801,14 @@ func (m *awsEc2query_serializeOpUnassignPrivateIpAddresses) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpUnmonitorInstances struct { +type awsEc2query_serializeOpRequestSpotInstances struct { } -func (*awsEc2query_serializeOpUnmonitorInstances) ID() string { +func (*awsEc2query_serializeOpRequestSpotInstances) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpUnmonitorInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpRequestSpotInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -30432,7 +30816,1927 @@ func (m *awsEc2query_serializeOpUnmonitorInstances) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UnmonitorInstancesInput) + input, ok := in.Parameters.(*RequestSpotInstancesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RequestSpotInstances") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRequestSpotInstancesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetAddressAttribute struct { +} + +func (*awsEc2query_serializeOpResetAddressAttribute) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetAddressAttribute) 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.(*ResetAddressAttributeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetAddressAttribute") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetAddressAttributeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetEbsDefaultKmsKeyId struct { +} + +func (*awsEc2query_serializeOpResetEbsDefaultKmsKeyId) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetEbsDefaultKmsKeyId) 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.(*ResetEbsDefaultKmsKeyIdInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetEbsDefaultKmsKeyId") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetEbsDefaultKmsKeyIdInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetFpgaImageAttribute struct { +} + +func (*awsEc2query_serializeOpResetFpgaImageAttribute) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetFpgaImageAttribute) 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.(*ResetFpgaImageAttributeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetFpgaImageAttribute") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetFpgaImageAttributeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetImageAttribute struct { +} + +func (*awsEc2query_serializeOpResetImageAttribute) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetImageAttribute) 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.(*ResetImageAttributeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetImageAttribute") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetImageAttributeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetInstanceAttribute struct { +} + +func (*awsEc2query_serializeOpResetInstanceAttribute) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetInstanceAttribute) 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.(*ResetInstanceAttributeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetInstanceAttribute") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetInstanceAttributeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetNetworkInterfaceAttribute struct { +} + +func (*awsEc2query_serializeOpResetNetworkInterfaceAttribute) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetNetworkInterfaceAttribute) 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.(*ResetNetworkInterfaceAttributeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetNetworkInterfaceAttribute") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetNetworkInterfaceAttributeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpResetSnapshotAttribute struct { +} + +func (*awsEc2query_serializeOpResetSnapshotAttribute) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpResetSnapshotAttribute) 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.(*ResetSnapshotAttributeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ResetSnapshotAttribute") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentResetSnapshotAttributeInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRestoreAddressToClassic struct { +} + +func (*awsEc2query_serializeOpRestoreAddressToClassic) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRestoreAddressToClassic) 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.(*RestoreAddressToClassicInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RestoreAddressToClassic") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRestoreAddressToClassicInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRestoreManagedPrefixListVersion struct { +} + +func (*awsEc2query_serializeOpRestoreManagedPrefixListVersion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRestoreManagedPrefixListVersion) 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.(*RestoreManagedPrefixListVersionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RestoreManagedPrefixListVersion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRestoreManagedPrefixListVersionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRestoreSnapshotFromRecycleBin struct { +} + +func (*awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRestoreSnapshotFromRecycleBin) 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.(*RestoreSnapshotFromRecycleBinInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RestoreSnapshotFromRecycleBin") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRestoreSnapshotFromRecycleBinInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRestoreSnapshotTier struct { +} + +func (*awsEc2query_serializeOpRestoreSnapshotTier) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRestoreSnapshotTier) 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.(*RestoreSnapshotTierInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RestoreSnapshotTier") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRestoreSnapshotTierInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRevokeClientVpnIngress struct { +} + +func (*awsEc2query_serializeOpRevokeClientVpnIngress) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRevokeClientVpnIngress) 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.(*RevokeClientVpnIngressInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RevokeClientVpnIngress") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRevokeClientVpnIngressInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRevokeSecurityGroupEgress struct { +} + +func (*awsEc2query_serializeOpRevokeSecurityGroupEgress) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRevokeSecurityGroupEgress) 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.(*RevokeSecurityGroupEgressInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RevokeSecurityGroupEgress") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRevokeSecurityGroupEgressInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRevokeSecurityGroupIngress struct { +} + +func (*awsEc2query_serializeOpRevokeSecurityGroupIngress) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRevokeSecurityGroupIngress) 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.(*RevokeSecurityGroupIngressInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RevokeSecurityGroupIngress") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRevokeSecurityGroupIngressInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRunInstances struct { +} + +func (*awsEc2query_serializeOpRunInstances) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRunInstances) 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.(*RunInstancesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RunInstances") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRunInstancesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpRunScheduledInstances struct { +} + +func (*awsEc2query_serializeOpRunScheduledInstances) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpRunScheduledInstances) 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.(*RunScheduledInstancesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("RunScheduledInstances") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentRunScheduledInstancesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpSearchLocalGatewayRoutes struct { +} + +func (*awsEc2query_serializeOpSearchLocalGatewayRoutes) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpSearchLocalGatewayRoutes) 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.(*SearchLocalGatewayRoutesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("SearchLocalGatewayRoutes") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentSearchLocalGatewayRoutesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpSearchTransitGatewayMulticastGroups struct { +} + +func (*awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpSearchTransitGatewayMulticastGroups) 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.(*SearchTransitGatewayMulticastGroupsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("SearchTransitGatewayMulticastGroups") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentSearchTransitGatewayMulticastGroupsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpSearchTransitGatewayRoutes struct { +} + +func (*awsEc2query_serializeOpSearchTransitGatewayRoutes) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpSearchTransitGatewayRoutes) 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.(*SearchTransitGatewayRoutesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("SearchTransitGatewayRoutes") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentSearchTransitGatewayRoutesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpSendDiagnosticInterrupt struct { +} + +func (*awsEc2query_serializeOpSendDiagnosticInterrupt) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpSendDiagnosticInterrupt) 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.(*SendDiagnosticInterruptInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("SendDiagnosticInterrupt") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentSendDiagnosticInterruptInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpStartInstances struct { +} + +func (*awsEc2query_serializeOpStartInstances) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpStartInstances) 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.(*StartInstancesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("StartInstances") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentStartInstancesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpStartNetworkInsightsAccessScopeAnalysis struct { +} + +func (*awsEc2query_serializeOpStartNetworkInsightsAccessScopeAnalysis) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpStartNetworkInsightsAccessScopeAnalysis) 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.(*StartNetworkInsightsAccessScopeAnalysisInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("StartNetworkInsightsAccessScopeAnalysis") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentStartNetworkInsightsAccessScopeAnalysisInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpStartNetworkInsightsAnalysis struct { +} + +func (*awsEc2query_serializeOpStartNetworkInsightsAnalysis) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpStartNetworkInsightsAnalysis) 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.(*StartNetworkInsightsAnalysisInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("StartNetworkInsightsAnalysis") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentStartNetworkInsightsAnalysisInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification struct { +} + +func (*awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification) 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.(*StartVpcEndpointServicePrivateDnsVerificationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("StartVpcEndpointServicePrivateDnsVerification") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpStopInstances struct { +} + +func (*awsEc2query_serializeOpStopInstances) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpStopInstances) 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.(*StopInstancesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("StopInstances") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentStopInstancesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpTerminateClientVpnConnections struct { +} + +func (*awsEc2query_serializeOpTerminateClientVpnConnections) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpTerminateClientVpnConnections) 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.(*TerminateClientVpnConnectionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("TerminateClientVpnConnections") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentTerminateClientVpnConnectionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpTerminateInstances struct { +} + +func (*awsEc2query_serializeOpTerminateInstances) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpTerminateInstances) 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.(*TerminateInstancesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("TerminateInstances") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentTerminateInstancesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpUnassignIpv6Addresses struct { +} + +func (*awsEc2query_serializeOpUnassignIpv6Addresses) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpUnassignIpv6Addresses) 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.(*UnassignIpv6AddressesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("UnassignIpv6Addresses") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentUnassignIpv6AddressesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpUnassignPrivateIpAddresses struct { +} + +func (*awsEc2query_serializeOpUnassignPrivateIpAddresses) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpUnassignPrivateIpAddresses) 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.(*UnassignPrivateIpAddressesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("UnassignPrivateIpAddresses") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentUnassignPrivateIpAddressesInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpUnmonitorInstances struct { +} + +func (*awsEc2query_serializeOpUnmonitorInstances) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpUnmonitorInstances) 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.(*UnmonitorInstancesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -30779,6 +33083,49 @@ func awsEc2query_serializeDocumentAcceleratorTypeSet(v []types.AcceleratorType, return nil } +func awsEc2query_serializeDocumentAccessScopePathListRequest(v []types.AccessScopePathRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentAccessScopePathRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentAccessScopePathRequest(v *types.AccessScopePathRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Destination != nil { + objectKey := object.Key("Destination") + if err := awsEc2query_serializeDocumentPathStatementRequest(v.Destination, objectKey); err != nil { + return err + } + } + + if v.Source != nil { + objectKey := object.Key("Source") + if err := awsEc2query_serializeDocumentPathStatementRequest(v.Source, objectKey); err != nil { + return err + } + } + + if v.ThroughResources != nil { + objectKey := object.FlatKey("ThroughResource") + if err := awsEc2query_serializeDocumentThroughResourcesStatementRequestList(v.ThroughResources, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentAccountAttributeNameStringList(v []types.AccountAttributeName, value query.Value) error { if len(v) == 0 { return nil @@ -30792,6 +33139,33 @@ func awsEc2query_serializeDocumentAccountAttributeNameStringList(v []types.Accou return nil } +func awsEc2query_serializeDocumentAddIpamOperatingRegion(v *types.AddIpamOperatingRegion, value query.Value) error { + object := value.Object() + _ = object + + if v.RegionName != nil { + objectKey := object.Key("RegionName") + objectKey.String(*v.RegionName) + } + + return nil +} + +func awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v []types.AddIpamOperatingRegion, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentAddIpamOperatingRegion(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentAddPrefixListEntries(v []types.AddPrefixListEntry, value query.Value) error { if len(v) == 0 { return nil @@ -33590,6 +35964,36 @@ func awsEc2query_serializeDocumentInternetGatewayIdList(v []string, value query. return nil } +func awsEc2query_serializeDocumentIpamCidrAuthorizationContext(v *types.IpamCidrAuthorizationContext, value query.Value) error { + object := value.Object() + _ = object + + if v.Message != nil { + objectKey := object.Key("Message") + objectKey.String(*v.Message) + } + + if v.Signature != nil { + objectKey := object.Key("Signature") + objectKey.String(*v.Signature) + } + + return nil +} + +func awsEc2query_serializeDocumentIpamPoolAllocationDisallowedCidrs(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value query.Value) error { object := value.Object() _ = object @@ -35159,6 +37563,32 @@ func awsEc2query_serializeDocumentNetworkAclIdStringList(v []string, value query return nil } +func awsEc2query_serializeDocumentNetworkInsightsAccessScopeAnalysisIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsEc2query_serializeDocumentNetworkInsightsAccessScopeIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentNetworkInsightsAnalysisIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -35387,6 +37817,83 @@ func awsEc2query_serializeDocumentOwnerStringList(v []string, value query.Value) return nil } +func awsEc2query_serializeDocumentPacketHeaderStatementRequest(v *types.PacketHeaderStatementRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.DestinationAddresses != nil { + objectKey := object.FlatKey("DestinationAddress") + if err := awsEc2query_serializeDocumentValueStringList(v.DestinationAddresses, objectKey); err != nil { + return err + } + } + + if v.DestinationPorts != nil { + objectKey := object.FlatKey("DestinationPort") + if err := awsEc2query_serializeDocumentValueStringList(v.DestinationPorts, objectKey); err != nil { + return err + } + } + + if v.DestinationPrefixLists != nil { + objectKey := object.FlatKey("DestinationPrefixList") + if err := awsEc2query_serializeDocumentValueStringList(v.DestinationPrefixLists, objectKey); err != nil { + return err + } + } + + if v.Protocols != nil { + objectKey := object.FlatKey("Protocol") + if err := awsEc2query_serializeDocumentProtocolList(v.Protocols, objectKey); err != nil { + return err + } + } + + if v.SourceAddresses != nil { + objectKey := object.FlatKey("SourceAddress") + if err := awsEc2query_serializeDocumentValueStringList(v.SourceAddresses, objectKey); err != nil { + return err + } + } + + if v.SourcePorts != nil { + objectKey := object.FlatKey("SourcePort") + if err := awsEc2query_serializeDocumentValueStringList(v.SourcePorts, objectKey); err != nil { + return err + } + } + + if v.SourcePrefixLists != nil { + objectKey := object.FlatKey("SourcePrefixList") + if err := awsEc2query_serializeDocumentValueStringList(v.SourcePrefixLists, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentPathStatementRequest(v *types.PathStatementRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.PacketHeaderStatement != nil { + objectKey := object.Key("PacketHeaderStatement") + if err := awsEc2query_serializeDocumentPacketHeaderStatementRequest(v.PacketHeaderStatement, objectKey); err != nil { + return err + } + } + + if v.ResourceStatement != nil { + objectKey := object.Key("ResourceStatement") + if err := awsEc2query_serializeDocumentResourceStatementRequest(v.ResourceStatement, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.PeeringConnectionOptionsRequest, value query.Value) error { object := value.Object() _ = object @@ -35864,6 +38371,19 @@ func awsEc2query_serializeDocumentProductDescriptionList(v []string, value query return nil } +func awsEc2query_serializeDocumentProtocolList(v []types.Protocol, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsEc2query_serializeDocumentPublicIpStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -35980,6 +38500,33 @@ func awsEc2query_serializeDocumentRegisterInstanceTagAttributeRequest(v *types.R return nil } +func awsEc2query_serializeDocumentRemoveIpamOperatingRegion(v *types.RemoveIpamOperatingRegion, value query.Value) error { + object := value.Object() + _ = object + + if v.RegionName != nil { + objectKey := object.Key("RegionName") + objectKey.String(*v.RegionName) + } + + return nil +} + +func awsEc2query_serializeDocumentRemoveIpamOperatingRegionSet(v []types.RemoveIpamOperatingRegion, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentRemoveIpamOperatingRegion(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentRemovePrefixListEntries(v []types.RemovePrefixListEntry, value query.Value) error { if len(v) == 0 { return nil @@ -36059,6 +38606,38 @@ func awsEc2query_serializeDocumentRequestInstanceTypeList(v []types.InstanceType return nil } +func awsEc2query_serializeDocumentRequestIpamResourceTag(v *types.RequestIpamResourceTag, value query.Value) error { + object := value.Object() + _ = object + + if v.Key != nil { + objectKey := object.Key("Key") + objectKey.String(*v.Key) + } + + if v.Value != nil { + objectKey := object.Key("Value") + objectKey.String(*v.Value) + } + + return nil +} + +func awsEc2query_serializeDocumentRequestIpamResourceTagList(v []types.RequestIpamResourceTag, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentRequestIpamResourceTag(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentRequestLaunchTemplateData(v *types.RequestLaunchTemplateData, value query.Value) error { object := value.Object() _ = object @@ -36603,6 +39182,27 @@ func awsEc2query_serializeDocumentResourceList(v []string, value query.Value) er return nil } +func awsEc2query_serializeDocumentResourceStatementRequest(v *types.ResourceStatementRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Resources != nil { + objectKey := object.FlatKey("Resource") + if err := awsEc2query_serializeDocumentValueStringList(v.Resources, objectKey); err != nil { + return err + } + } + + if v.ResourceTypes != nil { + objectKey := object.FlatKey("ResourceType") + if err := awsEc2query_serializeDocumentValueStringList(v.ResourceTypes, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentRestorableByStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -38066,6 +40666,35 @@ func awsEc2query_serializeDocumentTargetGroupsConfig(v *types.TargetGroupsConfig return nil } +func awsEc2query_serializeDocumentThroughResourcesStatementRequest(v *types.ThroughResourcesStatementRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.ResourceStatement != nil { + objectKey := object.Key("ResourceStatement") + if err := awsEc2query_serializeDocumentResourceStatementRequest(v.ResourceStatement, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentThroughResourcesStatementRequestList(v []types.ThroughResourcesStatementRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentThroughResourcesStatementRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentTotalLocalStorageGB(v *types.TotalLocalStorageGB, value query.Value) error { object := value.Object() _ = object @@ -39206,6 +41835,55 @@ func awsEc2query_serializeOpDocumentAllocateHostsInput(v *AllocateHostsInput, va return nil } +func awsEc2query_serializeOpDocumentAllocateIpamPoolCidrInput(v *AllocateIpamPoolCidrInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DisallowedCidrs != nil { + objectKey := object.FlatKey("DisallowedCidr") + if err := awsEc2query_serializeDocumentIpamPoolAllocationDisallowedCidrs(v.DisallowedCidrs, objectKey); err != nil { + return err + } + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.NetmaskLength != nil { + objectKey := object.Key("NetmaskLength") + objectKey.Integer(*v.NetmaskLength) + } + + if v.PreviewNextCidr != nil { + objectKey := object.Key("PreviewNextCidr") + objectKey.Boolean(*v.PreviewNextCidr) + } + + return nil +} + func awsEc2query_serializeOpDocumentApplySecurityGroupsToClientVpnTargetNetworkInput(v *ApplySecurityGroupsToClientVpnTargetNetworkInput, value query.Value) error { object := value.Object() _ = object @@ -39614,6 +42292,16 @@ func awsEc2query_serializeOpDocumentAssociateVpcCidrBlockInput(v *AssociateVpcCi objectKey.String(*v.CidrBlock) } + if v.Ipv4IpamPoolId != nil { + objectKey := object.Key("Ipv4IpamPoolId") + objectKey.String(*v.Ipv4IpamPoolId) + } + + if v.Ipv4NetmaskLength != nil { + objectKey := object.Key("Ipv4NetmaskLength") + objectKey.Integer(*v.Ipv4NetmaskLength) + } + if v.Ipv6CidrBlock != nil { objectKey := object.Key("Ipv6CidrBlock") objectKey.String(*v.Ipv6CidrBlock) @@ -39624,6 +42312,16 @@ func awsEc2query_serializeOpDocumentAssociateVpcCidrBlockInput(v *AssociateVpcCi objectKey.String(*v.Ipv6CidrBlockNetworkBorderGroup) } + if v.Ipv6IpamPoolId != nil { + objectKey := object.Key("Ipv6IpamPoolId") + objectKey.String(*v.Ipv6IpamPoolId) + } + + if v.Ipv6NetmaskLength != nil { + objectKey := object.Key("Ipv6NetmaskLength") + objectKey.Integer(*v.Ipv6NetmaskLength) + } + if v.Ipv6Pool != nil { objectKey := object.Key("Ipv6Pool") objectKey.String(*v.Ipv6Pool) @@ -41084,6 +43782,162 @@ func awsEc2query_serializeOpDocumentCreateInternetGatewayInput(v *CreateInternet return nil } +func awsEc2query_serializeOpDocumentCreateIpamInput(v *CreateIpamInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.OperatingRegions != nil { + objectKey := object.FlatKey("OperatingRegion") + if err := awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v.OperatingRegions, objectKey); err != nil { + return err + } + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeOpDocumentCreateIpamPoolInput(v *CreateIpamPoolInput, value query.Value) error { + object := value.Object() + _ = object + + if len(v.AddressFamily) > 0 { + objectKey := object.Key("AddressFamily") + objectKey.String(string(v.AddressFamily)) + } + + if v.AllocationDefaultNetmaskLength != nil { + objectKey := object.Key("AllocationDefaultNetmaskLength") + objectKey.Integer(*v.AllocationDefaultNetmaskLength) + } + + if v.AllocationMaxNetmaskLength != nil { + objectKey := object.Key("AllocationMaxNetmaskLength") + objectKey.Integer(*v.AllocationMaxNetmaskLength) + } + + if v.AllocationMinNetmaskLength != nil { + objectKey := object.Key("AllocationMinNetmaskLength") + objectKey.Integer(*v.AllocationMinNetmaskLength) + } + + if v.AllocationResourceTags != nil { + objectKey := object.FlatKey("AllocationResourceTag") + if err := awsEc2query_serializeDocumentRequestIpamResourceTagList(v.AllocationResourceTags, objectKey); err != nil { + return err + } + } + + if v.AutoImport != nil { + objectKey := object.Key("AutoImport") + objectKey.Boolean(*v.AutoImport) + } + + if len(v.AwsService) > 0 { + objectKey := object.Key("AwsService") + objectKey.String(string(v.AwsService)) + } + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamScopeId != nil { + objectKey := object.Key("IpamScopeId") + objectKey.String(*v.IpamScopeId) + } + + if v.Locale != nil { + objectKey := object.Key("Locale") + objectKey.String(*v.Locale) + } + + if v.PubliclyAdvertisable != nil { + objectKey := object.Key("PubliclyAdvertisable") + objectKey.Boolean(*v.PubliclyAdvertisable) + } + + if v.SourceIpamPoolId != nil { + objectKey := object.Key("SourceIpamPoolId") + objectKey.String(*v.SourceIpamPoolId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeOpDocumentCreateIpamScopeInput(v *CreateIpamScopeInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamId != nil { + objectKey := object.Key("IpamId") + objectKey.String(*v.IpamId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateKeyPairInput(v *CreateKeyPairInput, value query.Value) error { object := value.Object() _ = object @@ -41424,6 +44278,44 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclInput(v *CreateNetworkAclInp return nil } +func awsEc2query_serializeOpDocumentCreateNetworkInsightsAccessScopeInput(v *CreateNetworkInsightsAccessScopeInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExcludePaths != nil { + objectKey := object.FlatKey("ExcludePath") + if err := awsEc2query_serializeDocumentAccessScopePathListRequest(v.ExcludePaths, objectKey); err != nil { + return err + } + } + + if v.MatchPaths != nil { + objectKey := object.FlatKey("MatchPath") + if err := awsEc2query_serializeDocumentAccessScopePathListRequest(v.MatchPaths, objectKey); err != nil { + return err + } + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateNetworkInsightsPathInput(v *CreateNetworkInsightsPathInput, value query.Value) error { object := value.Object() _ = object @@ -41643,6 +44535,25 @@ func awsEc2query_serializeOpDocumentCreatePlacementGroupInput(v *CreatePlacement return nil } +func awsEc2query_serializeOpDocumentCreatePublicIpv4PoolInput(v *CreatePublicIpv4PoolInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateReplaceRootVolumeTaskInput(v *CreateReplaceRootVolumeTaskInput, value query.Value) error { object := value.Object() _ = object @@ -42894,6 +45805,16 @@ func awsEc2query_serializeOpDocumentCreateVpcInput(v *CreateVpcInput, value quer objectKey.String(string(v.InstanceTenancy)) } + if v.Ipv4IpamPoolId != nil { + objectKey := object.Key("Ipv4IpamPoolId") + objectKey.String(*v.Ipv4IpamPoolId) + } + + if v.Ipv4NetmaskLength != nil { + objectKey := object.Key("Ipv4NetmaskLength") + objectKey.Integer(*v.Ipv4NetmaskLength) + } + if v.Ipv6CidrBlock != nil { objectKey := object.Key("Ipv6CidrBlock") objectKey.String(*v.Ipv6CidrBlock) @@ -42904,6 +45825,16 @@ func awsEc2query_serializeOpDocumentCreateVpcInput(v *CreateVpcInput, value quer objectKey.String(*v.Ipv6CidrBlockNetworkBorderGroup) } + if v.Ipv6IpamPoolId != nil { + objectKey := object.Key("Ipv6IpamPoolId") + objectKey.String(*v.Ipv6IpamPoolId) + } + + if v.Ipv6NetmaskLength != nil { + objectKey := object.Key("Ipv6NetmaskLength") + objectKey.Integer(*v.Ipv6NetmaskLength) + } + if v.Ipv6Pool != nil { objectKey := object.Key("Ipv6Pool") objectKey.String(*v.Ipv6Pool) @@ -43266,6 +46197,57 @@ func awsEc2query_serializeOpDocumentDeleteInternetGatewayInput(v *DeleteInternet return nil } +func awsEc2query_serializeOpDocumentDeleteIpamInput(v *DeleteIpamInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamId != nil { + objectKey := object.Key("IpamId") + objectKey.String(*v.IpamId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDeleteIpamPoolInput(v *DeleteIpamPoolInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDeleteIpamScopeInput(v *DeleteIpamScopeInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamScopeId != nil { + objectKey := object.Key("IpamScopeId") + objectKey.String(*v.IpamScopeId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteKeyPairInput(v *DeleteKeyPairInput, value query.Value) error { object := value.Object() _ = object @@ -43456,6 +46438,40 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclInput(v *DeleteNetworkAclInp return nil } +func awsEc2query_serializeOpDocumentDeleteNetworkInsightsAccessScopeAnalysisInput(v *DeleteNetworkInsightsAccessScopeAnalysisInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.NetworkInsightsAccessScopeAnalysisId != nil { + objectKey := object.Key("NetworkInsightsAccessScopeAnalysisId") + objectKey.String(*v.NetworkInsightsAccessScopeAnalysisId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDeleteNetworkInsightsAccessScopeInput(v *DeleteNetworkInsightsAccessScopeInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.NetworkInsightsAccessScopeId != nil { + objectKey := object.Key("NetworkInsightsAccessScopeId") + objectKey.String(*v.NetworkInsightsAccessScopeId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteNetworkInsightsAnalysisInput(v *DeleteNetworkInsightsAnalysisInput, value query.Value) error { object := value.Object() _ = object @@ -43546,6 +46562,23 @@ func awsEc2query_serializeOpDocumentDeletePlacementGroupInput(v *DeletePlacement return nil } +func awsEc2query_serializeOpDocumentDeletePublicIpv4PoolInput(v *DeletePublicIpv4PoolInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.PoolId != nil { + objectKey := object.Key("PoolId") + objectKey.String(*v.PoolId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteQueuedReservedInstancesInput(v *DeleteQueuedReservedInstancesInput, value query.Value) error { object := value.Object() _ = object @@ -44132,6 +47165,50 @@ func awsEc2query_serializeOpDocumentDeprovisionByoipCidrInput(v *DeprovisionByoi return nil } +func awsEc2query_serializeOpDocumentDeprovisionIpamPoolCidrInput(v *DeprovisionIpamPoolCidrInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDeprovisionPublicIpv4PoolCidrInput(v *DeprovisionPublicIpv4PoolCidrInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.PoolId != nil { + objectKey := object.Key("PoolId") + objectKey.String(*v.PoolId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeregisterImageInput(v *DeregisterImageInput, value query.Value) error { object := value.Object() _ = object @@ -45805,6 +48882,114 @@ func awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(v *DescribeInt return nil } +func awsEc2query_serializeOpDocumentDescribeIpamPoolsInput(v *DescribeIpamPoolsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.IpamPoolIds != nil { + objectKey := object.FlatKey("IpamPoolId") + if err := awsEc2query_serializeDocumentValueStringList(v.IpamPoolIds, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeIpamScopesInput(v *DescribeIpamScopesInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.IpamScopeIds != nil { + objectKey := object.FlatKey("IpamScopeId") + if err := awsEc2query_serializeDocumentValueStringList(v.IpamScopeIds, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeIpamsInput(v *DescribeIpamsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.IpamIds != nil { + objectKey := object.FlatKey("IpamId") + if err := awsEc2query_serializeDocumentValueStringList(v.IpamIds, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(v *DescribeIpv6PoolsInput, value query.Value) error { object := value.Object() _ = object @@ -46333,6 +49518,93 @@ func awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(v *DescribeNetworkA return nil } +func awsEc2query_serializeOpDocumentDescribeNetworkInsightsAccessScopeAnalysesInput(v *DescribeNetworkInsightsAccessScopeAnalysesInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AnalysisStartTimeBegin != nil { + objectKey := object.Key("AnalysisStartTimeBegin") + objectKey.String(smithytime.FormatDateTime(*v.AnalysisStartTimeBegin)) + } + + if v.AnalysisStartTimeEnd != nil { + objectKey := object.Key("AnalysisStartTimeEnd") + objectKey.String(smithytime.FormatDateTime(*v.AnalysisStartTimeEnd)) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NetworkInsightsAccessScopeAnalysisIds != nil { + objectKey := object.FlatKey("NetworkInsightsAccessScopeAnalysisId") + if err := awsEc2query_serializeDocumentNetworkInsightsAccessScopeAnalysisIdList(v.NetworkInsightsAccessScopeAnalysisIds, objectKey); err != nil { + return err + } + } + + if v.NetworkInsightsAccessScopeId != nil { + objectKey := object.Key("NetworkInsightsAccessScopeId") + objectKey.String(*v.NetworkInsightsAccessScopeId) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeNetworkInsightsAccessScopesInput(v *DescribeNetworkInsightsAccessScopesInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NetworkInsightsAccessScopeIds != nil { + objectKey := object.FlatKey("NetworkInsightsAccessScopeId") + if err := awsEc2query_serializeDocumentNetworkInsightsAccessScopeIdList(v.NetworkInsightsAccessScopeIds, objectKey); err != nil { + return err + } + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeNetworkInsightsAnalysesInput(v *DescribeNetworkInsightsAnalysesInput, value query.Value) error { object := value.Object() _ = object @@ -48673,6 +51945,23 @@ func awsEc2query_serializeOpDocumentDisableImageDeprecationInput(v *DisableImage return nil } +func awsEc2query_serializeOpDocumentDisableIpamOrganizationAdminAccountInput(v *DisableIpamOrganizationAdminAccountInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DelegatedAdminAccountId != nil { + objectKey := object.Key("DelegatedAdminAccountId") + objectKey.String(*v.DelegatedAdminAccountId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentDisableSerialConsoleAccessInput(v *DisableSerialConsoleAccessInput, value query.Value) error { object := value.Object() _ = object @@ -49034,6 +52323,23 @@ func awsEc2query_serializeOpDocumentEnableImageDeprecationInput(v *EnableImageDe return nil } +func awsEc2query_serializeOpDocumentEnableIpamOrganizationAdminAccountInput(v *EnableIpamOrganizationAdminAccountInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DelegatedAdminAccountId != nil { + objectKey := object.Key("DelegatedAdminAccountId") + objectKey.String(*v.DelegatedAdminAccountId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentEnableSerialConsoleAccessInput(v *EnableSerialConsoleAccessInput, value query.Value) error { object := value.Object() _ = object @@ -49558,6 +52864,187 @@ func awsEc2query_serializeOpDocumentGetInstanceTypesFromInstanceRequirementsInpu return nil } +func awsEc2query_serializeOpDocumentGetIpamAddressHistoryInput(v *GetIpamAddressHistoryInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.EndTime != nil { + objectKey := object.Key("EndTime") + objectKey.String(smithytime.FormatDateTime(*v.EndTime)) + } + + if v.IpamScopeId != nil { + objectKey := object.Key("IpamScopeId") + objectKey.String(*v.IpamScopeId) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + if v.StartTime != nil { + objectKey := object.Key("StartTime") + objectKey.String(smithytime.FormatDateTime(*v.StartTime)) + } + + if v.VpcId != nil { + objectKey := object.Key("VpcId") + objectKey.String(*v.VpcId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentGetIpamPoolAllocationsInput(v *GetIpamPoolAllocationsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.IpamPoolAllocationId != nil { + objectKey := object.Key("IpamPoolAllocationId") + objectKey.String(*v.IpamPoolAllocationId) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentGetIpamPoolCidrsInput(v *GetIpamPoolCidrsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentGetIpamResourceCidrsInput(v *GetIpamResourceCidrsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.IpamScopeId != nil { + objectKey := object.Key("IpamScopeId") + objectKey.String(*v.IpamScopeId) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + if v.ResourceId != nil { + objectKey := object.Key("ResourceId") + objectKey.String(*v.ResourceId) + } + + if v.ResourceOwner != nil { + objectKey := object.Key("ResourceOwner") + objectKey.String(*v.ResourceOwner) + } + + if v.ResourceTag != nil { + objectKey := object.Key("ResourceTag") + if err := awsEc2query_serializeDocumentRequestIpamResourceTag(v.ResourceTag, objectKey); err != nil { + return err + } + } + + if len(v.ResourceType) > 0 { + objectKey := object.Key("ResourceType") + objectKey.String(string(v.ResourceType)) + } + + return nil +} + func awsEc2query_serializeOpDocumentGetLaunchTemplateDataInput(v *GetLaunchTemplateDataInput, value query.Value) error { object := value.Object() _ = object @@ -49634,6 +53121,50 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(v *GetManag return nil } +func awsEc2query_serializeOpDocumentGetNetworkInsightsAccessScopeAnalysisFindingsInput(v *GetNetworkInsightsAccessScopeAnalysisFindingsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NetworkInsightsAccessScopeAnalysisId != nil { + objectKey := object.Key("NetworkInsightsAccessScopeAnalysisId") + objectKey.String(*v.NetworkInsightsAccessScopeAnalysisId) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentGetNetworkInsightsAccessScopeContentInput(v *GetNetworkInsightsAccessScopeContentInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.NetworkInsightsAccessScopeId != nil { + objectKey := object.Key("NetworkInsightsAccessScopeId") + objectKey.String(*v.NetworkInsightsAccessScopeId) + } + + return nil +} + func awsEc2query_serializeOpDocumentGetPasswordDataInput(v *GetPasswordDataInput, value query.Value) error { object := value.Object() _ = object @@ -51096,6 +54627,167 @@ func awsEc2query_serializeOpDocumentModifyInstancePlacementInput(v *ModifyInstan return nil } +func awsEc2query_serializeOpDocumentModifyIpamInput(v *ModifyIpamInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AddOperatingRegions != nil { + objectKey := object.FlatKey("AddOperatingRegion") + if err := awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v.AddOperatingRegions, objectKey); err != nil { + return err + } + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamId != nil { + objectKey := object.Key("IpamId") + objectKey.String(*v.IpamId) + } + + if v.RemoveOperatingRegions != nil { + objectKey := object.FlatKey("RemoveOperatingRegion") + if err := awsEc2query_serializeDocumentRemoveIpamOperatingRegionSet(v.RemoveOperatingRegions, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeOpDocumentModifyIpamPoolInput(v *ModifyIpamPoolInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AddAllocationResourceTags != nil { + objectKey := object.FlatKey("AddAllocationResourceTag") + if err := awsEc2query_serializeDocumentRequestIpamResourceTagList(v.AddAllocationResourceTags, objectKey); err != nil { + return err + } + } + + if v.AllocationDefaultNetmaskLength != nil { + objectKey := object.Key("AllocationDefaultNetmaskLength") + objectKey.Integer(*v.AllocationDefaultNetmaskLength) + } + + if v.AllocationMaxNetmaskLength != nil { + objectKey := object.Key("AllocationMaxNetmaskLength") + objectKey.Integer(*v.AllocationMaxNetmaskLength) + } + + if v.AllocationMinNetmaskLength != nil { + objectKey := object.Key("AllocationMinNetmaskLength") + objectKey.Integer(*v.AllocationMinNetmaskLength) + } + + if v.AutoImport != nil { + objectKey := object.Key("AutoImport") + objectKey.Boolean(*v.AutoImport) + } + + if v.ClearAllocationDefaultNetmaskLength != nil { + objectKey := object.Key("ClearAllocationDefaultNetmaskLength") + objectKey.Boolean(*v.ClearAllocationDefaultNetmaskLength) + } + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.RemoveAllocationResourceTags != nil { + objectKey := object.FlatKey("RemoveAllocationResourceTag") + if err := awsEc2query_serializeDocumentRequestIpamResourceTagList(v.RemoveAllocationResourceTags, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeOpDocumentModifyIpamResourceCidrInput(v *ModifyIpamResourceCidrInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CurrentIpamScopeId != nil { + objectKey := object.Key("CurrentIpamScopeId") + objectKey.String(*v.CurrentIpamScopeId) + } + + if v.DestinationIpamScopeId != nil { + objectKey := object.Key("DestinationIpamScopeId") + objectKey.String(*v.DestinationIpamScopeId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Monitored != nil { + objectKey := object.Key("Monitored") + objectKey.Boolean(*v.Monitored) + } + + if v.ResourceCidr != nil { + objectKey := object.Key("ResourceCidr") + objectKey.String(*v.ResourceCidr) + } + + if v.ResourceId != nil { + objectKey := object.Key("ResourceId") + objectKey.String(*v.ResourceId) + } + + if v.ResourceRegion != nil { + objectKey := object.Key("ResourceRegion") + objectKey.String(*v.ResourceRegion) + } + + return nil +} + +func awsEc2query_serializeOpDocumentModifyIpamScopeInput(v *ModifyIpamScopeInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Description != nil { + objectKey := object.Key("Description") + objectKey.String(*v.Description) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamScopeId != nil { + objectKey := object.Key("IpamScopeId") + objectKey.String(*v.IpamScopeId) + } + + return nil +} + func awsEc2query_serializeOpDocumentModifyLaunchTemplateInput(v *ModifyLaunchTemplateInput, value query.Value) error { object := value.Object() _ = object @@ -51426,6 +55118,13 @@ func awsEc2query_serializeOpDocumentModifySubnetAttributeInput(v *ModifySubnetAt objectKey.String(*v.CustomerOwnedIpv4Pool) } + if v.DisableLniAtDeviceIndex != nil { + objectKey := object.Key("DisableLniAtDeviceIndex") + if err := awsEc2query_serializeDocumentAttributeBooleanValue(v.DisableLniAtDeviceIndex, objectKey); err != nil { + return err + } + } + if v.EnableDns64 != nil { objectKey := object.Key("EnableDns64") if err := awsEc2query_serializeDocumentAttributeBooleanValue(v.EnableDns64, objectKey); err != nil { @@ -51433,6 +55132,11 @@ func awsEc2query_serializeOpDocumentModifySubnetAttributeInput(v *ModifySubnetAt } } + if v.EnableLniAtDeviceIndex != nil { + objectKey := object.Key("EnableLniAtDeviceIndex") + objectKey.Integer(*v.EnableLniAtDeviceIndex) + } + if v.EnableResourceNameDnsAAAARecordOnLaunch != nil { objectKey := object.Key("EnableResourceNameDnsAAAARecordOnLaunch") if err := awsEc2query_serializeDocumentAttributeBooleanValue(v.EnableResourceNameDnsAAAARecordOnLaunch, objectKey); err != nil { @@ -52226,6 +55930,33 @@ func awsEc2query_serializeOpDocumentMoveAddressToVpcInput(v *MoveAddressToVpcInp return nil } +func awsEc2query_serializeOpDocumentMoveByoipCidrToIpamInput(v *MoveByoipCidrToIpamInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.IpamPoolOwner != nil { + objectKey := object.Key("IpamPoolOwner") + objectKey.String(*v.IpamPoolOwner) + } + + return nil +} + func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCidrInput, value query.Value) error { object := value.Object() _ = object @@ -52272,6 +56003,62 @@ func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCid return nil } +func awsEc2query_serializeOpDocumentProvisionIpamPoolCidrInput(v *ProvisionIpamPoolCidrInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.CidrAuthorizationContext != nil { + objectKey := object.Key("CidrAuthorizationContext") + if err := awsEc2query_serializeDocumentIpamCidrAuthorizationContext(v.CidrAuthorizationContext, objectKey); err != nil { + return err + } + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentProvisionPublicIpv4PoolCidrInput(v *ProvisionPublicIpv4PoolCidrInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + if v.NetmaskLength != nil { + objectKey := object.Key("NetmaskLength") + objectKey.Integer(*v.NetmaskLength) + } + + if v.PoolId != nil { + objectKey := object.Key("PoolId") + objectKey.String(*v.PoolId) + } + + return nil +} + func awsEc2query_serializeOpDocumentPurchaseHostReservationInput(v *PurchaseHostReservationInput, value query.Value) error { object := value.Object() _ = object @@ -52693,6 +56480,33 @@ func awsEc2query_serializeOpDocumentReleaseHostsInput(v *ReleaseHostsInput, valu return nil } +func awsEc2query_serializeOpDocumentReleaseIpamPoolAllocationInput(v *ReleaseIpamPoolAllocationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Cidr != nil { + objectKey := object.Key("Cidr") + objectKey.String(*v.Cidr) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.IpamPoolAllocationId != nil { + objectKey := object.Key("IpamPoolAllocationId") + objectKey.String(*v.IpamPoolAllocationId) + } + + if v.IpamPoolId != nil { + objectKey := object.Key("IpamPoolId") + objectKey.String(*v.IpamPoolId) + } + + return nil +} + func awsEc2query_serializeOpDocumentReplaceIamInstanceProfileAssociationInput(v *ReplaceIamInstanceProfileAssociationInput, value query.Value) error { object := value.Object() _ = object @@ -53884,6 +57698,35 @@ func awsEc2query_serializeOpDocumentStartInstancesInput(v *StartInstancesInput, return nil } +func awsEc2query_serializeOpDocumentStartNetworkInsightsAccessScopeAnalysisInput(v *StartNetworkInsightsAccessScopeAnalysisInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.NetworkInsightsAccessScopeId != nil { + objectKey := object.Key("NetworkInsightsAccessScopeId") + objectKey.String(*v.NetworkInsightsAccessScopeId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentStartNetworkInsightsAnalysisInput(v *StartNetworkInsightsAnalysisInput, value query.Value) error { object := value.Object() _ = object diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index 41159fe2416..e7824a320d6 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -128,6 +128,24 @@ func (AddressAttributeName) Values() []AddressAttributeName { } } +type AddressFamily string + +// Enum values for AddressFamily +const ( + AddressFamilyIpv4 AddressFamily = "ipv4" + AddressFamilyIpv6 AddressFamily = "ipv6" +) + +// Values returns all known values for AddressFamily. 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 (AddressFamily) Values() []AddressFamily { + return []AddressFamily{ + "ipv4", + "ipv6", + } +} + type Affinity string // Enum values for Affinity @@ -1652,6 +1670,26 @@ func (FastSnapshotRestoreStateCode) Values() []FastSnapshotRestoreStateCode { } } +type FindingsFound string + +// Enum values for FindingsFound +const ( + FindingsFoundTrue FindingsFound = "true" + FindingsFoundFalse FindingsFound = "false" + FindingsFoundUnknown FindingsFound = "unknown" +) + +// Values returns all known values for FindingsFound. 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 (FindingsFound) Values() []FindingsFound { + return []FindingsFound{ + "true", + "false", + "unknown", + } +} + type FleetActivityStatus string // Enum values for FleetActivityStatus @@ -2880,6 +2918,18 @@ const ( InstanceTypeVt13xlarge InstanceType = "vt1.3xlarge" InstanceTypeVt16xlarge InstanceType = "vt1.6xlarge" InstanceTypeVt124xlarge InstanceType = "vt1.24xlarge" + InstanceTypeIm4gn16xlarge InstanceType = "im4gn.16xlarge" + InstanceTypeIm4gn2xlarge InstanceType = "im4gn.2xlarge" + InstanceTypeIm4gn4xlarge InstanceType = "im4gn.4xlarge" + InstanceTypeIm4gn8xlarge InstanceType = "im4gn.8xlarge" + InstanceTypeIm4gnLarge InstanceType = "im4gn.large" + InstanceTypeIm4gnXlarge InstanceType = "im4gn.xlarge" + InstanceTypeIs4gen2xlarge InstanceType = "is4gen.2xlarge" + InstanceTypeIs4gen4xlarge InstanceType = "is4gen.4xlarge" + InstanceTypeIs4gen8xlarge InstanceType = "is4gen.8xlarge" + InstanceTypeIs4genLarge InstanceType = "is4gen.large" + InstanceTypeIs4genMedium InstanceType = "is4gen.medium" + InstanceTypeIs4genXlarge InstanceType = "is4gen.xlarge" InstanceTypeG5gXlarge InstanceType = "g5g.xlarge" InstanceTypeG5g2xlarge InstanceType = "g5g.2xlarge" InstanceTypeG5g4xlarge InstanceType = "g5g.4xlarge" @@ -3341,6 +3391,18 @@ func (InstanceType) Values() []InstanceType { "vt1.3xlarge", "vt1.6xlarge", "vt1.24xlarge", + "im4gn.16xlarge", + "im4gn.2xlarge", + "im4gn.4xlarge", + "im4gn.8xlarge", + "im4gn.large", + "im4gn.xlarge", + "is4gen.2xlarge", + "is4gen.4xlarge", + "is4gen.8xlarge", + "is4gen.large", + "is4gen.medium", + "is4gen.xlarge", "g5g.xlarge", "g5g.2xlarge", "g5g.4xlarge", @@ -3412,6 +3474,316 @@ func (InterfaceProtocolType) Values() []InterfaceProtocolType { } } +type IpamAddressHistoryResourceType string + +// Enum values for IpamAddressHistoryResourceType +const ( + IpamAddressHistoryResourceTypeEip IpamAddressHistoryResourceType = "eip" + IpamAddressHistoryResourceTypeVpc IpamAddressHistoryResourceType = "vpc" + IpamAddressHistoryResourceTypeSubnet IpamAddressHistoryResourceType = "subnet" + IpamAddressHistoryResourceTypeNetworkInterface IpamAddressHistoryResourceType = "network-interface" + IpamAddressHistoryResourceTypeInstance IpamAddressHistoryResourceType = "instance" +) + +// Values returns all known values for IpamAddressHistoryResourceType. 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 (IpamAddressHistoryResourceType) Values() []IpamAddressHistoryResourceType { + return []IpamAddressHistoryResourceType{ + "eip", + "vpc", + "subnet", + "network-interface", + "instance", + } +} + +type IpamComplianceStatus string + +// Enum values for IpamComplianceStatus +const ( + IpamComplianceStatusCompliant IpamComplianceStatus = "compliant" + IpamComplianceStatusNoncompliant IpamComplianceStatus = "noncompliant" + IpamComplianceStatusUnmanaged IpamComplianceStatus = "unmanaged" + IpamComplianceStatusIgnored IpamComplianceStatus = "ignored" +) + +// Values returns all known values for IpamComplianceStatus. 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 (IpamComplianceStatus) Values() []IpamComplianceStatus { + return []IpamComplianceStatus{ + "compliant", + "noncompliant", + "unmanaged", + "ignored", + } +} + +type IpamManagementState string + +// Enum values for IpamManagementState +const ( + IpamManagementStateManaged IpamManagementState = "managed" + IpamManagementStateUnmanaged IpamManagementState = "unmanaged" + IpamManagementStateIgnored IpamManagementState = "ignored" +) + +// Values returns all known values for IpamManagementState. 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 (IpamManagementState) Values() []IpamManagementState { + return []IpamManagementState{ + "managed", + "unmanaged", + "ignored", + } +} + +type IpamOverlapStatus string + +// Enum values for IpamOverlapStatus +const ( + IpamOverlapStatusOverlapping IpamOverlapStatus = "overlapping" + IpamOverlapStatusNonoverlapping IpamOverlapStatus = "nonoverlapping" + IpamOverlapStatusIgnored IpamOverlapStatus = "ignored" +) + +// Values returns all known values for IpamOverlapStatus. 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 (IpamOverlapStatus) Values() []IpamOverlapStatus { + return []IpamOverlapStatus{ + "overlapping", + "nonoverlapping", + "ignored", + } +} + +type IpamPoolAllocationResourceType string + +// Enum values for IpamPoolAllocationResourceType +const ( + IpamPoolAllocationResourceTypeIpamPool IpamPoolAllocationResourceType = "ipam-pool" + IpamPoolAllocationResourceTypeVpc IpamPoolAllocationResourceType = "vpc" + IpamPoolAllocationResourceTypeEc2PublicIpv4Pool IpamPoolAllocationResourceType = "ec2-public-ipv4-pool" + IpamPoolAllocationResourceTypeCustom IpamPoolAllocationResourceType = "custom" +) + +// Values returns all known values for IpamPoolAllocationResourceType. 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 (IpamPoolAllocationResourceType) Values() []IpamPoolAllocationResourceType { + return []IpamPoolAllocationResourceType{ + "ipam-pool", + "vpc", + "ec2-public-ipv4-pool", + "custom", + } +} + +type IpamPoolAwsService string + +// Enum values for IpamPoolAwsService +const ( + IpamPoolAwsServiceEc2 IpamPoolAwsService = "ec2" +) + +// Values returns all known values for IpamPoolAwsService. 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 (IpamPoolAwsService) Values() []IpamPoolAwsService { + return []IpamPoolAwsService{ + "ec2", + } +} + +type IpamPoolCidrFailureCode string + +// Enum values for IpamPoolCidrFailureCode +const ( + IpamPoolCidrFailureCodeCidrNotAvailable IpamPoolCidrFailureCode = "cidr-not-available" +) + +// Values returns all known values for IpamPoolCidrFailureCode. 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 (IpamPoolCidrFailureCode) Values() []IpamPoolCidrFailureCode { + return []IpamPoolCidrFailureCode{ + "cidr-not-available", + } +} + +type IpamPoolCidrState string + +// Enum values for IpamPoolCidrState +const ( + IpamPoolCidrStatePendingProvision IpamPoolCidrState = "pending-provision" + IpamPoolCidrStateProvisioned IpamPoolCidrState = "provisioned" + IpamPoolCidrStateFailedProvision IpamPoolCidrState = "failed-provision" + IpamPoolCidrStatePendingDeprovision IpamPoolCidrState = "pending-deprovision" + IpamPoolCidrStateDeprovisioned IpamPoolCidrState = "deprovisioned" + IpamPoolCidrStateFailedDeprovision IpamPoolCidrState = "failed-deprovision" + IpamPoolCidrStatePendingImport IpamPoolCidrState = "pending-import" + IpamPoolCidrStateFailedImport IpamPoolCidrState = "failed-import" +) + +// Values returns all known values for IpamPoolCidrState. 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 (IpamPoolCidrState) Values() []IpamPoolCidrState { + return []IpamPoolCidrState{ + "pending-provision", + "provisioned", + "failed-provision", + "pending-deprovision", + "deprovisioned", + "failed-deprovision", + "pending-import", + "failed-import", + } +} + +type IpamPoolState string + +// Enum values for IpamPoolState +const ( + IpamPoolStateCreateInProgress IpamPoolState = "create-in-progress" + IpamPoolStateCreateComplete IpamPoolState = "create-complete" + IpamPoolStateCreateFailed IpamPoolState = "create-failed" + IpamPoolStateModifyInProgress IpamPoolState = "modify-in-progress" + IpamPoolStateModifyComplete IpamPoolState = "modify-complete" + IpamPoolStateModifyFailed IpamPoolState = "modify-failed" + IpamPoolStateDeleteInProgress IpamPoolState = "delete-in-progress" + IpamPoolStateDeleteComplete IpamPoolState = "delete-complete" + IpamPoolStateDeleteFailed IpamPoolState = "delete-failed" +) + +// Values returns all known values for IpamPoolState. 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 (IpamPoolState) Values() []IpamPoolState { + return []IpamPoolState{ + "create-in-progress", + "create-complete", + "create-failed", + "modify-in-progress", + "modify-complete", + "modify-failed", + "delete-in-progress", + "delete-complete", + "delete-failed", + } +} + +type IpamResourceType string + +// Enum values for IpamResourceType +const ( + IpamResourceTypeVpc IpamResourceType = "vpc" + IpamResourceTypeSubnet IpamResourceType = "subnet" + IpamResourceTypeEip IpamResourceType = "eip" + IpamResourceTypePublicIpv4Pool IpamResourceType = "public-ipv4-pool" + IpamResourceTypeIpv6Pool IpamResourceType = "ipv6-pool" +) + +// Values returns all known values for IpamResourceType. 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 (IpamResourceType) Values() []IpamResourceType { + return []IpamResourceType{ + "vpc", + "subnet", + "eip", + "public-ipv4-pool", + "ipv6-pool", + } +} + +type IpamScopeState string + +// Enum values for IpamScopeState +const ( + IpamScopeStateCreateInProgress IpamScopeState = "create-in-progress" + IpamScopeStateCreateComplete IpamScopeState = "create-complete" + IpamScopeStateCreateFailed IpamScopeState = "create-failed" + IpamScopeStateModifyInProgress IpamScopeState = "modify-in-progress" + IpamScopeStateModifyComplete IpamScopeState = "modify-complete" + IpamScopeStateModifyFailed IpamScopeState = "modify-failed" + IpamScopeStateDeleteInProgress IpamScopeState = "delete-in-progress" + IpamScopeStateDeleteComplete IpamScopeState = "delete-complete" + IpamScopeStateDeleteFailed IpamScopeState = "delete-failed" +) + +// Values returns all known values for IpamScopeState. 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 (IpamScopeState) Values() []IpamScopeState { + return []IpamScopeState{ + "create-in-progress", + "create-complete", + "create-failed", + "modify-in-progress", + "modify-complete", + "modify-failed", + "delete-in-progress", + "delete-complete", + "delete-failed", + } +} + +type IpamScopeType string + +// Enum values for IpamScopeType +const ( + IpamScopeTypePublic IpamScopeType = "public" + IpamScopeTypePrivate IpamScopeType = "private" +) + +// Values returns all known values for IpamScopeType. 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 (IpamScopeType) Values() []IpamScopeType { + return []IpamScopeType{ + "public", + "private", + } +} + +type IpamState string + +// Enum values for IpamState +const ( + IpamStateCreateInProgress IpamState = "create-in-progress" + IpamStateCreateComplete IpamState = "create-complete" + IpamStateCreateFailed IpamState = "create-failed" + IpamStateModifyInProgress IpamState = "modify-in-progress" + IpamStateModifyComplete IpamState = "modify-complete" + IpamStateModifyFailed IpamState = "modify-failed" + IpamStateDeleteInProgress IpamState = "delete-in-progress" + IpamStateDeleteComplete IpamState = "delete-complete" + IpamStateDeleteFailed IpamState = "delete-failed" +) + +// Values returns all known values for IpamState. 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 (IpamState) Values() []IpamState { + return []IpamState{ + "create-in-progress", + "create-complete", + "create-failed", + "modify-in-progress", + "modify-complete", + "modify-failed", + "delete-in-progress", + "delete-complete", + "delete-failed", + } +} + type Ipv6SupportValue string // Enum values for Ipv6SupportValue @@ -4504,6 +4876,9 @@ const ( ResourceTypeInstance ResourceType = "instance" ResourceTypeInstanceEventWindow ResourceType = "instance-event-window" ResourceTypeInternetGateway ResourceType = "internet-gateway" + ResourceTypeIpam ResourceType = "ipam" + ResourceTypeIpamPool ResourceType = "ipam-pool" + ResourceTypeIpamScope ResourceType = "ipam-scope" ResourceTypeIpv4poolEc2 ResourceType = "ipv4pool-ec2" ResourceTypeIpv6poolEc2 ResourceType = "ipv6pool-ec2" ResourceTypeKeyPair ResourceType = "key-pair" @@ -4519,6 +4894,8 @@ const ( ResourceTypeNetworkInterface ResourceType = "network-interface" ResourceTypeNetworkInsightsAnalysis ResourceType = "network-insights-analysis" ResourceTypeNetworkInsightsPath ResourceType = "network-insights-path" + ResourceTypeNetworkInsightsAccessScope ResourceType = "network-insights-access-scope" + ResourceTypeNetworkInsightsAccessScopeAnalysis ResourceType = "network-insights-access-scope-analysis" ResourceTypePlacementGroup ResourceType = "placement-group" ResourceTypePrefixList ResourceType = "prefix-list" ResourceTypeReplaceRootVolumeTask ResourceType = "replace-root-volume-task" @@ -4573,6 +4950,9 @@ func (ResourceType) Values() []ResourceType { "instance", "instance-event-window", "internet-gateway", + "ipam", + "ipam-pool", + "ipam-scope", "ipv4pool-ec2", "ipv6pool-ec2", "key-pair", @@ -4588,6 +4968,8 @@ func (ResourceType) Values() []ResourceType { "network-interface", "network-insights-analysis", "network-insights-path", + "network-insights-access-scope", + "network-insights-access-scope-analysis", "placement-group", "prefix-list", "replace-root-volume-task", diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index eb313fe9fe9..e5011adc303 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -66,6 +66,54 @@ type AcceleratorTotalMemoryMiBRequest struct { noSmithyDocumentSerde } +// Describes a finding for a Network Access Scope. +type AccessScopeAnalysisFinding struct { + + // The finding components. + FindingComponents []PathComponent + + // The ID of the finding. + FindingId *string + + // The ID of the Network Access Scope analysis. + NetworkInsightsAccessScopeAnalysisId *string + + // The ID of the Network Access Scope. + NetworkInsightsAccessScopeId *string + + noSmithyDocumentSerde +} + +// Describes a path. +type AccessScopePath struct { + + // The destination. + Destination *PathStatement + + // The source. + Source *PathStatement + + // The through resources. + ThroughResources []ThroughResourcesStatement + + noSmithyDocumentSerde +} + +// Describes a path. +type AccessScopePathRequest struct { + + // The destination. + Destination *PathStatementRequest + + // The source. + Source *PathStatementRequest + + // The through resources. + ThroughResources []ThroughResourcesStatementRequest + + noSmithyDocumentSerde +} + // Describes an account attribute. type AccountAttribute struct { @@ -107,6 +155,19 @@ type ActiveInstance struct { noSmithyDocumentSerde } +// Add an operating Region to an IPAM. Operating Regions are Amazon Web Services +// Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only +// discovers and monitors resources in the Amazon Web Services Regions you select +// as operating Regions. For more information about operating Regions, see Create +// an IPAM in the Amazon VPC IPAM User Guide. +type AddIpamOperatingRegion struct { + + // The name of the operating Region. + RegionName *string + + noSmithyDocumentSerde +} + // An entry for a prefix list. type AddPrefixListEntry struct { @@ -248,6 +309,9 @@ type AnalysisComponent struct { // The ID of the component. Id *string + // The name of the analysis component. + Name *string + noSmithyDocumentSerde } @@ -6295,6 +6359,426 @@ type InternetGatewayAttachment struct { noSmithyDocumentSerde } +// IPAM is a VPC feature that you can use to automate your IP address management +// workflows including assigning, tracking, troubleshooting, and auditing IP +// addresses across Amazon Web Services Regions and accounts throughout your Amazon +// Web Services Organization. For more information, see What is IPAM? in the Amazon +// VPC IPAM User Guide. +type Ipam struct { + + // The description for the IPAM. + Description *string + + // The ARN of the IPAM. + IpamArn *string + + // The ID of the IPAM. + IpamId *string + + // The Amazon Web Services Region of the IPAM. + IpamRegion *string + + // The operating Regions for an IPAM. Operating Regions are Amazon Web Services + // Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only + // discovers and monitors resources in the Amazon Web Services Regions you select + // as operating Regions. For more information about operating Regions, see Create + // an IPAM in the Amazon VPC IPAM User Guide. + OperatingRegions []IpamOperatingRegion + + // The Amazon Web Services account ID of the owner of the IPAM. + OwnerId *string + + // The ID of the IPAM's default private scope. + PrivateDefaultScopeId *string + + // The ID of the IPAM's default public scope. + PublicDefaultScopeId *string + + // The number of scopes in the IPAM. The scope quota is 5. For more information on + // quotas, see Quotas in IPAM in the Amazon VPC IPAM User Guide. + ScopeCount *int32 + + // The state of the IPAM. + State IpamState + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + Tags []Tag + + noSmithyDocumentSerde +} + +// The historical record of a CIDR within an IPAM scope. For more information, see +// View the history of IP addresses in the Amazon VPC IPAM User Guide. +type IpamAddressHistoryRecord struct { + + // The CIDR of the resource. + ResourceCidr *string + + // The compliance status of a resource. For more information on compliance + // statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide. + ResourceComplianceStatus IpamComplianceStatus + + // The ID of the resource. + ResourceId *string + + // The name of the resource. + ResourceName *string + + // The overlap status of an IPAM resource. The overlap status tells you if the CIDR + // for a resource overlaps with another CIDR in the scope. For more information on + // overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User + // Guide. + ResourceOverlapStatus IpamOverlapStatus + + // The ID of the resource owner. + ResourceOwnerId *string + + // The Amazon Web Services Region of the resource. + ResourceRegion *string + + // The type of the resource. + ResourceType IpamAddressHistoryResourceType + + // Sampled end time of the resource-to-CIDR association within the IPAM scope. + // Changes are picked up in periodic snapshots, so the end time may have occurred + // before this specific time. + SampledEndTime *time.Time + + // Sampled start time of the resource-to-CIDR association within the IPAM scope. + // Changes are picked up in periodic snapshots, so the start time may have occurred + // before this specific time. + SampledStartTime *time.Time + + // The VPC ID of the resource. + VpcId *string + + noSmithyDocumentSerde +} + +// A signed document that proves that you are authorized to bring the specified IP +// address range to Amazon using BYOIP. +type IpamCidrAuthorizationContext struct { + + // The plain-text authorization message for the prefix and account. + Message *string + + // The signed authorization message for the prefix and account. + Signature *string + + noSmithyDocumentSerde +} + +// The operating Regions for an IPAM. Operating Regions are Amazon Web Services +// Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only +// discovers and monitors resources in the Amazon Web Services Regions you select +// as operating Regions. For more information about operating Regions, see Create +// an IPAM in the Amazon VPC IPAM User Guide. +type IpamOperatingRegion struct { + + // The name of the operating Region. + RegionName *string + + noSmithyDocumentSerde +} + +// In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable +// you to organize your IP addresses according to your routing and security needs. +// For example, if you have separate routing and security needs for development and +// production applications, you can create a pool for each. +type IpamPool struct { + + // The address family of the pool. + AddressFamily AddressFamily + + // The default netmask length for allocations added to this pool. If, for example, + // the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new + // allocations will default to 10.0.0.0/16. + AllocationDefaultNetmaskLength *int32 + + // The maximum netmask length possible for CIDR allocations in this IPAM pool to be + // compliant. The maximum netmask length must be greater than the minimum netmask + // length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask + // lengths for IPv6 addresses are 0 - 128. + AllocationMaxNetmaskLength *int32 + + // The minimum netmask length required for CIDR allocations in this IPAM pool to be + // compliant. The minimum netmask length must be less than the maximum netmask + // length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask + // lengths for IPv6 addresses are 0 - 128. + AllocationMinNetmaskLength *int32 + + // Tags that are required for resources that use CIDRs from this IPAM pool. + // Resources that do not have these tags will not be allowed to allocate space from + // the pool. If the resources have their tags changed after they have allocated + // space or if the allocation tagging requirements are changed on the pool, the + // resource may be marked as noncompliant. + AllocationResourceTags []IpamResourceTag + + // If selected, IPAM will continuously look for resources within the CIDR range of + // this pool and automatically import them as allocations into your IPAM. The CIDRs + // that will be allocated for these resources must not already be allocated to + // other resources in order for the import to succeed. IPAM will import a CIDR + // regardless of its compliance with the pool's allocation rules, so a resource + // might be imported and subsequently marked as noncompliant. If IPAM discovers + // multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM + // discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of + // them only. A locale must be set on the pool for this feature to work. + AutoImport *bool + + // Limits which service in Amazon Web Services that the pool can be used in. "ec2", + // for example, allows users to use space for Elastic IP addresses and VPCs. + AwsService IpamPoolAwsService + + // The description of the IPAM pool. + Description *string + + // The ARN of the IPAM. + IpamArn *string + + // The ARN of the IPAM pool. + IpamPoolArn *string + + // The ID of the IPAM pool. + IpamPoolId *string + + // The Amazon Web Services Region of the IPAM pool. + IpamRegion *string + + // The ARN of the scope of the IPAM pool. + IpamScopeArn *string + + // In IPAM, a scope is the highest-level container within IPAM. An IPAM contains + // two default scopes. Each scope represents the IP space for a single network. The + // private scope is intended for all private IP address space. The public scope is + // intended for all public IP address space. Scopes enable you to reuse IP + // addresses across multiple unconnected networks without causing IP address + // overlap or conflict. + IpamScopeType IpamScopeType + + // The locale of the IPAM pool. In IPAM, the locale is the Amazon Web Services + // Region where you want to make an IPAM pool available for allocations. Only + // resources in the same Region as the locale of the pool can get IP address + // allocations from the pool. You can only allocate a CIDR for a VPC, for example, + // from an IPAM pool that shares a locale with the VPC’s Region. Note that once you + // choose a Locale for a pool, you cannot modify it. If you choose an Amazon Web + // Services Region for locale that has not been configured as an operating Region + // for the IPAM, you'll get an error. + Locale *string + + // The Amazon Web Services account ID of the owner of the IPAM pool. + OwnerId *string + + // The depth of pools in your IPAM pool. The pool depth quota is 10. For more + // information, see Quotas in IPAM in the Amazon VPC IPAM User Guide. + PoolDepth *int32 + + // Determines if a pool is publicly advertisable. This option is not available for + // pools with AddressFamily set to ipv4. + PubliclyAdvertisable *bool + + // The ID of the source IPAM pool. You can use this option to create an IPAM pool + // within an existing source pool. + SourceIpamPoolId *string + + // The state of the IPAM pool. + State IpamPoolState + + // A message related to the failed creation of an IPAM pool. + StateMessage *string + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + Tags []Tag + + noSmithyDocumentSerde +} + +// In IPAM, an allocation is a CIDR assignment from an IPAM pool to another +// resource or IPAM pool. +type IpamPoolAllocation struct { + + // The CIDR for the allocation. A CIDR is a representation of an IP address and its + // associated network mask (or netmask) and refers to a range of IP addresses. An + // IPv4 CIDR example is 10.24.34.0/23. An IPv6 CIDR example is 2001:DB8::/32. + Cidr *string + + // A description of the pool allocation. + Description *string + + // The ID of an allocation. + IpamPoolAllocationId *string + + // The ID of the resource. + ResourceId *string + + // The owner of the resource. + ResourceOwner *string + + // The Amazon Web Services Region of the resource. + ResourceRegion *string + + // The type of the resource. + ResourceType IpamPoolAllocationResourceType + + noSmithyDocumentSerde +} + +// A CIDR provisioned to an IPAM pool. +type IpamPoolCidr struct { + + // The CIDR provisioned to the IPAM pool. A CIDR is a representation of an IP + // address and its associated network mask (or netmask) and refers to a range of IP + // addresses. An IPv4 CIDR example is 10.24.34.0/23. An IPv6 CIDR example is + // 2001:DB8::/32. + Cidr *string + + // Details related to why an IPAM pool CIDR failed to be provisioned. + FailureReason *IpamPoolCidrFailureReason + + // The state of the CIDR. + State IpamPoolCidrState + + noSmithyDocumentSerde +} + +// Details related to why an IPAM pool CIDR failed to be provisioned. +type IpamPoolCidrFailureReason struct { + + // An error code related to why an IPAM pool CIDR failed to be provisioned. + Code IpamPoolCidrFailureCode + + // A message related to why an IPAM pool CIDR failed to be provisioned. + Message *string + + noSmithyDocumentSerde +} + +// The CIDR for an IPAM resource. +type IpamResourceCidr struct { + + // The compliance status of the IPAM resource. For more information on compliance + // statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide. + ComplianceStatus IpamComplianceStatus + + // The IP address space in the IPAM pool that is allocated to this resource. To + // convert the decimal to a percentage, multiply the decimal by 100. + IpUsage *float64 + + // The IPAM ID for an IPAM resource. + IpamId *string + + // The pool ID for an IPAM resource. + IpamPoolId *string + + // The scope ID for an IPAM resource. + IpamScopeId *string + + // The management state of the resource. For more information about management + // states, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide. + ManagementState IpamManagementState + + // The overlap status of an IPAM resource. The overlap status tells you if the CIDR + // for a resource overlaps with another CIDR in the scope. For more information on + // overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User + // Guide. + OverlapStatus IpamOverlapStatus + + // The CIDR for an IPAM resource. + ResourceCidr *string + + // The ID of an IPAM resource. + ResourceId *string + + // The name of an IPAM resource. + ResourceName *string + + // The Amazon Web Services account number of the owner of an IPAM resource. + ResourceOwnerId *string + + // The Amazon Web Services Region for an IPAM resource. + ResourceRegion *string + + // The tags for an IPAM resource. + ResourceTags []IpamResourceTag + + // The type of IPAM resource. + ResourceType IpamResourceType + + // The ID of a VPC. + VpcId *string + + noSmithyDocumentSerde +} + +// The key/value combination of a tag assigned to the resource. Use the tag key in +// the filter name and the tag value as the filter value. For example, to find all +// resources that have a tag with the key Owner and the value TeamA, specify +// tag:Owner for the filter name and TeamA for the filter value. +type IpamResourceTag struct { + + // The key of a tag assigned to the resource. Use this filter to find all resources + // assigned a tag with a specific key, regardless of the tag value. + Key *string + + // The value of the tag. + Value *string + + noSmithyDocumentSerde +} + +// In IPAM, a scope is the highest-level container within IPAM. An IPAM contains +// two default scopes. Each scope represents the IP space for a single network. The +// private scope is intended for all private IP address space. The public scope is +// intended for all public IP address space. Scopes enable you to reuse IP +// addresses across multiple unconnected networks without causing IP address +// overlap or conflict. For more information, see How IPAM works in the Amazon VPC +// IPAM User Guide +type IpamScope struct { + + // The description of the scope. + Description *string + + // The ARN of the IPAM. + IpamArn *string + + // The Amazon Web Services Region of the IPAM scope. + IpamRegion *string + + // The ARN of the scope. + IpamScopeArn *string + + // The ID of the scope. + IpamScopeId *string + + // The type of the scope. + IpamScopeType IpamScopeType + + // Defines if the scope is the default scope or not. + IsDefault *bool + + // The Amazon Web Services account ID of the owner of the scope. + OwnerId *string + + // The number of pools in the scope. + PoolCount *int32 + + // The state of the IPAM scope. + State IpamScopeState + + // The key/value combination of a tag assigned to the resource. Use the tag key in + // the filter name and the tag value as the filter value. For example, to find all + // resources that have a tag with the key Owner and the value TeamA, specify + // tag:Owner for the filter name and TeamA for the filter value. + Tags []Tag + + noSmithyDocumentSerde +} + // Describes a set of permissions for a security group rule. type IpPermission struct { @@ -8318,6 +8802,81 @@ type NetworkInfo struct { noSmithyDocumentSerde } +// Describes a Network Access Scope. +type NetworkInsightsAccessScope struct { + + // The creation date. + CreatedDate *time.Time + + // The Amazon Resource Name (ARN) of the Network Access Scope. + NetworkInsightsAccessScopeArn *string + + // The ID of the Network Access Scope. + NetworkInsightsAccessScopeId *string + + // The tags. + Tags []Tag + + // The last updated date. + UpdatedDate *time.Time + + noSmithyDocumentSerde +} + +// Describes a Network Access Scope analysis. +type NetworkInsightsAccessScopeAnalysis struct { + + // The number of network interfaces analyzed. + AnalyzedEniCount *int32 + + // The analysis end date. + EndDate *time.Time + + // Indicates whether there are findings. + FindingsFound FindingsFound + + // The Amazon Resource Name (ARN) of the Network Access Scope analysis. + NetworkInsightsAccessScopeAnalysisArn *string + + // The ID of the Network Access Scope analysis. + NetworkInsightsAccessScopeAnalysisId *string + + // The ID of the Network Access Scope. + NetworkInsightsAccessScopeId *string + + // The analysis start date. + StartDate *time.Time + + // The status. + Status AnalysisStatus + + // The status message. + StatusMessage *string + + // The tags. + Tags []Tag + + // The warning message. + WarningMessage *string + + noSmithyDocumentSerde +} + +// Describes the Network Access Scope content. +type NetworkInsightsAccessScopeContent struct { + + // The paths to exclude. + ExcludePaths []AccessScopePath + + // The paths to match. + MatchPaths []AccessScopePath + + // The ID of the Network Access Scope. + NetworkInsightsAccessScopeId *string + + noSmithyDocumentSerde +} + // Describes a network insights analysis. type NetworkInsightsAnalysis struct { @@ -8363,6 +8922,9 @@ type NetworkInsightsAnalysis struct { // The tags. Tags []Tag + // The warning message. + WarningMessage *string + noSmithyDocumentSerde } @@ -8742,12 +9304,69 @@ type OnDemandOptionsRequest struct { noSmithyDocumentSerde } +// Describes a packet header statement. +type PacketHeaderStatement struct { + + // The destination addresses. + DestinationAddresses []string + + // The destination ports. + DestinationPorts []string + + // The destination prefix lists. + DestinationPrefixLists []string + + // The protocols. + Protocols []Protocol + + // The source addresses. + SourceAddresses []string + + // The source ports. + SourcePorts []string + + // The source prefix lists. + SourcePrefixLists []string + + noSmithyDocumentSerde +} + +// Describes a packet header statement. +type PacketHeaderStatementRequest struct { + + // The destination addresses. + DestinationAddresses []string + + // The destination ports. + DestinationPorts []string + + // The destination prefix lists. + DestinationPrefixLists []string + + // The protocols. + Protocols []Protocol + + // The source addresses. + SourceAddresses []string + + // The source ports. + SourcePorts []string + + // The source prefix lists. + SourcePrefixLists []string + + noSmithyDocumentSerde +} + // Describes a path component. type PathComponent struct { // The network ACL rule. AclRule *AnalysisAclRule + // The resource to which the path component is attached. + AttachedTo *AnalysisComponent + // The component. Component *AnalysisComponent @@ -8781,6 +9400,30 @@ type PathComponent struct { noSmithyDocumentSerde } +// Describes a path statement. +type PathStatement struct { + + // The packet header statement. + PacketHeaderStatement *PacketHeaderStatement + + // The resource statement. + ResourceStatement *ResourceStatement + + noSmithyDocumentSerde +} + +// Describes a path statement. +type PathStatementRequest struct { + + // The packet header statement. + PacketHeaderStatement *PacketHeaderStatementRequest + + // The resource statement. + ResourceStatement *ResourceStatementRequest + + noSmithyDocumentSerde +} + // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI bus. type PciId struct { @@ -9559,6 +10202,19 @@ type RegisterInstanceTagAttributeRequest struct { noSmithyDocumentSerde } +// Remove an operating Region from an IPAM. Operating Regions are Amazon Web +// Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only +// discovers and monitors resources in the Amazon Web Services Regions you select +// as operating Regions. For more information about operating Regions, see Create +// an IPAM in the Amazon VPC IPAM User Guide +type RemoveIpamOperatingRegion struct { + + // The name of the operating Region you want to remove. + RegionName *string + + noSmithyDocumentSerde +} + // An entry for a prefix list. type RemovePrefixListEntry struct { @@ -9617,6 +10273,19 @@ type ReplaceRootVolumeTask struct { noSmithyDocumentSerde } +// A tag on an IPAM resource. +type RequestIpamResourceTag struct { + + // The key of a tag assigned to the resource. Use this filter to find all resources + // assigned a tag with a specific key, regardless of the tag value. + Key *string + + // The value for the tag. + Value *string + + noSmithyDocumentSerde +} + // The information to include in the launch template. type RequestLaunchTemplateData struct { @@ -10201,6 +10870,30 @@ type ReservedInstancesOffering struct { noSmithyDocumentSerde } +// Describes a resource statement. +type ResourceStatement struct { + + // The resource types. + ResourceTypes []string + + // The resources. + Resources []string + + noSmithyDocumentSerde +} + +// Describes a resource statement. +type ResourceStatementRequest struct { + + // The resource types. + ResourceTypes []string + + // The resources. + Resources []string + + noSmithyDocumentSerde +} + // Describes the error that's returned when you cannot delete a launch template // version. type ResponseError struct { @@ -12390,6 +13083,11 @@ type Subnet struct { // subnet should return synthetic IPv6 addresses for IPv4-only destinations. EnableDns64 *bool + // Indicates the device position for local network interfaces in this subnet. For + // example, 1 indicates local network interfaces in this subnet are the secondary + // network interface (eth1). + EnableLniAtDeviceIndex *int32 + // Information about the IPv6 CIDR blocks associated with the subnet. Ipv6CidrBlockAssociationSet []SubnetIpv6CidrBlockAssociation @@ -12739,6 +13437,24 @@ type TerminateConnectionStatus struct { noSmithyDocumentSerde } +// Describes a through resource statement. +type ThroughResourcesStatement struct { + + // The resource statement. + ResourceStatement *ResourceStatement + + noSmithyDocumentSerde +} + +// Describes a through resource statement. +type ThroughResourcesStatementRequest struct { + + // The resource statement. + ResourceStatement *ResourceStatementRequest + + noSmithyDocumentSerde +} + // The minimum and maximum amount of total local storage, in GB. type TotalLocalStorageGB struct { diff --git a/service/ec2/validators.go b/service/ec2/validators.go index f093134bbbc..beb989fd274 100644 --- a/service/ec2/validators.go +++ b/service/ec2/validators.go @@ -130,6 +130,26 @@ func (m *validateOpAllocateHosts) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpAllocateIpamPoolCidr struct { +} + +func (*validateOpAllocateIpamPoolCidr) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAllocateIpamPoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AllocateIpamPoolCidrInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAllocateIpamPoolCidrInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpApplySecurityGroupsToClientVpnTargetNetwork struct { } @@ -1050,6 +1070,46 @@ func (m *validateOpCreateInstanceExportTask) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpCreateIpamPool struct { +} + +func (*validateOpCreateIpamPool) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateIpamPool) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateIpamPoolInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateIpamPoolInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateIpamScope struct { +} + +func (*validateOpCreateIpamScope) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateIpamScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateIpamScopeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateIpamScopeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateKeyPair struct { } @@ -1230,6 +1290,26 @@ func (m *validateOpCreateNetworkAcl) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpCreateNetworkInsightsAccessScope struct { +} + +func (*validateOpCreateNetworkInsightsAccessScope) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateNetworkInsightsAccessScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateNetworkInsightsAccessScopeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateNetworkInsightsAccessScopeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateNetworkInsightsPath struct { } @@ -1810,26 +1890,6 @@ func (m *validateOpCreateVpcEndpoint) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } -type validateOpCreateVpc struct { -} - -func (*validateOpCreateVpc) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateVpc) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateVpcInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateVpcInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpCreateVpnConnection struct { } @@ -2110,6 +2170,66 @@ func (m *validateOpDeleteInternetGateway) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpDeleteIpam struct { +} + +func (*validateOpDeleteIpam) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteIpam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteIpamInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteIpamInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteIpamPool struct { +} + +func (*validateOpDeleteIpamPool) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteIpamPool) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteIpamPoolInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteIpamPoolInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteIpamScope struct { +} + +func (*validateOpDeleteIpamScope) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteIpamScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteIpamScopeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteIpamScopeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteLaunchTemplateVersions struct { } @@ -2250,6 +2370,46 @@ func (m *validateOpDeleteNetworkAcl) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpDeleteNetworkInsightsAccessScopeAnalysis struct { +} + +func (*validateOpDeleteNetworkInsightsAccessScopeAnalysis) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteNetworkInsightsAccessScopeAnalysis) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteNetworkInsightsAccessScopeAnalysisInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteNetworkInsightsAccessScopeAnalysisInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteNetworkInsightsAccessScope struct { +} + +func (*validateOpDeleteNetworkInsightsAccessScope) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteNetworkInsightsAccessScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteNetworkInsightsAccessScopeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteNetworkInsightsAccessScopeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteNetworkInsightsAnalysis struct { } @@ -2350,6 +2510,26 @@ func (m *validateOpDeletePlacementGroup) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDeletePublicIpv4Pool struct { +} + +func (*validateOpDeletePublicIpv4Pool) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeletePublicIpv4Pool) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeletePublicIpv4PoolInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeletePublicIpv4PoolInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteQueuedReservedInstances struct { } @@ -2950,6 +3130,46 @@ func (m *validateOpDeprovisionByoipCidr) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDeprovisionIpamPoolCidr struct { +} + +func (*validateOpDeprovisionIpamPoolCidr) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeprovisionIpamPoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeprovisionIpamPoolCidrInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeprovisionIpamPoolCidrInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeprovisionPublicIpv4PoolCidr struct { +} + +func (*validateOpDeprovisionPublicIpv4PoolCidr) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeprovisionPublicIpv4PoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeprovisionPublicIpv4PoolCidrInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeprovisionPublicIpv4PoolCidrInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeregisterImage struct { } @@ -3530,6 +3750,26 @@ func (m *validateOpDisableImageDeprecation) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpDisableIpamOrganizationAdminAccount struct { +} + +func (*validateOpDisableIpamOrganizationAdminAccount) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisableIpamOrganizationAdminAccount) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisableIpamOrganizationAdminAccountInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisableIpamOrganizationAdminAccountInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDisableTransitGatewayRouteTablePropagation struct { } @@ -3790,6 +4030,26 @@ func (m *validateOpEnableImageDeprecation) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpEnableIpamOrganizationAdminAccount struct { +} + +func (*validateOpEnableIpamOrganizationAdminAccount) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpEnableIpamOrganizationAdminAccount) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*EnableIpamOrganizationAdminAccountInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpEnableIpamOrganizationAdminAccountInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpEnableTransitGatewayRouteTablePropagation struct { } @@ -4150,107 +4410,227 @@ func (m *validateOpGetInstanceTypesFromInstanceRequirements) HandleInitialize(ct return next.HandleInitialize(ctx, in) } -type validateOpGetLaunchTemplateData struct { +type validateOpGetIpamAddressHistory struct { } -func (*validateOpGetLaunchTemplateData) ID() string { +func (*validateOpGetIpamAddressHistory) ID() string { return "OperationInputValidation" } -func (m *validateOpGetLaunchTemplateData) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( +func (m *validateOpGetIpamAddressHistory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { - input, ok := in.Parameters.(*GetLaunchTemplateDataInput) + input, ok := in.Parameters.(*GetIpamAddressHistoryInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } - if err := validateOpGetLaunchTemplateDataInput(input); err != nil { + if err := validateOpGetIpamAddressHistoryInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } -type validateOpGetManagedPrefixListAssociations struct { +type validateOpGetIpamPoolAllocations struct { } -func (*validateOpGetManagedPrefixListAssociations) ID() string { +func (*validateOpGetIpamPoolAllocations) ID() string { return "OperationInputValidation" } -func (m *validateOpGetManagedPrefixListAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( +func (m *validateOpGetIpamPoolAllocations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { - input, ok := in.Parameters.(*GetManagedPrefixListAssociationsInput) + input, ok := in.Parameters.(*GetIpamPoolAllocationsInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } - if err := validateOpGetManagedPrefixListAssociationsInput(input); err != nil { + if err := validateOpGetIpamPoolAllocationsInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } -type validateOpGetManagedPrefixListEntries struct { +type validateOpGetIpamPoolCidrs struct { } -func (*validateOpGetManagedPrefixListEntries) ID() string { +func (*validateOpGetIpamPoolCidrs) ID() string { return "OperationInputValidation" } -func (m *validateOpGetManagedPrefixListEntries) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( +func (m *validateOpGetIpamPoolCidrs) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { - input, ok := in.Parameters.(*GetManagedPrefixListEntriesInput) + input, ok := in.Parameters.(*GetIpamPoolCidrsInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } - if err := validateOpGetManagedPrefixListEntriesInput(input); err != nil { + if err := validateOpGetIpamPoolCidrsInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } -type validateOpGetPasswordData struct { +type validateOpGetIpamResourceCidrs struct { } -func (*validateOpGetPasswordData) ID() string { +func (*validateOpGetIpamResourceCidrs) ID() string { return "OperationInputValidation" } -func (m *validateOpGetPasswordData) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( +func (m *validateOpGetIpamResourceCidrs) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { - input, ok := in.Parameters.(*GetPasswordDataInput) + input, ok := in.Parameters.(*GetIpamResourceCidrsInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } - if err := validateOpGetPasswordDataInput(input); err != nil { + if err := validateOpGetIpamResourceCidrsInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } -type validateOpGetReservedInstancesExchangeQuote struct { +type validateOpGetLaunchTemplateData struct { } -func (*validateOpGetReservedInstancesExchangeQuote) ID() string { +func (*validateOpGetLaunchTemplateData) ID() string { return "OperationInputValidation" } -func (m *validateOpGetReservedInstancesExchangeQuote) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( +func (m *validateOpGetLaunchTemplateData) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { - input, ok := in.Parameters.(*GetReservedInstancesExchangeQuoteInput) + input, ok := in.Parameters.(*GetLaunchTemplateDataInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } - if err := validateOpGetReservedInstancesExchangeQuoteInput(input); err != nil { + if err := validateOpGetLaunchTemplateDataInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } -type validateOpGetSpotPlacementScores struct { +type validateOpGetManagedPrefixListAssociations struct { +} + +func (*validateOpGetManagedPrefixListAssociations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetManagedPrefixListAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetManagedPrefixListAssociationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetManagedPrefixListAssociationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetManagedPrefixListEntries struct { +} + +func (*validateOpGetManagedPrefixListEntries) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetManagedPrefixListEntries) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetManagedPrefixListEntriesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetManagedPrefixListEntriesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetNetworkInsightsAccessScopeAnalysisFindings struct { +} + +func (*validateOpGetNetworkInsightsAccessScopeAnalysisFindings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetNetworkInsightsAccessScopeAnalysisFindings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetNetworkInsightsAccessScopeAnalysisFindingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetNetworkInsightsAccessScopeAnalysisFindingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetNetworkInsightsAccessScopeContent struct { +} + +func (*validateOpGetNetworkInsightsAccessScopeContent) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetNetworkInsightsAccessScopeContent) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetNetworkInsightsAccessScopeContentInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetNetworkInsightsAccessScopeContentInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetPasswordData struct { +} + +func (*validateOpGetPasswordData) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetPasswordData) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetPasswordDataInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetPasswordDataInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetReservedInstancesExchangeQuote struct { +} + +func (*validateOpGetReservedInstancesExchangeQuote) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetReservedInstancesExchangeQuote) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetReservedInstancesExchangeQuoteInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetReservedInstancesExchangeQuoteInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetSpotPlacementScores struct { } func (*validateOpGetSpotPlacementScores) ID() string { @@ -4870,6 +5250,86 @@ func (m *validateOpModifyInstancePlacement) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpModifyIpam struct { +} + +func (*validateOpModifyIpam) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyIpam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyIpamInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyIpamInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpModifyIpamPool struct { +} + +func (*validateOpModifyIpamPool) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyIpamPool) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyIpamPoolInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyIpamPoolInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpModifyIpamResourceCidr struct { +} + +func (*validateOpModifyIpamResourceCidr) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyIpamResourceCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyIpamResourceCidrInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyIpamResourceCidrInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpModifyIpamScope struct { +} + +func (*validateOpModifyIpamScope) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyIpamScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyIpamScopeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyIpamScopeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyManagedPrefixList struct { } @@ -5470,6 +5930,46 @@ func (m *validateOpProvisionByoipCidr) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpProvisionIpamPoolCidr struct { +} + +func (*validateOpProvisionIpamPoolCidr) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpProvisionIpamPoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ProvisionIpamPoolCidrInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpProvisionIpamPoolCidrInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpProvisionPublicIpv4PoolCidr struct { +} + +func (*validateOpProvisionPublicIpv4PoolCidr) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpProvisionPublicIpv4PoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ProvisionPublicIpv4PoolCidrInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpProvisionPublicIpv4PoolCidrInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPurchaseHostReservation struct { } @@ -5670,6 +6170,26 @@ func (m *validateOpReleaseHosts) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpReleaseIpamPoolAllocation struct { +} + +func (*validateOpReleaseIpamPoolAllocation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpReleaseIpamPoolAllocation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ReleaseIpamPoolAllocationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpReleaseIpamPoolAllocationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpReplaceIamInstanceProfileAssociation struct { } @@ -6210,6 +6730,26 @@ func (m *validateOpStartInstances) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpStartNetworkInsightsAccessScopeAnalysis struct { +} + +func (*validateOpStartNetworkInsightsAccessScopeAnalysis) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartNetworkInsightsAccessScopeAnalysis) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartNetworkInsightsAccessScopeAnalysisInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartNetworkInsightsAccessScopeAnalysisInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStartNetworkInsightsAnalysis struct { } @@ -6414,6 +6954,10 @@ func addOpAllocateHostsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAllocateHosts{}, middleware.After) } +func addOpAllocateIpamPoolCidrValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAllocateIpamPoolCidr{}, middleware.After) +} + func addOpApplySecurityGroupsToClientVpnTargetNetworkValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpApplySecurityGroupsToClientVpnTargetNetwork{}, middleware.After) } @@ -6598,6 +7142,14 @@ func addOpCreateInstanceExportTaskValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpCreateInstanceExportTask{}, middleware.After) } +func addOpCreateIpamPoolValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateIpamPool{}, middleware.After) +} + +func addOpCreateIpamScopeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateIpamScope{}, middleware.After) +} + func addOpCreateKeyPairValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateKeyPair{}, middleware.After) } @@ -6634,6 +7186,10 @@ func addOpCreateNetworkAclValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateNetworkAcl{}, middleware.After) } +func addOpCreateNetworkInsightsAccessScopeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateNetworkInsightsAccessScope{}, middleware.After) +} + func addOpCreateNetworkInsightsPathValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateNetworkInsightsPath{}, middleware.After) } @@ -6750,10 +7306,6 @@ func addOpCreateVpcEndpointValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVpcEndpoint{}, middleware.After) } -func addOpCreateVpcValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateVpc{}, middleware.After) -} - func addOpCreateVpnConnectionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVpnConnection{}, middleware.After) } @@ -6810,6 +7362,18 @@ func addOpDeleteInternetGatewayValidationMiddleware(stack *middleware.Stack) err return stack.Initialize.Add(&validateOpDeleteInternetGateway{}, middleware.After) } +func addOpDeleteIpamValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteIpam{}, middleware.After) +} + +func addOpDeleteIpamPoolValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteIpamPool{}, middleware.After) +} + +func addOpDeleteIpamScopeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteIpamScope{}, middleware.After) +} + func addOpDeleteLaunchTemplateVersionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteLaunchTemplateVersions{}, middleware.After) } @@ -6838,6 +7402,14 @@ func addOpDeleteNetworkAclValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteNetworkAcl{}, middleware.After) } +func addOpDeleteNetworkInsightsAccessScopeAnalysisValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteNetworkInsightsAccessScopeAnalysis{}, middleware.After) +} + +func addOpDeleteNetworkInsightsAccessScopeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteNetworkInsightsAccessScope{}, middleware.After) +} + func addOpDeleteNetworkInsightsAnalysisValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteNetworkInsightsAnalysis{}, middleware.After) } @@ -6858,6 +7430,10 @@ func addOpDeletePlacementGroupValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDeletePlacementGroup{}, middleware.After) } +func addOpDeletePublicIpv4PoolValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeletePublicIpv4Pool{}, middleware.After) +} + func addOpDeleteQueuedReservedInstancesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteQueuedReservedInstances{}, middleware.After) } @@ -6978,6 +7554,14 @@ func addOpDeprovisionByoipCidrValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDeprovisionByoipCidr{}, middleware.After) } +func addOpDeprovisionIpamPoolCidrValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeprovisionIpamPoolCidr{}, middleware.After) +} + +func addOpDeprovisionPublicIpv4PoolCidrValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeprovisionPublicIpv4PoolCidr{}, middleware.After) +} + func addOpDeregisterImageValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeregisterImage{}, middleware.After) } @@ -7094,6 +7678,10 @@ func addOpDisableImageDeprecationValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpDisableImageDeprecation{}, middleware.After) } +func addOpDisableIpamOrganizationAdminAccountValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisableIpamOrganizationAdminAccount{}, middleware.After) +} + func addOpDisableTransitGatewayRouteTablePropagationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisableTransitGatewayRouteTablePropagation{}, middleware.After) } @@ -7146,6 +7734,10 @@ func addOpEnableImageDeprecationValidationMiddleware(stack *middleware.Stack) er return stack.Initialize.Add(&validateOpEnableImageDeprecation{}, middleware.After) } +func addOpEnableIpamOrganizationAdminAccountValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpEnableIpamOrganizationAdminAccount{}, middleware.After) +} + func addOpEnableTransitGatewayRouteTablePropagationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpEnableTransitGatewayRouteTablePropagation{}, middleware.After) } @@ -7218,6 +7810,22 @@ func addOpGetInstanceTypesFromInstanceRequirementsValidationMiddleware(stack *mi return stack.Initialize.Add(&validateOpGetInstanceTypesFromInstanceRequirements{}, middleware.After) } +func addOpGetIpamAddressHistoryValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetIpamAddressHistory{}, middleware.After) +} + +func addOpGetIpamPoolAllocationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetIpamPoolAllocations{}, middleware.After) +} + +func addOpGetIpamPoolCidrsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetIpamPoolCidrs{}, middleware.After) +} + +func addOpGetIpamResourceCidrsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetIpamResourceCidrs{}, middleware.After) +} + func addOpGetLaunchTemplateDataValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetLaunchTemplateData{}, middleware.After) } @@ -7230,6 +7838,14 @@ func addOpGetManagedPrefixListEntriesValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpGetManagedPrefixListEntries{}, middleware.After) } +func addOpGetNetworkInsightsAccessScopeAnalysisFindingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetNetworkInsightsAccessScopeAnalysisFindings{}, middleware.After) +} + +func addOpGetNetworkInsightsAccessScopeContentValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetNetworkInsightsAccessScopeContent{}, middleware.After) +} + func addOpGetPasswordDataValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetPasswordData{}, middleware.After) } @@ -7362,6 +7978,22 @@ func addOpModifyInstancePlacementValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpModifyInstancePlacement{}, middleware.After) } +func addOpModifyIpamValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyIpam{}, middleware.After) +} + +func addOpModifyIpamPoolValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyIpamPool{}, middleware.After) +} + +func addOpModifyIpamResourceCidrValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyIpamResourceCidr{}, middleware.After) +} + +func addOpModifyIpamScopeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyIpamScope{}, middleware.After) +} + func addOpModifyManagedPrefixListValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyManagedPrefixList{}, middleware.After) } @@ -7482,6 +8114,14 @@ func addOpProvisionByoipCidrValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpProvisionByoipCidr{}, middleware.After) } +func addOpProvisionIpamPoolCidrValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpProvisionIpamPoolCidr{}, middleware.After) +} + +func addOpProvisionPublicIpv4PoolCidrValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpProvisionPublicIpv4PoolCidr{}, middleware.After) +} + func addOpPurchaseHostReservationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPurchaseHostReservation{}, middleware.After) } @@ -7522,6 +8162,10 @@ func addOpReleaseHostsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpReleaseHosts{}, middleware.After) } +func addOpReleaseIpamPoolAllocationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpReleaseIpamPoolAllocation{}, middleware.After) +} + func addOpReplaceIamInstanceProfileAssociationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpReplaceIamInstanceProfileAssociation{}, middleware.After) } @@ -7630,6 +8274,10 @@ func addOpStartInstancesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartInstances{}, middleware.After) } +func addOpStartNetworkInsightsAccessScopeAnalysisValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartNetworkInsightsAccessScopeAnalysis{}, middleware.After) +} + func addOpStartNetworkInsightsAnalysisValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartNetworkInsightsAnalysis{}, middleware.After) } @@ -8472,6 +9120,21 @@ func validateOpAllocateHostsInput(v *AllocateHostsInput) error { } } +func validateOpAllocateIpamPoolCidrInput(v *AllocateIpamPoolCidrInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AllocateIpamPoolCidrInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpApplySecurityGroupsToClientVpnTargetNetworkInput(v *ApplySecurityGroupsToClientVpnTargetNetworkInput) error { if v == nil { return nil @@ -9290,6 +9953,36 @@ func validateOpCreateInstanceExportTaskInput(v *CreateInstanceExportTaskInput) e } } +func validateOpCreateIpamPoolInput(v *CreateIpamPoolInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateIpamPoolInput"} + if v.IpamScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateIpamScopeInput(v *CreateIpamScopeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateIpamScopeInput"} + if v.IpamId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateKeyPairInput(v *CreateKeyPairInput) error { if v == nil { return nil @@ -9468,6 +10161,21 @@ func validateOpCreateNetworkAclInput(v *CreateNetworkAclInput) error { } } +func validateOpCreateNetworkInsightsAccessScopeInput(v *CreateNetworkInsightsAccessScopeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateNetworkInsightsAccessScopeInput"} + if v.ClientToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateNetworkInsightsPathInput(v *CreateNetworkInsightsPathInput) error { if v == nil { return nil @@ -10006,21 +10714,6 @@ func validateOpCreateVpcEndpointInput(v *CreateVpcEndpointInput) error { } } -func validateOpCreateVpcInput(v *CreateVpcInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateVpcInput"} - if v.CidrBlock == nil { - invalidParams.Add(smithy.NewErrParamRequired("CidrBlock")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpCreateVpnConnectionInput(v *CreateVpnConnectionInput) error { if v == nil { return nil @@ -10243,6 +10936,51 @@ func validateOpDeleteInternetGatewayInput(v *DeleteInternetGatewayInput) error { } } +func validateOpDeleteIpamInput(v *DeleteIpamInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteIpamInput"} + if v.IpamId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteIpamPoolInput(v *DeleteIpamPoolInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteIpamPoolInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteIpamScopeInput(v *DeleteIpamScopeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteIpamScopeInput"} + if v.IpamScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteLaunchTemplateVersionsInput(v *DeleteLaunchTemplateVersionsInput) error { if v == nil { return nil @@ -10357,6 +11095,36 @@ func validateOpDeleteNetworkAclInput(v *DeleteNetworkAclInput) error { } } +func validateOpDeleteNetworkInsightsAccessScopeAnalysisInput(v *DeleteNetworkInsightsAccessScopeAnalysisInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteNetworkInsightsAccessScopeAnalysisInput"} + if v.NetworkInsightsAccessScopeAnalysisId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkInsightsAccessScopeAnalysisId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteNetworkInsightsAccessScopeInput(v *DeleteNetworkInsightsAccessScopeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteNetworkInsightsAccessScopeInput"} + if v.NetworkInsightsAccessScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkInsightsAccessScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteNetworkInsightsAnalysisInput(v *DeleteNetworkInsightsAnalysisInput) error { if v == nil { return nil @@ -10432,6 +11200,21 @@ func validateOpDeletePlacementGroupInput(v *DeletePlacementGroupInput) error { } } +func validateOpDeletePublicIpv4PoolInput(v *DeletePublicIpv4PoolInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeletePublicIpv4PoolInput"} + if v.PoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("PoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteQueuedReservedInstancesInput(v *DeleteQueuedReservedInstancesInput) error { if v == nil { return nil @@ -10891,6 +11674,39 @@ func validateOpDeprovisionByoipCidrInput(v *DeprovisionByoipCidrInput) error { } } +func validateOpDeprovisionIpamPoolCidrInput(v *DeprovisionIpamPoolCidrInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeprovisionIpamPoolCidrInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeprovisionPublicIpv4PoolCidrInput(v *DeprovisionPublicIpv4PoolCidrInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeprovisionPublicIpv4PoolCidrInput"} + if v.PoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("PoolId")) + } + if v.Cidr == nil { + invalidParams.Add(smithy.NewErrParamRequired("Cidr")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeregisterImageInput(v *DeregisterImageInput) error { if v == nil { return nil @@ -11369,6 +12185,21 @@ func validateOpDisableImageDeprecationInput(v *DisableImageDeprecationInput) err } } +func validateOpDisableIpamOrganizationAdminAccountInput(v *DisableIpamOrganizationAdminAccountInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisableIpamOrganizationAdminAccountInput"} + if v.DelegatedAdminAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DelegatedAdminAccountId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDisableTransitGatewayRouteTablePropagationInput(v *DisableTransitGatewayRouteTablePropagationInput) error { if v == nil { return nil @@ -11585,6 +12416,21 @@ func validateOpEnableImageDeprecationInput(v *EnableImageDeprecationInput) error } } +func validateOpEnableIpamOrganizationAdminAccountInput(v *EnableIpamOrganizationAdminAccountInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EnableIpamOrganizationAdminAccountInput"} + if v.DelegatedAdminAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DelegatedAdminAccountId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpEnableTransitGatewayRouteTablePropagationInput(v *EnableTransitGatewayRouteTablePropagationInput) error { if v == nil { return nil @@ -11897,6 +12743,69 @@ func validateOpGetInstanceTypesFromInstanceRequirementsInput(v *GetInstanceTypes } } +func validateOpGetIpamAddressHistoryInput(v *GetIpamAddressHistoryInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetIpamAddressHistoryInput"} + if v.Cidr == nil { + invalidParams.Add(smithy.NewErrParamRequired("Cidr")) + } + if v.IpamScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetIpamPoolAllocationsInput(v *GetIpamPoolAllocationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetIpamPoolAllocationsInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetIpamPoolCidrsInput(v *GetIpamPoolCidrsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetIpamPoolCidrsInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetIpamResourceCidrsInput(v *GetIpamResourceCidrsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetIpamResourceCidrsInput"} + if v.IpamScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetLaunchTemplateDataInput(v *GetLaunchTemplateDataInput) error { if v == nil { return nil @@ -11942,6 +12851,36 @@ func validateOpGetManagedPrefixListEntriesInput(v *GetManagedPrefixListEntriesIn } } +func validateOpGetNetworkInsightsAccessScopeAnalysisFindingsInput(v *GetNetworkInsightsAccessScopeAnalysisFindingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetNetworkInsightsAccessScopeAnalysisFindingsInput"} + if v.NetworkInsightsAccessScopeAnalysisId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkInsightsAccessScopeAnalysisId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetNetworkInsightsAccessScopeContentInput(v *GetNetworkInsightsAccessScopeContentInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetNetworkInsightsAccessScopeContentInput"} + if v.NetworkInsightsAccessScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkInsightsAccessScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetPasswordDataInput(v *GetPasswordDataInput) error { if v == nil { return nil @@ -12509,6 +13448,78 @@ func validateOpModifyInstancePlacementInput(v *ModifyInstancePlacementInput) err } } +func validateOpModifyIpamInput(v *ModifyIpamInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyIpamInput"} + if v.IpamId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpModifyIpamPoolInput(v *ModifyIpamPoolInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyIpamPoolInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpModifyIpamResourceCidrInput(v *ModifyIpamResourceCidrInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyIpamResourceCidrInput"} + if v.ResourceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceId")) + } + if v.ResourceCidr == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceCidr")) + } + if v.ResourceRegion == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceRegion")) + } + if v.CurrentIpamScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CurrentIpamScopeId")) + } + if v.Monitored == nil { + invalidParams.Add(smithy.NewErrParamRequired("Monitored")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpModifyIpamScopeInput(v *ModifyIpamScopeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyIpamScopeInput"} + if v.IpamScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamScopeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyManagedPrefixListInput(v *ModifyManagedPrefixListInput) error { if v == nil { return nil @@ -12995,6 +14006,42 @@ func validateOpProvisionByoipCidrInput(v *ProvisionByoipCidrInput) error { } } +func validateOpProvisionIpamPoolCidrInput(v *ProvisionIpamPoolCidrInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProvisionIpamPoolCidrInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpProvisionPublicIpv4PoolCidrInput(v *ProvisionPublicIpv4PoolCidrInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProvisionPublicIpv4PoolCidrInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if v.PoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("PoolId")) + } + if v.NetmaskLength == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetmaskLength")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPurchaseHostReservationInput(v *PurchaseHostReservationInput) error { if v == nil { return nil @@ -13158,6 +14205,24 @@ func validateOpReleaseHostsInput(v *ReleaseHostsInput) error { } } +func validateOpReleaseIpamPoolAllocationInput(v *ReleaseIpamPoolAllocationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ReleaseIpamPoolAllocationInput"} + if v.IpamPoolId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IpamPoolId")) + } + if v.Cidr == nil { + invalidParams.Add(smithy.NewErrParamRequired("Cidr")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpReplaceIamInstanceProfileAssociationInput(v *ReplaceIamInstanceProfileAssociationInput) error { if v == nil { return nil @@ -13653,6 +14718,24 @@ func validateOpStartInstancesInput(v *StartInstancesInput) error { } } +func validateOpStartNetworkInsightsAccessScopeAnalysisInput(v *StartNetworkInsightsAccessScopeAnalysisInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartNetworkInsightsAccessScopeAnalysisInput"} + if v.NetworkInsightsAccessScopeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkInsightsAccessScopeId")) + } + if v.ClientToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStartNetworkInsightsAnalysisInput(v *StartNetworkInsightsAnalysisInput) error { if v == nil { return nil diff --git a/service/evidently/internal/endpoints/endpoints.go b/service/evidently/internal/endpoints/endpoints.go index 48506213592..a8be62ac182 100644 --- a/service/evidently/internal/endpoints/endpoints.go +++ b/service/evidently/internal/endpoints/endpoints.go @@ -134,6 +134,53 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "ap-northeast-1", + }: endpoints.Endpoint{ + Hostname: "evidently.ap-northeast-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{ + Hostname: "evidently.ap-southeast-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "ap-southeast-2", + }: endpoints.Endpoint{ + Hostname: "evidently.ap-southeast-2.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "eu-central-1", + }: endpoints.Endpoint{ + Hostname: "evidently.eu-central-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "eu-north-1", + }: endpoints.Endpoint{ + Hostname: "evidently.eu-north-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{ + Hostname: "evidently.eu-west-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{ + Hostname: "evidently.us-east-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "us-east-2", + }: endpoints.Endpoint{ + Hostname: "evidently.us-east-2.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{ + Hostname: "evidently.us-west-2.amazonaws.com", + }, + }, }, { ID: "aws-cn", diff --git a/service/fsx/api_op_CopyBackup.go b/service/fsx/api_op_CopyBackup.go index ea03790d169..e818f41ca11 100644 --- a/service/fsx/api_op_CopyBackup.go +++ b/service/fsx/api_op_CopyBackup.go @@ -16,23 +16,27 @@ import ( // Amazon Web Services Region (cross-Region copy) or within the same Amazon Web // Services Region (in-Region copy). You can have up to five backup copy requests // in progress to a single destination Region per account. You can use cross-Region -// backup copies for cross-region disaster recovery. You periodically take backups -// and copy them to another Region so that in the event of a disaster in the -// primary Region, you can restore from backup and recover availability quickly in -// the other Region. You can make cross-Region copies only within your Amazon Web -// Services partition. You can also use backup copies to clone your file data set -// to another Region or within the same Region. You can use the SourceRegion -// parameter to specify the Amazon Web Services Region from which the backup will -// be copied. For example, if you make the call from the us-west-1 Region and want -// to copy a backup from the us-east-2 Region, you specify us-east-2 in the -// SourceRegion parameter to make a cross-Region copy. If you don't specify a -// Region, the backup copy is created in the same Region where the request is sent -// from (in-Region copy). For more information on creating backup copies, see -// Copying backups +// backup copies for cross-Region disaster recovery. You can periodically take +// backups and copy them to another Region so that in the event of a disaster in +// the primary Region, you can restore from backup and recover availability quickly +// in the other Region. You can make cross-Region copies only within your Amazon +// Web Services partition. A partition is a grouping of Regions. Amazon Web +// Services currently has three partitions: aws (Standard Regions), aws-cn (China +// Regions), and aws-us-gov (Amazon Web Services GovCloud [US] Regions). You can +// also use backup copies to clone your file dataset to another Region or within +// the same Region. You can use the SourceRegion parameter to specify the Amazon +// Web Services Region from which the backup will be copied. For example, if you +// make the call from the us-west-1 Region and want to copy a backup from the +// us-east-2 Region, you specify us-east-2 in the SourceRegion parameter to make a +// cross-Region copy. If you don't specify a Region, the backup copy is created in +// the same Region where the request is sent from (in-Region copy). For more +// information about creating backup copies, see Copying backups // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/using-backups.html#copy-backups) -// in the Amazon FSx for Windows User Guide and Copying backups +// in the Amazon FSx for Windows User Guide, Copying backups // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-backups-fsx.html#copy-backups) -// in the Amazon FSx for Lustre User Guide. +// in the Amazon FSx for Lustre User Guide, and Copying backups +// (https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/using-backups.html#copy-backups) +// in the Amazon FSx for OpenZFS User Guide. func (c *Client) CopyBackup(ctx context.Context, params *CopyBackupInput, optFns ...func(*Options)) (*CopyBackupOutput, error) { if params == nil { params = &CopyBackupInput{} @@ -50,8 +54,7 @@ func (c *Client) CopyBackup(ctx context.Context, params *CopyBackupInput, optFns type CopyBackupInput struct { - // The ID of the source backup. Specifies the ID of the backup that is being - // copied. + // The ID of the source backup. Specifies the ID of the backup that's being copied. // // This member is required. SourceBackupId *string @@ -61,7 +64,7 @@ type CopyBackupInput struct { // the Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string - // A boolean flag indicating whether tags from the source backup should be copied + // A Boolean flag indicating whether tags from the source backup should be copied // to the backup copy. This value defaults to false. If you set CopyTags to true // and the source backup has existing tags, you can use the Tags parameter to // create new tags, provided that the sum of the source backup tags and the new @@ -72,19 +75,19 @@ type CopyBackupInput struct { // The ID of the Key Management Service (KMS) key used to encrypt the file system's // data for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp - // ONTAP file systems, and Amazon FSx for Lustre PERSISTENT_1 file systems at rest. - // If not specified, the Amazon FSx managed key is used. The Amazon FSx for Lustre - // SCRATCH_1 and SCRATCH_2 file systems are always encrypted at rest using Amazon - // FSx managed keys. For more information, see Encrypt - // (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) in the - // Key Management Service API Reference. + // ONTAP file systems, and Amazon FSx for Lustre PERSISTENT_1 and PERSISTENT_2 file + // systems at rest. If this ID isn't specified, the key managed by Amazon FSx is + // used. The Amazon FSx for Lustre SCRATCH_1 and SCRATCH_2 file systems are always + // encrypted at rest using Amazon FSx-managed keys. For more information, see + // Encrypt (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) + // in the Key Management Service API Reference. KmsKeyId *string // The source Amazon Web Services Region of the backup. Specifies the Amazon Web // Services Region from which the backup is being copied. The source and // destination Regions must be in the same Amazon Web Services partition. If you - // don't specify a Region, it defaults to the Region where the request is sent from - // (in-Region copy). + // don't specify a Region, SourceRegion defaults to the Region where the request is + // sent from (in-Region copy). SourceRegion *string // A list of Tag values, with a maximum of 50 elements. @@ -95,8 +98,9 @@ type CopyBackupInput struct { type CopyBackupOutput struct { - // A backup of an Amazon FSx for Windows File Server or Amazon FSx for Lustre file - // system, or of an Amazon FSx for NetApp ONTAP volume. + // A backup of an Amazon FSx for Windows File Server, Amazon FSx for Lustre file + // system, Amazon FSx for NetApp ONTAP volume, or Amazon FSx for OpenZFS file + // system. Backup *types.Backup // Metadata pertaining to the operation's result. diff --git a/service/fsx/api_op_CreateBackup.go b/service/fsx/api_op_CreateBackup.go index be3ca1d288a..69bcf40503f 100644 --- a/service/fsx/api_op_CreateBackup.go +++ b/service/fsx/api_op_CreateBackup.go @@ -12,22 +12,23 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a backup of an existing Amazon FSx for Windows File Server or Amazon FSx -// for Lustre file system, or of an Amazon FSx for NetApp ONTAP volume. Creating -// regular backups is a best practice, enabling you to restore a file system or -// volume from a backup if an issue arises with the original file system or volume. -// For Amazon FSx for Lustre file systems, you can create a backup only for file -// systems with the following configuration: +// Creates a backup of an existing Amazon FSx for Windows File Server file system, +// Amazon FSx for Lustre file system, Amazon FSx for NetApp ONTAP volume, or Amazon +// FSx for OpenZFS file system. We recommend creating regular backups so that you +// can restore a file system or volume from a backup if an issue arises with the +// original file system or volume. For Amazon FSx for Lustre file systems, you can +// create a backup only for file systems that have the following configuration: // -// * a Persistent deployment type +// * +// A Persistent deployment type // -// * is -// not linked to a data repository. +// * Are not linked to a data repository // -// For more information about backups, see the -// following: +// For more +// information about backups, see the following: // -// * For Amazon FSx for Lustre, see Working with FSx for Lustre backups +// * For Amazon FSx for Lustre, see +// Working with FSx for Lustre backups // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-backups-fsx.html). // // * @@ -38,10 +39,14 @@ import ( // Amazon FSx for NetApp ONTAP, see Working with FSx for NetApp ONTAP backups // (https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/using-backups.html). // +// * For +// Amazon FSx for OpenZFS, see Working with FSx for OpenZFS backups +// (https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/using-backups.html). +// // If a -// backup with the specified client request token exists, and the parameters match, -// this operation returns the description of the existing backup. If a backup -// specified client request token exists, and the parameters don't match, this +// backup with the specified client request token exists and the parameters match, +// this operation returns the description of the existing backup. If a backup with +// the specified client request token exists and the parameters don't match, this // operation returns IncompatibleParameterError. If a backup with the specified // client request token doesn't exist, CreateBackup does the following: // @@ -58,8 +63,9 @@ import ( // request token and the initial call created a backup, the operation returns a // successful result because all the parameters are the same. The CreateBackup // operation returns while the backup's lifecycle state is still CREATING. You can -// check the backup creation status by calling the DescribeBackups operation, which -// returns the backup state along with other information. +// check the backup creation status by calling the DescribeBackups +// (https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeBackups.html) +// operation, which returns the backup state along with other information. func (c *Client) CreateBackup(ctx context.Context, params *CreateBackupInput, optFns ...func(*Options)) (*CreateBackupOutput, error) { if params == nil { params = &CreateBackupInput{} @@ -89,11 +95,11 @@ type CreateBackupInput struct { // (Optional) The tags to apply to the backup at backup creation. The key value of // the Name tag appears in the console as the backup name. If you have set // CopyTagsToBackups to true, and you specify one or more tags using the - // CreateBackup action, no existing file system tags are copied from the file + // CreateBackup operation, no existing file system tags are copied from the file // system to the backup. Tags []types.Tag - // The ID of he FSx for NetApp ONTAP volume to back up. + // (Optional) The ID of the FSx for ONTAP volume to back up. VolumeId *string noSmithyDocumentSerde diff --git a/service/fsx/api_op_CreateDataRepositoryAssociation.go b/service/fsx/api_op_CreateDataRepositoryAssociation.go new file mode 100644 index 00000000000..c2fd45ff2bb --- /dev/null +++ b/service/fsx/api_op_CreateDataRepositoryAssociation.go @@ -0,0 +1,217 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an Amazon FSx for Lustre data repository association (DRA). A data +// repository association is a link between a directory on the file system and an +// Amazon S3 bucket or prefix. You can have a maximum of 8 data repository +// associations on a file system. Data repository associations are supported only +// for file systems with the Persistent_2 deployment type. Each data repository +// association must have a unique Amazon FSx file system directory and a unique S3 +// bucket or prefix associated with it. You can configure a data repository +// association for automatic import only, for automatic export only, or for both. +// To learn more about linking a data repository to your file system, see Linking +// your file system to an S3 bucket +// (https://docs.aws.amazon.com/fsx/latest/LustreGuide/create-dra-linked-data-repo.html). +func (c *Client) CreateDataRepositoryAssociation(ctx context.Context, params *CreateDataRepositoryAssociationInput, optFns ...func(*Options)) (*CreateDataRepositoryAssociationOutput, error) { + if params == nil { + params = &CreateDataRepositoryAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateDataRepositoryAssociation", params, optFns, c.addOperationCreateDataRepositoryAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateDataRepositoryAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateDataRepositoryAssociationInput struct { + + // The path to the Amazon S3 data repository that will be linked to the file + // system. The path can be an S3 bucket or prefix in the format + // s3://myBucket/myPrefix/. This path specifies where in the S3 data repository + // files will be imported from or exported to. + // + // This member is required. + DataRepositoryPath *string + + // The globally unique ID of the file system, assigned by Amazon FSx. + // + // This member is required. + FileSystemId *string + + // A path on the file system that points to a high-level directory (such as /ns1/) + // or subdirectory (such as /ns1/subdir/) that will be mapped 1-1 with + // DataRepositoryPath. The leading forward slash in the name is required. Two data + // repository associations cannot have overlapping file system paths. For example, + // if a data repository is associated with file system path /ns1/, then you cannot + // link another data repository with file system path /ns1/ns2. This path specifies + // where in your file system files will be exported from or imported to. This file + // system directory can be linked to only one Amazon S3 bucket, and no other S3 + // bucket can be linked to the directory. + // + // This member is required. + FileSystemPath *string + + // Set to true to run an import data repository task to import metadata from the + // data repository to the file system after the data repository association is + // created. Default is false. + BatchImportMetaDataOnCreate *bool + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + // For files imported from a data repository, this value determines the stripe + // count and maximum amount of data per file (in MiB) stored on a single physical + // disk. The maximum number of disks that a single file can be striped across is + // limited by the total number of disks that make up the file system. The default + // chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). + // Amazon S3 objects have a maximum size of 5 TB. + ImportedFileChunkSize *int32 + + // The configuration for an Amazon S3 data repository linked to an Amazon FSx + // Lustre file system with a data repository association. The configuration defines + // which file events (new, changed, or deleted files or directories) are + // automatically imported from the linked data repository to the file system or + // automatically exported from the file system to the data repository. + S3 *types.S3DataRepositoryConfiguration + + // A list of Tag values, with a maximum of 50 elements. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateDataRepositoryAssociationOutput struct { + + // The response object returned after the data repository association is created. + Association *types.DataRepositoryAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateDataRepositoryAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateDataRepositoryAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateDataRepositoryAssociation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateDataRepositoryAssociationMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateDataRepositoryAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDataRepositoryAssociation(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateDataRepositoryAssociation struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateDataRepositoryAssociation) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateDataRepositoryAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateDataRepositoryAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateDataRepositoryAssociationInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateDataRepositoryAssociationMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateDataRepositoryAssociation{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateDataRepositoryAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "CreateDataRepositoryAssociation", + } +} diff --git a/service/fsx/api_op_CreateDataRepositoryTask.go b/service/fsx/api_op_CreateDataRepositoryTask.go index 419eb44e12e..fec20d0803c 100644 --- a/service/fsx/api_op_CreateDataRepositoryTask.go +++ b/service/fsx/api_op_CreateDataRepositoryTask.go @@ -14,16 +14,16 @@ import ( // Creates an Amazon FSx for Lustre data repository task. You use data repository // tasks to perform bulk operations between your Amazon FSx file system and its -// linked data repository. An example of a data repository task is exporting any +// linked data repositories. An example of a data repository task is exporting any // data and metadata changes, including POSIX metadata, to files, directories, and -// symbolic links (symlinks) from your FSx file system to its linked data -// repository. A CreateDataRepositoryTask operation will fail if a data repository -// is not linked to the FSx file system. To learn more about data repository tasks, -// see Data Repository Tasks +// symbolic links (symlinks) from your FSx file system to a linked data repository. +// A CreateDataRepositoryTask operation will fail if a data repository is not +// linked to the FSx file system. To learn more about data repository tasks, see +// Data Repository Tasks // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-repository-tasks.html). // To learn more about linking a data repository to your file system, see Linking // your file system to an S3 bucket -// (https://docs.aws.amazon.com/fsx/latest/LustreGuide/create-fs-linked-data-repo.html). +// (https://docs.aws.amazon.com/fsx/latest/LustreGuide/create-dra-linked-data-repo.html). func (c *Client) CreateDataRepositoryTask(ctx context.Context, params *CreateDataRepositoryTaskInput, optFns ...func(*Options)) (*CreateDataRepositoryTaskOutput, error) { if params == nil { params = &CreateDataRepositoryTaskInput{} diff --git a/service/fsx/api_op_CreateFileSystem.go b/service/fsx/api_op_CreateFileSystem.go index b297fae1d00..803ecc3592a 100644 --- a/service/fsx/api_op_CreateFileSystem.go +++ b/service/fsx/api_op_CreateFileSystem.go @@ -12,10 +12,30 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new, empty Amazon FSx file system. If a file system with the specified -// client request token exists and the parameters match, CreateFileSystem returns -// the description of the existing file system. If a file system specified client -// request token exists and the parameters don't match, this call returns +// Creates a new, empty Amazon FSx file system. You can create the following +// supported Amazon FSx file systems using the CreateFileSystem API operation: +// +// * +// Amazon FSx for Lustre +// +// * Amazon FSx for NetApp ONTAP +// +// * Amazon FSx for Windows +// File Server +// +// This operation requires a client request token in the request that +// Amazon FSx uses to ensure idempotent creation. This means that calling the +// operation multiple times with the same client request token has no effect. By +// using the idempotent operation, you can retry a CreateFileSystem operation +// without the risk of creating an extra file system. This approach can be useful +// when an initial call fails in a way that makes it unclear whether a file system +// was created. Examples are if a transport level timeout occurred, or your +// connection was reset. If you use the same client request token and the initial +// call created a file system, the client receives success as long as the +// parameters are the same. If a file system with the specified client request +// token exists and the parameters match, CreateFileSystem returns the description +// of the existing file system. If a file system with the specified client request +// token exists and the parameters don't match, this call returns // IncompatibleParameterError. If a file system with the specified client request // token doesn't exist, CreateFileSystem does the following: // @@ -32,11 +52,13 @@ import ( // you can retry a CreateFileSystem operation without the risk of creating an extra // file system. This approach can be useful when an initial call fails in a way // that makes it unclear whether a file system was created. Examples are if a -// transport level timeout occurred, or your connection was reset. If you use the +// transport-level timeout occurred, or your connection was reset. If you use the // same client request token and the initial call created a file system, the client -// receives success as long as the parameters are the same. The CreateFileSystem -// call returns while the file system's lifecycle state is still CREATING. You can -// check the file-system creation status by calling the DescribeFileSystems +// receives a success message as long as the parameters are the same. The +// CreateFileSystem call returns while the file system's lifecycle state is still +// CREATING. You can check the file-system creation status by calling the +// DescribeFileSystems +// (https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeFileSystems.html) // operation, which returns the file system state along with other information. func (c *Client) CreateFileSystem(ctx context.Context, params *CreateFileSystemInput, optFns ...func(*Options)) (*CreateFileSystemOutput, error) { if params == nil { @@ -57,54 +79,57 @@ func (c *Client) CreateFileSystem(ctx context.Context, params *CreateFileSystemI type CreateFileSystemInput struct { // The type of Amazon FSx file system to create. Valid values are WINDOWS, LUSTRE, - // and ONTAP. + // ONTAP, and OPENZFS. // // This member is required. FileSystemType types.FileSystemType - // Sets the storage capacity of the file system that you're creating. For Lustre - // file systems: + // Sets the storage capacity of the file system that you're creating, in gibibytes + // (GiB). FSx for Lustre file systems - The amount of storage capacity that you can + // configure depends on the value that you set for StorageType and the Lustre + // DeploymentType, as follows: // - // * For SCRATCH_2 and PERSISTENT_1 SSD deployment types, valid - // values are 1200 GiB, 2400 GiB, and increments of 2400 GiB. - // - // * For PERSISTENT HDD - // file systems, valid values are increments of 6000 GiB for 12 MB/s/TiB file - // systems and increments of 1800 GiB for 40 MB/s/TiB file systems. - // - // * For - // SCRATCH_1 deployment type, valid values are 1200 GiB, 2400 GiB, and increments - // of 3600 GiB. + // * For SCRATCH_2, PERSISTENT_2 and PERSISTENT_1 + // deployment types using SSD storage type, the valid values are 1200 GiB, 2400 + // GiB, and increments of 2400 GiB. // - // For Windows file systems: + // * For PERSISTENT_1 HDD file systems, valid + // values are increments of 6000 GiB for 12 MB/s/TiB file systems and increments of + // 1800 GiB for 40 MB/s/TiB file systems. // - // * If StorageType=SSD, valid values are - // 32 GiB - 65,536 GiB (64 TiB). + // * For SCRATCH_1 deployment type, valid + // values are 1200 GiB, 2400 GiB, and increments of 3600 GiB. // - // * If StorageType=HDD, valid values are 2000 GiB - - // 65,536 GiB (64 TiB). + // FSx for ONTAP file + // systems - The amount of storage capacity that you can configure is from 1024 GiB + // up to 196,608 GiB (192 TiB). FSx for OpenZFS file systems - The amount of + // storage capacity that you can configure is from 64 GiB up to 524,288 GiB (512 + // TiB). FSx for Windows File Server file systems - The amount of storage capacity + // that you can configure depends on the value that you set for StorageType as + // follows: // - // For ONTAP file systems: + // * For SSD storage, valid values are 32 GiB-65,536 GiB (64 TiB). // - // * Valid values are 1024 GiB - - // 196,608 GiB (192 TiB). + // * For + // HDD storage, valid values are 2000 GiB-65,536 GiB (64 TiB). // // This member is required. StorageCapacity *int32 // Specifies the IDs of the subnets that the file system will be accessible from. - // For Windows and ONTAP MULTI_AZ_1 file system deployment types, provide exactly - // two subnet IDs, one for the preferred file server and one for the standby file - // server. You specify one of these subnets as the preferred subnet using the + // For Windows and ONTAP MULTI_AZ_1 deployment types,provide exactly two subnet + // IDs, one for the preferred file server and one for the standby file server. You + // specify one of these subnets as the preferred subnet using the // WindowsConfiguration > PreferredSubnetID or OntapConfiguration > - // PreferredSubnetID properties. For more information, see Availability and - // durability: Single-AZ and Multi-AZ file systems + // PreferredSubnetID properties. For more information about Multi-AZ file system + // configuration, see Availability and durability: Single-AZ and Multi-AZ file + // systems // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/high-availability-multiAZ.html) // in the Amazon FSx for Windows User Guide and Availability and durability // (https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/high-availability-multiAZ.html) // in the Amazon FSx for ONTAP User Guide. For Windows SINGLE_AZ_1 and SINGLE_AZ_2 - // file system deployment types and Lustre file systems, provide exactly one subnet - // ID. The file server is launched in that subnet's Availability Zone. + // and all Lustre deployment types, provide exactly one subnet ID. The file server + // is launched in that subnet's Availability Zone. // // This member is required. SubnetIds []string @@ -114,63 +139,84 @@ type CreateFileSystemInput struct { // Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string - // Sets the version of the Amazon FSx for Lustre file system you're creating. Valid - // values are 2.10 and 2.12. + // (Optional) For FSx for Lustre file systems, sets the Lustre version for the file + // system that you're creating. Valid values are 2.10 and 2.12: + // + // * 2.10 is + // supported by the Scratch and Persistent_1 Lustre deployment types. // - // * Set the value to 2.10 to create a Lustre 2.10 file - // system. + // * 2.12 is + // supported by all Lustre deployment types. 2.12 is required when setting FSx for + // Lustre DeploymentType to PERSISTENT_2. // - // * Set the value to 2.12 to create a Lustre 2.12 file system. + // Default value = 2.10, except when + // DeploymentType is set to PERSISTENT_2, then the default is 2.12. If you set + // FileSystemTypeVersion to 2.10 for a // - // Default - // value is 2.10. + // PERSISTENT_2 Lustre deployment type, the + // CreateFileSystem operation fails. FileSystemTypeVersion *string // The ID of the Key Management Service (KMS) key used to encrypt the file system's // data for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp - // ONTAP file systems, and Amazon FSx for Lustre PERSISTENT_1 file systems at rest. - // If not specified, the Amazon FSx managed key is used. The Amazon FSx for Lustre - // SCRATCH_1 and SCRATCH_2 file systems are always encrypted at rest using Amazon - // FSx managed keys. For more information, see Encrypt - // (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) in the - // Key Management Service API Reference. + // ONTAP file systems, and Amazon FSx for Lustre PERSISTENT_1 and PERSISTENT_2 file + // systems at rest. If this ID isn't specified, the key managed by Amazon FSx is + // used. The Amazon FSx for Lustre SCRATCH_1 and SCRATCH_2 file systems are always + // encrypted at rest using Amazon FSx-managed keys. For more information, see + // Encrypt (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) + // in the Key Management Service API Reference. KmsKeyId *string - // The Lustre configuration for the file system being created. + // The Lustre configuration for the file system being created. The following + // parameters are not supported for file systems with the Persistent_2 deployment + // type. Instead, use CreateDataRepositoryAssociation to create a data repository + // association to link your Lustre file system to a data repository. + // + // * + // AutoImportPolicy + // + // * ExportPath + // + // * ImportedChunkSize + // + // * ImportPath LustreConfiguration *types.CreateFileSystemLustreConfiguration - // The ONTAP configuration properties of the FSx for NetApp ONTAP file system that - // you are creating. + // The ONTAP configuration properties of the FSx for ONTAP file system that you are + // creating. OntapConfiguration *types.CreateFileSystemOntapConfiguration + // The OpenZFS configuration for the file system that's being created. + OpenZFSConfiguration *types.CreateFileSystemOpenZFSConfiguration + // A list of IDs specifying the security groups to apply to all network interfaces // created for file system access. This list isn't returned in later requests to // describe the file system. SecurityGroupIds []string - // Sets the storage type for the file system you're creating. Valid values are SSD - // and HDD. + // Sets the storage type for the file system that you're creating. Valid values are + // SSD and HDD. // - // * Set to SSD to use solid state drive storage. SSD is supported on all - // Windows, Lustre, and ONTAP deployment types. + // * Set to SSD to use solid state drive storage. SSD is supported on + // all Windows, Lustre, ONTAP, and OpenZFS deployment types. // - // * Set to HDD to use hard disk - // drive storage. HDD is supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file - // system deployment types, and on PERSISTENT Lustre file system deployment + // * Set to HDD to use + // hard disk drive storage. HDD is supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows + // file system deployment types, and on PERSISTENT Lustre file system deployment // types. // - // Default value is SSD. For more information, see Storage Type Options + // Default value is SSD. For more information, see Storage type options // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/optimize-fsx-costs.html#storage-type-options) - // in the Amazon FSx for Windows User Guide and Multiple Storage Options + // in the FSx for Windows File Server User Guide and Multiple storage options // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/what-is.html#storage-options) - // in the Amazon FSx for Lustre User Guide. + // in the FSx for Lustre User Guide. StorageType types.StorageType - // The tags to apply to the file system being created. The key value of the Name - // tag appears in the console as the file system name. + // The tags to apply to the file system that's being created. The key value of the + // Name tag appears in the console as the file system name. Tags []types.Tag - // The Microsoft Windows configuration for the file system being created. + // The Microsoft Windows configuration for the file system that's being created. WindowsConfiguration *types.CreateFileSystemWindowsConfiguration noSmithyDocumentSerde diff --git a/service/fsx/api_op_CreateFileSystemFromBackup.go b/service/fsx/api_op_CreateFileSystemFromBackup.go index 22dda13b5c5..8c5e7abe1f1 100644 --- a/service/fsx/api_op_CreateFileSystemFromBackup.go +++ b/service/fsx/api_op_CreateFileSystemFromBackup.go @@ -12,34 +12,36 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a new Amazon FSx for Lustre or Amazon FSx for Windows File Server file -// system from an existing Amazon FSx backup. If a file system with the specified -// client request token exists and the parameters match, this operation returns the -// description of the file system. If a client request token specified by the file -// system exists and the parameters don't match, this call returns -// IncompatibleParameterError. If a file system with the specified client request -// token doesn't exist, this operation does the following: +// Creates a new Amazon FSx for Lustre, Amazon FSx for Windows File Server, or +// Amazon FSx for OpenZFS file system from an existing Amazon FSx backup. If a file +// system with the specified client request token exists and the parameters match, +// this operation returns the description of the file system. If a client request +// token with the specified by the file system exists and the parameters don't +// match, this call returns IncompatibleParameterError. If a file system with the +// specified client request token doesn't exist, this operation does the +// following: // -// * Creates a new Amazon -// FSx file system from backup with an assigned ID, and an initial lifecycle state -// of CREATING. +// * Creates a new Amazon FSx file system from backup with an assigned +// ID, and an initial lifecycle state of CREATING. // -// * Returns the description of the file system. +// * Returns the description of +// the file system. // -// Parameters like -// Active Directory, default share name, automatic backup, and backup settings -// default to the parameters of the file system that was backed up, unless -// overridden. You can explicitly supply other settings. By using the idempotent -// operation, you can retry a CreateFileSystemFromBackup call without the risk of -// creating an extra file system. This approach can be useful when an initial call -// fails in a way that makes it unclear whether a file system was created. Examples -// are if a transport level timeout occurred, or your connection was reset. If you -// use the same client request token and the initial call created a file system, -// the client receives success as long as the parameters are the same. The +// Parameters like the Active Directory, default share name, +// automatic backup, and backup settings default to the parameters of the file +// system that was backed up, unless overridden. You can explicitly supply other +// settings. By using the idempotent operation, you can retry a +// CreateFileSystemFromBackup call without the risk of creating an extra file +// system. This approach can be useful when an initial call fails in a way that +// makes it unclear whether a file system was created. Examples are if a transport +// level timeout occurred, or your connection was reset. If you use the same client +// request token and the initial call created a file system, the client receives a +// success message as long as the parameters are the same. The // CreateFileSystemFromBackup call returns while the file system's lifecycle state // is still CREATING. You can check the file-system creation status by calling the -// DescribeFileSystems operation, which returns the file system state along with -// other information. +// DescribeFileSystems +// (https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeFileSystems.html) +// operation, which returns the file system state along with other information. func (c *Client) CreateFileSystemFromBackup(ctx context.Context, params *CreateFileSystemFromBackupInput, optFns ...func(*Options)) (*CreateFileSystemFromBackupOutput, error) { if params == nil { params = &CreateFileSystemFromBackupInput{} @@ -58,7 +60,7 @@ func (c *Client) CreateFileSystemFromBackup(ctx context.Context, params *CreateF // The request object for the CreateFileSystemFromBackup operation. type CreateFileSystemFromBackupInput struct { - // The ID of the source backup. Specifies the backup you are copying. + // The ID of the source backup. Specifies the backup that you are copying. // // This member is required. BackupId *string @@ -67,9 +69,10 @@ type CreateFileSystemFromBackupInput struct { // For Windows MULTI_AZ_1 file system deployment types, provide exactly two subnet // IDs, one for the preferred file server and one for the standby file server. You // specify one of these subnets as the preferred subnet using the - // WindowsConfiguration > PreferredSubnetID property. For Windows SINGLE_AZ_1 and - // SINGLE_AZ_2 deployment types and Lustre file systems, provide exactly one subnet - // ID. The file server is launched in that subnet's Availability Zone. + // WindowsConfiguration > PreferredSubnetID property. Windows SINGLE_AZ_1 and + // SINGLE_AZ_2 file system deployment types, Lustre file systems, and OpenZFS file + // systems provide exactly one subnet ID. The file server is launched in that + // subnet's Availability Zone. // // This member is required. SubnetIds []string @@ -79,8 +82,8 @@ type CreateFileSystemFromBackupInput struct { // Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string - // Sets the version for the Amazon FSx for Lustre file system you're creating from - // a backup. Valid values are 2.10 and 2.12. You don't need to specify + // Sets the version for the Amazon FSx for Lustre file system that you're creating + // from a backup. Valid values are 2.10 and 2.12. You don't need to specify // FileSystemTypeVersion because it will be applied using the backup's // FileSystemTypeVersion setting. If you choose to specify FileSystemTypeVersion // when creating from backup, the value must match the backup's @@ -89,37 +92,53 @@ type CreateFileSystemFromBackupInput struct { // The ID of the Key Management Service (KMS) key used to encrypt the file system's // data for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp - // ONTAP file systems, and Amazon FSx for Lustre PERSISTENT_1 file systems at rest. - // If not specified, the Amazon FSx managed key is used. The Amazon FSx for Lustre - // SCRATCH_1 and SCRATCH_2 file systems are always encrypted at rest using Amazon - // FSx managed keys. For more information, see Encrypt - // (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) in the - // Key Management Service API Reference. + // ONTAP file systems, and Amazon FSx for Lustre PERSISTENT_1 and PERSISTENT_2 file + // systems at rest. If this ID isn't specified, the key managed by Amazon FSx is + // used. The Amazon FSx for Lustre SCRATCH_1 and SCRATCH_2 file systems are always + // encrypted at rest using Amazon FSx-managed keys. For more information, see + // Encrypt (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) + // in the Key Management Service API Reference. KmsKeyId *string - // The Lustre configuration for the file system being created. + // The Lustre configuration for the file system being created. The following + // parameters are not supported for file systems with the Persistent_2 deployment + // type. Instead, use CreateDataRepositoryAssociation to create a data repository + // association to link your Lustre file system to a data repository. + // + // * + // AutoImportPolicy + // + // * ExportPath + // + // * ImportedChunkSize + // + // * ImportPath LustreConfiguration *types.CreateFileSystemLustreConfiguration + // The OpenZFS configuration for the file system that's being created. + OpenZFSConfiguration *types.CreateFileSystemOpenZFSConfiguration + // A list of IDs for the security groups that apply to the specified network // interfaces created for file system access. These security groups apply to all // network interfaces. This value isn't returned in later DescribeFileSystem // requests. SecurityGroupIds []string - // Sets the storage type for the Windows file system you're creating from a backup. - // Valid values are SSD and HDD. + // Sets the storage type for the Windows or OpenZFS file system that you're + // creating from a backup. Valid values are SSD and HDD. // - // * Set to SSD to use solid state drive storage. - // Supported on all Windows deployment types. + // * Set to SSD to use solid + // state drive storage. SSD is supported on all Windows and OpenZFS deployment + // types. // - // * Set to HDD to use hard disk drive - // storage. Supported on SINGLE_AZ_2 and MULTI_AZ_1 Windows file system deployment + // * Set to HDD to use hard disk drive storage. HDD is supported on + // SINGLE_AZ_2 and MULTI_AZ_1 FSx for Windows File Server file system deployment // types. // - // Default value is SSD. HDD and SSD storage types have different minimum - // storage capacity requirements. A restored file system's storage capacity is tied - // to the file system that was backed up. You can create a file system that uses - // HDD storage from a backup of a file system that used SSD storage only if the + // The default value is SSD. HDD and SSD storage types have different + // minimum storage capacity requirements. A restored file system's storage capacity + // is tied to the file system that was backed up. You can create a file system that + // uses HDD storage from a backup of a file system that used SSD storage if the // original SSD file system had a storage capacity of at least 2000 GiB. StorageType types.StorageType diff --git a/service/fsx/api_op_CreateSnapshot.go b/service/fsx/api_op_CreateSnapshot.go new file mode 100644 index 00000000000..b7c529b864b --- /dev/null +++ b/service/fsx/api_op_CreateSnapshot.go @@ -0,0 +1,196 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a snapshot of an existing Amazon FSx for OpenZFS file system. With +// snapshots, you can easily undo file changes and compare file versions by +// restoring the volume to a previous version. If a snapshot with the specified +// client request token exists, and the parameters match, this operation returns +// the description of the existing snapshot. If a snapshot with the specified +// client request token exists, and the parameters don't match, this operation +// returns IncompatibleParameterError. If a snapshot with the specified client +// request token doesn't exist, CreateSnapshot does the following: +// +// * Creates a new +// OpenZFS snapshot with an assigned ID, and an initial lifecycle state of +// CREATING. +// +// * Returns the description of the snapshot. +// +// By using the idempotent +// operation, you can retry a CreateSnapshot operation without the risk of creating +// an extra snapshot. This approach can be useful when an initial call fails in a +// way that makes it unclear whether a snapshot was created. If you use the same +// client request token and the initial call created a snapshot, the operation +// returns a successful result because all the parameters are the same. The +// CreateSnapshot operation returns while the snapshot's lifecycle state is still +// CREATING. You can check the snapshot creation status by calling the +// DescribeSnapshots +// (https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeSnapshots.html) +// operation, which returns the snapshot state along with other information. +func (c *Client) CreateSnapshot(ctx context.Context, params *CreateSnapshotInput, optFns ...func(*Options)) (*CreateSnapshotOutput, error) { + if params == nil { + params = &CreateSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSnapshot", params, optFns, c.addOperationCreateSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSnapshotInput struct { + + // The name of the snapshot. + // + // This member is required. + Name *string + + // The ID of the volume that you are taking a snapshot of. + // + // This member is required. + VolumeId *string + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + // A list of Tag values, with a maximum of 50 elements. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateSnapshotOutput struct { + + // A description of the snapshot. + Snapshot *types.Snapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateSnapshot{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateSnapshotMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSnapshot(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateSnapshot struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateSnapshot) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateSnapshotInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateSnapshotMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateSnapshot{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "CreateSnapshot", + } +} diff --git a/service/fsx/api_op_CreateVolume.go b/service/fsx/api_op_CreateVolume.go index fa619461cdc..ea0bb51bf7d 100644 --- a/service/fsx/api_op_CreateVolume.go +++ b/service/fsx/api_op_CreateVolume.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an Amazon FSx for NetApp ONTAP storage volume. +// Creates an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS storage volume. func (c *Client) CreateVolume(ctx context.Context, params *CreateVolumeInput, optFns ...func(*Options)) (*CreateVolumeOutput, error) { if params == nil { params = &CreateVolumeInput{} @@ -30,12 +30,13 @@ func (c *Client) CreateVolume(ctx context.Context, params *CreateVolumeInput, op type CreateVolumeInput struct { - // Specifies the name of the volume you're creating. + // Specifies the name of the volume that you're creating. // // This member is required. Name *string - // Specifies the type of volume to create; ONTAP is the only valid volume type. + // Specifies the type of volume to create; ONTAP and OPENZFS are the only valid + // volume types. // // This member is required. VolumeType types.VolumeType @@ -45,9 +46,12 @@ type CreateVolumeInput struct { // the Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string - // Specifies the ONTAP configuration to use in creating the volume. + // Specifies the configuration to use when creating the ONTAP volume. OntapConfiguration *types.CreateOntapVolumeConfiguration + // Specifies the configuration to use when creating the OpenZFS volume. + OpenZFSConfiguration *types.CreateOpenZFSVolumeConfiguration + // A list of Tag values, with a maximum of 50 elements. Tags []types.Tag diff --git a/service/fsx/api_op_CreateVolumeFromBackup.go b/service/fsx/api_op_CreateVolumeFromBackup.go index 0e06cafff5d..a90395c1672 100644 --- a/service/fsx/api_op_CreateVolumeFromBackup.go +++ b/service/fsx/api_op_CreateVolumeFromBackup.go @@ -31,7 +31,7 @@ func (c *Client) CreateVolumeFromBackup(ctx context.Context, params *CreateVolum type CreateVolumeFromBackupInput struct { - // The ID of the source backup. Specifies the backup you are copying. + // The ID of the source backup. Specifies the backup that you are copying. // // This member is required. BackupId *string diff --git a/service/fsx/api_op_DeleteBackup.go b/service/fsx/api_op_DeleteBackup.go index 8e4f0b9b8c2..588d642db14 100644 --- a/service/fsx/api_op_DeleteBackup.go +++ b/service/fsx/api_op_DeleteBackup.go @@ -12,10 +12,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an Amazon FSx backup, deleting its contents. After deletion, the backup -// no longer exists, and its data is gone. The DeleteBackup call returns instantly. -// The backup will not show up in later DescribeBackups calls. The data in a -// deleted backup is also deleted and can't be recovered by any means. +// Deletes an Amazon FSx backup. After deletion, the backup no longer exists, and +// its data is gone. The DeleteBackup call returns instantly. The backup won't show +// up in later DescribeBackups calls. The data in a deleted backup is also deleted +// and can't be recovered by any means. func (c *Client) DeleteBackup(ctx context.Context, params *DeleteBackupInput, optFns ...func(*Options)) (*DeleteBackupOutput, error) { if params == nil { params = &DeleteBackupInput{} @@ -31,28 +31,30 @@ func (c *Client) DeleteBackup(ctx context.Context, params *DeleteBackupInput, op return out, nil } -// The request object for DeleteBackup operation. +// The request object for the DeleteBackup operation. type DeleteBackupInput struct { - // The ID of the backup you want to delete. + // The ID of the backup that you want to delete. // // This member is required. BackupId *string // A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent - // deletion. This is automatically filled on your behalf when using the CLI or SDK. + // deletion. This parameter is automatically filled on your behalf when using the + // CLI or SDK. ClientRequestToken *string noSmithyDocumentSerde } -// The response object for DeleteBackup operation. +// The response object for the DeleteBackup operation. type DeleteBackupOutput struct { - // The ID of the backup deleted. + // The ID of the backup that was deleted. BackupId *string - // The lifecycle of the backup. Should be DELETED. + // The lifecycle status of the backup. If the DeleteBackup operation is successful, + // the status is DELETED. Lifecycle types.BackupLifecycle // Metadata pertaining to the operation's result. diff --git a/service/fsx/api_op_DeleteDataRepositoryAssociation.go b/service/fsx/api_op_DeleteDataRepositoryAssociation.go new file mode 100644 index 00000000000..0b2bd3d332d --- /dev/null +++ b/service/fsx/api_op_DeleteDataRepositoryAssociation.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a data repository association on an Amazon FSx for Lustre file system. +// Deleting the data repository association unlinks the file system from the Amazon +// S3 bucket. When deleting a data repository association, you have the option of +// deleting the data in the file system that corresponds to the data repository +// association. Data repository associations are supported only for file systems +// with the Persistent_2 deployment type. +func (c *Client) DeleteDataRepositoryAssociation(ctx context.Context, params *DeleteDataRepositoryAssociationInput, optFns ...func(*Options)) (*DeleteDataRepositoryAssociationOutput, error) { + if params == nil { + params = &DeleteDataRepositoryAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteDataRepositoryAssociation", params, optFns, c.addOperationDeleteDataRepositoryAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteDataRepositoryAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteDataRepositoryAssociationInput struct { + + // The ID of the data repository association that you want to delete. + // + // This member is required. + AssociationId *string + + // Set to true to delete the data in the file system that corresponds to the data + // repository association. + // + // This member is required. + DeleteDataInFileSystem *bool + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + noSmithyDocumentSerde +} + +type DeleteDataRepositoryAssociationOutput struct { + + // The ID of the data repository association being deleted. + AssociationId *string + + // Indicates whether data in the file system that corresponds to the data + // repository association is being deleted. Default is false. + DeleteDataInFileSystem *bool + + // Describes the lifecycle state of the data repository association being deleted. + Lifecycle types.DataRepositoryLifecycle + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteDataRepositoryAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteDataRepositoryAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteDataRepositoryAssociation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opDeleteDataRepositoryAssociationMiddleware(stack, options); err != nil { + return err + } + if err = addOpDeleteDataRepositoryAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDataRepositoryAssociation(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpDeleteDataRepositoryAssociation struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpDeleteDataRepositoryAssociation) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpDeleteDataRepositoryAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*DeleteDataRepositoryAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteDataRepositoryAssociationInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opDeleteDataRepositoryAssociationMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteDataRepositoryAssociation{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opDeleteDataRepositoryAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "DeleteDataRepositoryAssociation", + } +} diff --git a/service/fsx/api_op_DeleteFileSystem.go b/service/fsx/api_op_DeleteFileSystem.go index 28d8bc43bff..51fbb94411e 100644 --- a/service/fsx/api_op_DeleteFileSystem.go +++ b/service/fsx/api_op_DeleteFileSystem.go @@ -12,20 +12,22 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes a file system, deleting its contents. After deletion, the file system no -// longer exists, and its data is gone. Any existing automatic backups will also be -// deleted. To delete an Amazon FSx for NetApp ONTAP file system, first delete all -// the volumes and SVMs on the file system. Then provide a FileSystemId value to -// the DeleFileSystem operation. By default, when you delete an Amazon FSx for -// Windows File Server file system, a final backup is created upon deletion. This -// final backup is not subject to the file system's retention policy, and must be -// manually deleted. The DeleteFileSystem action returns while the file system has -// the DELETING status. You can check the file system deletion status by calling -// the DescribeFileSystems action, which returns a list of file systems in your -// account. If you pass the file system ID for a deleted file system, the -// DescribeFileSystems returns a FileSystemNotFound error. Deleting an Amazon FSx -// for Lustre file system will fail with a 400 BadRequest if a data repository task -// is in a PENDING or EXECUTING state. The data in a deleted file system is also +// Deletes a file system. After deletion, the file system no longer exists, and its +// data is gone. Any existing automatic backups and snapshots are also deleted. To +// delete an Amazon FSx for NetApp ONTAP file system, first delete all the volumes +// and storage virtual machines (SVMs) on the file system. Then provide a +// FileSystemId value to the DeleFileSystem operation. By default, when you delete +// an Amazon FSx for Windows File Server file system, a final backup is created +// upon deletion. This final backup isn't subject to the file system's retention +// policy, and must be manually deleted. The DeleteFileSystem operation returns +// while the file system has the DELETING status. You can check the file system +// deletion status by calling the DescribeFileSystems +// (https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeFileSystems.html) +// operation, which returns a list of file systems in your account. If you pass the +// file system ID for a deleted file system, the DescribeFileSystems operation +// returns a FileSystemNotFound error. If a data repository task is in a PENDING or +// EXECUTING state, deleting an Amazon FSx for Lustre file system will fail with an +// HTTP status code 400 (Bad Request). The data in a deleted file system is also // deleted and can't be recovered by any means. func (c *Client) DeleteFileSystem(ctx context.Context, params *DeleteFileSystemInput, optFns ...func(*Options)) (*DeleteFileSystemOutput, error) { if params == nil { @@ -45,20 +47,24 @@ func (c *Client) DeleteFileSystem(ctx context.Context, params *DeleteFileSystemI // The request object for DeleteFileSystem operation. type DeleteFileSystemInput struct { - // The ID of the file system you want to delete. + // The ID of the file system that you want to delete. // // This member is required. FileSystemId *string // A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent - // deletion. This is automatically filled on your behalf when using the Command - // Line Interface (CLI) or an Amazon Web Services SDK. + // deletion. This token is automatically filled on your behalf when using the + // Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string // The configuration object for the Amazon FSx for Lustre file system being deleted // in the DeleteFileSystem operation. LustreConfiguration *types.DeleteFileSystemLustreConfiguration + // The configuration object for the OpenZFS file system used in the + // DeleteFileSystem operation. + OpenZFSConfiguration *types.DeleteFileSystemOpenZFSConfiguration + // The configuration object for the Microsoft Windows file system used in the // DeleteFileSystem operation. WindowsConfiguration *types.DeleteFileSystemWindowsConfiguration @@ -69,16 +75,21 @@ type DeleteFileSystemInput struct { // The response object for the DeleteFileSystem operation. type DeleteFileSystemOutput struct { - // The ID of the file system being deleted. + // The ID of the file system that's being deleted. FileSystemId *string - // The file system lifecycle for the deletion request. Should be DELETING. + // The file system lifecycle for the deletion request. If the DeleteFileSystem + // operation is successful, this status is DELETING. Lifecycle types.FileSystemLifecycle // The response object for the Amazon FSx for Lustre file system being deleted in // the DeleteFileSystem operation. LustreResponse *types.DeleteFileSystemLustreResponse + // The response object for the OpenZFS file system that's being deleted in the + // DeleteFileSystem operation. + OpenZFSResponse *types.DeleteFileSystemOpenZFSResponse + // The response object for the Microsoft Windows file system used in the // DeleteFileSystem operation. WindowsResponse *types.DeleteFileSystemWindowsResponse diff --git a/service/fsx/api_op_DeleteSnapshot.go b/service/fsx/api_op_DeleteSnapshot.go new file mode 100644 index 00000000000..d4863de61bc --- /dev/null +++ b/service/fsx/api_op_DeleteSnapshot.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the Amazon FSx snapshot. After deletion, the snapshot no longer exists, +// and its data is gone. Deleting a snapshot doesn't affect snapshots stored in a +// file system backup. The DeleteSnapshot operation returns instantly. The snapshot +// appears with the lifecycle status of DELETING until the deletion is complete. +func (c *Client) DeleteSnapshot(ctx context.Context, params *DeleteSnapshotInput, optFns ...func(*Options)) (*DeleteSnapshotOutput, error) { + if params == nil { + params = &DeleteSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteSnapshot", params, optFns, c.addOperationDeleteSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteSnapshotInput struct { + + // The ID of the snapshot that you want to delete. + // + // This member is required. + SnapshotId *string + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + noSmithyDocumentSerde +} + +type DeleteSnapshotOutput struct { + + // The lifecycle status of the snapshot. If the DeleteSnapshot operation is + // successful, this status is DELETING. + Lifecycle types.SnapshotLifecycle + + // The ID of the deleted snapshot. + SnapshotId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteSnapshot{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opDeleteSnapshotMiddleware(stack, options); err != nil { + return err + } + if err = addOpDeleteSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSnapshot(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpDeleteSnapshot struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpDeleteSnapshot) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpDeleteSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*DeleteSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteSnapshotInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opDeleteSnapshotMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteSnapshot{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opDeleteSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "DeleteSnapshot", + } +} diff --git a/service/fsx/api_op_DeleteVolume.go b/service/fsx/api_op_DeleteVolume.go index cc8f3ca6c53..0f89012acbe 100644 --- a/service/fsx/api_op_DeleteVolume.go +++ b/service/fsx/api_op_DeleteVolume.go @@ -12,10 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes an Amazon FSx for NetApp ONTAP volume. When deleting a volume, you have -// the option of creating a final backup. If you create a final backup, you have -// the option to apply Tags to the backup. You need to have fsx:TagResource -// permission in order to apply tags to the backup. +// Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume. func (c *Client) DeleteVolume(ctx context.Context, params *DeleteVolumeInput, optFns ...func(*Options)) (*DeleteVolumeOutput, error) { if params == nil { params = &DeleteVolumeInput{} @@ -33,7 +30,7 @@ func (c *Client) DeleteVolume(ctx context.Context, params *DeleteVolumeInput, op type DeleteVolumeInput struct { - // The ID of the volume you are deleting. + // The ID of the volume that you are deleting. // // This member is required. VolumeId *string @@ -44,21 +41,27 @@ type DeleteVolumeInput struct { ClientRequestToken *string // For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the - // volume, and apply tags to the backup. + // volume and apply tags to the backup. To apply tags to the backup, you must have + // the fsx:TagResource permission. OntapConfiguration *types.DeleteVolumeOntapConfiguration + // For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes + // and snapshots. + OpenZFSConfiguration *types.DeleteVolumeOpenZFSConfiguration + noSmithyDocumentSerde } type DeleteVolumeOutput struct { - // Describes the lifecycle state of the volume being deleted. + // The lifecycle state of the volume being deleted. If the DeleteVolume operation + // is successful, this value is DELETING. Lifecycle types.VolumeLifecycle // Returned after a DeleteVolume request, showing the status of the delete request. OntapResponse *types.DeleteVolumeOntapResponse - // The ID of the volume being deleted. + // The ID of the volume that's being deleted. VolumeId *string // Metadata pertaining to the operation's result. diff --git a/service/fsx/api_op_DescribeBackups.go b/service/fsx/api_op_DescribeBackups.go index a73c4a4c3f7..ae8a06197f8 100644 --- a/service/fsx/api_op_DescribeBackups.go +++ b/service/fsx/api_op_DescribeBackups.go @@ -12,26 +12,27 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the description of specific Amazon FSx backups, if a BackupIds value is +// Returns the description of a specific Amazon FSx backup, if a BackupIds value is // provided for that backup. Otherwise, it returns all backups owned by your Amazon // Web Services account in the Amazon Web Services Region of the endpoint that // you're calling. When retrieving all backups, you can optionally specify the // MaxResults parameter to limit the number of backups in a response. If more // backups remain, Amazon FSx returns a NextToken value in the response. In this // case, send a later request with the NextToken request parameter set to the value -// of NextToken from the last response. This action is used in an iterative process -// to retrieve a list of your backups. DescribeBackups is called first without a -// NextTokenvalue. Then the action continues to be called with the NextToken -// parameter set to the value of the last NextToken value until a response has no -// NextToken. When using this action, keep the following in mind: +// of the NextToken value from the last response. This operation is used in an +// iterative process to retrieve a list of your backups. DescribeBackups is called +// first without a NextToken value. Then the operation continues to be called with +// the NextToken parameter set to the value of the last NextToken value until a +// response has no NextToken value. When using this operation, keep the following +// in mind: // -// * The -// implementation might return fewer than MaxResults backup descriptions while -// still including a NextToken value. +// * The operation might return fewer than the MaxResults value of backup +// descriptions while still including a NextToken value. // -// * The order of backups returned in the -// response of one DescribeBackups call and the order of backups returned across -// the responses of a multi-call iteration is unspecified. +// * The order of the +// backups returned in the response of one DescribeBackups call and the order of +// the backups returned across the responses of a multi-call iteration is +// unspecified. func (c *Client) DescribeBackups(ctx context.Context, params *DescribeBackupsInput, optFns ...func(*Options)) (*DescribeBackupsOutput, error) { if params == nil { params = &DescribeBackupsInput{} @@ -47,39 +48,39 @@ func (c *Client) DescribeBackups(ctx context.Context, params *DescribeBackupsInp return out, nil } -// The request object for DescribeBackups operation. +// The request object for the DescribeBackups operation. type DescribeBackupsInput struct { - // IDs of the backups you want to retrieve (String). This overrides any filters. If - // any IDs are not found, BackupNotFound will be thrown. + // The IDs of the backups that you want to retrieve. This parameter value overrides + // any filters. If any IDs aren't found, a BackupNotFound error occurs. BackupIds []string - // Filters structure. Supported names are file-system-id, backup-type, + // The filters structure. The supported names are file-system-id, backup-type, // file-system-type, and volume-id. Filters []types.Filter - // Maximum number of backups to return in the response (integer). This parameter - // value must be greater than 0. The number of items that Amazon FSx returns is the - // minimum of the MaxResults parameter specified in the request and the service's - // internal maximum number of items per page. + // Maximum number of backups to return in the response. This parameter value must + // be greater than 0. The number of items that Amazon FSx returns is the minimum of + // the MaxResults parameter specified in the request and the service's internal + // maximum number of items per page. MaxResults *int32 - // Opaque pagination token returned from a previous DescribeBackups operation - // (String). If a token present, the action continues the list from where the - // returning call left off. + // An opaque pagination token returned from a previous DescribeBackups operation. + // If a token is present, the operation continues the list from where the returning + // call left off. NextToken *string noSmithyDocumentSerde } -// Response object for DescribeBackups operation. +// Response object for the DescribeBackups operation. type DescribeBackupsOutput struct { // An array of backups. Backups []types.Backup - // This is present if there are more backups than returned in the response - // (String). You can use the NextToken value in the later request to fetch the + // A NextToken value is present if there are more backups than returned in the + // response. You can use the NextToken value in the subsequent request to fetch the // backups. NextToken *string @@ -159,10 +160,10 @@ var _ DescribeBackupsAPIClient = (*Client)(nil) // DescribeBackupsPaginatorOptions is the paginator options for DescribeBackups type DescribeBackupsPaginatorOptions struct { - // Maximum number of backups to return in the response (integer). This parameter - // value must be greater than 0. The number of items that Amazon FSx returns is the - // minimum of the MaxResults parameter specified in the request and the service's - // internal maximum number of items per page. + // Maximum number of backups to return in the response. This parameter value must + // be greater than 0. The number of items that Amazon FSx returns is the minimum of + // the MaxResults parameter specified in the request and the service's internal + // maximum number of items per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/fsx/api_op_DescribeDataRepositoryAssociations.go b/service/fsx/api_op_DescribeDataRepositoryAssociations.go new file mode 100644 index 00000000000..726c05b0d9f --- /dev/null +++ b/service/fsx/api_op_DescribeDataRepositoryAssociations.go @@ -0,0 +1,240 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns the description of specific Amazon FSx for Lustre data repository +// associations, if one or more AssociationIds values are provided in the request, +// or if filters are used in the request. Data repository associations are +// supported only for file systems with the Persistent_2 deployment type. You can +// use filters to narrow the response to include just data repository associations +// for specific file systems (use the file-system-id filter with the ID of the file +// system) or data repository associations for a specific repository type (use the +// data-repository-type filter with a value of S3). If you don't use filters, the +// response returns all data repository associations owned by your Amazon Web +// Services account in the Amazon Web Services Region of the endpoint that you're +// calling. When retrieving all data repository associations, you can paginate the +// response by using the optional MaxResults parameter to limit the number of data +// repository associations returned in a response. If more data repository +// associations remain, Amazon FSx returns a NextToken value in the response. In +// this case, send a later request with the NextToken request parameter set to the +// value of NextToken from the last response. +func (c *Client) DescribeDataRepositoryAssociations(ctx context.Context, params *DescribeDataRepositoryAssociationsInput, optFns ...func(*Options)) (*DescribeDataRepositoryAssociationsOutput, error) { + if params == nil { + params = &DescribeDataRepositoryAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeDataRepositoryAssociations", params, optFns, c.addOperationDescribeDataRepositoryAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeDataRepositoryAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeDataRepositoryAssociationsInput struct { + + // IDs of the data repository associations whose descriptions you want to retrieve + // (String). + AssociationIds []string + + // A list of Filter elements. + Filters []types.Filter + + // The maximum number of resources to return in the response. This value must be an + // integer greater than zero. + MaxResults *int32 + + // (Optional) Opaque pagination token returned from a previous operation (String). + // If present, this token indicates from what point you can continue processing the + // request, where the previous NextToken value left off. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeDataRepositoryAssociationsOutput struct { + + // An array of one ore more data repository association descriptions. + Associations []types.DataRepositoryAssociation + + // (Optional) Opaque pagination token returned from a previous operation (String). + // If present, this token indicates from what point you can continue processing the + // request, where the previous NextToken value left off. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeDataRepositoryAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeDataRepositoryAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeDataRepositoryAssociations{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDataRepositoryAssociations(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeDataRepositoryAssociationsAPIClient is a client that implements the +// DescribeDataRepositoryAssociations operation. +type DescribeDataRepositoryAssociationsAPIClient interface { + DescribeDataRepositoryAssociations(context.Context, *DescribeDataRepositoryAssociationsInput, ...func(*Options)) (*DescribeDataRepositoryAssociationsOutput, error) +} + +var _ DescribeDataRepositoryAssociationsAPIClient = (*Client)(nil) + +// DescribeDataRepositoryAssociationsPaginatorOptions is the paginator options for +// DescribeDataRepositoryAssociations +type DescribeDataRepositoryAssociationsPaginatorOptions struct { + // The maximum number of resources to return in the response. This value must be an + // integer greater than zero. + 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 +} + +// DescribeDataRepositoryAssociationsPaginator is a paginator for +// DescribeDataRepositoryAssociations +type DescribeDataRepositoryAssociationsPaginator struct { + options DescribeDataRepositoryAssociationsPaginatorOptions + client DescribeDataRepositoryAssociationsAPIClient + params *DescribeDataRepositoryAssociationsInput + nextToken *string + firstPage bool +} + +// NewDescribeDataRepositoryAssociationsPaginator returns a new +// DescribeDataRepositoryAssociationsPaginator +func NewDescribeDataRepositoryAssociationsPaginator(client DescribeDataRepositoryAssociationsAPIClient, params *DescribeDataRepositoryAssociationsInput, optFns ...func(*DescribeDataRepositoryAssociationsPaginatorOptions)) *DescribeDataRepositoryAssociationsPaginator { + if params == nil { + params = &DescribeDataRepositoryAssociationsInput{} + } + + options := DescribeDataRepositoryAssociationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeDataRepositoryAssociationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeDataRepositoryAssociationsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeDataRepositoryAssociations page. +func (p *DescribeDataRepositoryAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeDataRepositoryAssociationsOutput, 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.DescribeDataRepositoryAssociations(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_opDescribeDataRepositoryAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "DescribeDataRepositoryAssociations", + } +} diff --git a/service/fsx/api_op_DescribeFileSystems.go b/service/fsx/api_op_DescribeFileSystems.go index 97712ca263e..5580ebceb68 100644 --- a/service/fsx/api_op_DescribeFileSystems.go +++ b/service/fsx/api_op_DescribeFileSystems.go @@ -20,11 +20,11 @@ import ( // limit the number of descriptions in a response. If more file system descriptions // remain, Amazon FSx returns a NextToken value in the response. In this case, send // a later request with the NextToken request parameter set to the value of -// NextToken from the last response. This action is used in an iterative process to -// retrieve a list of your file system descriptions. DescribeFileSystems is called -// first without a NextTokenvalue. Then the action continues to be called with the -// NextToken parameter set to the value of the last NextToken value until a -// response has no NextToken. When using this action, keep the following in +// NextToken from the last response. This operation is used in an iterative process +// to retrieve a list of your file system descriptions. DescribeFileSystems is +// called first without a NextTokenvalue. Then the operation continues to be called +// with the NextToken parameter set to the value of the last NextToken value until +// a response has no NextToken. When using this operation, keep the following in // mind: // // * The implementation might return fewer than MaxResults file system @@ -62,7 +62,7 @@ type DescribeFileSystemsInput struct { MaxResults *int32 // Opaque pagination token returned from a previous DescribeFileSystems operation - // (String). If a token present, the action continues the list from where the + // (String). If a token present, the operation continues the list from where the // returning call left off. NextToken *string diff --git a/service/fsx/api_op_DescribeSnapshots.go b/service/fsx/api_op_DescribeSnapshots.go new file mode 100644 index 00000000000..6385b52d42f --- /dev/null +++ b/service/fsx/api_op_DescribeSnapshots.go @@ -0,0 +1,241 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns the description of specific Amazon FSx snapshots, if a SnapshotIds value +// is provided. Otherwise, this operation returns all snapshots owned by your +// Amazon Web Services account in the Amazon Web Services Region of the endpoint +// that you're calling. When retrieving all snapshots, you can optionally specify +// the MaxResults parameter to limit the number of snapshots in a response. If more +// backups remain, Amazon FSx returns a NextToken value in the response. In this +// case, send a later request with the NextToken request parameter set to the value +// of NextToken from the last response. Use this operation in an iterative process +// to retrieve a list of your snapshots. DescribeSnapshots is called first without +// a NextToken value. Then the operation continues to be called with the NextToken +// parameter set to the value of the last NextToken value until a response has no +// NextToken value. When using this operation, keep the following in mind: +// +// * The +// operation might return fewer than the MaxResults value of snapshot descriptions +// while still including a NextToken value. +// +// * The order of snapshots returned in +// the response of one DescribeSnapshots call and the order of backups returned +// across the responses of a multi-call iteration is unspecified. +func (c *Client) DescribeSnapshots(ctx context.Context, params *DescribeSnapshotsInput, optFns ...func(*Options)) (*DescribeSnapshotsOutput, error) { + if params == nil { + params = &DescribeSnapshotsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshots", params, optFns, c.addOperationDescribeSnapshotsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeSnapshotsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeSnapshotsInput struct { + + // The filters structure. The supported names are file-system-id or volume-id. + Filters []types.SnapshotFilter + + // The maximum number of resources to return in the response. This value must be an + // integer greater than zero. + MaxResults *int32 + + // (Optional) Opaque pagination token returned from a previous operation (String). + // If present, this token indicates from what point you can continue processing the + // request, where the previous NextToken value left off. + NextToken *string + + // The IDs of the snapshots that you want to retrieve. This parameter value + // overrides any filters. If any IDs aren't found, a SnapshotNotFound error occurs. + SnapshotIds []string + + noSmithyDocumentSerde +} + +type DescribeSnapshotsOutput struct { + + // (Optional) Opaque pagination token returned from a previous operation (String). + // If present, this token indicates from what point you can continue processing the + // request, where the previous NextToken value left off. + NextToken *string + + // An array of snapshots. + Snapshots []types.Snapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeSnapshots{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeSnapshots{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSnapshots(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeSnapshotsAPIClient is a client that implements the DescribeSnapshots +// operation. +type DescribeSnapshotsAPIClient interface { + DescribeSnapshots(context.Context, *DescribeSnapshotsInput, ...func(*Options)) (*DescribeSnapshotsOutput, error) +} + +var _ DescribeSnapshotsAPIClient = (*Client)(nil) + +// DescribeSnapshotsPaginatorOptions is the paginator options for DescribeSnapshots +type DescribeSnapshotsPaginatorOptions struct { + // The maximum number of resources to return in the response. This value must be an + // integer greater than zero. + 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 +} + +// DescribeSnapshotsPaginator is a paginator for DescribeSnapshots +type DescribeSnapshotsPaginator struct { + options DescribeSnapshotsPaginatorOptions + client DescribeSnapshotsAPIClient + params *DescribeSnapshotsInput + nextToken *string + firstPage bool +} + +// NewDescribeSnapshotsPaginator returns a new DescribeSnapshotsPaginator +func NewDescribeSnapshotsPaginator(client DescribeSnapshotsAPIClient, params *DescribeSnapshotsInput, optFns ...func(*DescribeSnapshotsPaginatorOptions)) *DescribeSnapshotsPaginator { + if params == nil { + params = &DescribeSnapshotsInput{} + } + + options := DescribeSnapshotsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeSnapshotsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeSnapshotsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeSnapshots page. +func (p *DescribeSnapshotsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSnapshotsOutput, 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.DescribeSnapshots(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_opDescribeSnapshots(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "DescribeSnapshots", + } +} diff --git a/service/fsx/api_op_DescribeVolumes.go b/service/fsx/api_op_DescribeVolumes.go index f6af63dc403..aa24c7232a8 100644 --- a/service/fsx/api_op_DescribeVolumes.go +++ b/service/fsx/api_op_DescribeVolumes.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes one or more Amazon FSx for NetApp ONTAP volumes. +// Describes one or more Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS +// volumes. func (c *Client) DescribeVolumes(ctx context.Context, params *DescribeVolumesInput, optFns ...func(*Options)) (*DescribeVolumesOutput, error) { if params == nil { params = &DescribeVolumesInput{} @@ -30,7 +31,7 @@ func (c *Client) DescribeVolumes(ctx context.Context, params *DescribeVolumesInp type DescribeVolumesInput struct { - // Enter a filter name:value pair to view a select set of volumes. + // Enter a filter Name and Values pair to view a select set of volumes. Filters []types.VolumeFilter // The maximum number of resources to return in the response. This value must be an @@ -42,7 +43,7 @@ type DescribeVolumesInput struct { // request, where the previous NextToken value left off. NextToken *string - // IDs of the volumes whose descriptions you want to retrieve. + // The IDs of the volumes whose descriptions you want to retrieve. VolumeIds []string noSmithyDocumentSerde diff --git a/service/fsx/api_op_ReleaseFileSystemNfsV3Locks.go b/service/fsx/api_op_ReleaseFileSystemNfsV3Locks.go new file mode 100644 index 00000000000..1986c18ca37 --- /dev/null +++ b/service/fsx/api_op_ReleaseFileSystemNfsV3Locks.go @@ -0,0 +1,163 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Releases the file system lock from an Amazon FSx for OpenZFS file system. +func (c *Client) ReleaseFileSystemNfsV3Locks(ctx context.Context, params *ReleaseFileSystemNfsV3LocksInput, optFns ...func(*Options)) (*ReleaseFileSystemNfsV3LocksOutput, error) { + if params == nil { + params = &ReleaseFileSystemNfsV3LocksInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ReleaseFileSystemNfsV3Locks", params, optFns, c.addOperationReleaseFileSystemNfsV3LocksMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ReleaseFileSystemNfsV3LocksOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ReleaseFileSystemNfsV3LocksInput struct { + + // The globally unique ID of the file system, assigned by Amazon FSx. + // + // This member is required. + FileSystemId *string + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + noSmithyDocumentSerde +} + +type ReleaseFileSystemNfsV3LocksOutput struct { + + // A description of a specific Amazon FSx file system. + FileSystem *types.FileSystem + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationReleaseFileSystemNfsV3LocksMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpReleaseFileSystemNfsV3Locks{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpReleaseFileSystemNfsV3Locks{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opReleaseFileSystemNfsV3LocksMiddleware(stack, options); err != nil { + return err + } + if err = addOpReleaseFileSystemNfsV3LocksValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReleaseFileSystemNfsV3Locks(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpReleaseFileSystemNfsV3Locks struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpReleaseFileSystemNfsV3Locks) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpReleaseFileSystemNfsV3Locks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*ReleaseFileSystemNfsV3LocksInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *ReleaseFileSystemNfsV3LocksInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opReleaseFileSystemNfsV3LocksMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpReleaseFileSystemNfsV3Locks{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opReleaseFileSystemNfsV3Locks(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "ReleaseFileSystemNfsV3Locks", + } +} diff --git a/service/fsx/api_op_RestoreVolumeFromSnapshot.go b/service/fsx/api_op_RestoreVolumeFromSnapshot.go new file mode 100644 index 00000000000..ce5432cdf68 --- /dev/null +++ b/service/fsx/api_op_RestoreVolumeFromSnapshot.go @@ -0,0 +1,185 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns an Amazon FSx for OpenZFS volume to the state saved by the specified +// snapshot. +func (c *Client) RestoreVolumeFromSnapshot(ctx context.Context, params *RestoreVolumeFromSnapshotInput, optFns ...func(*Options)) (*RestoreVolumeFromSnapshotOutput, error) { + if params == nil { + params = &RestoreVolumeFromSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "RestoreVolumeFromSnapshot", params, optFns, c.addOperationRestoreVolumeFromSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*RestoreVolumeFromSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type RestoreVolumeFromSnapshotInput struct { + + // The ID of the source snapshot. Specifies the snapshot that you are restoring + // from. + // + // This member is required. + SnapshotId *string + + // The ID of the volume that you are restoring. + // + // This member is required. + VolumeId *string + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + // The settings used when restoring the specified volume from snapshot. + // + // * + // DELETE_INTERMEDIATE_SNAPSHOTS - Deletes snapshots between the current state and + // the specified snapshot. If there are intermediate snapshots and this option + // isn't used, RestoreVolumeFromSnapshot fails. + // + // * DELETE_CLONED_VOLUMES - Deletes + // any volumes cloned from this volume. If there are any cloned volumes and this + // option isn't used, RestoreVolumeFromSnapshot fails. + Options []types.RestoreOpenZFSVolumeOption + + noSmithyDocumentSerde +} + +type RestoreVolumeFromSnapshotOutput struct { + + // The lifecycle state of the volume being restored. + Lifecycle types.VolumeLifecycle + + // The ID of the volume that you restored. + VolumeId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationRestoreVolumeFromSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpRestoreVolumeFromSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRestoreVolumeFromSnapshot{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opRestoreVolumeFromSnapshotMiddleware(stack, options); err != nil { + return err + } + if err = addOpRestoreVolumeFromSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreVolumeFromSnapshot(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpRestoreVolumeFromSnapshot struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpRestoreVolumeFromSnapshot) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpRestoreVolumeFromSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*RestoreVolumeFromSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *RestoreVolumeFromSnapshotInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opRestoreVolumeFromSnapshotMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpRestoreVolumeFromSnapshot{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opRestoreVolumeFromSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "RestoreVolumeFromSnapshot", + } +} diff --git a/service/fsx/api_op_UpdateDataRepositoryAssociation.go b/service/fsx/api_op_UpdateDataRepositoryAssociation.go new file mode 100644 index 00000000000..0460e1fcc3c --- /dev/null +++ b/service/fsx/api_op_UpdateDataRepositoryAssociation.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the configuration of an existing data repository association on an +// Amazon FSx for Lustre file system. Data repository associations are supported +// only for file systems with the Persistent_2 deployment type. +func (c *Client) UpdateDataRepositoryAssociation(ctx context.Context, params *UpdateDataRepositoryAssociationInput, optFns ...func(*Options)) (*UpdateDataRepositoryAssociationOutput, error) { + if params == nil { + params = &UpdateDataRepositoryAssociationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateDataRepositoryAssociation", params, optFns, c.addOperationUpdateDataRepositoryAssociationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateDataRepositoryAssociationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateDataRepositoryAssociationInput struct { + + // The ID of the data repository association that you are updating. + // + // This member is required. + AssociationId *string + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + // For files imported from a data repository, this value determines the stripe + // count and maximum amount of data per file (in MiB) stored on a single physical + // disk. The maximum number of disks that a single file can be striped across is + // limited by the total number of disks that make up the file system. The default + // chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). + // Amazon S3 objects have a maximum size of 5 TB. + ImportedFileChunkSize *int32 + + // The configuration for an Amazon S3 data repository linked to an Amazon FSx + // Lustre file system with a data repository association. The configuration defines + // which file events (new, changed, or deleted files or directories) are + // automatically imported from the linked data repository to the file system or + // automatically exported from the file system to the data repository. + S3 *types.S3DataRepositoryConfiguration + + noSmithyDocumentSerde +} + +type UpdateDataRepositoryAssociationOutput struct { + + // The response object returned after the data repository association is updated. + Association *types.DataRepositoryAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateDataRepositoryAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDataRepositoryAssociation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDataRepositoryAssociation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateDataRepositoryAssociationMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateDataRepositoryAssociationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDataRepositoryAssociation(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateDataRepositoryAssociation struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateDataRepositoryAssociation) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateDataRepositoryAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateDataRepositoryAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateDataRepositoryAssociationInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateDataRepositoryAssociationMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateDataRepositoryAssociation{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateDataRepositoryAssociation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "UpdateDataRepositoryAssociation", + } +} diff --git a/service/fsx/api_op_UpdateFileSystem.go b/service/fsx/api_op_UpdateFileSystem.go index a840dbcf930..f8dc4fc3c5f 100644 --- a/service/fsx/api_op_UpdateFileSystem.go +++ b/service/fsx/api_op_UpdateFileSystem.go @@ -33,8 +33,8 @@ import ( // // * WeeklyMaintenanceStartTime // -// For Amazon -// FSx for Lustre file systems, you can update the following properties: +// For FSx for +// Lustre file systems, you can update the following properties: // // * // AutoImportPolicy @@ -51,8 +51,8 @@ import ( // * // WeeklyMaintenanceStartTime // -// For Amazon FSx for NetApp ONTAP file systems, you -// can update the following properties: +// For FSx for ONTAP file systems, you can update the +// following properties: // // * AutomaticBackupRetentionDays // @@ -61,6 +61,26 @@ import ( // // * FsxAdminPassword // +// * +// WeeklyMaintenanceStartTime +// +// For the Amazon FSx for OpenZFS file systems, you can +// update the following properties: +// +// * AutomaticBackupRetentionDays +// +// * +// CopyTagsToBackups +// +// * CopyTagsToVolumes +// +// * DailyAutomaticBackupStartTime +// +// * +// DiskIopsConfiguration +// +// * ThroughputCapacity +// // * WeeklyMaintenanceStartTime func (c *Client) UpdateFileSystem(ctx context.Context, params *UpdateFileSystemInput, optFns ...func(*Options)) (*UpdateFileSystemOutput, error) { if params == nil { @@ -80,7 +100,7 @@ func (c *Client) UpdateFileSystem(ctx context.Context, params *UpdateFileSystemI // The request object for the UpdateFileSystem operation. type UpdateFileSystemInput struct { - // Identifies the file system that you are updating. + // The ID of the file system that you are updating. // // This member is required. FileSystemId *string @@ -97,35 +117,44 @@ type UpdateFileSystemInput struct { // The configuration updates for an Amazon FSx for NetApp ONTAP file system. OntapConfiguration *types.UpdateFileSystemOntapConfiguration + // The configuration updates for an Amazon FSx for OpenZFS file system. + OpenZFSConfiguration *types.UpdateFileSystemOpenZFSConfiguration + // Use this parameter to increase the storage capacity of an Amazon FSx for Windows // File Server or Amazon FSx for Lustre file system. Specifies the storage capacity - // target value, GiB, to increase the storage capacity for the file system that - // you're updating. You cannot make a storage capacity increase request if there is + // target value, in GiB, to increase the storage capacity for the file system that + // you're updating. You can't make a storage capacity increase request if there is // an existing storage capacity increase request in progress. For Windows file - // systems, the storage capacity target value must be at least 10 percent (%) - // greater than the current storage capacity value. In order to increase storage - // capacity, the file system must have at least 16 MB/s of throughput capacity. For - // Lustre file systems, the storage capacity target value can be the following: - // - // * - // For SCRATCH_2 and PERSISTENT_1 SSD deployment types, valid values are in - // multiples of 2400 GiB. The value must be greater than the current storage - // capacity. + // systems, the storage capacity target value must be at least 10 percent greater + // than the current storage capacity value. To increase storage capacity, the file + // system must have at least 16 MBps of throughput capacity. For Lustre file + // systems, the storage capacity target value can be the following: // - // * For PERSISTENT HDD file systems, valid values are multiples of 6000 - // GiB for 12 MB/s/TiB file systems and multiples of 1800 GiB for 40 MB/s/TiB file - // systems. The values must be greater than the current storage capacity. + // * For + // SCRATCH_2 and PERSISTENT_1 SSD deployment types, valid values are in multiples + // of 2400 GiB. The value must be greater than the current storage capacity. // // * For - // SCRATCH_1 file systems, you cannot increase the storage capacity. + // PERSISTENT HDD file systems, valid values are multiples of 6000 GiB for 12-MBps + // throughput per TiB file systems and multiples of 1800 GiB for 40-MBps throughput + // per TiB file systems. The values must be greater than the current storage + // capacity. + // + // * For SCRATCH_1 file systems, you can't increase the storage + // capacity. // - // For more - // information, see Managing storage capacity + // For OpenZFS file systems, the input/output operations per second + // (IOPS) automatically scale with increases to the storage capacity if IOPS is + // configured for automatic scaling. If the storage capacity increase would result + // in less than 3 IOPS per GiB of storage, this operation returns an error. For + // more information, see Managing storage capacity // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-storage-capacity.html) - // in the Amazon FSx for Windows File Server User Guide and Managing storage and + // in the Amazon FSx for Windows File Server User Guide, Managing storage and // throughput capacity // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/managing-storage-capacity.html) - // in the Amazon FSx for Lustre User Guide. + // in the Amazon FSx for Lustre User Guide, and Managing storage capacity + // (https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/managing-storage-capacity.html) + // in the Amazon FSx for OpenZFS User Guide. StorageCapacity *int32 // The configuration updates for an Amazon FSx for Windows File Server file system. diff --git a/service/fsx/api_op_UpdateSnapshot.go b/service/fsx/api_op_UpdateSnapshot.go new file mode 100644 index 00000000000..0150c7c5fb9 --- /dev/null +++ b/service/fsx/api_op_UpdateSnapshot.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package fsx + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/fsx/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the name of a snapshot. +func (c *Client) UpdateSnapshot(ctx context.Context, params *UpdateSnapshotInput, optFns ...func(*Options)) (*UpdateSnapshotOutput, error) { + if params == nil { + params = &UpdateSnapshotInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateSnapshot", params, optFns, c.addOperationUpdateSnapshotMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateSnapshotOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateSnapshotInput struct { + + // The name of the snapshot to update. + // + // This member is required. + Name *string + + // The ID of the snapshot that you want to update, in the format + // fsvolsnap-0123456789abcdef0. + // + // This member is required. + SnapshotId *string + + // (Optional) An idempotency token for resource creation, in a string of up to 64 + // ASCII characters. This token is automatically filled on your behalf when you use + // the Command Line Interface (CLI) or an Amazon Web Services SDK. + ClientRequestToken *string + + noSmithyDocumentSerde +} + +type UpdateSnapshotOutput struct { + + // Returned after a successful UpdateSnapshot operation, describing the snapshot + // that you updated. + Snapshot *types.Snapshot + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateSnapshot{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateSnapshot{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateSnapshotMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateSnapshotValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSnapshot(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateSnapshot struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateSnapshot) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateSnapshotInput ") + } + + if input.ClientRequestToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientRequestToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateSnapshotMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateSnapshot{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateSnapshot(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "fsx", + OperationName: "UpdateSnapshot", + } +} diff --git a/service/fsx/api_op_UpdateVolume.go b/service/fsx/api_op_UpdateVolume.go index 2f82895e8da..4e64cc8eec2 100644 --- a/service/fsx/api_op_UpdateVolume.go +++ b/service/fsx/api_op_UpdateVolume.go @@ -12,7 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates an Amazon FSx for NetApp ONTAP volume's configuration. +// Updates the configuration of an Amazon FSx for NetApp ONTAP or Amazon FSx for +// OpenZFS volume. func (c *Client) UpdateVolume(ctx context.Context, params *UpdateVolumeInput, optFns ...func(*Options)) (*UpdateVolumeOutput, error) { if params == nil { params = &UpdateVolumeInput{} @@ -30,7 +31,8 @@ func (c *Client) UpdateVolume(ctx context.Context, params *UpdateVolumeInput, op type UpdateVolumeInput struct { - // Specifies the volume that you want to update, formatted fsvol-0123456789abcdef0. + // The ID of the volume that you want to update, in the format + // fsvol-0123456789abcdef0. // // This member is required. VolumeId *string @@ -40,16 +42,24 @@ type UpdateVolumeInput struct { // the Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string - // The ONTAP configuration of the volume you are updating. + // The name of the OpenZFS volume. OpenZFS root volumes are automatically named + // FSX. Child volume names must be unique among their parent volume's children. The + // name of the volume is part of the mount string for the OpenZFS volume. + Name *string + + // The configuration of the ONTAP volume that you are updating. OntapConfiguration *types.UpdateOntapVolumeConfiguration + // The configuration of the OpenZFS volume that you are updating. + OpenZFSConfiguration *types.UpdateOpenZFSVolumeConfiguration + noSmithyDocumentSerde } type UpdateVolumeOutput struct { - // Returned after a successful UpdateVolume API operation, describing the volume - // just updated. + // A description of the volume just updated. Returned after a successful + // UpdateVolume API operation. Volume *types.Volume // Metadata pertaining to the operation's result. diff --git a/service/fsx/deserializers.go b/service/fsx/deserializers.go index fc5d64d7fc0..c4c5379c610 100644 --- a/service/fsx/deserializers.go +++ b/service/fsx/deserializers.go @@ -532,14 +532,14 @@ func awsAwsjson11_deserializeOpErrorCreateBackup(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpCreateDataRepositoryTask struct { +type awsAwsjson11_deserializeOpCreateDataRepositoryAssociation struct { } -func (*awsAwsjson11_deserializeOpCreateDataRepositoryTask) ID() string { +func (*awsAwsjson11_deserializeOpCreateDataRepositoryAssociation) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateDataRepositoryTask) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateDataRepositoryAssociation) 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) @@ -553,9 +553,9 @@ func (m *awsAwsjson11_deserializeOpCreateDataRepositoryTask) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataRepositoryTask(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataRepositoryAssociation(response, &metadata) } - output := &CreateDataRepositoryTaskOutput{} + output := &CreateDataRepositoryAssociationOutput{} out.Result = output var buff [1024]byte @@ -575,7 +575,7 @@ func (m *awsAwsjson11_deserializeOpCreateDataRepositoryTask) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateDataRepositoryTaskOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateDataRepositoryAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -589,7 +589,7 @@ func (m *awsAwsjson11_deserializeOpCreateDataRepositoryTask) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateDataRepositoryTask(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateDataRepositoryAssociation(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)} @@ -633,9 +633,6 @@ func awsAwsjson11_deserializeOpErrorCreateDataRepositoryTask(response *smithyhtt case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("DataRepositoryTaskExecuting", errorCode): - return awsAwsjson11_deserializeErrorDataRepositoryTaskExecuting(response, errorBody) - case strings.EqualFold("FileSystemNotFound", errorCode): return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) @@ -661,14 +658,14 @@ func awsAwsjson11_deserializeOpErrorCreateDataRepositoryTask(response *smithyhtt } } -type awsAwsjson11_deserializeOpCreateFileSystem struct { +type awsAwsjson11_deserializeOpCreateDataRepositoryTask struct { } -func (*awsAwsjson11_deserializeOpCreateFileSystem) ID() string { +func (*awsAwsjson11_deserializeOpCreateDataRepositoryTask) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateFileSystem) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateDataRepositoryTask) 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) @@ -682,9 +679,9 @@ func (m *awsAwsjson11_deserializeOpCreateFileSystem) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateFileSystem(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataRepositoryTask(response, &metadata) } - output := &CreateFileSystemOutput{} + output := &CreateDataRepositoryTaskOutput{} out.Result = output var buff [1024]byte @@ -704,7 +701,7 @@ func (m *awsAwsjson11_deserializeOpCreateFileSystem) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateFileSystemOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateDataRepositoryTaskOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -718,7 +715,7 @@ func (m *awsAwsjson11_deserializeOpCreateFileSystem) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateFileSystem(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateDataRepositoryTask(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)} @@ -759,36 +756,27 @@ func awsAwsjson11_deserializeOpErrorCreateFileSystem(response *smithyhttp.Respon } switch { - case strings.EqualFold("ActiveDirectoryError", errorCode): - return awsAwsjson11_deserializeErrorActiveDirectoryError(response, errorBody) - case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("DataRepositoryTaskExecuting", errorCode): + return awsAwsjson11_deserializeErrorDataRepositoryTaskExecuting(response, errorBody) + + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("IncompatibleParameterError", errorCode): return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("InvalidExportPath", errorCode): - return awsAwsjson11_deserializeErrorInvalidExportPath(response, errorBody) - - case strings.EqualFold("InvalidImportPath", errorCode): - return awsAwsjson11_deserializeErrorInvalidImportPath(response, errorBody) - - case strings.EqualFold("InvalidNetworkSettings", errorCode): - return awsAwsjson11_deserializeErrorInvalidNetworkSettings(response, errorBody) - - case strings.EqualFold("InvalidPerUnitStorageThroughput", errorCode): - return awsAwsjson11_deserializeErrorInvalidPerUnitStorageThroughput(response, errorBody) - - case strings.EqualFold("MissingFileSystemConfiguration", errorCode): - return awsAwsjson11_deserializeErrorMissingFileSystemConfiguration(response, errorBody) - case strings.EqualFold("ServiceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -799,14 +787,14 @@ func awsAwsjson11_deserializeOpErrorCreateFileSystem(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpCreateFileSystemFromBackup struct { +type awsAwsjson11_deserializeOpCreateFileSystem struct { } -func (*awsAwsjson11_deserializeOpCreateFileSystemFromBackup) ID() string { +func (*awsAwsjson11_deserializeOpCreateFileSystem) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateFileSystemFromBackup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateFileSystem) 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) @@ -820,9 +808,9 @@ func (m *awsAwsjson11_deserializeOpCreateFileSystemFromBackup) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateFileSystem(response, &metadata) } - output := &CreateFileSystemFromBackupOutput{} + output := &CreateFileSystemOutput{} out.Result = output var buff [1024]byte @@ -842,7 +830,7 @@ func (m *awsAwsjson11_deserializeOpCreateFileSystemFromBackup) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateFileSystemFromBackupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateFileSystemOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -856,7 +844,7 @@ func (m *awsAwsjson11_deserializeOpCreateFileSystemFromBackup) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateFileSystem(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)} @@ -900,9 +888,6 @@ func awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(response *smithyh case strings.EqualFold("ActiveDirectoryError", errorCode): return awsAwsjson11_deserializeErrorActiveDirectoryError(response, errorBody) - case strings.EqualFold("BackupNotFound", errorCode): - return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) - case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) @@ -912,6 +897,12 @@ func awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(response *smithyh case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("InvalidExportPath", errorCode): + return awsAwsjson11_deserializeErrorInvalidExportPath(response, errorBody) + + case strings.EqualFold("InvalidImportPath", errorCode): + return awsAwsjson11_deserializeErrorInvalidImportPath(response, errorBody) + case strings.EqualFold("InvalidNetworkSettings", errorCode): return awsAwsjson11_deserializeErrorInvalidNetworkSettings(response, errorBody) @@ -934,14 +925,14 @@ func awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(response *smithyh } } -type awsAwsjson11_deserializeOpCreateStorageVirtualMachine struct { +type awsAwsjson11_deserializeOpCreateFileSystemFromBackup struct { } -func (*awsAwsjson11_deserializeOpCreateStorageVirtualMachine) ID() string { +func (*awsAwsjson11_deserializeOpCreateFileSystemFromBackup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateStorageVirtualMachine) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateFileSystemFromBackup) 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) @@ -955,9 +946,9 @@ func (m *awsAwsjson11_deserializeOpCreateStorageVirtualMachine) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateStorageVirtualMachine(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(response, &metadata) } - output := &CreateStorageVirtualMachineOutput{} + output := &CreateFileSystemFromBackupOutput{} out.Result = output var buff [1024]byte @@ -977,7 +968,7 @@ func (m *awsAwsjson11_deserializeOpCreateStorageVirtualMachine) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateStorageVirtualMachineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateFileSystemFromBackupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -991,7 +982,7 @@ func (m *awsAwsjson11_deserializeOpCreateStorageVirtualMachine) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateStorageVirtualMachine(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateFileSystemFromBackup(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)} @@ -1035,24 +1026,30 @@ func awsAwsjson11_deserializeOpErrorCreateStorageVirtualMachine(response *smithy case strings.EqualFold("ActiveDirectoryError", errorCode): return awsAwsjson11_deserializeErrorActiveDirectoryError(response, errorBody) + case strings.EqualFold("BackupNotFound", errorCode): + return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) + case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("FileSystemNotFound", errorCode): - return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) - case strings.EqualFold("IncompatibleParameterError", errorCode): return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("InvalidNetworkSettings", errorCode): + return awsAwsjson11_deserializeErrorInvalidNetworkSettings(response, errorBody) + + case strings.EqualFold("InvalidPerUnitStorageThroughput", errorCode): + return awsAwsjson11_deserializeErrorInvalidPerUnitStorageThroughput(response, errorBody) + + case strings.EqualFold("MissingFileSystemConfiguration", errorCode): + return awsAwsjson11_deserializeErrorMissingFileSystemConfiguration(response, errorBody) + case strings.EqualFold("ServiceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1063,14 +1060,14 @@ func awsAwsjson11_deserializeOpErrorCreateStorageVirtualMachine(response *smithy } } -type awsAwsjson11_deserializeOpCreateVolume struct { +type awsAwsjson11_deserializeOpCreateSnapshot struct { } -func (*awsAwsjson11_deserializeOpCreateVolume) ID() string { +func (*awsAwsjson11_deserializeOpCreateSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1084,9 +1081,9 @@ func (m *awsAwsjson11_deserializeOpCreateVolume) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateVolume(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateSnapshot(response, &metadata) } - output := &CreateVolumeOutput{} + output := &CreateSnapshotOutput{} out.Result = output var buff [1024]byte @@ -1106,7 +1103,7 @@ func (m *awsAwsjson11_deserializeOpCreateVolume) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateVolumeOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1120,7 +1117,7 @@ func (m *awsAwsjson11_deserializeOpCreateVolume) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1164,26 +1161,14 @@ func awsAwsjson11_deserializeOpErrorCreateVolume(response *smithyhttp.Response, case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("FileSystemNotFound", errorCode): - return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) - - case strings.EqualFold("IncompatibleParameterError", errorCode): - return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) - case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("MissingVolumeConfiguration", errorCode): - return awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response, errorBody) - case strings.EqualFold("ServiceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) - case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): - return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) - - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + case strings.EqualFold("VolumeNotFound", errorCode): + return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1195,14 +1180,14 @@ func awsAwsjson11_deserializeOpErrorCreateVolume(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpCreateVolumeFromBackup struct { +type awsAwsjson11_deserializeOpCreateStorageVirtualMachine struct { } -func (*awsAwsjson11_deserializeOpCreateVolumeFromBackup) ID() string { +func (*awsAwsjson11_deserializeOpCreateStorageVirtualMachine) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateVolumeFromBackup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateStorageVirtualMachine) 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) @@ -1216,9 +1201,9 @@ func (m *awsAwsjson11_deserializeOpCreateVolumeFromBackup) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateStorageVirtualMachine(response, &metadata) } - output := &CreateVolumeFromBackupOutput{} + output := &CreateStorageVirtualMachineOutput{} out.Result = output var buff [1024]byte @@ -1238,7 +1223,7 @@ func (m *awsAwsjson11_deserializeOpCreateVolumeFromBackup) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateVolumeFromBackupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateStorageVirtualMachineOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1252,7 +1237,7 @@ func (m *awsAwsjson11_deserializeOpCreateVolumeFromBackup) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateStorageVirtualMachine(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)} @@ -1293,8 +1278,8 @@ func awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(response *smithyhttp. } switch { - case strings.EqualFold("BackupNotFound", errorCode): - return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) + case strings.EqualFold("ActiveDirectoryError", errorCode): + return awsAwsjson11_deserializeErrorActiveDirectoryError(response, errorBody) case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) @@ -1308,14 +1293,11 @@ func awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(response *smithyhttp. case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("MissingVolumeConfiguration", errorCode): - return awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response, errorBody) - case strings.EqualFold("ServiceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) - case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): - return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1327,14 +1309,14 @@ func awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDeleteBackup struct { +type awsAwsjson11_deserializeOpCreateVolume struct { } -func (*awsAwsjson11_deserializeOpDeleteBackup) ID() string { +func (*awsAwsjson11_deserializeOpCreateVolume) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteBackup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateVolume) 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) @@ -1348,9 +1330,9 @@ func (m *awsAwsjson11_deserializeOpDeleteBackup) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteBackup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateVolume(response, &metadata) } - output := &DeleteBackupOutput{} + output := &CreateVolumeOutput{} out.Result = output var buff [1024]byte @@ -1370,7 +1352,7 @@ func (m *awsAwsjson11_deserializeOpDeleteBackup) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateVolumeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1384,7 +1366,7 @@ func (m *awsAwsjson11_deserializeOpDeleteBackup) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteBackup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateVolume(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)} @@ -1425,27 +1407,30 @@ func awsAwsjson11_deserializeOpErrorDeleteBackup(response *smithyhttp.Response, } switch { - case strings.EqualFold("BackupBeingCopied", errorCode): - return awsAwsjson11_deserializeErrorBackupBeingCopied(response, errorBody) - - case strings.EqualFold("BackupInProgress", errorCode): - return awsAwsjson11_deserializeErrorBackupInProgress(response, errorBody) - - case strings.EqualFold("BackupNotFound", errorCode): - return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) - - case strings.EqualFold("BackupRestoring", errorCode): - return awsAwsjson11_deserializeErrorBackupRestoring(response, errorBody) - case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("IncompatibleParameterError", errorCode): return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("MissingVolumeConfiguration", errorCode): + return awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response, errorBody) + + case strings.EqualFold("ServiceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) + + case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): + return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1456,14 +1441,14 @@ func awsAwsjson11_deserializeOpErrorDeleteBackup(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDeleteFileSystem struct { +type awsAwsjson11_deserializeOpCreateVolumeFromBackup struct { } -func (*awsAwsjson11_deserializeOpDeleteFileSystem) ID() string { +func (*awsAwsjson11_deserializeOpCreateVolumeFromBackup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteFileSystem) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateVolumeFromBackup) 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) @@ -1477,9 +1462,9 @@ func (m *awsAwsjson11_deserializeOpDeleteFileSystem) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteFileSystem(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(response, &metadata) } - output := &DeleteFileSystemOutput{} + output := &CreateVolumeFromBackupOutput{} out.Result = output var buff [1024]byte @@ -1499,7 +1484,7 @@ func (m *awsAwsjson11_deserializeOpDeleteFileSystem) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteFileSystemOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateVolumeFromBackupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1513,7 +1498,7 @@ func (m *awsAwsjson11_deserializeOpDeleteFileSystem) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteFileSystem(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateVolumeFromBackup(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)} @@ -1554,6 +1539,9 @@ func awsAwsjson11_deserializeOpErrorDeleteFileSystem(response *smithyhttp.Respon } switch { + case strings.EqualFold("BackupNotFound", errorCode): + return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) + case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) @@ -1566,9 +1554,15 @@ func awsAwsjson11_deserializeOpErrorDeleteFileSystem(response *smithyhttp.Respon case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("MissingVolumeConfiguration", errorCode): + return awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response, errorBody) + case strings.EqualFold("ServiceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) + case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): + return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1579,14 +1573,14 @@ func awsAwsjson11_deserializeOpErrorDeleteFileSystem(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDeleteStorageVirtualMachine struct { +type awsAwsjson11_deserializeOpDeleteBackup struct { } -func (*awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) ID() string { +func (*awsAwsjson11_deserializeOpDeleteBackup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteBackup) 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) @@ -1600,9 +1594,9 @@ func (m *awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteBackup(response, &metadata) } - output := &DeleteStorageVirtualMachineOutput{} + output := &DeleteBackupOutput{} out.Result = output var buff [1024]byte @@ -1622,7 +1616,7 @@ func (m *awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteStorageVirtualMachineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1636,7 +1630,7 @@ func (m *awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteBackup(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)} @@ -1677,6 +1671,18 @@ func awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(response *smithy } switch { + case strings.EqualFold("BackupBeingCopied", errorCode): + return awsAwsjson11_deserializeErrorBackupBeingCopied(response, errorBody) + + case strings.EqualFold("BackupInProgress", errorCode): + return awsAwsjson11_deserializeErrorBackupInProgress(response, errorBody) + + case strings.EqualFold("BackupNotFound", errorCode): + return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) + + case strings.EqualFold("BackupRestoring", errorCode): + return awsAwsjson11_deserializeErrorBackupRestoring(response, errorBody) + case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) @@ -1686,9 +1692,6 @@ func awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(response *smithy case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): - return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1699,14 +1702,14 @@ func awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(response *smithy } } -type awsAwsjson11_deserializeOpDeleteVolume struct { +type awsAwsjson11_deserializeOpDeleteDataRepositoryAssociation struct { } -func (*awsAwsjson11_deserializeOpDeleteVolume) ID() string { +func (*awsAwsjson11_deserializeOpDeleteDataRepositoryAssociation) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteDataRepositoryAssociation) 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) @@ -1720,9 +1723,9 @@ func (m *awsAwsjson11_deserializeOpDeleteVolume) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteVolume(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteDataRepositoryAssociation(response, &metadata) } - output := &DeleteVolumeOutput{} + output := &DeleteDataRepositoryAssociationOutput{} out.Result = output var buff [1024]byte @@ -1742,7 +1745,7 @@ func (m *awsAwsjson11_deserializeOpDeleteVolume) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteVolumeOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteDataRepositoryAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1756,7 +1759,7 @@ func (m *awsAwsjson11_deserializeOpDeleteVolume) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteDataRepositoryAssociation(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)} @@ -1800,14 +1803,17 @@ func awsAwsjson11_deserializeOpErrorDeleteVolume(response *smithyhttp.Response, case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("DataRepositoryAssociationNotFound", errorCode): + return awsAwsjson11_deserializeErrorDataRepositoryAssociationNotFound(response, errorBody) + case strings.EqualFold("IncompatibleParameterError", errorCode): return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("VolumeNotFound", errorCode): - return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) + case strings.EqualFold("ServiceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1819,14 +1825,14 @@ func awsAwsjson11_deserializeOpErrorDeleteVolume(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeBackups struct { +type awsAwsjson11_deserializeOpDeleteFileSystem struct { } -func (*awsAwsjson11_deserializeOpDescribeBackups) ID() string { +func (*awsAwsjson11_deserializeOpDeleteFileSystem) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeBackups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteFileSystem) 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) @@ -1840,9 +1846,9 @@ func (m *awsAwsjson11_deserializeOpDescribeBackups) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeBackups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteFileSystem(response, &metadata) } - output := &DescribeBackupsOutput{} + output := &DeleteFileSystemOutput{} out.Result = output var buff [1024]byte @@ -1862,7 +1868,7 @@ func (m *awsAwsjson11_deserializeOpDescribeBackups) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteFileSystemOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1876,7 +1882,7 @@ func (m *awsAwsjson11_deserializeOpDescribeBackups) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeBackups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteFileSystem(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)} @@ -1917,20 +1923,20 @@ func awsAwsjson11_deserializeOpErrorDescribeBackups(response *smithyhttp.Respons } switch { - case strings.EqualFold("BackupNotFound", errorCode): - return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) - case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) case strings.EqualFold("FileSystemNotFound", errorCode): return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("VolumeNotFound", errorCode): - return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) + case strings.EqualFold("ServiceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1942,14 +1948,14 @@ func awsAwsjson11_deserializeOpErrorDescribeBackups(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDescribeDataRepositoryTasks struct { +type awsAwsjson11_deserializeOpDeleteSnapshot struct { } -func (*awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) ID() string { +func (*awsAwsjson11_deserializeOpDeleteSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1963,9 +1969,9 @@ func (m *awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataRepositoryTasks(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteSnapshot(response, &metadata) } - output := &DescribeDataRepositoryTasksOutput{} + output := &DeleteSnapshotOutput{} out.Result = output var buff [1024]byte @@ -1985,7 +1991,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeDataRepositoryTasksOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1999,7 +2005,7 @@ func (m *awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeDataRepositoryTasks(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2043,15 +2049,12 @@ func awsAwsjson11_deserializeOpErrorDescribeDataRepositoryTasks(response *smithy case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("DataRepositoryTaskNotFound", errorCode): - return awsAwsjson11_deserializeErrorDataRepositoryTaskNotFound(response, errorBody) - - case strings.EqualFold("FileSystemNotFound", errorCode): - return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) - case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("SnapshotNotFound", errorCode): + return awsAwsjson11_deserializeErrorSnapshotNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2062,14 +2065,14 @@ func awsAwsjson11_deserializeOpErrorDescribeDataRepositoryTasks(response *smithy } } -type awsAwsjson11_deserializeOpDescribeFileSystemAliases struct { +type awsAwsjson11_deserializeOpDeleteStorageVirtualMachine struct { } -func (*awsAwsjson11_deserializeOpDescribeFileSystemAliases) ID() string { +func (*awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeFileSystemAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteStorageVirtualMachine) 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) @@ -2083,9 +2086,9 @@ func (m *awsAwsjson11_deserializeOpDescribeFileSystemAliases) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFileSystemAliases(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(response, &metadata) } - output := &DescribeFileSystemAliasesOutput{} + output := &DeleteStorageVirtualMachineOutput{} out.Result = output var buff [1024]byte @@ -2105,7 +2108,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFileSystemAliases) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeFileSystemAliasesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteStorageVirtualMachineOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2119,7 +2122,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFileSystemAliases) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeFileSystemAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteStorageVirtualMachine(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)} @@ -2163,12 +2166,15 @@ func awsAwsjson11_deserializeOpErrorDescribeFileSystemAliases(response *smithyht case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("FileSystemNotFound", errorCode): - return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): + return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2179,14 +2185,14 @@ func awsAwsjson11_deserializeOpErrorDescribeFileSystemAliases(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeFileSystems struct { +type awsAwsjson11_deserializeOpDeleteVolume struct { } -func (*awsAwsjson11_deserializeOpDescribeFileSystems) ID() string { +func (*awsAwsjson11_deserializeOpDeleteVolume) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeFileSystems) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteVolume) 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) @@ -2200,9 +2206,9 @@ func (m *awsAwsjson11_deserializeOpDescribeFileSystems) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFileSystems(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteVolume(response, &metadata) } - output := &DescribeFileSystemsOutput{} + output := &DeleteVolumeOutput{} out.Result = output var buff [1024]byte @@ -2222,7 +2228,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFileSystems) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeFileSystemsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteVolumeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2236,7 +2242,7 @@ func (m *awsAwsjson11_deserializeOpDescribeFileSystems) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeFileSystems(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteVolume(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)} @@ -2280,12 +2286,15 @@ func awsAwsjson11_deserializeOpErrorDescribeFileSystems(response *smithyhttp.Res case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("FileSystemNotFound", errorCode): - return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + case strings.EqualFold("VolumeNotFound", errorCode): + return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2296,14 +2305,14 @@ func awsAwsjson11_deserializeOpErrorDescribeFileSystems(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeStorageVirtualMachines struct { +type awsAwsjson11_deserializeOpDescribeBackups struct { } -func (*awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) ID() string { +func (*awsAwsjson11_deserializeOpDescribeBackups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeBackups) 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) @@ -2317,9 +2326,9 @@ func (m *awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeStorageVirtualMachines(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeBackups(response, &metadata) } - output := &DescribeStorageVirtualMachinesOutput{} + output := &DescribeBackupsOutput{} out.Result = output var buff [1024]byte @@ -2339,7 +2348,7 @@ func (m *awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeStorageVirtualMachinesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2353,7 +2362,7 @@ func (m *awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeStorageVirtualMachines(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeBackups(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)} @@ -2394,14 +2403,20 @@ func awsAwsjson11_deserializeOpErrorDescribeStorageVirtualMachines(response *smi } switch { + case strings.EqualFold("BackupNotFound", errorCode): + return awsAwsjson11_deserializeErrorBackupNotFound(response, errorBody) + case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): - return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) + case strings.EqualFold("VolumeNotFound", errorCode): + return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2413,14 +2428,14 @@ func awsAwsjson11_deserializeOpErrorDescribeStorageVirtualMachines(response *smi } } -type awsAwsjson11_deserializeOpDescribeVolumes struct { +type awsAwsjson11_deserializeOpDescribeDataRepositoryAssociations struct { } -func (*awsAwsjson11_deserializeOpDescribeVolumes) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDataRepositoryAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeVolumes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDataRepositoryAssociations) 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) @@ -2434,9 +2449,9 @@ func (m *awsAwsjson11_deserializeOpDescribeVolumes) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeVolumes(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataRepositoryAssociations(response, &metadata) } - output := &DescribeVolumesOutput{} + output := &DescribeDataRepositoryAssociationsOutput{} out.Result = output var buff [1024]byte @@ -2456,7 +2471,7 @@ func (m *awsAwsjson11_deserializeOpDescribeVolumes) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeVolumesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDataRepositoryAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2470,7 +2485,7 @@ func (m *awsAwsjson11_deserializeOpDescribeVolumes) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeVolumes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDataRepositoryAssociations(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)} @@ -2514,11 +2529,17 @@ func awsAwsjson11_deserializeOpErrorDescribeVolumes(response *smithyhttp.Respons case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("DataRepositoryAssociationNotFound", errorCode): + return awsAwsjson11_deserializeErrorDataRepositoryAssociationNotFound(response, errorBody) + + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("VolumeNotFound", errorCode): - return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) + case strings.EqualFold("InvalidDataRepositoryType", errorCode): + return awsAwsjson11_deserializeErrorInvalidDataRepositoryType(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2530,14 +2551,14 @@ func awsAwsjson11_deserializeOpErrorDescribeVolumes(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDisassociateFileSystemAliases struct { +type awsAwsjson11_deserializeOpDescribeDataRepositoryTasks struct { } -func (*awsAwsjson11_deserializeOpDisassociateFileSystemAliases) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisassociateFileSystemAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDataRepositoryTasks) 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) @@ -2551,9 +2572,9 @@ func (m *awsAwsjson11_deserializeOpDisassociateFileSystemAliases) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateFileSystemAliases(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataRepositoryTasks(response, &metadata) } - output := &DisassociateFileSystemAliasesOutput{} + output := &DescribeDataRepositoryTasksOutput{} out.Result = output var buff [1024]byte @@ -2573,7 +2594,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateFileSystemAliases) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisassociateFileSystemAliasesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDataRepositoryTasksOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2587,7 +2608,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateFileSystemAliases) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisassociateFileSystemAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDataRepositoryTasks(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)} @@ -2631,6 +2652,9 @@ func awsAwsjson11_deserializeOpErrorDisassociateFileSystemAliases(response *smit case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("DataRepositoryTaskNotFound", errorCode): + return awsAwsjson11_deserializeErrorDataRepositoryTaskNotFound(response, errorBody) + case strings.EqualFold("FileSystemNotFound", errorCode): return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) @@ -2647,14 +2671,14 @@ func awsAwsjson11_deserializeOpErrorDisassociateFileSystemAliases(response *smit } } -type awsAwsjson11_deserializeOpListTagsForResource struct { +type awsAwsjson11_deserializeOpDescribeFileSystemAliases struct { } -func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string { +func (*awsAwsjson11_deserializeOpDescribeFileSystemAliases) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeFileSystemAliases) 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) @@ -2668,9 +2692,9 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFileSystemAliases(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &DescribeFileSystemAliasesOutput{} out.Result = output var buff [1024]byte @@ -2690,7 +2714,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeFileSystemAliasesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2704,7 +2728,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeFileSystemAliases(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)} @@ -2748,18 +2772,12 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("NotServiceResourceError", errorCode): - return awsAwsjson11_deserializeErrorNotServiceResourceError(response, errorBody) - - case strings.EqualFold("ResourceDoesNotSupportTagging", errorCode): - return awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2770,14 +2788,14 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpTagResource struct { +type awsAwsjson11_deserializeOpDescribeFileSystems struct { } -func (*awsAwsjson11_deserializeOpTagResource) ID() string { +func (*awsAwsjson11_deserializeOpDescribeFileSystems) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeFileSystems) 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) @@ -2791,9 +2809,9 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFileSystems(response, &metadata) } - output := &TagResourceOutput{} + output := &DescribeFileSystemsOutput{} out.Result = output var buff [1024]byte @@ -2813,7 +2831,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeFileSystemsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2827,7 +2845,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeFileSystems(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)} @@ -2871,18 +2889,12 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("NotServiceResourceError", errorCode): - return awsAwsjson11_deserializeErrorNotServiceResourceError(response, errorBody) - - case strings.EqualFold("ResourceDoesNotSupportTagging", errorCode): - return awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2893,14 +2905,14 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUntagResource struct { +type awsAwsjson11_deserializeOpDescribeSnapshots struct { } -func (*awsAwsjson11_deserializeOpUntagResource) ID() string { +func (*awsAwsjson11_deserializeOpDescribeSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2914,9 +2926,9 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSnapshots(response, &metadata) } - output := &UntagResourceOutput{} + output := &DescribeSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -2936,7 +2948,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeSnapshotsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2950,7 +2962,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2997,14 +3009,8 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("NotServiceResourceError", errorCode): - return awsAwsjson11_deserializeErrorNotServiceResourceError(response, errorBody) - - case strings.EqualFold("ResourceDoesNotSupportTagging", errorCode): - return awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("SnapshotNotFound", errorCode): + return awsAwsjson11_deserializeErrorSnapshotNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -3016,14 +3022,14 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateFileSystem struct { +type awsAwsjson11_deserializeOpDescribeStorageVirtualMachines struct { } -func (*awsAwsjson11_deserializeOpUpdateFileSystem) ID() string { +func (*awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateFileSystem) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeStorageVirtualMachines) 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) @@ -3037,9 +3043,9 @@ func (m *awsAwsjson11_deserializeOpUpdateFileSystem) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateFileSystem(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeStorageVirtualMachines(response, &metadata) } - output := &UpdateFileSystemOutput{} + output := &DescribeStorageVirtualMachinesOutput{} out.Result = output var buff [1024]byte @@ -3059,7 +3065,7 @@ func (m *awsAwsjson11_deserializeOpUpdateFileSystem) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateFileSystemOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeStorageVirtualMachinesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3073,7 +3079,7 @@ func (m *awsAwsjson11_deserializeOpUpdateFileSystem) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateFileSystem(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeStorageVirtualMachines(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)} @@ -3117,23 +3123,11 @@ func awsAwsjson11_deserializeOpErrorUpdateFileSystem(response *smithyhttp.Respon case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("FileSystemNotFound", errorCode): - return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) - - case strings.EqualFold("IncompatibleParameterError", errorCode): - return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) - case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("MissingFileSystemConfiguration", errorCode): - return awsAwsjson11_deserializeErrorMissingFileSystemConfiguration(response, errorBody) - - case strings.EqualFold("ServiceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) - - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): + return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -3145,14 +3139,14 @@ func awsAwsjson11_deserializeOpErrorUpdateFileSystem(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateStorageVirtualMachine struct { +type awsAwsjson11_deserializeOpDescribeVolumes struct { } -func (*awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) ID() string { +func (*awsAwsjson11_deserializeOpDescribeVolumes) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeVolumes) 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) @@ -3166,9 +3160,9 @@ func (m *awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateStorageVirtualMachine(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeVolumes(response, &metadata) } - output := &UpdateStorageVirtualMachineOutput{} + output := &DescribeVolumesOutput{} out.Result = output var buff [1024]byte @@ -3188,7 +3182,7 @@ func (m *awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateStorageVirtualMachineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeVolumesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3202,7 +3196,7 @@ func (m *awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateStorageVirtualMachine(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeVolumes(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)} @@ -3246,17 +3240,11 @@ func awsAwsjson11_deserializeOpErrorUpdateStorageVirtualMachine(response *smithy case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("IncompatibleParameterError", errorCode): - return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) - case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): - return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) - - case strings.EqualFold("UnsupportedOperation", errorCode): - return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + case strings.EqualFold("VolumeNotFound", errorCode): + return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -3268,14 +3256,14 @@ func awsAwsjson11_deserializeOpErrorUpdateStorageVirtualMachine(response *smithy } } -type awsAwsjson11_deserializeOpUpdateVolume struct { +type awsAwsjson11_deserializeOpDisassociateFileSystemAliases struct { } -func (*awsAwsjson11_deserializeOpUpdateVolume) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateFileSystemAliases) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateFileSystemAliases) 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) @@ -3289,9 +3277,9 @@ func (m *awsAwsjson11_deserializeOpUpdateVolume) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateVolume(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateFileSystemAliases(response, &metadata) } - output := &UpdateVolumeOutput{} + output := &DisassociateFileSystemAliasesOutput{} out.Result = output var buff [1024]byte @@ -3311,7 +3299,7 @@ func (m *awsAwsjson11_deserializeOpUpdateVolume) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateVolumeOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateFileSystemAliasesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3325,7 +3313,7 @@ func (m *awsAwsjson11_deserializeOpUpdateVolume) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateFileSystemAliases(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)} @@ -3369,18 +3357,12 @@ func awsAwsjson11_deserializeOpErrorUpdateVolume(response *smithyhttp.Response, case strings.EqualFold("BadRequest", errorCode): return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - case strings.EqualFold("IncompatibleParameterError", errorCode): - return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) case strings.EqualFold("InternalServerError", errorCode): return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) - case strings.EqualFold("MissingVolumeConfiguration", errorCode): - return awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response, errorBody) - - case strings.EqualFold("VolumeNotFound", errorCode): - return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3391,11 +3373,36 @@ func awsAwsjson11_deserializeOpErrorUpdateVolume(response *smithyhttp.Response, } } -func awsAwsjson11_deserializeErrorActiveDirectoryError(response *smithyhttp.Response, errorBody *bytes.Reader) error { +type awsAwsjson11_deserializeOpListTagsForResource struct { +} + +func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + 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_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + 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{} @@ -3406,12 +3413,10 @@ func awsAwsjson11_deserializeErrorActiveDirectoryError(response *smithyhttp.Resp Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.ActiveDirectoryError{} - err := awsAwsjson11_deserializeDocumentActiveDirectoryError(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3419,22 +3424,35 @@ func awsAwsjson11_deserializeErrorActiveDirectoryError(response *smithyhttp.Resp 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_deserializeErrorBackupBeingCopied(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -3444,28 +3462,70 @@ func awsAwsjson11_deserializeErrorBackupBeingCopied(response *smithyhttp.Respons return err } - output := &types.BackupBeingCopied{} - err := awsAwsjson11_deserializeDocumentBackupBeingCopied(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("NotServiceResourceError", errorCode): + return awsAwsjson11_deserializeErrorNotServiceResourceError(response, errorBody) + + case strings.EqualFold("ResourceDoesNotSupportTagging", errorCode): + return awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpReleaseFileSystemNfsV3Locks struct { } -func awsAwsjson11_deserializeErrorBackupInProgress(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpReleaseFileSystemNfsV3Locks) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpReleaseFileSystemNfsV3Locks) 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_deserializeOpErrorReleaseFileSystemNfsV3Locks(response, &metadata) + } + output := &ReleaseFileSystemNfsV3LocksOutput{} + 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{} @@ -3476,12 +3536,10 @@ func awsAwsjson11_deserializeErrorBackupInProgress(response *smithyhttp.Response Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.BackupInProgress{} - err := awsAwsjson11_deserializeDocumentBackupInProgress(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentReleaseFileSystemNfsV3LocksOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3489,22 +3547,35 @@ func awsAwsjson11_deserializeErrorBackupInProgress(response *smithyhttp.Response 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_deserializeErrorBackupNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorReleaseFileSystemNfsV3Locks(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -3514,28 +3585,70 @@ func awsAwsjson11_deserializeErrorBackupNotFound(response *smithyhttp.Response, return err } - output := &types.BackupNotFound{} - err := awsAwsjson11_deserializeDocumentBackupNotFound(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("ServiceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpRestoreVolumeFromSnapshot struct { } -func awsAwsjson11_deserializeErrorBackupRestoring(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpRestoreVolumeFromSnapshot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpRestoreVolumeFromSnapshot) 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_deserializeOpErrorRestoreVolumeFromSnapshot(response, &metadata) + } + output := &RestoreVolumeFromSnapshotOutput{} + 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{} @@ -3546,12 +3659,10 @@ func awsAwsjson11_deserializeErrorBackupRestoring(response *smithyhttp.Response, Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.BackupRestoring{} - err := awsAwsjson11_deserializeDocumentBackupRestoring(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentRestoreVolumeFromSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3559,69 +3670,34 @@ func awsAwsjson11_deserializeErrorBackupRestoring(response *smithyhttp.Response, 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_deserializeErrorBadRequest(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 +func awsAwsjson11_deserializeOpErrorRestoreVolumeFromSnapshot(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()) - output := &types.BadRequest{} - err := awsAwsjson11_deserializeDocumentBadRequest(&output, shape) + errorCode := "UnknownError" + errorMessage := errorCode - 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 + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) } - errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorDataRepositoryTaskEnded(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.DataRepositoryTaskEnded{} - err := awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(&output, shape) - + code, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3633,49 +3709,63 @@ func awsAwsjson11_deserializeErrorDataRepositoryTaskEnded(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) - return output -} + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } -func awsAwsjson11_deserializeErrorDataRepositoryTaskExecuting(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + switch { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - 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(), + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("VolumeNotFound", errorCode): + return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - output := &types.DataRepositoryTaskExecuting{} - err := awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(&output, shape) +type awsAwsjson11_deserializeOpTagResource struct { +} + +func (*awsAwsjson11_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} +func (m *awsAwsjson11_deserializeOpTagResource) 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_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output -func awsAwsjson11_deserializeErrorDataRepositoryTaskNotFound(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{} @@ -3686,12 +3776,10 @@ func awsAwsjson11_deserializeErrorDataRepositoryTaskNotFound(response *smithyhtt Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.DataRepositoryTaskNotFound{} - err := awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3699,22 +3787,35 @@ func awsAwsjson11_deserializeErrorDataRepositoryTaskNotFound(response *smithyhtt 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_deserializeErrorFileSystemNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorTagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -3724,28 +3825,70 @@ func awsAwsjson11_deserializeErrorFileSystemNotFound(response *smithyhttp.Respon return err } - output := &types.FileSystemNotFound{} - err := awsAwsjson11_deserializeDocumentFileSystemNotFound(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("NotServiceResourceError", errorCode): + return awsAwsjson11_deserializeErrorNotServiceResourceError(response, errorBody) + + case strings.EqualFold("ResourceDoesNotSupportTagging", errorCode): + return awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpUntagResource struct { } -func awsAwsjson11_deserializeErrorIncompatibleParameterError(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUntagResource) 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_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + 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{} @@ -3756,12 +3899,10 @@ func awsAwsjson11_deserializeErrorIncompatibleParameterError(response *smithyhtt Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.IncompatibleParameterError{} - err := awsAwsjson11_deserializeDocumentIncompatibleParameterError(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3769,22 +3910,35 @@ func awsAwsjson11_deserializeErrorIncompatibleParameterError(response *smithyhtt 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_deserializeErrorIncompatibleRegionForMultiAZ(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUntagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -3794,28 +3948,70 @@ func awsAwsjson11_deserializeErrorIncompatibleRegionForMultiAZ(response *smithyh return err } - output := &types.IncompatibleRegionForMultiAZ{} - err := awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("NotServiceResourceError", errorCode): + return awsAwsjson11_deserializeErrorNotServiceResourceError(response, errorBody) + + case strings.EqualFold("ResourceDoesNotSupportTagging", errorCode): + return awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpUpdateDataRepositoryAssociation struct { } -func awsAwsjson11_deserializeErrorInternalServerError(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpUpdateDataRepositoryAssociation) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateDataRepositoryAssociation) 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_deserializeOpErrorUpdateDataRepositoryAssociation(response, &metadata) + } + output := &UpdateDataRepositoryAssociationOutput{} + 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{} @@ -3826,12 +4022,10 @@ func awsAwsjson11_deserializeErrorInternalServerError(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.InternalServerError{} - err := awsAwsjson11_deserializeDocumentInternalServerError(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUpdateDataRepositoryAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3839,22 +4033,35 @@ func awsAwsjson11_deserializeErrorInternalServerError(response *smithyhttp.Respo 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_deserializeErrorInvalidDestinationKmsKey(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUpdateDataRepositoryAssociation(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -3864,28 +4071,70 @@ func awsAwsjson11_deserializeErrorInvalidDestinationKmsKey(response *smithyhttp. return err } - output := &types.InvalidDestinationKmsKey{} - err := awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("DataRepositoryAssociationNotFound", errorCode): + return awsAwsjson11_deserializeErrorDataRepositoryAssociationNotFound(response, errorBody) + + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("ServiceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpUpdateFileSystem struct { } -func awsAwsjson11_deserializeErrorInvalidExportPath(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpUpdateFileSystem) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateFileSystem) 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_deserializeOpErrorUpdateFileSystem(response, &metadata) + } + output := &UpdateFileSystemOutput{} + 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{} @@ -3896,12 +4145,10 @@ func awsAwsjson11_deserializeErrorInvalidExportPath(response *smithyhttp.Respons Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.InvalidExportPath{} - err := awsAwsjson11_deserializeDocumentInvalidExportPath(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUpdateFileSystemOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3909,22 +4156,35 @@ func awsAwsjson11_deserializeErrorInvalidExportPath(response *smithyhttp.Respons 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_deserializeErrorInvalidImportPath(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUpdateFileSystem(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -3934,28 +4194,76 @@ func awsAwsjson11_deserializeErrorInvalidImportPath(response *smithyhttp.Respons return err } - output := &types.InvalidImportPath{} - err := awsAwsjson11_deserializeDocumentInvalidImportPath(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("FileSystemNotFound", errorCode): + return awsAwsjson11_deserializeErrorFileSystemNotFound(response, errorBody) + + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("MissingFileSystemConfiguration", errorCode): + return awsAwsjson11_deserializeErrorMissingFileSystemConfiguration(response, errorBody) + + case strings.EqualFold("ServiceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorServiceLimitExceeded(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpUpdateSnapshot struct { } -func awsAwsjson11_deserializeErrorInvalidNetworkSettings(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpUpdateSnapshot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateSnapshot) 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_deserializeOpErrorUpdateSnapshot(response, &metadata) + } + output := &UpdateSnapshotOutput{} + 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{} @@ -3966,12 +4274,10 @@ func awsAwsjson11_deserializeErrorInvalidNetworkSettings(response *smithyhttp.Re Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.InvalidNetworkSettings{} - err := awsAwsjson11_deserializeDocumentInvalidNetworkSettings(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUpdateSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3979,34 +4285,34 @@ func awsAwsjson11_deserializeErrorInvalidNetworkSettings(response *smithyhttp.Re 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_deserializeErrorInvalidPerUnitStorageThroughput(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUpdateSnapshot(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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.InvalidPerUnitStorageThroughput{} - err := awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(&output, shape) - + code, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4018,49 +4324,63 @@ func awsAwsjson11_deserializeErrorInvalidPerUnitStorageThroughput(response *smit } errorBody.Seek(0, io.SeekStart) - return output -} + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } -func awsAwsjson11_deserializeErrorInvalidRegion(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + switch { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) - 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(), + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("SnapshotNotFound", errorCode): + return awsAwsjson11_deserializeErrorSnapshotNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - output := &types.InvalidRegion{} - err := awsAwsjson11_deserializeDocumentInvalidRegion(&output, shape) +type awsAwsjson11_deserializeOpUpdateStorageVirtualMachine struct { +} +func (*awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateStorageVirtualMachine) 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_deserializeOpErrorUpdateStorageVirtualMachine(response, &metadata) + } + output := &UpdateStorageVirtualMachineOutput{} + out.Result = output -func awsAwsjson11_deserializeErrorInvalidSourceKmsKey(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{} @@ -4071,12 +4391,10 @@ func awsAwsjson11_deserializeErrorInvalidSourceKmsKey(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.InvalidSourceKmsKey{} - err := awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUpdateStorageVirtualMachineOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4084,22 +4402,35 @@ func awsAwsjson11_deserializeErrorInvalidSourceKmsKey(response *smithyhttp.Respo 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_deserializeErrorMissingFileSystemConfiguration(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUpdateStorageVirtualMachine(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -4109,28 +4440,70 @@ func awsAwsjson11_deserializeErrorMissingFileSystemConfiguration(response *smith return err } - output := &types.MissingFileSystemConfiguration{} - err := awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("StorageVirtualMachineNotFound", errorCode): + return awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson11_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpUpdateVolume struct { } -func awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpUpdateVolume) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateVolume) 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_deserializeOpErrorUpdateVolume(response, &metadata) + } + output := &UpdateVolumeOutput{} + 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{} @@ -4141,12 +4514,10 @@ func awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response *smithyhtt Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.MissingVolumeConfiguration{} - err := awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentUpdateVolumeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4154,34 +4525,34 @@ func awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response *smithyhtt 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_deserializeErrorNotServiceResourceError(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorUpdateVolume(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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.NotServiceResourceError{} - err := awsAwsjson11_deserializeDocumentNotServiceResourceError(&output, shape) - + code, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4193,10 +4564,40 @@ func awsAwsjson11_deserializeErrorNotServiceResourceError(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response *smithyhttp.Response, errorBody *bytes.Reader) error { + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequest", errorCode): + return awsAwsjson11_deserializeErrorBadRequest(response, errorBody) + + case strings.EqualFold("IncompatibleParameterError", errorCode): + return awsAwsjson11_deserializeErrorIncompatibleParameterError(response, errorBody) + + case strings.EqualFold("InternalServerError", errorCode): + return awsAwsjson11_deserializeErrorInternalServerError(response, errorBody) + + case strings.EqualFold("MissingVolumeConfiguration", errorCode): + return awsAwsjson11_deserializeErrorMissingVolumeConfiguration(response, errorBody) + + case strings.EqualFold("VolumeNotFound", errorCode): + return awsAwsjson11_deserializeErrorVolumeNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson11_deserializeErrorActiveDirectoryError(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -4214,8 +4615,8 @@ func awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response *smithy return err } - output := &types.ResourceDoesNotSupportTagging{} - err := awsAwsjson11_deserializeDocumentResourceDoesNotSupportTagging(&output, shape) + output := &types.ActiveDirectoryError{} + err := awsAwsjson11_deserializeDocumentActiveDirectoryError(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -4231,7 +4632,7 @@ func awsAwsjson11_deserializeErrorResourceDoesNotSupportTagging(response *smithy return output } -func awsAwsjson11_deserializeErrorResourceNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorBackupBeingCopied(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -4249,8 +4650,8 @@ func awsAwsjson11_deserializeErrorResourceNotFound(response *smithyhttp.Response return err } - output := &types.ResourceNotFound{} - err := awsAwsjson11_deserializeDocumentResourceNotFound(&output, shape) + output := &types.BackupBeingCopied{} + err := awsAwsjson11_deserializeDocumentBackupBeingCopied(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -4266,7 +4667,7 @@ func awsAwsjson11_deserializeErrorResourceNotFound(response *smithyhttp.Response return output } -func awsAwsjson11_deserializeErrorServiceLimitExceeded(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorBackupInProgress(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -4284,8 +4685,8 @@ func awsAwsjson11_deserializeErrorServiceLimitExceeded(response *smithyhttp.Resp return err } - output := &types.ServiceLimitExceeded{} - err := awsAwsjson11_deserializeDocumentServiceLimitExceeded(&output, shape) + output := &types.BackupInProgress{} + err := awsAwsjson11_deserializeDocumentBackupInProgress(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -4301,7 +4702,7 @@ func awsAwsjson11_deserializeErrorServiceLimitExceeded(response *smithyhttp.Resp return output } -func awsAwsjson11_deserializeErrorSourceBackupUnavailable(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorBackupNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -4319,8 +4720,8 @@ func awsAwsjson11_deserializeErrorSourceBackupUnavailable(response *smithyhttp.R return err } - output := &types.SourceBackupUnavailable{} - err := awsAwsjson11_deserializeDocumentSourceBackupUnavailable(&output, shape) + output := &types.BackupNotFound{} + err := awsAwsjson11_deserializeDocumentBackupNotFound(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -4336,7 +4737,7 @@ func awsAwsjson11_deserializeErrorSourceBackupUnavailable(response *smithyhttp.R return output } -func awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorBackupRestoring(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -4354,8 +4755,8 @@ func awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response *smithy return err } - output := &types.StorageVirtualMachineNotFound{} - err := awsAwsjson11_deserializeDocumentStorageVirtualMachineNotFound(&output, shape) + output := &types.BackupRestoring{} + err := awsAwsjson11_deserializeDocumentBackupRestoring(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -4371,7 +4772,182 @@ func awsAwsjson11_deserializeErrorStorageVirtualMachineNotFound(response *smithy return output } -func awsAwsjson11_deserializeErrorUnsupportedOperation(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeErrorBadRequest(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.BadRequest{} + err := awsAwsjson11_deserializeDocumentBadRequest(&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_deserializeErrorDataRepositoryAssociationNotFound(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.DataRepositoryAssociationNotFound{} + err := awsAwsjson11_deserializeDocumentDataRepositoryAssociationNotFound(&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_deserializeErrorDataRepositoryTaskEnded(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.DataRepositoryTaskEnded{} + err := awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(&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_deserializeErrorDataRepositoryTaskExecuting(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.DataRepositoryTaskExecuting{} + err := awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(&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_deserializeErrorDataRepositoryTaskNotFound(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.DataRepositoryTaskNotFound{} + err := awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(&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_deserializeErrorFileSystemNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -4389,59 +4965,1572 @@ func awsAwsjson11_deserializeErrorUnsupportedOperation(response *smithyhttp.Resp return err } - output := &types.UnsupportedOperation{} - err := awsAwsjson11_deserializeDocumentUnsupportedOperation(&output, shape) + output := &types.FileSystemNotFound{} + err := awsAwsjson11_deserializeDocumentFileSystemNotFound(&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_deserializeErrorIncompatibleParameterError(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.IncompatibleParameterError{} + err := awsAwsjson11_deserializeDocumentIncompatibleParameterError(&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_deserializeErrorIncompatibleRegionForMultiAZ(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.IncompatibleRegionForMultiAZ{} + err := awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(&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_deserializeErrorInternalServerError(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.InternalServerError{} + err := awsAwsjson11_deserializeDocumentInternalServerError(&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_deserializeErrorInvalidDataRepositoryType(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.InvalidDataRepositoryType{} + err := awsAwsjson11_deserializeDocumentInvalidDataRepositoryType(&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_deserializeErrorInvalidDestinationKmsKey(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.InvalidDestinationKmsKey{} + err := awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(&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_deserializeErrorInvalidExportPath(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.InvalidExportPath{} + err := awsAwsjson11_deserializeDocumentInvalidExportPath(&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_deserializeErrorInvalidImportPath(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.InvalidImportPath{} + err := awsAwsjson11_deserializeDocumentInvalidImportPath(&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_deserializeErrorInvalidNetworkSettings(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.InvalidNetworkSettings{} + err := awsAwsjson11_deserializeDocumentInvalidNetworkSettings(&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_deserializeErrorInvalidPerUnitStorageThroughput(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.InvalidPerUnitStorageThroughput{} + err := awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(&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_deserializeErrorInvalidRegion(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.InvalidRegion{} + err := awsAwsjson11_deserializeDocumentInvalidRegion(&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_deserializeErrorInvalidSourceKmsKey(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.InvalidSourceKmsKey{} + err := awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(&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_deserializeErrorMissingFileSystemConfiguration(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.MissingFileSystemConfiguration{} + err := awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(&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_deserializeErrorMissingVolumeConfiguration(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.MissingVolumeConfiguration{} + err := awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(&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_deserializeErrorNotServiceResourceError(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.NotServiceResourceError{} + err := awsAwsjson11_deserializeDocumentNotServiceResourceError(&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_deserializeErrorResourceDoesNotSupportTagging(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.ResourceDoesNotSupportTagging{} + err := awsAwsjson11_deserializeDocumentResourceDoesNotSupportTagging(&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_deserializeErrorResourceNotFound(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.ResourceNotFound{} + err := awsAwsjson11_deserializeDocumentResourceNotFound(&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_deserializeErrorServiceLimitExceeded(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.ServiceLimitExceeded{} + err := awsAwsjson11_deserializeDocumentServiceLimitExceeded(&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_deserializeErrorSnapshotNotFound(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.SnapshotNotFound{} + err := awsAwsjson11_deserializeDocumentSnapshotNotFound(&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_deserializeErrorSourceBackupUnavailable(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.SourceBackupUnavailable{} + err := awsAwsjson11_deserializeDocumentSourceBackupUnavailable(&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_deserializeErrorStorageVirtualMachineNotFound(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.StorageVirtualMachineNotFound{} + err := awsAwsjson11_deserializeDocumentStorageVirtualMachineNotFound(&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_deserializeErrorUnsupportedOperation(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.UnsupportedOperation{} + err := awsAwsjson11_deserializeDocumentUnsupportedOperation(&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_deserializeErrorVolumeNotFound(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.VolumeNotFound{} + err := awsAwsjson11_deserializeDocumentVolumeNotFound(&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_deserializeDocumentActiveDirectoryBackupAttributes(v **types.ActiveDirectoryBackupAttributes, 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.ActiveDirectoryBackupAttributes + if *v == nil { + sv = &types.ActiveDirectoryBackupAttributes{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ActiveDirectoryId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) + } + sv.ActiveDirectoryId = ptr.String(jtv) + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ActiveDirectoryFullyQualifiedName to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "ResourceARN": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) + } + sv.ResourceARN = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirectoryError, 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.ActiveDirectoryError + if *v == nil { + sv = &types.ActiveDirectoryError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ActiveDirectoryId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) + } + sv.ActiveDirectoryId = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ActiveDirectoryErrorType to be of type string, got %T instead", value) + } + sv.Type = types.ActiveDirectoryErrorType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAdministrativeAction(v **types.AdministrativeAction, 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.AdministrativeAction + if *v == nil { + sv = &types.AdministrativeAction{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AdministrativeActionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AdministrativeActionType to be of type string, got %T instead", value) + } + sv.AdministrativeActionType = types.AdministrativeActionType(jtv) + } + + case "FailureDetails": + if err := awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(&sv.FailureDetails, value); err != nil { + return err + } + + case "ProgressPercent": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ProgressPercent to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ProgressPercent = ptr.Int32(int32(i64)) + } + + case "RequestTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.RequestTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected RequestTime to be a JSON Number, got %T instead", value) + + } + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) + } + + case "TargetFileSystemValues": + if err := awsAwsjson11_deserializeDocumentFileSystem(&sv.TargetFileSystemValues, value); err != nil { + return err + } + + case "TargetSnapshotValues": + if err := awsAwsjson11_deserializeDocumentSnapshot(&sv.TargetSnapshotValues, value); err != nil { + return err + } + + case "TargetVolumeValues": + if err := awsAwsjson11_deserializeDocumentVolume(&sv.TargetVolumeValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(v **types.AdministrativeActionFailureDetails, 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.AdministrativeActionFailureDetails + if *v == nil { + sv = &types.AdministrativeActionFailureDetails{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]types.AdministrativeAction, 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.AdministrativeAction + if *v == nil { + cv = []types.AdministrativeAction{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AdministrativeAction + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAdministrativeAction(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, 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.Alias + if *v == nil { + sv = &types.Alias{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AliasLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.AliasLifecycle(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AlternateDNSName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAliases(v *[]types.Alias, 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.Alias + if *v == nil { + cv = []types.Alias{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Alias + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAlias(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentAutoExportPolicy(v **types.AutoExportPolicy, 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.AutoExportPolicy + if *v == nil { + sv = &types.AutoExportPolicy{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Events": + if err := awsAwsjson11_deserializeDocumentEventTypes(&sv.Events, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAutoImportPolicy(v **types.AutoImportPolicy, 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.AutoImportPolicy + if *v == nil { + sv = &types.AutoImportPolicy{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Events": + if err := awsAwsjson11_deserializeDocumentEventTypes(&sv.Events, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, 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.Backup + if *v == nil { + sv = &types.Backup{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BackupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + } + sv.BackupId = ptr.String(jtv) + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected CreationTime to be a JSON Number, got %T instead", value) + + } + } + + case "DirectoryInformation": + if err := awsAwsjson11_deserializeDocumentActiveDirectoryBackupAttributes(&sv.DirectoryInformation, value); err != nil { + return err + } + + case "FailureDetails": + if err := awsAwsjson11_deserializeDocumentBackupFailureDetails(&sv.FailureDetails, value); err != nil { + return err + } + + case "FileSystem": + if err := awsAwsjson11_deserializeDocumentFileSystem(&sv.FileSystem, value); err != nil { + return err + } + + case "KmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) + } + sv.KmsKeyId = ptr.String(jtv) + } + + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.BackupLifecycle(jtv) + } + + case "OwnerId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) + } + sv.OwnerId = ptr.String(jtv) + } + + case "ProgressPercent": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ProgressPercent to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ProgressPercent = ptr.Int32(int32(i64)) + } + + case "ResourceARN": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) + } + sv.ResourceARN = ptr.String(jtv) + } + + case "ResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = types.ResourceType(jtv) + } + + case "SourceBackupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + } + sv.SourceBackupId = ptr.String(jtv) + } + + case "SourceBackupRegion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Region to be of type string, got %T instead", value) + } + sv.SourceBackupRegion = ptr.String(jtv) + } + + case "Tags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupType to be of type string, got %T instead", value) + } + sv.Type = types.BackupType(jtv) + } + + case "Volume": + if err := awsAwsjson11_deserializeDocumentVolume(&sv.Volume, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBackupBeingCopied(v **types.BackupBeingCopied, 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.BackupBeingCopied + if *v == nil { + sv = &types.BackupBeingCopied{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BackupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + } + sv.BackupId = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBackupFailureDetails(v **types.BackupFailureDetails, 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.BackupFailureDetails + if *v == nil { + sv = &types.BackupFailureDetails{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress, 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.BackupInProgress + if *v == nil { + sv = &types.BackupInProgress{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + 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_deserializeErrorVolumeNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, 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.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - output := &types.VolumeNotFound{} - err := awsAwsjson11_deserializeDocumentVolumeNotFound(&output, shape) + var sv *types.BackupNotFound + if *v == nil { + sv = &types.BackupNotFound{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + 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_deserializeDocumentActiveDirectoryBackupAttributes(v **types.ActiveDirectoryBackupAttributes, value interface{}) error { +func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4454,40 +6543,105 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryBackupAttributes(v **types.A return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ActiveDirectoryBackupAttributes + var sv *types.BackupRestoring if *v == nil { - sv = &types.ActiveDirectoryBackupAttributes{} + sv = &types.BackupRestoring{} } else { sv = *v } for key, value := range shape { switch key { - case "ActiveDirectoryId": + case "FileSystemId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) + return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.ActiveDirectoryId = ptr.String(jtv) + sv.FileSystemId = ptr.String(jtv) } - case "DomainName": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ActiveDirectoryFullyQualifiedName to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.DomainName = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "ResourceARN": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, 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.Backup + if *v == nil { + cv = []types.Backup{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Backup + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBackup(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, 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.BadRequest + if *v == nil { + sv = &types.BadRequest{} + } 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 ResourceARN to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.ResourceARN = ptr.String(jtv) + sv.Message = ptr.String(jtv) } default: @@ -4499,7 +6653,7 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryBackupAttributes(v **types.A return nil } -func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirectoryError, value interface{}) error { +func awsAwsjson11_deserializeDocumentCompletionReport(v **types.CompletionReport, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4512,40 +6666,49 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirect return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ActiveDirectoryError + var sv *types.CompletionReport if *v == nil { - sv = &types.ActiveDirectoryError{} + sv = &types.CompletionReport{} } else { sv = *v } for key, value := range shape { switch key { - case "ActiveDirectoryId": + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) + } + sv.Enabled = ptr.Bool(jtv) + } + + case "Format": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DirectoryId to be of type string, got %T instead", value) + return fmt.Errorf("expected ReportFormat to be of type string, got %T instead", value) } - sv.ActiveDirectoryId = ptr.String(jtv) + sv.Format = types.ReportFormat(jtv) } - case "Message": + case "Path": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Path = ptr.String(jtv) } - case "Type": + case "Scope": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ActiveDirectoryErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected ReportScope to be of type string, got %T instead", value) } - sv.Type = types.ActiveDirectoryErrorType(jtv) + sv.Scope = types.ReportScope(jtv) } default: @@ -4557,7 +6720,7 @@ func awsAwsjson11_deserializeDocumentActiveDirectoryError(v **types.ActiveDirect return nil } -func awsAwsjson11_deserializeDocumentAdministrativeAction(v **types.AdministrativeAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryAssociation(v **types.DataRepositoryAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4570,74 +6733,119 @@ func awsAwsjson11_deserializeDocumentAdministrativeAction(v **types.Administrati return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AdministrativeAction + var sv *types.DataRepositoryAssociation if *v == nil { - sv = &types.AdministrativeAction{} + sv = &types.DataRepositoryAssociation{} } else { sv = *v } for key, value := range shape { switch key { - case "AdministrativeActionType": + case "AssociationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataRepositoryAssociationId to be of type string, got %T instead", value) + } + sv.AssociationId = ptr.String(jtv) + } + + case "BatchImportMetaDataOnCreate": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected BatchImportMetaDataOnCreate to be of type *bool, got %T instead", value) + } + sv.BatchImportMetaDataOnCreate = ptr.Bool(jtv) + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected CreationTime to be a JSON Number, got %T instead", value) + + } + } + + case "DataRepositoryPath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) + } + sv.DataRepositoryPath = ptr.String(jtv) + } + + case "FailureDetails": + if err := awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(&sv.FailureDetails, value); err != nil { + return err + } + + case "FileSystemId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) + } + sv.FileSystemId = ptr.String(jtv) + } + + case "FileSystemPath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AdministrativeActionType to be of type string, got %T instead", value) + return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.AdministrativeActionType = types.AdministrativeActionType(jtv) - } - - case "FailureDetails": - if err := awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(&sv.FailureDetails, value); err != nil { - return err + sv.FileSystemPath = ptr.String(jtv) } - case "ProgressPercent": + case "ImportedFileChunkSize": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ProgressPercent to be json.Number, got %T instead", value) + return fmt.Errorf("expected Megabytes to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.ProgressPercent = ptr.Int32(int32(i64)) + sv.ImportedFileChunkSize = ptr.Int32(int32(i64)) } - case "RequestTime": + case "Lifecycle": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.RequestTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected RequestTime to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataRepositoryLifecycle to be of type string, got %T instead", value) } + sv.Lifecycle = types.DataRepositoryLifecycle(jtv) } - case "Status": + case "ResourceARN": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) + sv.ResourceARN = ptr.String(jtv) } - case "TargetFileSystemValues": - if err := awsAwsjson11_deserializeDocumentFileSystem(&sv.TargetFileSystemValues, value); err != nil { + case "S3": + if err := awsAwsjson11_deserializeDocumentS3DataRepositoryConfiguration(&sv.S3, value); err != nil { return err } - case "TargetVolumeValues": - if err := awsAwsjson11_deserializeDocumentVolume(&sv.TargetVolumeValues, value); err != nil { + case "Tags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.Tags, value); err != nil { return err } @@ -4650,7 +6858,7 @@ func awsAwsjson11_deserializeDocumentAdministrativeAction(v **types.Administrati return nil } -func awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(v **types.AdministrativeActionFailureDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryAssociationNotFound(v **types.DataRepositoryAssociationNotFound, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4663,9 +6871,9 @@ func awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AdministrativeActionFailureDetails + var sv *types.DataRepositoryAssociationNotFound if *v == nil { - sv = &types.AdministrativeActionFailureDetails{} + sv = &types.DataRepositoryAssociationNotFound{} } else { sv = *v } @@ -4690,7 +6898,7 @@ func awsAwsjson11_deserializeDocumentAdministrativeActionFailureDetails(v **type return nil } -func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]types.AdministrativeAction, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryAssociations(v *[]types.DataRepositoryAssociation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4703,17 +6911,17 @@ func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]types.Administra return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AdministrativeAction + var cv []types.DataRepositoryAssociation if *v == nil { - cv = []types.AdministrativeAction{} + cv = []types.DataRepositoryAssociation{} } else { cv = *v } for _, value := range shape { - var col types.AdministrativeAction + var col types.DataRepositoryAssociation destAddr := &col - if err := awsAwsjson11_deserializeDocumentAdministrativeAction(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentDataRepositoryAssociation(&destAddr, value); err != nil { return err } col = *destAddr @@ -4724,7 +6932,7 @@ func awsAwsjson11_deserializeDocumentAdministrativeActions(v *[]types.Administra return nil } -func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(v **types.DataRepositoryConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4737,31 +6945,67 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Alias + var sv *types.DataRepositoryConfiguration if *v == nil { - sv = &types.Alias{} + sv = &types.DataRepositoryConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Lifecycle": + case "AutoImportPolicy": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AliasLifecycle to be of type string, got %T instead", value) + return fmt.Errorf("expected AutoImportPolicyType to be of type string, got %T instead", value) } - sv.Lifecycle = types.AliasLifecycle(jtv) + sv.AutoImportPolicy = types.AutoImportPolicyType(jtv) } - case "Name": + case "ExportPath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AlternateDNSName to be of type string, got %T instead", value) + return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ExportPath = ptr.String(jtv) + } + + case "FailureDetails": + if err := awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(&sv.FailureDetails, value); err != nil { + return err + } + + case "ImportedFileChunkSize": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Megabytes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ImportedFileChunkSize = ptr.Int32(int32(i64)) + } + + case "ImportPath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) + } + sv.ImportPath = ptr.String(jtv) + } + + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataRepositoryLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.DataRepositoryLifecycle(jtv) } default: @@ -4773,7 +7017,7 @@ func awsAwsjson11_deserializeDocumentAlias(v **types.Alias, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentAliases(v *[]types.Alias, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(v **types.DataRepositoryFailureDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4781,33 +7025,39 @@ func awsAwsjson11_deserializeDocumentAliases(v *[]types.Alias, value interface{} 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.Alias + var sv *types.DataRepositoryFailureDetails if *v == nil { - cv = []types.Alias{} + sv = &types.DataRepositoryFailureDetails{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Alias - destAddr := &col - if err := awsAwsjson11_deserializeDocumentAlias(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepositoryTask, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4820,24 +7070,15 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Backup + var sv *types.DataRepositoryTask if *v == nil { - sv = &types.Backup{} + sv = &types.DataRepositoryTask{} } else { sv = *v } for key, value := range shape { switch key { - case "BackupId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) - } - sv.BackupId = ptr.String(jtv) - } - case "CreationTime": if value != nil { switch jtv := value.(type) { @@ -4854,59 +7095,53 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) } } - case "DirectoryInformation": - if err := awsAwsjson11_deserializeDocumentActiveDirectoryBackupAttributes(&sv.DirectoryInformation, value); err != nil { - return err - } + case "EndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "FailureDetails": - if err := awsAwsjson11_deserializeDocumentBackupFailureDetails(&sv.FailureDetails, value); err != nil { - return err + default: + return fmt.Errorf("expected EndTime to be a JSON Number, got %T instead", value) + + } } - case "FileSystem": - if err := awsAwsjson11_deserializeDocumentFileSystem(&sv.FileSystem, value); err != nil { + case "FailureDetails": + if err := awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(&sv.FailureDetails, value); err != nil { return err } - case "KmsKeyId": + case "FileSystemId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) + return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) } - sv.KmsKeyId = ptr.String(jtv) + sv.FileSystemId = ptr.String(jtv) } case "Lifecycle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BackupLifecycle to be of type string, got %T instead", value) + return fmt.Errorf("expected DataRepositoryTaskLifecycle to be of type string, got %T instead", value) } - sv.Lifecycle = types.BackupLifecycle(jtv) + sv.Lifecycle = types.DataRepositoryTaskLifecycle(jtv) } - case "OwnerId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) - } - sv.OwnerId = ptr.String(jtv) + case "Paths": + if err := awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(&sv.Paths, value); err != nil { + return err } - case "ProgressPercent": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected ProgressPercent to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ProgressPercent = ptr.Int32(int32(i64)) + case "Report": + if err := awsAwsjson11_deserializeDocumentCompletionReport(&sv.Report, value); err != nil { + return err } case "ResourceARN": @@ -4918,31 +7153,25 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) sv.ResourceARN = ptr.String(jtv) } - case "ResourceType": + case "StartTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) - } - sv.ResourceType = types.ResourceType(jtv) - } + 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 StartTime to be a JSON Number, got %T instead", value) - case "SourceBackupId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.SourceBackupId = ptr.String(jtv) } - case "SourceBackupRegion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Region to be of type string, got %T instead", value) - } - sv.SourceBackupRegion = ptr.String(jtv) + case "Status": + if err := awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(&sv.Status, value); err != nil { + return err } case "Tags": @@ -4950,18 +7179,22 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) return err } + case "TaskId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) + } + sv.TaskId = ptr.String(jtv) + } + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BackupType to be of type string, got %T instead", value) + return fmt.Errorf("expected DataRepositoryTaskType to be of type string, got %T instead", value) } - sv.Type = types.BackupType(jtv) - } - - case "Volume": - if err := awsAwsjson11_deserializeDocumentVolume(&sv.Volume, value); err != nil { - return err + sv.Type = types.DataRepositoryTaskType(jtv) } default: @@ -4973,7 +7206,7 @@ func awsAwsjson11_deserializeDocumentBackup(v **types.Backup, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentBackupBeingCopied(v **types.BackupBeingCopied, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepositoryTaskEnded, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4986,24 +7219,15 @@ func awsAwsjson11_deserializeDocumentBackupBeingCopied(v **types.BackupBeingCopi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BackupBeingCopied + var sv *types.DataRepositoryTaskEnded if *v == nil { - sv = &types.BackupBeingCopied{} + sv = &types.DataRepositoryTaskEnded{} } else { sv = *v } for key, value := range shape { switch key { - case "BackupId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) - } - sv.BackupId = ptr.String(jtv) - } - case "Message": if value != nil { jtv, ok := value.(string) @@ -5022,7 +7246,7 @@ func awsAwsjson11_deserializeDocumentBackupBeingCopied(v **types.BackupBeingCopi return nil } -func awsAwsjson11_deserializeDocumentBackupFailureDetails(v **types.BackupFailureDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataRepositoryTaskExecuting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5035,9 +7259,9 @@ func awsAwsjson11_deserializeDocumentBackupFailureDetails(v **types.BackupFailur return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BackupFailureDetails + var sv *types.DataRepositoryTaskExecuting if *v == nil { - sv = &types.BackupFailureDetails{} + sv = &types.DataRepositoryTaskExecuting{} } else { sv = *v } @@ -5062,7 +7286,7 @@ func awsAwsjson11_deserializeDocumentBackupFailureDetails(v **types.BackupFailur return nil } -func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(v **types.DataRepositoryTaskFailureDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5075,9 +7299,9 @@ func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BackupInProgress + var sv *types.DataRepositoryTaskFailureDetails if *v == nil { - sv = &types.BackupInProgress{} + sv = &types.DataRepositoryTaskFailureDetails{} } else { sv = *v } @@ -5102,7 +7326,7 @@ func awsAwsjson11_deserializeDocumentBackupInProgress(v **types.BackupInProgress return nil } -func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRepositoryTaskNotFound, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5115,9 +7339,9 @@ func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BackupNotFound + var sv *types.DataRepositoryTaskNotFound if *v == nil { - sv = &types.BackupNotFound{} + sv = &types.DataRepositoryTaskNotFound{} } else { sv = *v } @@ -5142,7 +7366,77 @@ func awsAwsjson11_deserializeDocumentBackupNotFound(v **types.BackupNotFound, va return nil } -func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(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 DataRepositoryTaskPath to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]types.DataRepositoryTask, 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.DataRepositoryTask + if *v == nil { + cv = []types.DataRepositoryTask{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataRepositoryTask + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataRepositoryTask(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(v **types.DataRepositoryTaskStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5155,31 +7449,68 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BackupRestoring + var sv *types.DataRepositoryTaskStatus if *v == nil { - sv = &types.BackupRestoring{} + sv = &types.DataRepositoryTaskStatus{} } else { sv = *v } for key, value := range shape { switch key { - case "FileSystemId": + case "FailedCount": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) + return fmt.Errorf("expected FailedCount to be json.Number, got %T instead", value) } - sv.FileSystemId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.FailedCount = ptr.Int64(i64) } - case "Message": + case "LastUpdatedTime": if value != nil { - jtv, ok := value.(string) + 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 LastUpdatedTime to be a JSON Number, got %T instead", value) + + } + } + + case "SucceededCount": + if value != nil { + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected SucceededCount to be json.Number, got %T instead", value) } - sv.Message = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.SucceededCount = ptr.Int64(i64) + } + + case "TotalCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalCount = ptr.Int64(i64) } default: @@ -5191,7 +7522,7 @@ func awsAwsjson11_deserializeDocumentBackupRestoring(v **types.BackupRestoring, return nil } -func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeleteFileSystemLustreResponse(v **types.DeleteFileSystemLustreResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5199,33 +7530,89 @@ func awsAwsjson11_deserializeDocumentBackups(v *[]types.Backup, value interface{ 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.Backup + var sv *types.DeleteFileSystemLustreResponse if *v == nil { - cv = []types.Backup{} + sv = &types.DeleteFileSystemLustreResponse{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Backup - destAddr := &col - if err := awsAwsjson11_deserializeDocumentBackup(&destAddr, value); err != nil { - return err + for key, value := range shape { + switch key { + case "FinalBackupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + } + sv.FinalBackupId = ptr.String(jtv) + } + + case "FinalBackupTags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { + return err + } + + default: + _, _ = key, value + } - col = *destAddr - cv = append(cv, col) + } + *v = sv + return nil +} +func awsAwsjson11_deserializeDocumentDeleteFileSystemOpenZFSResponse(v **types.DeleteFileSystemOpenZFSResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) } - *v = cv + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DeleteFileSystemOpenZFSResponse + if *v == nil { + sv = &types.DeleteFileSystemOpenZFSResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FinalBackupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + } + sv.FinalBackupId = ptr.String(jtv) + } + + case "FinalBackupTags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv return nil } -func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(v **types.DeleteFileSystemWindowsResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5238,22 +7625,27 @@ func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BadRequest + var sv *types.DeleteFileSystemWindowsResponse if *v == nil { - sv = &types.BadRequest{} + sv = &types.DeleteFileSystemWindowsResponse{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "FinalBackupId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.FinalBackupId = ptr.String(jtv) + } + + case "FinalBackupTags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { + return err } default: @@ -5265,7 +7657,7 @@ func awsAwsjson11_deserializeDocumentBadRequest(v **types.BadRequest, value inte return nil } -func awsAwsjson11_deserializeDocumentCompletionReport(v **types.CompletionReport, value interface{}) error { +func awsAwsjson11_deserializeDocumentDeleteVolumeOntapResponse(v **types.DeleteVolumeOntapResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5278,49 +7670,27 @@ func awsAwsjson11_deserializeDocumentCompletionReport(v **types.CompletionReport return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CompletionReport + var sv *types.DeleteVolumeOntapResponse if *v == nil { - sv = &types.CompletionReport{} + sv = &types.DeleteVolumeOntapResponse{} } 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 Flag to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - case "Format": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReportFormat to be of type string, got %T instead", value) - } - sv.Format = types.ReportFormat(jtv) - } - - case "Path": + case "FinalBackupId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) + return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) } - sv.Path = ptr.String(jtv) + sv.FinalBackupId = ptr.String(jtv) } - case "Scope": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReportScope to be of type string, got %T instead", value) - } - sv.Scope = types.ReportScope(jtv) + case "FinalBackupTags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { + return err } default: @@ -5332,7 +7702,7 @@ func awsAwsjson11_deserializeDocumentCompletionReport(v **types.CompletionReport return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(v **types.DataRepositoryConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDiskIopsConfiguration(v **types.DiskIopsConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5345,67 +7715,35 @@ func awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(v **types.DataR return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataRepositoryConfiguration + var sv *types.DiskIopsConfiguration if *v == nil { - sv = &types.DataRepositoryConfiguration{} + sv = &types.DiskIopsConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AutoImportPolicy": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AutoImportPolicyType to be of type string, got %T instead", value) - } - sv.AutoImportPolicy = types.AutoImportPolicyType(jtv) - } - - case "ExportPath": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) - } - sv.ExportPath = ptr.String(jtv) - } - - case "FailureDetails": - if err := awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(&sv.FailureDetails, value); err != nil { - return err - } - - case "ImportedFileChunkSize": + case "Iops": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Megabytes to be json.Number, got %T instead", value) + return fmt.Errorf("expected Iops to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.ImportedFileChunkSize = ptr.Int32(int32(i64)) - } - - case "ImportPath": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ArchivePath to be of type string, got %T instead", value) - } - sv.ImportPath = ptr.String(jtv) + sv.Iops = ptr.Int64(i64) } - case "Lifecycle": + case "Mode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataRepositoryLifecycle to be of type string, got %T instead", value) + return fmt.Errorf("expected DiskIopsConfigurationMode to be of type string, got %T instead", value) } - sv.Lifecycle = types.DataRepositoryLifecycle(jtv) + sv.Mode = types.DiskIopsConfigurationMode(jtv) } default: @@ -5417,7 +7755,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(v **types.DataR return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(v **types.DataRepositoryFailureDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentDnsIps(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5425,39 +7763,71 @@ func awsAwsjson11_deserializeDocumentDataRepositoryFailureDetails(v **types.Data 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.DataRepositoryFailureDetails + var cv []string if *v == nil { - sv = &types.DataRepositoryFailureDetails{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } + col = jtv + } + cv = append(cv, col) - default: - _, _ = key, value + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentEventTypes(v *[]types.EventType, 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.EventType + if *v == nil { + cv = []types.EventType{} + } else { + cv = *v + } + for _, value := range shape { + var col types.EventType + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EventType to be of type string, got %T instead", value) + } + col = types.EventType(jtv) } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepositoryTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5470,15 +7840,20 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataRepositoryTask + var sv *types.FileSystem if *v == nil { - sv = &types.DataRepositoryTask{} + sv = &types.FileSystem{} } else { sv = *v } for key, value := range shape { switch key { + case "AdministrativeActions": + if err := awsAwsjson11_deserializeDocumentAdministrativeActions(&sv.AdministrativeActions, value); err != nil { + return err + } + case "CreationTime": if value != nil { switch jtv := value.(type) { @@ -5495,24 +7870,17 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository } } - case "EndTime": + case "DNSName": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected EndTime to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DNSName to be of type string, got %T instead", value) } + sv.DNSName = ptr.String(jtv) } case "FailureDetails": - if err := awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(&sv.FailureDetails, value); err != nil { + if err := awsAwsjson11_deserializeDocumentFileSystemFailureDetails(&sv.FailureDetails, value); err != nil { return err } @@ -5525,52 +7893,104 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository sv.FileSystemId = ptr.String(jtv) } + case "FileSystemType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemType to be of type string, got %T instead", value) + } + sv.FileSystemType = types.FileSystemType(jtv) + } + + case "FileSystemTypeVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemTypeVersion to be of type string, got %T instead", value) + } + sv.FileSystemTypeVersion = ptr.String(jtv) + } + + case "KmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) + } + sv.KmsKeyId = ptr.String(jtv) + } + case "Lifecycle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataRepositoryTaskLifecycle to be of type string, got %T instead", value) + return fmt.Errorf("expected FileSystemLifecycle to be of type string, got %T instead", value) } - sv.Lifecycle = types.DataRepositoryTaskLifecycle(jtv) + sv.Lifecycle = types.FileSystemLifecycle(jtv) } - case "Paths": - if err := awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(&sv.Paths, value); err != nil { + case "LustreConfiguration": + if err := awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(&sv.LustreConfiguration, value); err != nil { return err } - case "Report": - if err := awsAwsjson11_deserializeDocumentCompletionReport(&sv.Report, value); err != nil { + case "NetworkInterfaceIds": + if err := awsAwsjson11_deserializeDocumentNetworkInterfaceIds(&sv.NetworkInterfaceIds, value); err != nil { + return err + } + + case "OntapConfiguration": + if err := awsAwsjson11_deserializeDocumentOntapFileSystemConfiguration(&sv.OntapConfiguration, value); err != nil { + return err + } + + case "OpenZFSConfiguration": + if err := awsAwsjson11_deserializeDocumentOpenZFSFileSystemConfiguration(&sv.OpenZFSConfiguration, value); err != nil { return err } + case "OwnerId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) + } + sv.OwnerId = ptr.String(jtv) + } + case "ResourceARN": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = ptr.String(jtv) + sv.ResourceARN = ptr.String(jtv) + } + + case "StorageCapacity": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected StorageCapacity to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.StorageCapacity = ptr.Int32(int32(i64)) } - case "StartTime": + case "StorageType": 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 StartTime to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StorageType to be of type string, got %T instead", value) } + sv.StorageType = types.StorageType(jtv) } - case "Status": - if err := awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(&sv.Status, value); err != nil { + case "SubnetIds": + if err := awsAwsjson11_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil { return err } @@ -5579,22 +7999,18 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository return err } - case "TaskId": + case "VpcId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TaskId to be of type string, got %T instead", value) + return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) } - sv.TaskId = ptr.String(jtv) + sv.VpcId = ptr.String(jtv) } - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataRepositoryTaskType to be of type string, got %T instead", value) - } - sv.Type = types.DataRepositoryTaskType(jtv) + case "WindowsConfiguration": + if err := awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(&sv.WindowsConfiguration, value); err != nil { + return err } default: @@ -5606,7 +8022,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTask(v **types.DataRepository return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepositoryTaskEnded, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystemEndpoint(v **types.FileSystemEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5619,22 +8035,27 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepos return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataRepositoryTaskEnded + var sv *types.FileSystemEndpoint if *v == nil { - sv = &types.DataRepositoryTaskEnded{} + sv = &types.FileSystemEndpoint{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DNSName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected DNSName to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.DNSName = ptr.String(jtv) + } + + case "IpAddresses": + if err := awsAwsjson11_deserializeDocumentOntapEndpointIpAddresses(&sv.IpAddresses, value); err != nil { + return err } default: @@ -5646,7 +8067,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskEnded(v **types.DataRepos return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataRepositoryTaskExecuting, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystemEndpoints(v **types.FileSystemEndpoints, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5659,22 +8080,23 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataR return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataRepositoryTaskExecuting + var sv *types.FileSystemEndpoints if *v == nil { - sv = &types.DataRepositoryTaskExecuting{} + sv = &types.FileSystemEndpoints{} } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + case "Intercluster": + if err := awsAwsjson11_deserializeDocumentFileSystemEndpoint(&sv.Intercluster, value); err != nil { + return err + } + + case "Management": + if err := awsAwsjson11_deserializeDocumentFileSystemEndpoint(&sv.Management, value); err != nil { + return err } default: @@ -5686,7 +8108,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskExecuting(v **types.DataR return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(v **types.DataRepositoryTaskFailureDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystemFailureDetails(v **types.FileSystemFailureDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5699,9 +8121,9 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataRepositoryTaskFailureDetails + var sv *types.FileSystemFailureDetails if *v == nil { - sv = &types.DataRepositoryTaskFailureDetails{} + sv = &types.FileSystemFailureDetails{} } else { sv = *v } @@ -5726,7 +8148,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskFailureDetails(v **types. return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRepositoryTaskNotFound, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystemMaintenanceOperations(v *[]types.FileSystemMaintenanceOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5734,39 +8156,35 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskNotFound(v **types.DataRe 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.DataRepositoryTaskNotFound + var cv []types.FileSystemMaintenanceOperation if *v == nil { - sv = &types.DataRepositoryTaskNotFound{} + cv = []types.FileSystemMaintenanceOperation{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + for _, value := range shape { + var col types.FileSystemMaintenanceOperation + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemMaintenanceOperation to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = types.FileSystemMaintenanceOperation(jtv) } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotFound, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5774,35 +8192,39 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskPaths(v *[]string, value return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.FileSystemNotFound if *v == nil { - cv = []string{} + sv = &types.FileSystemNotFound{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataRepositoryTaskPath to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]types.DataRepositoryTask, value interface{}) error { +func awsAwsjson11_deserializeDocumentFileSystems(v *[]types.FileSystem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5815,17 +8237,17 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]types.DataReposito return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataRepositoryTask + var cv []types.FileSystem if *v == nil { - cv = []types.DataRepositoryTask{} + cv = []types.FileSystem{} } else { cv = *v } for _, value := range shape { - var col types.DataRepositoryTask + var col types.FileSystem destAddr := &col - if err := awsAwsjson11_deserializeDocumentDataRepositoryTask(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentFileSystem(&destAddr, value); err != nil { return err } col = *destAddr @@ -5836,7 +8258,7 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTasks(v *[]types.DataReposito return nil } -func awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(v **types.DataRepositoryTaskStatus, value interface{}) error { +func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.IncompatibleParameterError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5849,113 +8271,31 @@ func awsAwsjson11_deserializeDocumentDataRepositoryTaskStatus(v **types.DataRepo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataRepositoryTaskStatus + var sv *types.IncompatibleParameterError if *v == nil { - sv = &types.DataRepositoryTaskStatus{} + sv = &types.IncompatibleParameterError{} } else { sv = *v } for key, value := range shape { switch key { - case "FailedCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected FailedCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.FailedCount = ptr.Int64(i64) - } - - 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 LastUpdatedTime to be a JSON Number, got %T instead", value) - - } - } - - case "SucceededCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected SucceededCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.SucceededCount = ptr.Int64(i64) - } - - case "TotalCount": + case "Message": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TotalCount to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.TotalCount = ptr.Int64(i64) + sv.Message = ptr.String(jtv) } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentDeleteFileSystemLustreResponse(v **types.DeleteFileSystemLustreResponse, 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.DeleteFileSystemLustreResponse - if *v == nil { - sv = &types.DeleteFileSystemLustreResponse{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "FinalBackupId": + + case "Parameter": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + return fmt.Errorf("expected Parameter to be of type string, got %T instead", value) } - sv.FinalBackupId = ptr.String(jtv) - } - - case "FinalBackupTags": - if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { - return err + sv.Parameter = ptr.String(jtv) } default: @@ -5967,7 +8307,7 @@ func awsAwsjson11_deserializeDocumentDeleteFileSystemLustreResponse(v **types.De return nil } -func awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(v **types.DeleteFileSystemWindowsResponse, value interface{}) error { +func awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(v **types.IncompatibleRegionForMultiAZ, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5980,27 +8320,22 @@ func awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(v **types.D return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DeleteFileSystemWindowsResponse + var sv *types.IncompatibleRegionForMultiAZ if *v == nil { - sv = &types.DeleteFileSystemWindowsResponse{} + sv = &types.IncompatibleRegionForMultiAZ{} } else { sv = *v } for key, value := range shape { switch key { - case "FinalBackupId": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.FinalBackupId = ptr.String(jtv) - } - - case "FinalBackupTags": - if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { - return err + sv.Message = ptr.String(jtv) } default: @@ -6012,7 +8347,7 @@ func awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(v **types.D return nil } -func awsAwsjson11_deserializeDocumentDeleteVolumeOntapResponse(v **types.DeleteVolumeOntapResponse, value interface{}) error { +func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServerError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6025,27 +8360,22 @@ func awsAwsjson11_deserializeDocumentDeleteVolumeOntapResponse(v **types.DeleteV return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DeleteVolumeOntapResponse + var sv *types.InternalServerError if *v == nil { - sv = &types.DeleteVolumeOntapResponse{} + sv = &types.InternalServerError{} } else { sv = *v } for key, value := range shape { switch key { - case "FinalBackupId": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BackupId to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.FinalBackupId = ptr.String(jtv) - } - - case "FinalBackupTags": - if err := awsAwsjson11_deserializeDocumentTags(&sv.FinalBackupTags, value); err != nil { - return err + sv.Message = ptr.String(jtv) } default: @@ -6057,7 +8387,7 @@ func awsAwsjson11_deserializeDocumentDeleteVolumeOntapResponse(v **types.DeleteV return nil } -func awsAwsjson11_deserializeDocumentDiskIopsConfiguration(v **types.DiskIopsConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidDataRepositoryType(v **types.InvalidDataRepositoryType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6070,35 +8400,22 @@ func awsAwsjson11_deserializeDocumentDiskIopsConfiguration(v **types.DiskIopsCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DiskIopsConfiguration + var sv *types.InvalidDataRepositoryType if *v == nil { - sv = &types.DiskIopsConfiguration{} + sv = &types.InvalidDataRepositoryType{} } else { sv = *v } for key, value := range shape { switch key { - case "Iops": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Iops to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Iops = ptr.Int64(i64) - } - - case "Mode": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DiskIopsConfigurationMode to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Mode = types.DiskIopsConfigurationMode(jtv) + sv.Message = ptr.String(jtv) } default: @@ -6110,7 +8427,7 @@ func awsAwsjson11_deserializeDocumentDiskIopsConfiguration(v **types.DiskIopsCon return nil } -func awsAwsjson11_deserializeDocumentDnsIps(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(v **types.InvalidDestinationKmsKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6118,35 +8435,39 @@ func awsAwsjson11_deserializeDocumentDnsIps(v *[]string, value interface{}) erro return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.InvalidDestinationKmsKey if *v == nil { - cv = []string{} + sv = &types.InvalidDestinationKmsKey{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPath, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6159,172 +8480,62 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FileSystem + var sv *types.InvalidExportPath if *v == nil { - sv = &types.FileSystem{} + sv = &types.InvalidExportPath{} } else { sv = *v } for key, value := range shape { switch key { - case "AdministrativeActions": - if err := awsAwsjson11_deserializeDocumentAdministrativeActions(&sv.AdministrativeActions, value); err != nil { - return err - } - - case "CreationTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected CreationTime to be a JSON Number, got %T instead", value) - - } - } - - case "DNSName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DNSName to be of type string, got %T instead", value) - } - sv.DNSName = ptr.String(jtv) - } - - case "FailureDetails": - if err := awsAwsjson11_deserializeDocumentFileSystemFailureDetails(&sv.FailureDetails, value); err != nil { - return err - } - - case "FileSystemId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) - } - sv.FileSystemId = ptr.String(jtv) - } - - case "FileSystemType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FileSystemType to be of type string, got %T instead", value) - } - sv.FileSystemType = types.FileSystemType(jtv) - } - - case "FileSystemTypeVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FileSystemTypeVersion to be of type string, got %T instead", value) - } - sv.FileSystemTypeVersion = ptr.String(jtv) - } - - case "KmsKeyId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) - } - sv.KmsKeyId = ptr.String(jtv) - } - - case "Lifecycle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FileSystemLifecycle to be of type string, got %T instead", value) - } - sv.Lifecycle = types.FileSystemLifecycle(jtv) - } - - case "LustreConfiguration": - if err := awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(&sv.LustreConfiguration, value); err != nil { - return err - } - - case "NetworkInterfaceIds": - if err := awsAwsjson11_deserializeDocumentNetworkInterfaceIds(&sv.NetworkInterfaceIds, value); err != nil { - return err - } - - case "OntapConfiguration": - if err := awsAwsjson11_deserializeDocumentOntapFileSystemConfiguration(&sv.OntapConfiguration, value); err != nil { - return err - } - - case "OwnerId": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.OwnerId = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "ResourceARN": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) - } - sv.ResourceARN = ptr.String(jtv) - } + default: + _, _ = key, value - case "StorageCapacity": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected StorageCapacity to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.StorageCapacity = ptr.Int32(int32(i64)) - } + } + } + *v = sv + return nil +} - case "StorageType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected StorageType to be of type string, got %T instead", value) - } - sv.StorageType = types.StorageType(jtv) - } +func awsAwsjson11_deserializeDocumentInvalidImportPath(v **types.InvalidImportPath, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "SubnetIds": - if err := awsAwsjson11_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil { - return err - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "Tags": - if err := awsAwsjson11_deserializeDocumentTags(&sv.Tags, value); err != nil { - return err - } + var sv *types.InvalidImportPath + if *v == nil { + sv = &types.InvalidImportPath{} + } else { + sv = *v + } - case "VpcId": + for key, value := range shape { + switch key { + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.VpcId = ptr.String(jtv) - } - - case "WindowsConfiguration": - if err := awsAwsjson11_deserializeDocumentWindowsFileSystemConfiguration(&sv.WindowsConfiguration, value); err != nil { - return err + sv.Message = ptr.String(jtv) } default: @@ -6336,7 +8547,7 @@ func awsAwsjson11_deserializeDocumentFileSystem(v **types.FileSystem, value inte return nil } -func awsAwsjson11_deserializeDocumentFileSystemEndpoint(v **types.FileSystemEndpoint, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNetworkSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6349,27 +8560,49 @@ func awsAwsjson11_deserializeDocumentFileSystemEndpoint(v **types.FileSystemEndp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FileSystemEndpoint + var sv *types.InvalidNetworkSettings if *v == nil { - sv = &types.FileSystemEndpoint{} + sv = &types.InvalidNetworkSettings{} } else { sv = *v } for key, value := range shape { switch key { - case "DNSName": + case "InvalidRouteTableId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DNSName to be of type string, got %T instead", value) + return fmt.Errorf("expected RouteTableId to be of type string, got %T instead", value) } - sv.DNSName = ptr.String(jtv) + sv.InvalidRouteTableId = ptr.String(jtv) } - case "IpAddresses": - if err := awsAwsjson11_deserializeDocumentOntapEndpointIpAddresses(&sv.IpAddresses, value); err != nil { - return err + case "InvalidSecurityGroupId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) + } + sv.InvalidSecurityGroupId = ptr.String(jtv) + } + + case "InvalidSubnetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) + } + sv.InvalidSubnetId = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -6381,7 +8614,7 @@ func awsAwsjson11_deserializeDocumentFileSystemEndpoint(v **types.FileSystemEndp return nil } -func awsAwsjson11_deserializeDocumentFileSystemEndpoints(v **types.FileSystemEndpoints, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(v **types.InvalidPerUnitStorageThroughput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6394,23 +8627,22 @@ func awsAwsjson11_deserializeDocumentFileSystemEndpoints(v **types.FileSystemEnd return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FileSystemEndpoints + var sv *types.InvalidPerUnitStorageThroughput if *v == nil { - sv = &types.FileSystemEndpoints{} + sv = &types.InvalidPerUnitStorageThroughput{} } else { sv = *v } for key, value := range shape { switch key { - case "Intercluster": - if err := awsAwsjson11_deserializeDocumentFileSystemEndpoint(&sv.Intercluster, value); err != nil { - return err - } - - case "Management": - if err := awsAwsjson11_deserializeDocumentFileSystemEndpoint(&sv.Management, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -6422,7 +8654,7 @@ func awsAwsjson11_deserializeDocumentFileSystemEndpoints(v **types.FileSystemEnd return nil } -func awsAwsjson11_deserializeDocumentFileSystemFailureDetails(v **types.FileSystemFailureDetails, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidRegion(v **types.InvalidRegion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6435,9 +8667,9 @@ func awsAwsjson11_deserializeDocumentFileSystemFailureDetails(v **types.FileSyst return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FileSystemFailureDetails + var sv *types.InvalidRegion if *v == nil { - sv = &types.FileSystemFailureDetails{} + sv = &types.InvalidRegion{} } else { sv = *v } @@ -6462,7 +8694,7 @@ func awsAwsjson11_deserializeDocumentFileSystemFailureDetails(v **types.FileSyst return nil } -func awsAwsjson11_deserializeDocumentFileSystemMaintenanceOperations(v *[]types.FileSystemMaintenanceOperation, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(v **types.InvalidSourceKmsKey, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6470,35 +8702,39 @@ func awsAwsjson11_deserializeDocumentFileSystemMaintenanceOperations(v *[]types. 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.FileSystemMaintenanceOperation + var sv *types.InvalidSourceKmsKey if *v == nil { - cv = []types.FileSystemMaintenanceOperation{} + sv = &types.InvalidSourceKmsKey{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.FileSystemMaintenanceOperation - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FileSystemMaintenanceOperation to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - col = types.FileSystemMaintenanceOperation(jtv) - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotFound, value interface{}) error { +func awsAwsjson11_deserializeDocumentLifecycleTransitionReason(v **types.LifecycleTransitionReason, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6511,9 +8747,9 @@ func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FileSystemNotFound + var sv *types.LifecycleTransitionReason if *v == nil { - sv = &types.FileSystemNotFound{} + sv = &types.LifecycleTransitionReason{} } else { sv = *v } @@ -6538,7 +8774,7 @@ func awsAwsjson11_deserializeDocumentFileSystemNotFound(v **types.FileSystemNotF return nil } -func awsAwsjson11_deserializeDocumentFileSystems(v *[]types.FileSystem, value interface{}) error { +func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.LustreFileSystemConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6546,33 +8782,129 @@ func awsAwsjson11_deserializeDocumentFileSystems(v *[]types.FileSystem, value in 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.FileSystem + var sv *types.LustreFileSystemConfiguration if *v == nil { - cv = []types.FileSystem{} + sv = &types.LustreFileSystemConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.FileSystem - destAddr := &col - if err := awsAwsjson11_deserializeDocumentFileSystem(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "AutomaticBackupRetentionDays": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected AutomaticBackupRetentionDays to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AutomaticBackupRetentionDays = ptr.Int32(int32(i64)) + } + + case "CopyTagsToBackups": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) + } + sv.CopyTagsToBackups = ptr.Bool(jtv) + } + + case "DailyAutomaticBackupStartTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) + } + sv.DailyAutomaticBackupStartTime = ptr.String(jtv) + } + + case "DataCompressionType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataCompressionType to be of type string, got %T instead", value) + } + sv.DataCompressionType = types.DataCompressionType(jtv) + } + + case "DataRepositoryConfiguration": + if err := awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(&sv.DataRepositoryConfiguration, value); err != nil { + return err + } + + case "DeploymentType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LustreDeploymentType to be of type string, got %T instead", value) + } + sv.DeploymentType = types.LustreDeploymentType(jtv) + } + + case "DriveCacheType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DriveCacheType to be of type string, got %T instead", value) + } + sv.DriveCacheType = types.DriveCacheType(jtv) + } + + case "LogConfiguration": + if err := awsAwsjson11_deserializeDocumentLustreLogConfiguration(&sv.LogConfiguration, value); err != nil { + return err + } + + case "MountName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LustreFileSystemMountName to be of type string, got %T instead", value) + } + sv.MountName = ptr.String(jtv) + } + + case "PerUnitStorageThroughput": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PerUnitStorageThroughput to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PerUnitStorageThroughput = ptr.Int32(int32(i64)) + } + + case "WeeklyMaintenanceStartTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WeeklyTime to be of type string, got %T instead", value) + } + sv.WeeklyMaintenanceStartTime = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.IncompatibleParameterError, value interface{}) error { +func awsAwsjson11_deserializeDocumentLustreLogConfiguration(v **types.LustreLogConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6585,31 +8917,31 @@ func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.Incomp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IncompatibleParameterError + var sv *types.LustreLogConfiguration if *v == nil { - sv = &types.IncompatibleParameterError{} + sv = &types.LustreLogConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Destination": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected GeneralARN to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Destination = ptr.String(jtv) } - case "Parameter": + case "Level": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Parameter to be of type string, got %T instead", value) + return fmt.Errorf("expected LustreAccessAuditLogLevel to be of type string, got %T instead", value) } - sv.Parameter = ptr.String(jtv) + sv.Level = types.LustreAccessAuditLogLevel(jtv) } default: @@ -6621,7 +8953,7 @@ func awsAwsjson11_deserializeDocumentIncompatibleParameterError(v **types.Incomp return nil } -func awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(v **types.IncompatibleRegionForMultiAZ, value interface{}) error { +func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.MissingFileSystemConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6634,9 +8966,9 @@ func awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(v **types.Inco return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IncompatibleRegionForMultiAZ + var sv *types.MissingFileSystemConfiguration if *v == nil { - sv = &types.IncompatibleRegionForMultiAZ{} + sv = &types.MissingFileSystemConfiguration{} } else { sv = *v } @@ -6661,7 +8993,7 @@ func awsAwsjson11_deserializeDocumentIncompatibleRegionForMultiAZ(v **types.Inco return nil } -func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServerError, value interface{}) error { +func awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(v **types.MissingVolumeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6674,9 +9006,9 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InternalServerError + var sv *types.MissingVolumeConfiguration if *v == nil { - sv = &types.InternalServerError{} + sv = &types.MissingVolumeConfiguration{} } else { sv = *v } @@ -6701,7 +9033,7 @@ func awsAwsjson11_deserializeDocumentInternalServerError(v **types.InternalServe return nil } -func awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(v **types.InvalidDestinationKmsKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6709,39 +9041,35 @@ func awsAwsjson11_deserializeDocumentInvalidDestinationKmsKey(v **types.InvalidD 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.InvalidDestinationKmsKey + var cv []string if *v == nil { - sv = &types.InvalidDestinationKmsKey{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPath, value interface{}) error { +func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServiceResourceError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6754,9 +9082,9 @@ func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidExportPath + var sv *types.NotServiceResourceError if *v == nil { - sv = &types.InvalidExportPath{} + sv = &types.NotServiceResourceError{} } else { sv = *v } @@ -6772,6 +9100,15 @@ func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPa sv.Message = ptr.String(jtv) } + case "ResourceARN": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) + } + sv.ResourceARN = ptr.String(jtv) + } + default: _, _ = key, value @@ -6781,7 +9118,7 @@ func awsAwsjson11_deserializeDocumentInvalidExportPath(v **types.InvalidExportPa return nil } -func awsAwsjson11_deserializeDocumentInvalidImportPath(v **types.InvalidImportPath, value interface{}) error { +func awsAwsjson11_deserializeDocumentOntapEndpointIpAddresses(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6789,39 +9126,35 @@ func awsAwsjson11_deserializeDocumentInvalidImportPath(v **types.InvalidImportPa 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.InvalidImportPath + var cv []string if *v == nil { - sv = &types.InvalidImportPath{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNetworkSettings, value interface{}) error { +func awsAwsjson11_deserializeDocumentOntapFileSystemConfiguration(v **types.OntapFileSystemConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6834,49 +9167,99 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidNetworkSettings + var sv *types.OntapFileSystemConfiguration if *v == nil { - sv = &types.InvalidNetworkSettings{} + sv = &types.OntapFileSystemConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "InvalidRouteTableId": + case "AutomaticBackupRetentionDays": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected AutomaticBackupRetentionDays to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AutomaticBackupRetentionDays = ptr.Int32(int32(i64)) + } + + case "DailyAutomaticBackupStartTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RouteTableId to be of type string, got %T instead", value) + return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) } - sv.InvalidRouteTableId = ptr.String(jtv) + sv.DailyAutomaticBackupStartTime = ptr.String(jtv) } - case "InvalidSecurityGroupId": + case "DeploymentType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) + return fmt.Errorf("expected OntapDeploymentType to be of type string, got %T instead", value) } - sv.InvalidSecurityGroupId = ptr.String(jtv) + sv.DeploymentType = types.OntapDeploymentType(jtv) } - case "InvalidSubnetId": + case "DiskIopsConfiguration": + if err := awsAwsjson11_deserializeDocumentDiskIopsConfiguration(&sv.DiskIopsConfiguration, value); err != nil { + return err + } + + case "EndpointIpAddressRange": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IpAddressRange to be of type string, got %T instead", value) + } + sv.EndpointIpAddressRange = ptr.String(jtv) + } + + case "Endpoints": + if err := awsAwsjson11_deserializeDocumentFileSystemEndpoints(&sv.Endpoints, value); err != nil { + return err + } + + case "PreferredSubnetId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.InvalidSubnetId = ptr.String(jtv) + sv.PreferredSubnetId = ptr.String(jtv) } - case "Message": + case "RouteTableIds": + if err := awsAwsjson11_deserializeDocumentRouteTableIds(&sv.RouteTableIds, value); err != nil { + return err + } + + case "ThroughputCapacity": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MegabytesPerSecond to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ThroughputCapacity = ptr.Int32(int32(i64)) + } + + case "WeeklyMaintenanceStartTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected WeeklyTime to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.WeeklyMaintenanceStartTime = ptr.String(jtv) } default: @@ -6888,7 +9271,7 @@ func awsAwsjson11_deserializeDocumentInvalidNetworkSettings(v **types.InvalidNet return nil } -func awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(v **types.InvalidPerUnitStorageThroughput, value interface{}) error { +func awsAwsjson11_deserializeDocumentOntapVolumeConfiguration(v **types.OntapVolumeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6901,62 +9284,103 @@ func awsAwsjson11_deserializeDocumentInvalidPerUnitStorageThroughput(v **types.I return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidPerUnitStorageThroughput + var sv *types.OntapVolumeConfiguration if *v == nil { - sv = &types.InvalidPerUnitStorageThroughput{} + sv = &types.OntapVolumeConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "FlexCacheEndpointType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FlexCacheEndpointType to be of type string, got %T instead", value) + } + sv.FlexCacheEndpointType = types.FlexCacheEndpointType(jtv) + } + + case "JunctionPath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JunctionPath to be of type string, got %T instead", value) + } + sv.JunctionPath = ptr.String(jtv) + } + + case "OntapVolumeType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OntapVolumeType to be of type string, got %T instead", value) + } + sv.OntapVolumeType = types.OntapVolumeType(jtv) + } + + case "SecurityStyle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecurityStyle to be of type string, got %T instead", value) + } + sv.SecurityStyle = types.SecurityStyle(jtv) + } + + case "SizeInMegabytes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VolumeCapacity to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.SizeInMegabytes = ptr.Int32(int32(i64)) + } + + case "StorageEfficiencyEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) + } + sv.StorageEfficiencyEnabled = ptr.Bool(jtv) + } + + case "StorageVirtualMachineId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected StorageVirtualMachineId to be of type string, got %T instead", value) + } + sv.StorageVirtualMachineId = ptr.String(jtv) + } + + case "StorageVirtualMachineRoot": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.StorageVirtualMachineRoot = ptr.Bool(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentInvalidRegion(v **types.InvalidRegion, 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.InvalidRegion - if *v == nil { - sv = &types.InvalidRegion{} - } else { - sv = *v - } + case "TieringPolicy": + if err := awsAwsjson11_deserializeDocumentTieringPolicy(&sv.TieringPolicy, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "Message": + case "UUID": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected UUID to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.UUID = ptr.String(jtv) } default: @@ -6968,7 +9392,7 @@ func awsAwsjson11_deserializeDocumentInvalidRegion(v **types.InvalidRegion, valu return nil } -func awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(v **types.InvalidSourceKmsKey, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSClientConfiguration(v **types.OpenZFSClientConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6981,22 +9405,27 @@ func awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(v **types.InvalidSource return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidSourceKmsKey + var sv *types.OpenZFSClientConfiguration if *v == nil { - sv = &types.InvalidSourceKmsKey{} + sv = &types.OpenZFSClientConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Clients": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected OpenZFSClients to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Clients = ptr.String(jtv) + } + + case "Options": + if err := awsAwsjson11_deserializeDocumentOpenZFSNfsExportOptions(&sv.Options, value); err != nil { + return err } default: @@ -7008,7 +9437,7 @@ func awsAwsjson11_deserializeDocumentInvalidSourceKmsKey(v **types.InvalidSource return nil } -func awsAwsjson11_deserializeDocumentLifecycleTransitionReason(v **types.LifecycleTransitionReason, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSClientConfigurations(v *[]types.OpenZFSClientConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7016,39 +9445,33 @@ func awsAwsjson11_deserializeDocumentLifecycleTransitionReason(v **types.Lifecyc 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.LifecycleTransitionReason + var cv []types.OpenZFSClientConfiguration if *v == nil { - sv = &types.LifecycleTransitionReason{} + cv = []types.OpenZFSClientConfiguration{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.OpenZFSClientConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOpenZFSClientConfiguration(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.LustreFileSystemConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSFileSystemConfiguration(v **types.OpenZFSFileSystemConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7061,9 +9484,9 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LustreFileSystemConfiguration + var sv *types.OpenZFSFileSystemConfiguration if *v == nil { - sv = &types.LustreFileSystemConfiguration{} + sv = &types.OpenZFSFileSystemConfiguration{} } else { sv = *v } @@ -7092,67 +9515,58 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus sv.CopyTagsToBackups = ptr.Bool(jtv) } - case "DailyAutomaticBackupStartTime": + case "CopyTagsToVolumes": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) + return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.DailyAutomaticBackupStartTime = ptr.String(jtv) + sv.CopyTagsToVolumes = ptr.Bool(jtv) } - case "DataCompressionType": + case "DailyAutomaticBackupStartTime": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataCompressionType to be of type string, got %T instead", value) + return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) } - sv.DataCompressionType = types.DataCompressionType(jtv) - } - - case "DataRepositoryConfiguration": - if err := awsAwsjson11_deserializeDocumentDataRepositoryConfiguration(&sv.DataRepositoryConfiguration, value); err != nil { - return err + sv.DailyAutomaticBackupStartTime = ptr.String(jtv) } case "DeploymentType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LustreDeploymentType to be of type string, got %T instead", value) + return fmt.Errorf("expected OpenZFSDeploymentType to be of type string, got %T instead", value) } - sv.DeploymentType = types.LustreDeploymentType(jtv) + sv.DeploymentType = types.OpenZFSDeploymentType(jtv) } - case "DriveCacheType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DriveCacheType to be of type string, got %T instead", value) - } - sv.DriveCacheType = types.DriveCacheType(jtv) + case "DiskIopsConfiguration": + if err := awsAwsjson11_deserializeDocumentDiskIopsConfiguration(&sv.DiskIopsConfiguration, value); err != nil { + return err } - case "MountName": + case "RootVolumeId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LustreFileSystemMountName to be of type string, got %T instead", value) + return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) } - sv.MountName = ptr.String(jtv) + sv.RootVolumeId = ptr.String(jtv) } - case "PerUnitStorageThroughput": + case "ThroughputCapacity": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected PerUnitStorageThroughput to be json.Number, got %T instead", value) + return fmt.Errorf("expected MegabytesPerSecond to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.PerUnitStorageThroughput = ptr.Int32(int32(i64)) + sv.ThroughputCapacity = ptr.Int32(int32(i64)) } case "WeeklyMaintenanceStartTime": @@ -7173,7 +9587,7 @@ func awsAwsjson11_deserializeDocumentLustreFileSystemConfiguration(v **types.Lus return nil } -func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.MissingFileSystemConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSNfsExport(v **types.OpenZFSNfsExport, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7186,22 +9600,18 @@ func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.Mi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MissingFileSystemConfiguration + var sv *types.OpenZFSNfsExport if *v == nil { - sv = &types.MissingFileSystemConfiguration{} + sv = &types.OpenZFSNfsExport{} } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + case "ClientConfigurations": + if err := awsAwsjson11_deserializeDocumentOpenZFSClientConfigurations(&sv.ClientConfigurations, value); err != nil { + return err } default: @@ -7213,7 +9623,7 @@ func awsAwsjson11_deserializeDocumentMissingFileSystemConfiguration(v **types.Mi return nil } -func awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(v **types.MissingVolumeConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSNfsExportOptions(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7221,39 +9631,35 @@ func awsAwsjson11_deserializeDocumentMissingVolumeConfiguration(v **types.Missin 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.MissingVolumeConfiguration + var cv []string if *v == nil { - sv = &types.MissingVolumeConfiguration{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OpenZFSNfsExportOption to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSNfsExports(v *[]types.OpenZFSNfsExport, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7266,22 +9672,20 @@ func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]string, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.OpenZFSNfsExport if *v == nil { - cv = []string{} + cv = []types.OpenZFSNfsExport{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) - } - col = jtv + var col types.OpenZFSNfsExport + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOpenZFSNfsExport(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -7289,7 +9693,7 @@ func awsAwsjson11_deserializeDocumentNetworkInterfaceIds(v *[]string, value inte return nil } -func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServiceResourceError, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSOriginSnapshotConfiguration(v **types.OpenZFSOriginSnapshotConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7302,31 +9706,31 @@ func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServic return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NotServiceResourceError + var sv *types.OpenZFSOriginSnapshotConfiguration if *v == nil { - sv = &types.NotServiceResourceError{} + sv = &types.OpenZFSOriginSnapshotConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "CopyStrategy": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected OpenZFSCopyStrategy to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.CopyStrategy = types.OpenZFSCopyStrategy(jtv) } - case "ResourceARN": + case "SnapshotARN": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.ResourceARN = ptr.String(jtv) + sv.SnapshotARN = ptr.String(jtv) } default: @@ -7338,7 +9742,7 @@ func awsAwsjson11_deserializeDocumentNotServiceResourceError(v **types.NotServic return nil } -func awsAwsjson11_deserializeDocumentOntapEndpointIpAddresses(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSUserAndGroupQuotas(v *[]types.OpenZFSUserOrGroupQuota, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7351,22 +9755,20 @@ func awsAwsjson11_deserializeDocumentOntapEndpointIpAddresses(v *[]string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.OpenZFSUserOrGroupQuota if *v == nil { - cv = []string{} + cv = []types.OpenZFSUserOrGroupQuota{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IpAddress to be of type string, got %T instead", value) - } - col = jtv + var col types.OpenZFSUserOrGroupQuota + destAddr := &col + if err := awsAwsjson11_deserializeDocumentOpenZFSUserOrGroupQuota(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -7374,7 +9776,7 @@ func awsAwsjson11_deserializeDocumentOntapEndpointIpAddresses(v *[]string, value return nil } -func awsAwsjson11_deserializeDocumentOntapFileSystemConfiguration(v **types.OntapFileSystemConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSUserOrGroupQuota(v **types.OpenZFSUserOrGroupQuota, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7387,99 +9789,48 @@ func awsAwsjson11_deserializeDocumentOntapFileSystemConfiguration(v **types.Onta return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.OntapFileSystemConfiguration + var sv *types.OpenZFSUserOrGroupQuota if *v == nil { - sv = &types.OntapFileSystemConfiguration{} + sv = &types.OpenZFSUserOrGroupQuota{} } else { sv = *v } for key, value := range shape { switch key { - case "AutomaticBackupRetentionDays": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected AutomaticBackupRetentionDays to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.AutomaticBackupRetentionDays = ptr.Int32(int32(i64)) - } - - case "DailyAutomaticBackupStartTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DailyTime to be of type string, got %T instead", value) - } - sv.DailyAutomaticBackupStartTime = ptr.String(jtv) - } - - case "DeploymentType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OntapDeploymentType to be of type string, got %T instead", value) - } - sv.DeploymentType = types.OntapDeploymentType(jtv) - } - - case "DiskIopsConfiguration": - if err := awsAwsjson11_deserializeDocumentDiskIopsConfiguration(&sv.DiskIopsConfiguration, value); err != nil { - return err - } - - case "EndpointIpAddressRange": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IpAddressRange to be of type string, got %T instead", value) - } - sv.EndpointIpAddressRange = ptr.String(jtv) - } - - case "Endpoints": - if err := awsAwsjson11_deserializeDocumentFileSystemEndpoints(&sv.Endpoints, value); err != nil { - return err - } - - case "PreferredSubnetId": + case "Id": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) + return fmt.Errorf("expected IntegerNoMax to be json.Number, got %T instead", value) } - sv.PreferredSubnetId = ptr.String(jtv) - } - - case "RouteTableIds": - if err := awsAwsjson11_deserializeDocumentRouteTableIds(&sv.RouteTableIds, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Id = ptr.Int32(int32(i64)) } - case "ThroughputCapacity": + case "StorageCapacityQuotaGiB": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected MegabytesPerSecond to be json.Number, got %T instead", value) + return fmt.Errorf("expected IntegerNoMax to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.ThroughputCapacity = ptr.Int32(int32(i64)) + sv.StorageCapacityQuotaGiB = ptr.Int32(int32(i64)) } - case "WeeklyMaintenanceStartTime": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WeeklyTime to be of type string, got %T instead", value) + return fmt.Errorf("expected OpenZFSQuotaType to be of type string, got %T instead", value) } - sv.WeeklyMaintenanceStartTime = ptr.String(jtv) + sv.Type = types.OpenZFSQuotaType(jtv) } default: @@ -7491,7 +9842,7 @@ func awsAwsjson11_deserializeDocumentOntapFileSystemConfiguration(v **types.Onta return nil } -func awsAwsjson11_deserializeDocumentOntapVolumeConfiguration(v **types.OntapVolumeConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentOpenZFSVolumeConfiguration(v **types.OpenZFSVolumeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7504,103 +9855,99 @@ func awsAwsjson11_deserializeDocumentOntapVolumeConfiguration(v **types.OntapVol return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.OntapVolumeConfiguration + var sv *types.OpenZFSVolumeConfiguration if *v == nil { - sv = &types.OntapVolumeConfiguration{} + sv = &types.OpenZFSVolumeConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FlexCacheEndpointType": + case "CopyTagsToSnapshots": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected FlexCacheEndpointType to be of type string, got %T instead", value) + return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) } - sv.FlexCacheEndpointType = types.FlexCacheEndpointType(jtv) + sv.CopyTagsToSnapshots = ptr.Bool(jtv) } - case "JunctionPath": + case "DataCompressionType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected JunctionPath to be of type string, got %T instead", value) + return fmt.Errorf("expected OpenZFSDataCompressionType to be of type string, got %T instead", value) } - sv.JunctionPath = ptr.String(jtv) + sv.DataCompressionType = types.OpenZFSDataCompressionType(jtv) } - case "OntapVolumeType": + case "NfsExports": + if err := awsAwsjson11_deserializeDocumentOpenZFSNfsExports(&sv.NfsExports, value); err != nil { + return err + } + + case "OriginSnapshot": + if err := awsAwsjson11_deserializeDocumentOpenZFSOriginSnapshotConfiguration(&sv.OriginSnapshot, value); err != nil { + return err + } + + case "ParentVolumeId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected OntapVolumeType to be of type string, got %T instead", value) + return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) } - sv.OntapVolumeType = types.OntapVolumeType(jtv) + sv.ParentVolumeId = ptr.String(jtv) } - case "SecurityStyle": + case "ReadOnly": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected SecurityStyle to be of type string, got %T instead", value) + return fmt.Errorf("expected ReadOnly to be of type *bool, got %T instead", value) } - sv.SecurityStyle = types.SecurityStyle(jtv) + sv.ReadOnly = ptr.Bool(jtv) } - case "SizeInMegabytes": + case "StorageCapacityQuotaGiB": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected VolumeCapacity to be json.Number, got %T instead", value) + return fmt.Errorf("expected IntegerNoMax to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.SizeInMegabytes = ptr.Int32(int32(i64)) - } - - case "StorageEfficiencyEnabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) - } - sv.StorageEfficiencyEnabled = ptr.Bool(jtv) + sv.StorageCapacityQuotaGiB = ptr.Int32(int32(i64)) } - case "StorageVirtualMachineId": + case "StorageCapacityReservationGiB": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected StorageVirtualMachineId to be of type string, got %T instead", value) + return fmt.Errorf("expected IntegerNoMax to be json.Number, got %T instead", value) } - sv.StorageVirtualMachineId = ptr.String(jtv) - } - - case "StorageVirtualMachineRoot": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Flag to be of type *bool, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.StorageVirtualMachineRoot = ptr.Bool(jtv) + sv.StorageCapacityReservationGiB = ptr.Int32(int32(i64)) } - case "TieringPolicy": - if err := awsAwsjson11_deserializeDocumentTieringPolicy(&sv.TieringPolicy, value); err != nil { + case "UserAndGroupQuotas": + if err := awsAwsjson11_deserializeDocumentOpenZFSUserAndGroupQuotas(&sv.UserAndGroupQuotas, value); err != nil { return err } - case "UUID": + case "VolumePath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UUID to be of type string, got %T instead", value) + return fmt.Errorf("expected VolumePath to be of type string, got %T instead", value) } - sv.UUID = ptr.String(jtv) + sv.VolumePath = ptr.String(jtv) } default: @@ -7746,6 +10093,47 @@ func awsAwsjson11_deserializeDocumentRouteTableIds(v *[]string, value interface{ return nil } +func awsAwsjson11_deserializeDocumentS3DataRepositoryConfiguration(v **types.S3DataRepositoryConfiguration, 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.S3DataRepositoryConfiguration + if *v == nil { + sv = &types.S3DataRepositoryConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AutoExportPolicy": + if err := awsAwsjson11_deserializeDocumentAutoExportPolicy(&sv.AutoExportPolicy, value); err != nil { + return err + } + + case "AutoImportPolicy": + if err := awsAwsjson11_deserializeDocumentAutoImportPolicy(&sv.AutoImportPolicy, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **types.SelfManagedActiveDirectoryAttributes, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7766,47 +10154,198 @@ func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **ty sv = *v } - for key, value := range shape { - switch key { - case "DnsIps": - if err := awsAwsjson11_deserializeDocumentDnsIps(&sv.DnsIps, value); err != nil { - return err + for key, value := range shape { + switch key { + case "DnsIps": + if err := awsAwsjson11_deserializeDocumentDnsIps(&sv.DnsIps, value); err != nil { + return err + } + + case "DomainName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ActiveDirectoryFullyQualifiedName to be of type string, got %T instead", value) + } + sv.DomainName = ptr.String(jtv) + } + + case "FileSystemAdministratorsGroup": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemAdministratorsGroupName to be of type string, got %T instead", value) + } + sv.FileSystemAdministratorsGroup = ptr.String(jtv) + } + + case "OrganizationalUnitDistinguishedName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OrganizationalUnitDistinguishedName to be of type string, got %T instead", value) + } + sv.OrganizationalUnitDistinguishedName = ptr.String(jtv) + } + + case "UserName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DirectoryUserName to be of type string, got %T instead", value) + } + sv.UserName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimitExceeded, 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.ServiceLimitExceeded + if *v == nil { + sv = &types.ServiceLimitExceeded{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Limit": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServiceLimit to be of type string, got %T instead", value) + } + sv.Limit = types.ServiceLimit(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, 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.Snapshot + if *v == nil { + sv = &types.Snapshot{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AdministrativeActions": + if err := awsAwsjson11_deserializeDocumentAdministrativeActions(&sv.AdministrativeActions, value); err != nil { + return err + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected CreationTime to be a JSON Number, got %T instead", value) + + } + } + + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SnapshotLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.SnapshotLifecycle(jtv) } - case "DomainName": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ActiveDirectoryFullyQualifiedName to be of type string, got %T instead", value) + return fmt.Errorf("expected SnapshotName to be of type string, got %T instead", value) } - sv.DomainName = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "FileSystemAdministratorsGroup": + case "ResourceARN": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FileSystemAdministratorsGroupName to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceARN to be of type string, got %T instead", value) } - sv.FileSystemAdministratorsGroup = ptr.String(jtv) + sv.ResourceARN = ptr.String(jtv) } - case "OrganizationalUnitDistinguishedName": + case "SnapshotId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected OrganizationalUnitDistinguishedName to be of type string, got %T instead", value) + return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.OrganizationalUnitDistinguishedName = ptr.String(jtv) + sv.SnapshotId = ptr.String(jtv) } - case "UserName": + case "Tags": + if err := awsAwsjson11_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + case "VolumeId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DirectoryUserName to be of type string, got %T instead", value) + return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) } - sv.UserName = ptr.String(jtv) + sv.VolumeId = ptr.String(jtv) } default: @@ -7818,7 +10357,7 @@ func awsAwsjson11_deserializeDocumentSelfManagedActiveDirectoryAttributes(v **ty return nil } -func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimitExceeded, value interface{}) error { +func awsAwsjson11_deserializeDocumentSnapshotNotFound(v **types.SnapshotNotFound, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7831,24 +10370,15 @@ func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimit return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceLimitExceeded + var sv *types.SnapshotNotFound if *v == nil { - sv = &types.ServiceLimitExceeded{} + sv = &types.SnapshotNotFound{} } else { sv = *v } for key, value := range shape { switch key { - case "Limit": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ServiceLimit to be of type string, got %T instead", value) - } - sv.Limit = types.ServiceLimit(jtv) - } - case "Message": if value != nil { jtv, ok := value.(string) @@ -7867,6 +10397,40 @@ func awsAwsjson11_deserializeDocumentServiceLimitExceeded(v **types.ServiceLimit return nil } +func awsAwsjson11_deserializeDocumentSnapshots(v *[]types.Snapshot, 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.Snapshot + if *v == nil { + cv = []types.Snapshot{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Snapshot + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSnapshot(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentSourceBackupUnavailable(v **types.SourceBackupUnavailable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8504,6 +11068,11 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) for key, value := range shape { switch key { + case "AdministrativeActions": + if err := awsAwsjson11_deserializeDocumentAdministrativeActions(&sv.AdministrativeActions, value); err != nil { + return err + } + case "CreationTime": if value != nil { switch jtv := value.(type) { @@ -8557,6 +11126,11 @@ func awsAwsjson11_deserializeDocumentVolume(v **types.Volume, value interface{}) return err } + case "OpenZFSConfiguration": + if err := awsAwsjson11_deserializeDocumentOpenZFSVolumeConfiguration(&sv.OpenZFSConfiguration, value); err != nil { + return err + } + case "ResourceARN": if value != nil { jtv, ok := value.(string) @@ -9036,6 +11610,42 @@ func awsAwsjson11_deserializeOpDocumentCreateBackupOutput(v **CreateBackupOutput return nil } +func awsAwsjson11_deserializeOpDocumentCreateDataRepositoryAssociationOutput(v **CreateDataRepositoryAssociationOutput, 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 *CreateDataRepositoryAssociationOutput + if *v == nil { + sv = &CreateDataRepositoryAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Association": + if err := awsAwsjson11_deserializeDocumentDataRepositoryAssociation(&sv.Association, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateDataRepositoryTaskOutput(v **CreateDataRepositoryTaskOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9144,6 +11754,42 @@ func awsAwsjson11_deserializeOpDocumentCreateFileSystemOutput(v **CreateFileSyst return nil } +func awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOutput, 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 *CreateSnapshotOutput + if *v == nil { + sv = &CreateSnapshotOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Snapshot": + if err := awsAwsjson11_deserializeDocumentSnapshot(&sv.Snapshot, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateStorageVirtualMachineOutput(v **CreateStorageVirtualMachineOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9283,13 +11929,135 @@ func awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(v **DeleteBackupOutput sv.BackupId = ptr.String(jtv) } - case "Lifecycle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BackupLifecycle to be of type string, got %T instead", value) - } - sv.Lifecycle = types.BackupLifecycle(jtv) + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BackupLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.BackupLifecycle(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDeleteDataRepositoryAssociationOutput(v **DeleteDataRepositoryAssociationOutput, 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 *DeleteDataRepositoryAssociationOutput + if *v == nil { + sv = &DeleteDataRepositoryAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssociationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataRepositoryAssociationId to be of type string, got %T instead", value) + } + sv.AssociationId = ptr.String(jtv) + } + + case "DeleteDataInFileSystem": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected DeleteDataInFileSystem to be of type *bool, got %T instead", value) + } + sv.DeleteDataInFileSystem = ptr.Bool(jtv) + } + + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataRepositoryLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.DataRepositoryLifecycle(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDeleteFileSystemOutput(v **DeleteFileSystemOutput, 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 *DeleteFileSystemOutput + if *v == nil { + sv = &DeleteFileSystemOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FileSystemId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) + } + sv.FileSystemId = ptr.String(jtv) + } + + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.FileSystemLifecycle(jtv) + } + + case "LustreResponse": + if err := awsAwsjson11_deserializeDocumentDeleteFileSystemLustreResponse(&sv.LustreResponse, value); err != nil { + return err + } + + case "OpenZFSResponse": + if err := awsAwsjson11_deserializeDocumentDeleteFileSystemOpenZFSResponse(&sv.OpenZFSResponse, value); err != nil { + return err + } + + case "WindowsResponse": + if err := awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(&sv.WindowsResponse, value); err != nil { + return err } default: @@ -9301,7 +12069,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteBackupOutput(v **DeleteBackupOutput return nil } -func awsAwsjson11_deserializeOpDocumentDeleteFileSystemOutput(v **DeleteFileSystemOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentDeleteSnapshotOutput(v **DeleteSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9314,41 +12082,31 @@ func awsAwsjson11_deserializeOpDocumentDeleteFileSystemOutput(v **DeleteFileSyst return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteFileSystemOutput + var sv *DeleteSnapshotOutput if *v == nil { - sv = &DeleteFileSystemOutput{} + sv = &DeleteSnapshotOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FileSystemId": + case "Lifecycle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) + return fmt.Errorf("expected SnapshotLifecycle to be of type string, got %T instead", value) } - sv.FileSystemId = ptr.String(jtv) + sv.Lifecycle = types.SnapshotLifecycle(jtv) } - case "Lifecycle": + case "SnapshotId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FileSystemLifecycle to be of type string, got %T instead", value) + return fmt.Errorf("expected SnapshotId to be of type string, got %T instead", value) } - sv.Lifecycle = types.FileSystemLifecycle(jtv) - } - - case "LustreResponse": - if err := awsAwsjson11_deserializeDocumentDeleteFileSystemLustreResponse(&sv.LustreResponse, value); err != nil { - return err - } - - case "WindowsResponse": - if err := awsAwsjson11_deserializeDocumentDeleteFileSystemWindowsResponse(&sv.WindowsResponse, value); err != nil { - return err + sv.SnapshotId = ptr.String(jtv) } default: @@ -9508,6 +12266,51 @@ func awsAwsjson11_deserializeOpDocumentDescribeBackupsOutput(v **DescribeBackups return nil } +func awsAwsjson11_deserializeOpDocumentDescribeDataRepositoryAssociationsOutput(v **DescribeDataRepositoryAssociationsOutput, 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 *DescribeDataRepositoryAssociationsOutput + if *v == nil { + sv = &DescribeDataRepositoryAssociationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Associations": + if err := awsAwsjson11_deserializeDocumentDataRepositoryAssociations(&sv.Associations, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeDataRepositoryTasksOutput(v **DescribeDataRepositoryTasksOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9643,6 +12446,51 @@ func awsAwsjson11_deserializeOpDocumentDescribeFileSystemsOutput(v **DescribeFil return nil } +func awsAwsjson11_deserializeOpDocumentDescribeSnapshotsOutput(v **DescribeSnapshotsOutput, 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 *DescribeSnapshotsOutput + if *v == nil { + sv = &DescribeSnapshotsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Snapshots": + if err := awsAwsjson11_deserializeDocumentSnapshots(&sv.Snapshots, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeStorageVirtualMachinesOutput(v **DescribeStorageVirtualMachinesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9814,6 +12662,91 @@ func awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } +func awsAwsjson11_deserializeOpDocumentReleaseFileSystemNfsV3LocksOutput(v **ReleaseFileSystemNfsV3LocksOutput, 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 *ReleaseFileSystemNfsV3LocksOutput + if *v == nil { + sv = &ReleaseFileSystemNfsV3LocksOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FileSystem": + if err := awsAwsjson11_deserializeDocumentFileSystem(&sv.FileSystem, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentRestoreVolumeFromSnapshotOutput(v **RestoreVolumeFromSnapshotOutput, 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 *RestoreVolumeFromSnapshotOutput + if *v == nil { + sv = &RestoreVolumeFromSnapshotOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Lifecycle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VolumeLifecycle to be of type string, got %T instead", value) + } + sv.Lifecycle = types.VolumeLifecycle(jtv) + } + + case "VolumeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VolumeId to be of type string, got %T instead", value) + } + sv.VolumeId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9876,6 +12809,42 @@ func awsAwsjson11_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return nil } +func awsAwsjson11_deserializeOpDocumentUpdateDataRepositoryAssociationOutput(v **UpdateDataRepositoryAssociationOutput, 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 *UpdateDataRepositoryAssociationOutput + if *v == nil { + sv = &UpdateDataRepositoryAssociationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Association": + if err := awsAwsjson11_deserializeDocumentDataRepositoryAssociation(&sv.Association, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSystemOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9912,6 +12881,42 @@ func awsAwsjson11_deserializeOpDocumentUpdateFileSystemOutput(v **UpdateFileSyst return nil } +func awsAwsjson11_deserializeOpDocumentUpdateSnapshotOutput(v **UpdateSnapshotOutput, 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 *UpdateSnapshotOutput + if *v == nil { + sv = &UpdateSnapshotOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Snapshot": + if err := awsAwsjson11_deserializeDocumentSnapshot(&sv.Snapshot, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateStorageVirtualMachineOutput(v **UpdateStorageVirtualMachineOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/fsx/generated.json b/service/fsx/generated.json index f3d704622b0..51c59f88018 100644 --- a/service/fsx/generated.json +++ b/service/fsx/generated.json @@ -11,27 +11,37 @@ "api_op_CancelDataRepositoryTask.go", "api_op_CopyBackup.go", "api_op_CreateBackup.go", + "api_op_CreateDataRepositoryAssociation.go", "api_op_CreateDataRepositoryTask.go", "api_op_CreateFileSystem.go", "api_op_CreateFileSystemFromBackup.go", + "api_op_CreateSnapshot.go", "api_op_CreateStorageVirtualMachine.go", "api_op_CreateVolume.go", "api_op_CreateVolumeFromBackup.go", "api_op_DeleteBackup.go", + "api_op_DeleteDataRepositoryAssociation.go", "api_op_DeleteFileSystem.go", + "api_op_DeleteSnapshot.go", "api_op_DeleteStorageVirtualMachine.go", "api_op_DeleteVolume.go", "api_op_DescribeBackups.go", + "api_op_DescribeDataRepositoryAssociations.go", "api_op_DescribeDataRepositoryTasks.go", "api_op_DescribeFileSystemAliases.go", "api_op_DescribeFileSystems.go", + "api_op_DescribeSnapshots.go", "api_op_DescribeStorageVirtualMachines.go", "api_op_DescribeVolumes.go", "api_op_DisassociateFileSystemAliases.go", "api_op_ListTagsForResource.go", + "api_op_ReleaseFileSystemNfsV3Locks.go", + "api_op_RestoreVolumeFromSnapshot.go", "api_op_TagResource.go", "api_op_UntagResource.go", + "api_op_UpdateDataRepositoryAssociation.go", "api_op_UpdateFileSystem.go", + "api_op_UpdateSnapshot.go", "api_op_UpdateStorageVirtualMachine.go", "api_op_UpdateVolume.go", "deserializers.go", diff --git a/service/fsx/serializers.go b/service/fsx/serializers.go index 917c6963621..1c47a94b776 100644 --- a/service/fsx/serializers.go +++ b/service/fsx/serializers.go @@ -235,14 +235,14 @@ func (m *awsAwsjson11_serializeOpCreateBackup) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateDataRepositoryTask struct { +type awsAwsjson11_serializeOpCreateDataRepositoryAssociation struct { } -func (*awsAwsjson11_serializeOpCreateDataRepositoryTask) ID() string { +func (*awsAwsjson11_serializeOpCreateDataRepositoryAssociation) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateDataRepositoryTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateDataRepositoryAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -250,7 +250,7 @@ func (m *awsAwsjson11_serializeOpCreateDataRepositoryTask) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateDataRepositoryTaskInput) + input, ok := in.Parameters.(*CreateDataRepositoryAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -271,10 +271,10 @@ func (m *awsAwsjson11_serializeOpCreateDataRepositoryTask) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateDataRepositoryTask") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateDataRepositoryAssociation") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateDataRepositoryTaskInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateDataRepositoryAssociationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -290,14 +290,14 @@ func (m *awsAwsjson11_serializeOpCreateDataRepositoryTask) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateFileSystem struct { +type awsAwsjson11_serializeOpCreateDataRepositoryTask struct { } -func (*awsAwsjson11_serializeOpCreateFileSystem) ID() string { +func (*awsAwsjson11_serializeOpCreateDataRepositoryTask) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateFileSystem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateDataRepositoryTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -305,7 +305,7 @@ func (m *awsAwsjson11_serializeOpCreateFileSystem) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateFileSystemInput) + input, ok := in.Parameters.(*CreateDataRepositoryTaskInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -326,10 +326,10 @@ func (m *awsAwsjson11_serializeOpCreateFileSystem) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateFileSystem") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateDataRepositoryTask") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateFileSystemInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateDataRepositoryTaskInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -345,14 +345,14 @@ func (m *awsAwsjson11_serializeOpCreateFileSystem) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateFileSystemFromBackup struct { +type awsAwsjson11_serializeOpCreateFileSystem struct { } -func (*awsAwsjson11_serializeOpCreateFileSystemFromBackup) ID() string { +func (*awsAwsjson11_serializeOpCreateFileSystem) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateFileSystemFromBackup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateFileSystem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -360,7 +360,7 @@ func (m *awsAwsjson11_serializeOpCreateFileSystemFromBackup) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateFileSystemFromBackupInput) + input, ok := in.Parameters.(*CreateFileSystemInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -381,10 +381,10 @@ func (m *awsAwsjson11_serializeOpCreateFileSystemFromBackup) 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("AWSSimbaAPIService_v20180301.CreateFileSystemFromBackup") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateFileSystem") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateFileSystemFromBackupInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateFileSystemInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -400,14 +400,14 @@ func (m *awsAwsjson11_serializeOpCreateFileSystemFromBackup) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateStorageVirtualMachine struct { +type awsAwsjson11_serializeOpCreateFileSystemFromBackup struct { } -func (*awsAwsjson11_serializeOpCreateStorageVirtualMachine) ID() string { +func (*awsAwsjson11_serializeOpCreateFileSystemFromBackup) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateStorageVirtualMachine) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateFileSystemFromBackup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -415,7 +415,7 @@ func (m *awsAwsjson11_serializeOpCreateStorageVirtualMachine) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateStorageVirtualMachineInput) + input, ok := in.Parameters.(*CreateFileSystemFromBackupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -436,10 +436,10 @@ func (m *awsAwsjson11_serializeOpCreateStorageVirtualMachine) 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("AWSSimbaAPIService_v20180301.CreateStorageVirtualMachine") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateFileSystemFromBackup") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateStorageVirtualMachineInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateFileSystemFromBackupInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -455,14 +455,14 @@ func (m *awsAwsjson11_serializeOpCreateStorageVirtualMachine) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateVolume struct { +type awsAwsjson11_serializeOpCreateSnapshot struct { } -func (*awsAwsjson11_serializeOpCreateVolume) ID() string { +func (*awsAwsjson11_serializeOpCreateSnapshot) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -470,7 +470,7 @@ func (m *awsAwsjson11_serializeOpCreateVolume) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateVolumeInput) + input, ok := in.Parameters.(*CreateSnapshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -491,10 +491,10 @@ func (m *awsAwsjson11_serializeOpCreateVolume) HandleSerialize(ctx context.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("AWSSimbaAPIService_v20180301.CreateVolume") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateSnapshot") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateVolumeInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateSnapshotInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -510,14 +510,14 @@ func (m *awsAwsjson11_serializeOpCreateVolume) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpCreateVolumeFromBackup struct { +type awsAwsjson11_serializeOpCreateStorageVirtualMachine struct { } -func (*awsAwsjson11_serializeOpCreateVolumeFromBackup) ID() string { +func (*awsAwsjson11_serializeOpCreateStorageVirtualMachine) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateVolumeFromBackup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateStorageVirtualMachine) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -525,7 +525,7 @@ func (m *awsAwsjson11_serializeOpCreateVolumeFromBackup) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateVolumeFromBackupInput) + input, ok := in.Parameters.(*CreateStorageVirtualMachineInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -546,10 +546,10 @@ func (m *awsAwsjson11_serializeOpCreateVolumeFromBackup) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateVolumeFromBackup") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateStorageVirtualMachine") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateVolumeFromBackupInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateStorageVirtualMachineInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -565,14 +565,14 @@ func (m *awsAwsjson11_serializeOpCreateVolumeFromBackup) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDeleteBackup struct { +type awsAwsjson11_serializeOpCreateVolume struct { } -func (*awsAwsjson11_serializeOpDeleteBackup) ID() string { +func (*awsAwsjson11_serializeOpCreateVolume) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDeleteBackup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -580,7 +580,7 @@ func (m *awsAwsjson11_serializeOpDeleteBackup) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteBackupInput) + input, ok := in.Parameters.(*CreateVolumeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -601,10 +601,10 @@ func (m *awsAwsjson11_serializeOpDeleteBackup) HandleSerialize(ctx context.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("AWSSimbaAPIService_v20180301.DeleteBackup") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateVolume") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteBackupInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateVolumeInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -620,14 +620,14 @@ func (m *awsAwsjson11_serializeOpDeleteBackup) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDeleteFileSystem struct { +type awsAwsjson11_serializeOpCreateVolumeFromBackup struct { } -func (*awsAwsjson11_serializeOpDeleteFileSystem) ID() string { +func (*awsAwsjson11_serializeOpCreateVolumeFromBackup) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDeleteFileSystem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpCreateVolumeFromBackup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -635,7 +635,7 @@ func (m *awsAwsjson11_serializeOpDeleteFileSystem) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteFileSystemInput) + input, ok := in.Parameters.(*CreateVolumeFromBackupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -656,10 +656,10 @@ func (m *awsAwsjson11_serializeOpDeleteFileSystem) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteFileSystem") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.CreateVolumeFromBackup") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteFileSystemInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentCreateVolumeFromBackupInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -675,14 +675,14 @@ func (m *awsAwsjson11_serializeOpDeleteFileSystem) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDeleteStorageVirtualMachine struct { +type awsAwsjson11_serializeOpDeleteBackup struct { } -func (*awsAwsjson11_serializeOpDeleteStorageVirtualMachine) ID() string { +func (*awsAwsjson11_serializeOpDeleteBackup) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDeleteStorageVirtualMachine) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDeleteBackup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -690,7 +690,7 @@ func (m *awsAwsjson11_serializeOpDeleteStorageVirtualMachine) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteStorageVirtualMachineInput) + input, ok := in.Parameters.(*DeleteBackupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -711,10 +711,10 @@ func (m *awsAwsjson11_serializeOpDeleteStorageVirtualMachine) 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("AWSSimbaAPIService_v20180301.DeleteStorageVirtualMachine") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteBackup") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteStorageVirtualMachineInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDeleteBackupInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -730,14 +730,14 @@ func (m *awsAwsjson11_serializeOpDeleteStorageVirtualMachine) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDeleteVolume struct { +type awsAwsjson11_serializeOpDeleteDataRepositoryAssociation struct { } -func (*awsAwsjson11_serializeOpDeleteVolume) ID() string { +func (*awsAwsjson11_serializeOpDeleteDataRepositoryAssociation) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDeleteVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDeleteDataRepositoryAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -745,7 +745,7 @@ func (m *awsAwsjson11_serializeOpDeleteVolume) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteVolumeInput) + input, ok := in.Parameters.(*DeleteDataRepositoryAssociationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -766,10 +766,10 @@ func (m *awsAwsjson11_serializeOpDeleteVolume) HandleSerialize(ctx context.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("AWSSimbaAPIService_v20180301.DeleteVolume") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteDataRepositoryAssociation") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteVolumeInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDeleteDataRepositoryAssociationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -785,14 +785,14 @@ func (m *awsAwsjson11_serializeOpDeleteVolume) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeBackups struct { +type awsAwsjson11_serializeOpDeleteFileSystem struct { } -func (*awsAwsjson11_serializeOpDescribeBackups) ID() string { +func (*awsAwsjson11_serializeOpDeleteFileSystem) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeBackups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDeleteFileSystem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -800,7 +800,7 @@ func (m *awsAwsjson11_serializeOpDescribeBackups) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeBackupsInput) + input, ok := in.Parameters.(*DeleteFileSystemInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -821,10 +821,10 @@ func (m *awsAwsjson11_serializeOpDescribeBackups) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeBackups") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteFileSystem") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeBackupsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDeleteFileSystemInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -840,14 +840,14 @@ func (m *awsAwsjson11_serializeOpDescribeBackups) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeDataRepositoryTasks struct { +type awsAwsjson11_serializeOpDeleteSnapshot struct { } -func (*awsAwsjson11_serializeOpDescribeDataRepositoryTasks) ID() string { +func (*awsAwsjson11_serializeOpDeleteSnapshot) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeDataRepositoryTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -855,7 +855,7 @@ func (m *awsAwsjson11_serializeOpDescribeDataRepositoryTasks) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeDataRepositoryTasksInput) + input, ok := in.Parameters.(*DeleteSnapshotInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -876,10 +876,10 @@ func (m *awsAwsjson11_serializeOpDescribeDataRepositoryTasks) 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("AWSSimbaAPIService_v20180301.DescribeDataRepositoryTasks") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteSnapshot") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeDataRepositoryTasksInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDeleteSnapshotInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -895,14 +895,14 @@ func (m *awsAwsjson11_serializeOpDescribeDataRepositoryTasks) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeFileSystemAliases struct { +type awsAwsjson11_serializeOpDeleteStorageVirtualMachine struct { } -func (*awsAwsjson11_serializeOpDescribeFileSystemAliases) ID() string { +func (*awsAwsjson11_serializeOpDeleteStorageVirtualMachine) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeFileSystemAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDeleteStorageVirtualMachine) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -910,7 +910,7 @@ func (m *awsAwsjson11_serializeOpDescribeFileSystemAliases) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFileSystemAliasesInput) + input, ok := in.Parameters.(*DeleteStorageVirtualMachineInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -931,10 +931,10 @@ func (m *awsAwsjson11_serializeOpDescribeFileSystemAliases) 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("AWSSimbaAPIService_v20180301.DescribeFileSystemAliases") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteStorageVirtualMachine") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeFileSystemAliasesInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDeleteStorageVirtualMachineInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -950,14 +950,14 @@ func (m *awsAwsjson11_serializeOpDescribeFileSystemAliases) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeFileSystems struct { +type awsAwsjson11_serializeOpDeleteVolume struct { } -func (*awsAwsjson11_serializeOpDescribeFileSystems) ID() string { +func (*awsAwsjson11_serializeOpDeleteVolume) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeFileSystems) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDeleteVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -965,7 +965,7 @@ func (m *awsAwsjson11_serializeOpDescribeFileSystems) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeFileSystemsInput) + input, ok := in.Parameters.(*DeleteVolumeInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -986,10 +986,10 @@ func (m *awsAwsjson11_serializeOpDescribeFileSystems) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeFileSystems") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DeleteVolume") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeFileSystemsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDeleteVolumeInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1005,14 +1005,14 @@ func (m *awsAwsjson11_serializeOpDescribeFileSystems) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeStorageVirtualMachines struct { +type awsAwsjson11_serializeOpDescribeBackups struct { } -func (*awsAwsjson11_serializeOpDescribeStorageVirtualMachines) ID() string { +func (*awsAwsjson11_serializeOpDescribeBackups) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeStorageVirtualMachines) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeBackups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1020,7 +1020,7 @@ func (m *awsAwsjson11_serializeOpDescribeStorageVirtualMachines) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeStorageVirtualMachinesInput) + input, ok := in.Parameters.(*DescribeBackupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1041,10 +1041,10 @@ func (m *awsAwsjson11_serializeOpDescribeStorageVirtualMachines) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeStorageVirtualMachines") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeBackups") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeStorageVirtualMachinesInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeBackupsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1060,14 +1060,14 @@ func (m *awsAwsjson11_serializeOpDescribeStorageVirtualMachines) HandleSerialize return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDescribeVolumes struct { +type awsAwsjson11_serializeOpDescribeDataRepositoryAssociations struct { } -func (*awsAwsjson11_serializeOpDescribeVolumes) ID() string { +func (*awsAwsjson11_serializeOpDescribeDataRepositoryAssociations) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeVolumes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeDataRepositoryAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1075,7 +1075,7 @@ func (m *awsAwsjson11_serializeOpDescribeVolumes) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVolumesInput) + input, ok := in.Parameters.(*DescribeDataRepositoryAssociationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1096,10 +1096,10 @@ func (m *awsAwsjson11_serializeOpDescribeVolumes) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeVolumes") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeDataRepositoryAssociations") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeVolumesInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeDataRepositoryAssociationsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1115,14 +1115,14 @@ func (m *awsAwsjson11_serializeOpDescribeVolumes) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpDisassociateFileSystemAliases struct { +type awsAwsjson11_serializeOpDescribeDataRepositoryTasks struct { } -func (*awsAwsjson11_serializeOpDisassociateFileSystemAliases) ID() string { +func (*awsAwsjson11_serializeOpDescribeDataRepositoryTasks) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDisassociateFileSystemAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeDataRepositoryTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1130,7 +1130,7 @@ func (m *awsAwsjson11_serializeOpDisassociateFileSystemAliases) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DisassociateFileSystemAliasesInput) + input, ok := in.Parameters.(*DescribeDataRepositoryTasksInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1151,10 +1151,10 @@ func (m *awsAwsjson11_serializeOpDisassociateFileSystemAliases) HandleSerialize( return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DisassociateFileSystemAliases") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeDataRepositoryTasks") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDisassociateFileSystemAliasesInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeDataRepositoryTasksInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1170,14 +1170,14 @@ func (m *awsAwsjson11_serializeOpDisassociateFileSystemAliases) HandleSerialize( return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListTagsForResource struct { +type awsAwsjson11_serializeOpDescribeFileSystemAliases struct { } -func (*awsAwsjson11_serializeOpListTagsForResource) ID() string { +func (*awsAwsjson11_serializeOpDescribeFileSystemAliases) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeFileSystemAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1185,7 +1185,7 @@ func (m *awsAwsjson11_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTagsForResourceInput) + input, ok := in.Parameters.(*DescribeFileSystemAliasesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1206,10 +1206,10 @@ func (m *awsAwsjson11_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.ListTagsForResource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeFileSystemAliases") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListTagsForResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeFileSystemAliasesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1225,14 +1225,14 @@ func (m *awsAwsjson11_serializeOpListTagsForResource) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpTagResource struct { +type awsAwsjson11_serializeOpDescribeFileSystems struct { } -func (*awsAwsjson11_serializeOpTagResource) ID() string { +func (*awsAwsjson11_serializeOpDescribeFileSystems) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeFileSystems) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1240,7 +1240,7 @@ func (m *awsAwsjson11_serializeOpTagResource) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*TagResourceInput) + input, ok := in.Parameters.(*DescribeFileSystemsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1261,10 +1261,10 @@ func (m *awsAwsjson11_serializeOpTagResource) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.TagResource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeFileSystems") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeFileSystemsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1280,14 +1280,14 @@ func (m *awsAwsjson11_serializeOpTagResource) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpUntagResource struct { +type awsAwsjson11_serializeOpDescribeSnapshots struct { } -func (*awsAwsjson11_serializeOpUntagResource) ID() string { +func (*awsAwsjson11_serializeOpDescribeSnapshots) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1295,7 +1295,7 @@ func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UntagResourceInput) + input, ok := in.Parameters.(*DescribeSnapshotsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1316,10 +1316,10 @@ func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.UntagResource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeSnapshots") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeSnapshotsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1335,14 +1335,14 @@ func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpUpdateFileSystem struct { +type awsAwsjson11_serializeOpDescribeStorageVirtualMachines struct { } -func (*awsAwsjson11_serializeOpUpdateFileSystem) ID() string { +func (*awsAwsjson11_serializeOpDescribeStorageVirtualMachines) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpUpdateFileSystem) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeStorageVirtualMachines) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1350,7 +1350,7 @@ func (m *awsAwsjson11_serializeOpUpdateFileSystem) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateFileSystemInput) + input, ok := in.Parameters.(*DescribeStorageVirtualMachinesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1371,10 +1371,10 @@ func (m *awsAwsjson11_serializeOpUpdateFileSystem) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.UpdateFileSystem") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeStorageVirtualMachines") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateFileSystemInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeStorageVirtualMachinesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1390,14 +1390,14 @@ func (m *awsAwsjson11_serializeOpUpdateFileSystem) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpUpdateStorageVirtualMachine struct { +type awsAwsjson11_serializeOpDescribeVolumes struct { } -func (*awsAwsjson11_serializeOpUpdateStorageVirtualMachine) ID() string { +func (*awsAwsjson11_serializeOpDescribeVolumes) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpUpdateStorageVirtualMachine) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDescribeVolumes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1405,7 +1405,7 @@ func (m *awsAwsjson11_serializeOpUpdateStorageVirtualMachine) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateStorageVirtualMachineInput) + input, ok := in.Parameters.(*DescribeVolumesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1426,10 +1426,10 @@ func (m *awsAwsjson11_serializeOpUpdateStorageVirtualMachine) 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("AWSSimbaAPIService_v20180301.UpdateStorageVirtualMachine") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DescribeVolumes") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateStorageVirtualMachineInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDescribeVolumesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1445,14 +1445,14 @@ func (m *awsAwsjson11_serializeOpUpdateStorageVirtualMachine) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpUpdateVolume struct { +type awsAwsjson11_serializeOpDisassociateFileSystemAliases struct { } -func (*awsAwsjson11_serializeOpUpdateVolume) ID() string { +func (*awsAwsjson11_serializeOpDisassociateFileSystemAliases) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpUpdateVolume) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDisassociateFileSystemAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1460,7 +1460,7 @@ func (m *awsAwsjson11_serializeOpUpdateVolume) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateVolumeInput) + input, ok := in.Parameters.(*DisassociateFileSystemAliasesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1481,10 +1481,10 @@ func (m *awsAwsjson11_serializeOpUpdateVolume) HandleSerialize(ctx context.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("AWSSimbaAPIService_v20180301.UpdateVolume") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSSimbaAPIService_v20180301.DisassociateFileSystemAliases") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateVolumeInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDisassociateFileSystemAliasesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1499,22 +1499,600 @@ func (m *awsAwsjson11_serializeOpUpdateVolume) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentAlternateDNSNames(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 +type awsAwsjson11_serializeOpListTagsForResource struct { } -func awsAwsjson11_serializeDocumentBackupIds(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func (*awsAwsjson11_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} - for i := range v { +func (m *awsAwsjson11_serializeOpListTagsForResource) 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.(*ListTagsForResourceInput) + _ = 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("AWSSimbaAPIService_v20180301.ListTagsForResource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListTagsForResourceInput(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_serializeOpReleaseFileSystemNfsV3Locks struct { +} + +func (*awsAwsjson11_serializeOpReleaseFileSystemNfsV3Locks) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpReleaseFileSystemNfsV3Locks) 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.(*ReleaseFileSystemNfsV3LocksInput) + _ = 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("AWSSimbaAPIService_v20180301.ReleaseFileSystemNfsV3Locks") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentReleaseFileSystemNfsV3LocksInput(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_serializeOpRestoreVolumeFromSnapshot struct { +} + +func (*awsAwsjson11_serializeOpRestoreVolumeFromSnapshot) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpRestoreVolumeFromSnapshot) 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.(*RestoreVolumeFromSnapshotInput) + _ = 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("AWSSimbaAPIService_v20180301.RestoreVolumeFromSnapshot") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentRestoreVolumeFromSnapshotInput(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_serializeOpTagResource struct { +} + +func (*awsAwsjson11_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpTagResource) 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.(*TagResourceInput) + _ = 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("AWSSimbaAPIService_v20180301.TagResource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentTagResourceInput(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_serializeOpUntagResource struct { +} + +func (*awsAwsjson11_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUntagResource) 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.(*UntagResourceInput) + _ = 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("AWSSimbaAPIService_v20180301.UntagResource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUntagResourceInput(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_serializeOpUpdateDataRepositoryAssociation struct { +} + +func (*awsAwsjson11_serializeOpUpdateDataRepositoryAssociation) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateDataRepositoryAssociation) 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.(*UpdateDataRepositoryAssociationInput) + _ = 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("AWSSimbaAPIService_v20180301.UpdateDataRepositoryAssociation") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateDataRepositoryAssociationInput(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_serializeOpUpdateFileSystem struct { +} + +func (*awsAwsjson11_serializeOpUpdateFileSystem) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateFileSystem) 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.(*UpdateFileSystemInput) + _ = 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("AWSSimbaAPIService_v20180301.UpdateFileSystem") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateFileSystemInput(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_serializeOpUpdateSnapshot struct { +} + +func (*awsAwsjson11_serializeOpUpdateSnapshot) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateSnapshot) 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.(*UpdateSnapshotInput) + _ = 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("AWSSimbaAPIService_v20180301.UpdateSnapshot") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateSnapshotInput(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_serializeOpUpdateStorageVirtualMachine struct { +} + +func (*awsAwsjson11_serializeOpUpdateStorageVirtualMachine) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateStorageVirtualMachine) 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.(*UpdateStorageVirtualMachineInput) + _ = 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("AWSSimbaAPIService_v20180301.UpdateStorageVirtualMachine") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateStorageVirtualMachineInput(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_serializeOpUpdateVolume struct { +} + +func (*awsAwsjson11_serializeOpUpdateVolume) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateVolume) 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.(*UpdateVolumeInput) + _ = 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("AWSSimbaAPIService_v20180301.UpdateVolume") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateVolumeInput(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) +} +func awsAwsjson11_serializeDocumentAlternateDNSNames(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_serializeDocumentAutoExportPolicy(v *types.AutoExportPolicy, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Events != nil { + ok := object.Key("Events") + if err := awsAwsjson11_serializeDocumentEventTypes(v.Events, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentAutoImportPolicy(v *types.AutoImportPolicy, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Events != nil { + ok := object.Key("Events") + if err := awsAwsjson11_serializeDocumentEventTypes(v.Events, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentBackupIds(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { av := array.Value() av.String(v[i]) } @@ -1602,6 +2180,13 @@ func awsAwsjson11_serializeDocumentCreateFileSystemLustreConfiguration(v *types. ok.String(*v.ImportPath) } + if v.LogConfiguration != nil { + ok := object.Key("LogConfiguration") + if err := awsAwsjson11_serializeDocumentLustreLogCreateConfiguration(v.LogConfiguration, ok); err != nil { + return err + } + } + if v.PerUnitStorageThroughput != nil { ok := object.Key("PerUnitStorageThroughput") ok.Integer(*v.PerUnitStorageThroughput) @@ -1619,9 +2204,80 @@ func awsAwsjson11_serializeDocumentCreateFileSystemOntapConfiguration(v *types.C object := value.Object() defer object.Close() - if v.AutomaticBackupRetentionDays != nil { - ok := object.Key("AutomaticBackupRetentionDays") - ok.Integer(*v.AutomaticBackupRetentionDays) + if v.AutomaticBackupRetentionDays != nil { + ok := object.Key("AutomaticBackupRetentionDays") + ok.Integer(*v.AutomaticBackupRetentionDays) + } + + if v.DailyAutomaticBackupStartTime != nil { + ok := object.Key("DailyAutomaticBackupStartTime") + ok.String(*v.DailyAutomaticBackupStartTime) + } + + if len(v.DeploymentType) > 0 { + ok := object.Key("DeploymentType") + ok.String(string(v.DeploymentType)) + } + + if v.DiskIopsConfiguration != nil { + ok := object.Key("DiskIopsConfiguration") + if err := awsAwsjson11_serializeDocumentDiskIopsConfiguration(v.DiskIopsConfiguration, ok); err != nil { + return err + } + } + + if v.EndpointIpAddressRange != nil { + ok := object.Key("EndpointIpAddressRange") + ok.String(*v.EndpointIpAddressRange) + } + + if v.FsxAdminPassword != nil { + ok := object.Key("FsxAdminPassword") + ok.String(*v.FsxAdminPassword) + } + + if v.PreferredSubnetId != nil { + ok := object.Key("PreferredSubnetId") + ok.String(*v.PreferredSubnetId) + } + + if v.RouteTableIds != nil { + ok := object.Key("RouteTableIds") + if err := awsAwsjson11_serializeDocumentRouteTableIds(v.RouteTableIds, ok); err != nil { + return err + } + } + + if v.ThroughputCapacity != nil { + ok := object.Key("ThroughputCapacity") + ok.Integer(*v.ThroughputCapacity) + } + + if v.WeeklyMaintenanceStartTime != nil { + ok := object.Key("WeeklyMaintenanceStartTime") + ok.String(*v.WeeklyMaintenanceStartTime) + } + + return nil +} + +func awsAwsjson11_serializeDocumentCreateFileSystemOpenZFSConfiguration(v *types.CreateFileSystemOpenZFSConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AutomaticBackupRetentionDays != nil { + ok := object.Key("AutomaticBackupRetentionDays") + ok.Integer(*v.AutomaticBackupRetentionDays) + } + + if v.CopyTagsToBackups != nil { + ok := object.Key("CopyTagsToBackups") + ok.Boolean(*v.CopyTagsToBackups) + } + + if v.CopyTagsToVolumes != nil { + ok := object.Key("CopyTagsToVolumes") + ok.Boolean(*v.CopyTagsToVolumes) } if v.DailyAutomaticBackupStartTime != nil { @@ -1641,24 +2297,9 @@ func awsAwsjson11_serializeDocumentCreateFileSystemOntapConfiguration(v *types.C } } - if v.EndpointIpAddressRange != nil { - ok := object.Key("EndpointIpAddressRange") - ok.String(*v.EndpointIpAddressRange) - } - - if v.FsxAdminPassword != nil { - ok := object.Key("FsxAdminPassword") - ok.String(*v.FsxAdminPassword) - } - - if v.PreferredSubnetId != nil { - ok := object.Key("PreferredSubnetId") - ok.String(*v.PreferredSubnetId) - } - - if v.RouteTableIds != nil { - ok := object.Key("RouteTableIds") - if err := awsAwsjson11_serializeDocumentRouteTableIds(v.RouteTableIds, ok); err != nil { + if v.RootVolumeConfiguration != nil { + ok := object.Key("RootVolumeConfiguration") + if err := awsAwsjson11_serializeDocumentOpenZFSCreateRootVolumeConfiguration(v.RootVolumeConfiguration, ok); err != nil { return err } } @@ -1783,6 +2424,81 @@ func awsAwsjson11_serializeDocumentCreateOntapVolumeConfiguration(v *types.Creat return nil } +func awsAwsjson11_serializeDocumentCreateOpenZFSOriginSnapshotConfiguration(v *types.CreateOpenZFSOriginSnapshotConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.CopyStrategy) > 0 { + ok := object.Key("CopyStrategy") + ok.String(string(v.CopyStrategy)) + } + + if v.SnapshotARN != nil { + ok := object.Key("SnapshotARN") + ok.String(*v.SnapshotARN) + } + + return nil +} + +func awsAwsjson11_serializeDocumentCreateOpenZFSVolumeConfiguration(v *types.CreateOpenZFSVolumeConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CopyTagsToSnapshots != nil { + ok := object.Key("CopyTagsToSnapshots") + ok.Boolean(*v.CopyTagsToSnapshots) + } + + if len(v.DataCompressionType) > 0 { + ok := object.Key("DataCompressionType") + ok.String(string(v.DataCompressionType)) + } + + if v.NfsExports != nil { + ok := object.Key("NfsExports") + if err := awsAwsjson11_serializeDocumentOpenZFSNfsExports(v.NfsExports, ok); err != nil { + return err + } + } + + if v.OriginSnapshot != nil { + ok := object.Key("OriginSnapshot") + if err := awsAwsjson11_serializeDocumentCreateOpenZFSOriginSnapshotConfiguration(v.OriginSnapshot, ok); err != nil { + return err + } + } + + if v.ParentVolumeId != nil { + ok := object.Key("ParentVolumeId") + ok.String(*v.ParentVolumeId) + } + + if v.ReadOnly != nil { + ok := object.Key("ReadOnly") + ok.Boolean(*v.ReadOnly) + } + + if v.StorageCapacityQuotaGiB != nil { + ok := object.Key("StorageCapacityQuotaGiB") + ok.Integer(*v.StorageCapacityQuotaGiB) + } + + if v.StorageCapacityReservationGiB != nil { + ok := object.Key("StorageCapacityReservationGiB") + ok.Integer(*v.StorageCapacityReservationGiB) + } + + if v.UserAndGroupQuotas != nil { + ok := object.Key("UserAndGroupQuotas") + if err := awsAwsjson11_serializeDocumentOpenZFSUserAndGroupQuotas(v.UserAndGroupQuotas, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentCreateSvmActiveDirectoryConfiguration(v *types.CreateSvmActiveDirectoryConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1802,6 +2518,17 @@ func awsAwsjson11_serializeDocumentCreateSvmActiveDirectoryConfiguration(v *type return nil } +func awsAwsjson11_serializeDocumentDataRepositoryAssociationIds(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_serializeDocumentDataRepositoryTaskFilter(v *types.DataRepositoryTaskFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1834,18 +2561,212 @@ func awsAwsjson11_serializeDocumentDataRepositoryTaskFilters(v []types.DataRepos return nil } -func awsAwsjson11_serializeDocumentDataRepositoryTaskFilterValues(v []string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentDataRepositoryTaskFilterValues(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_serializeDocumentDataRepositoryTaskPaths(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_serializeDocumentDeleteFileSystemLustreConfiguration(v *types.DeleteFileSystemLustreConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FinalBackupTags != nil { + ok := object.Key("FinalBackupTags") + if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { + return err + } + } + + if v.SkipFinalBackup != nil { + ok := object.Key("SkipFinalBackup") + ok.Boolean(*v.SkipFinalBackup) + } + + return nil +} + +func awsAwsjson11_serializeDocumentDeleteFileSystemOpenZFSConfiguration(v *types.DeleteFileSystemOpenZFSConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FinalBackupTags != nil { + ok := object.Key("FinalBackupTags") + if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { + return err + } + } + + if v.SkipFinalBackup != nil { + ok := object.Key("SkipFinalBackup") + ok.Boolean(*v.SkipFinalBackup) + } + + return nil +} + +func awsAwsjson11_serializeDocumentDeleteFileSystemWindowsConfiguration(v *types.DeleteFileSystemWindowsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FinalBackupTags != nil { + ok := object.Key("FinalBackupTags") + if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { + return err + } + } + + if v.SkipFinalBackup != nil { + ok := object.Key("SkipFinalBackup") + ok.Boolean(*v.SkipFinalBackup) + } + + return nil +} + +func awsAwsjson11_serializeDocumentDeleteOpenZFSVolumeOptions(v []types.DeleteOpenZFSVolumeOption, 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_serializeDocumentDeleteVolumeOntapConfiguration(v *types.DeleteVolumeOntapConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FinalBackupTags != nil { + ok := object.Key("FinalBackupTags") + if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { + return err + } + } + + if v.SkipFinalBackup != nil { + ok := object.Key("SkipFinalBackup") + ok.Boolean(*v.SkipFinalBackup) + } + + return nil +} + +func awsAwsjson11_serializeDocumentDeleteVolumeOpenZFSConfiguration(v *types.DeleteVolumeOpenZFSConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Options != nil { + ok := object.Key("Options") + if err := awsAwsjson11_serializeDocumentDeleteOpenZFSVolumeOptions(v.Options, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentDiskIopsConfiguration(v *types.DiskIopsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Iops != nil { + ok := object.Key("Iops") + ok.Long(*v.Iops) + } + + if len(v.Mode) > 0 { + ok := object.Key("Mode") + ok.String(string(v.Mode)) + } + + return nil +} + +func awsAwsjson11_serializeDocumentDnsIps(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_serializeDocumentEventTypes(v []types.EventType, 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_serializeDocumentFileSystemIds(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_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsAwsjson11_serializeDocumentFilterValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeDocumentDataRepositoryTaskPaths(v []string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1856,81 +2777,106 @@ func awsAwsjson11_serializeDocumentDataRepositoryTaskPaths(v []string, value smi return nil } -func awsAwsjson11_serializeDocumentDeleteFileSystemLustreConfiguration(v *types.DeleteFileSystemLustreConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentLustreLogCreateConfiguration(v *types.LustreLogCreateConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FinalBackupTags != nil { - ok := object.Key("FinalBackupTags") - if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { - return err - } + if v.Destination != nil { + ok := object.Key("Destination") + ok.String(*v.Destination) } - if v.SkipFinalBackup != nil { - ok := object.Key("SkipFinalBackup") - ok.Boolean(*v.SkipFinalBackup) + if len(v.Level) > 0 { + ok := object.Key("Level") + ok.String(string(v.Level)) } return nil } -func awsAwsjson11_serializeDocumentDeleteFileSystemWindowsConfiguration(v *types.DeleteFileSystemWindowsConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpenZFSClientConfiguration(v *types.OpenZFSClientConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FinalBackupTags != nil { - ok := object.Key("FinalBackupTags") - if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { + if v.Clients != nil { + ok := object.Key("Clients") + ok.String(*v.Clients) + } + + if v.Options != nil { + ok := object.Key("Options") + if err := awsAwsjson11_serializeDocumentOpenZFSNfsExportOptions(v.Options, ok); err != nil { return err } } - if v.SkipFinalBackup != nil { - ok := object.Key("SkipFinalBackup") - ok.Boolean(*v.SkipFinalBackup) - } + return nil +} + +func awsAwsjson11_serializeDocumentOpenZFSClientConfigurations(v []types.OpenZFSClientConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentOpenZFSClientConfiguration(&v[i], av); err != nil { + return err + } + } return nil } -func awsAwsjson11_serializeDocumentDeleteVolumeOntapConfiguration(v *types.DeleteVolumeOntapConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpenZFSCreateRootVolumeConfiguration(v *types.OpenZFSCreateRootVolumeConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FinalBackupTags != nil { - ok := object.Key("FinalBackupTags") - if err := awsAwsjson11_serializeDocumentTags(v.FinalBackupTags, ok); err != nil { + if v.CopyTagsToSnapshots != nil { + ok := object.Key("CopyTagsToSnapshots") + ok.Boolean(*v.CopyTagsToSnapshots) + } + + if len(v.DataCompressionType) > 0 { + ok := object.Key("DataCompressionType") + ok.String(string(v.DataCompressionType)) + } + + if v.NfsExports != nil { + ok := object.Key("NfsExports") + if err := awsAwsjson11_serializeDocumentOpenZFSNfsExports(v.NfsExports, ok); err != nil { return err } } - if v.SkipFinalBackup != nil { - ok := object.Key("SkipFinalBackup") - ok.Boolean(*v.SkipFinalBackup) + if v.ReadOnly != nil { + ok := object.Key("ReadOnly") + ok.Boolean(*v.ReadOnly) + } + + if v.UserAndGroupQuotas != nil { + ok := object.Key("UserAndGroupQuotas") + if err := awsAwsjson11_serializeDocumentOpenZFSUserAndGroupQuotas(v.UserAndGroupQuotas, ok); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeDocumentDiskIopsConfiguration(v *types.DiskIopsConfiguration, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpenZFSNfsExport(v *types.OpenZFSNfsExport, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Iops != nil { - ok := object.Key("Iops") - ok.Long(*v.Iops) - } - - if len(v.Mode) > 0 { - ok := object.Key("Mode") - ok.String(string(v.Mode)) + if v.ClientConfigurations != nil { + ok := object.Key("ClientConfigurations") + if err := awsAwsjson11_serializeDocumentOpenZFSClientConfigurations(v.ClientConfigurations, ok); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeDocumentDnsIps(v []string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpenZFSNfsExportOptions(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1941,50 +2887,66 @@ func awsAwsjson11_serializeDocumentDnsIps(v []string, value smithyjson.Value) er return nil } -func awsAwsjson11_serializeDocumentFileSystemIds(v []string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpenZFSNfsExports(v []types.OpenZFSNfsExport, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsAwsjson11_serializeDocumentOpenZFSNfsExport(&v[i], av); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentOpenZFSUserAndGroupQuotas(v []types.OpenZFSUserOrGroupQuota, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentOpenZFSUserOrGroupQuota(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentOpenZFSUserOrGroupQuota(v *types.OpenZFSUserOrGroupQuota, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { - ok := object.Key("Name") - ok.String(string(v.Name)) + if v.Id != nil { + ok := object.Key("Id") + ok.Integer(*v.Id) } - if v.Values != nil { - ok := object.Key("Values") - if err := awsAwsjson11_serializeDocumentFilterValues(v.Values, ok); err != nil { - return err - } + if v.StorageCapacityQuotaGiB != nil { + ok := object.Key("StorageCapacityQuotaGiB") + ok.Integer(*v.StorageCapacityQuotaGiB) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } return nil } -func awsAwsjson11_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRestoreOpenZFSVolumeOptions(v []types.RestoreOpenZFSVolumeOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsAwsjson11_serializeDocumentFilter(&v[i], av); err != nil { - return err - } + av.String(string(v[i])) } return nil } -func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Value) error { +func awsAwsjson11_serializeDocumentRouteTableIds(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1995,14 +2957,24 @@ func awsAwsjson11_serializeDocumentFilterValues(v []string, value smithyjson.Val return nil } -func awsAwsjson11_serializeDocumentRouteTableIds(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsAwsjson11_serializeDocumentS3DataRepositoryConfiguration(v *types.S3DataRepositoryConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.AutoExportPolicy != nil { + ok := object.Key("AutoExportPolicy") + if err := awsAwsjson11_serializeDocumentAutoExportPolicy(v.AutoExportPolicy, ok); err != nil { + return err + } + } + + if v.AutoImportPolicy != nil { + ok := object.Key("AutoImportPolicy") + if err := awsAwsjson11_serializeDocumentAutoImportPolicy(v.AutoImportPolicy, ok); err != nil { + return err + } } + return nil } @@ -2080,6 +3052,60 @@ func awsAwsjson11_serializeDocumentSelfManagedActiveDirectoryConfigurationUpdate return nil } +func awsAwsjson11_serializeDocumentSnapshotFilter(v *types.SnapshotFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsAwsjson11_serializeDocumentSnapshotFilterValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentSnapshotFilters(v []types.SnapshotFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentSnapshotFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentSnapshotFilterValues(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_serializeDocumentSnapshotIds(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_serializeDocumentStorageVirtualMachineFilter(v *types.StorageVirtualMachineFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2238,6 +3264,13 @@ func awsAwsjson11_serializeDocumentUpdateFileSystemLustreConfiguration(v *types. ok.String(string(v.DataCompressionType)) } + if v.LogConfiguration != nil { + ok := object.Key("LogConfiguration") + if err := awsAwsjson11_serializeDocumentLustreLogCreateConfiguration(v.LogConfiguration, ok); err != nil { + return err + } + } + if v.WeeklyMaintenanceStartTime != nil { ok := object.Key("WeeklyMaintenanceStartTime") ok.String(*v.WeeklyMaintenanceStartTime) @@ -2273,6 +3306,50 @@ func awsAwsjson11_serializeDocumentUpdateFileSystemOntapConfiguration(v *types.U return nil } +func awsAwsjson11_serializeDocumentUpdateFileSystemOpenZFSConfiguration(v *types.UpdateFileSystemOpenZFSConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AutomaticBackupRetentionDays != nil { + ok := object.Key("AutomaticBackupRetentionDays") + ok.Integer(*v.AutomaticBackupRetentionDays) + } + + if v.CopyTagsToBackups != nil { + ok := object.Key("CopyTagsToBackups") + ok.Boolean(*v.CopyTagsToBackups) + } + + if v.CopyTagsToVolumes != nil { + ok := object.Key("CopyTagsToVolumes") + ok.Boolean(*v.CopyTagsToVolumes) + } + + if v.DailyAutomaticBackupStartTime != nil { + ok := object.Key("DailyAutomaticBackupStartTime") + ok.String(*v.DailyAutomaticBackupStartTime) + } + + if v.DiskIopsConfiguration != nil { + ok := object.Key("DiskIopsConfiguration") + if err := awsAwsjson11_serializeDocumentDiskIopsConfiguration(v.DiskIopsConfiguration, ok); err != nil { + return err + } + } + + if v.ThroughputCapacity != nil { + ok := object.Key("ThroughputCapacity") + ok.Integer(*v.ThroughputCapacity) + } + + if v.WeeklyMaintenanceStartTime != nil { + ok := object.Key("WeeklyMaintenanceStartTime") + ok.String(*v.WeeklyMaintenanceStartTime) + } + + return nil +} + func awsAwsjson11_serializeDocumentUpdateFileSystemWindowsConfiguration(v *types.UpdateFileSystemWindowsConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2348,6 +3425,47 @@ func awsAwsjson11_serializeDocumentUpdateOntapVolumeConfiguration(v *types.Updat return nil } +func awsAwsjson11_serializeDocumentUpdateOpenZFSVolumeConfiguration(v *types.UpdateOpenZFSVolumeConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.DataCompressionType) > 0 { + ok := object.Key("DataCompressionType") + ok.String(string(v.DataCompressionType)) + } + + if v.NfsExports != nil { + ok := object.Key("NfsExports") + if err := awsAwsjson11_serializeDocumentOpenZFSNfsExports(v.NfsExports, ok); err != nil { + return err + } + } + + if v.ReadOnly != nil { + ok := object.Key("ReadOnly") + ok.Boolean(*v.ReadOnly) + } + + if v.StorageCapacityQuotaGiB != nil { + ok := object.Key("StorageCapacityQuotaGiB") + ok.Integer(*v.StorageCapacityQuotaGiB) + } + + if v.StorageCapacityReservationGiB != nil { + ok := object.Key("StorageCapacityReservationGiB") + ok.Integer(*v.StorageCapacityReservationGiB) + } + + if v.UserAndGroupQuotas != nil { + ok := object.Key("UserAndGroupQuotas") + if err := awsAwsjson11_serializeDocumentOpenZFSUserAndGroupQuotas(v.UserAndGroupQuotas, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentUpdateSvmActiveDirectoryConfiguration(v *types.UpdateSvmActiveDirectoryConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2498,9 +3616,33 @@ func awsAwsjson11_serializeOpDocumentCopyBackupInput(v *CopyBackupInput, value s ok.String(*v.SourceBackupId) } - if v.SourceRegion != nil { - ok := object.Key("SourceRegion") - ok.String(*v.SourceRegion) + if v.SourceRegion != nil { + ok := object.Key("SourceRegion") + ok.String(*v.SourceRegion) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentCreateBackupInput(v *CreateBackupInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.FileSystemId != nil { + ok := object.Key("FileSystemId") + ok.String(*v.FileSystemId) } if v.Tags != nil { @@ -2510,23 +3652,55 @@ func awsAwsjson11_serializeOpDocumentCopyBackupInput(v *CopyBackupInput, value s } } + if v.VolumeId != nil { + ok := object.Key("VolumeId") + ok.String(*v.VolumeId) + } + return nil } -func awsAwsjson11_serializeOpDocumentCreateBackupInput(v *CreateBackupInput, value smithyjson.Value) error { +func awsAwsjson11_serializeOpDocumentCreateDataRepositoryAssociationInput(v *CreateDataRepositoryAssociationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.BatchImportMetaDataOnCreate != nil { + ok := object.Key("BatchImportMetaDataOnCreate") + ok.Boolean(*v.BatchImportMetaDataOnCreate) + } + if v.ClientRequestToken != nil { ok := object.Key("ClientRequestToken") ok.String(*v.ClientRequestToken) } + if v.DataRepositoryPath != nil { + ok := object.Key("DataRepositoryPath") + ok.String(*v.DataRepositoryPath) + } + if v.FileSystemId != nil { ok := object.Key("FileSystemId") ok.String(*v.FileSystemId) } + if v.FileSystemPath != nil { + ok := object.Key("FileSystemPath") + ok.String(*v.FileSystemPath) + } + + if v.ImportedFileChunkSize != nil { + ok := object.Key("ImportedFileChunkSize") + ok.Integer(*v.ImportedFileChunkSize) + } + + if v.S3 != nil { + ok := object.Key("S3") + if err := awsAwsjson11_serializeDocumentS3DataRepositoryConfiguration(v.S3, ok); err != nil { + return err + } + } + if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { @@ -2534,11 +3708,6 @@ func awsAwsjson11_serializeOpDocumentCreateBackupInput(v *CreateBackupInput, val } } - if v.VolumeId != nil { - ok := object.Key("VolumeId") - ok.String(*v.VolumeId) - } - return nil } @@ -2616,6 +3785,13 @@ func awsAwsjson11_serializeOpDocumentCreateFileSystemFromBackupInput(v *CreateFi } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentCreateFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.SecurityGroupIds != nil { ok := object.Key("SecurityGroupIds") if err := awsAwsjson11_serializeDocumentSecurityGroupIds(v.SecurityGroupIds, ok); err != nil { @@ -2690,6 +3866,13 @@ func awsAwsjson11_serializeOpDocumentCreateFileSystemInput(v *CreateFileSystemIn } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentCreateFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.SecurityGroupIds != nil { ok := object.Key("SecurityGroupIds") if err := awsAwsjson11_serializeDocumentSecurityGroupIds(v.SecurityGroupIds, ok); err != nil { @@ -2731,6 +3914,35 @@ func awsAwsjson11_serializeOpDocumentCreateFileSystemInput(v *CreateFileSystemIn return nil } +func awsAwsjson11_serializeOpDocumentCreateSnapshotInput(v *CreateSnapshotInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + if v.VolumeId != nil { + ok := object.Key("VolumeId") + ok.String(*v.VolumeId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateStorageVirtualMachineInput(v *CreateStorageVirtualMachineInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2834,6 +4046,13 @@ func awsAwsjson11_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, val } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentCreateOpenZFSVolumeConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentTags(v.Tags, ok); err != nil { @@ -2866,6 +4085,28 @@ func awsAwsjson11_serializeOpDocumentDeleteBackupInput(v *DeleteBackupInput, val return nil } +func awsAwsjson11_serializeOpDocumentDeleteDataRepositoryAssociationInput(v *DeleteDataRepositoryAssociationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociationId != nil { + ok := object.Key("AssociationId") + ok.String(*v.AssociationId) + } + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.DeleteDataInFileSystem != nil { + ok := object.Key("DeleteDataInFileSystem") + ok.Boolean(*v.DeleteDataInFileSystem) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteFileSystemInput(v *DeleteFileSystemInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2887,6 +4128,13 @@ func awsAwsjson11_serializeOpDocumentDeleteFileSystemInput(v *DeleteFileSystemIn } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentDeleteFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.WindowsConfiguration != nil { ok := object.Key("WindowsConfiguration") if err := awsAwsjson11_serializeDocumentDeleteFileSystemWindowsConfiguration(v.WindowsConfiguration, ok); err != nil { @@ -2897,6 +4145,23 @@ func awsAwsjson11_serializeOpDocumentDeleteFileSystemInput(v *DeleteFileSystemIn return nil } +func awsAwsjson11_serializeOpDocumentDeleteSnapshotInput(v *DeleteSnapshotInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.SnapshotId != nil { + ok := object.Key("SnapshotId") + ok.String(*v.SnapshotId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteStorageVirtualMachineInput(v *DeleteStorageVirtualMachineInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2930,6 +4195,13 @@ func awsAwsjson11_serializeOpDocumentDeleteVolumeInput(v *DeleteVolumeInput, val } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentDeleteVolumeOpenZFSConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.VolumeId != nil { ok := object.Key("VolumeId") ok.String(*v.VolumeId) @@ -2969,6 +4241,37 @@ func awsAwsjson11_serializeOpDocumentDescribeBackupsInput(v *DescribeBackupsInpu return nil } +func awsAwsjson11_serializeOpDocumentDescribeDataRepositoryAssociationsInput(v *DescribeDataRepositoryAssociationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociationIds != nil { + ok := object.Key("AssociationIds") + if err := awsAwsjson11_serializeDocumentDataRepositoryAssociationIds(v.AssociationIds, ok); err != nil { + return err + } + } + + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsAwsjson11_serializeDocumentFilters(v.Filters, 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_serializeOpDocumentDescribeDataRepositoryTasksInput(v *DescribeDataRepositoryTasksInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3051,6 +4354,37 @@ func awsAwsjson11_serializeOpDocumentDescribeFileSystemsInput(v *DescribeFileSys return nil } +func awsAwsjson11_serializeOpDocumentDescribeSnapshotsInput(v *DescribeSnapshotsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsAwsjson11_serializeDocumentSnapshotFilters(v.Filters, 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) + } + + if v.SnapshotIds != nil { + ok := object.Key("SnapshotIds") + if err := awsAwsjson11_serializeDocumentSnapshotIds(v.SnapshotIds, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeStorageVirtualMachinesInput(v *DescribeStorageVirtualMachinesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3159,6 +4493,52 @@ func awsAwsjson11_serializeOpDocumentListTagsForResourceInput(v *ListTagsForReso return nil } +func awsAwsjson11_serializeOpDocumentReleaseFileSystemNfsV3LocksInput(v *ReleaseFileSystemNfsV3LocksInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.FileSystemId != nil { + ok := object.Key("FileSystemId") + ok.String(*v.FileSystemId) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentRestoreVolumeFromSnapshotInput(v *RestoreVolumeFromSnapshotInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.Options != nil { + ok := object.Key("Options") + if err := awsAwsjson11_serializeDocumentRestoreOpenZFSVolumeOptions(v.Options, ok); err != nil { + return err + } + } + + if v.SnapshotId != nil { + ok := object.Key("SnapshotId") + ok.String(*v.SnapshotId) + } + + if v.VolumeId != nil { + ok := object.Key("VolumeId") + ok.String(*v.VolumeId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3197,6 +4577,35 @@ func awsAwsjson11_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, v return nil } +func awsAwsjson11_serializeOpDocumentUpdateDataRepositoryAssociationInput(v *UpdateDataRepositoryAssociationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociationId != nil { + ok := object.Key("AssociationId") + ok.String(*v.AssociationId) + } + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.ImportedFileChunkSize != nil { + ok := object.Key("ImportedFileChunkSize") + ok.Integer(*v.ImportedFileChunkSize) + } + + if v.S3 != nil { + ok := object.Key("S3") + if err := awsAwsjson11_serializeDocumentS3DataRepositoryConfiguration(v.S3, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateFileSystemInput(v *UpdateFileSystemInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3225,6 +4634,13 @@ func awsAwsjson11_serializeOpDocumentUpdateFileSystemInput(v *UpdateFileSystemIn } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentUpdateFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.StorageCapacity != nil { ok := object.Key("StorageCapacity") ok.Integer(*v.StorageCapacity) @@ -3240,6 +4656,28 @@ func awsAwsjson11_serializeOpDocumentUpdateFileSystemInput(v *UpdateFileSystemIn return nil } +func awsAwsjson11_serializeOpDocumentUpdateSnapshotInput(v *UpdateSnapshotInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientRequestToken != nil { + ok := object.Key("ClientRequestToken") + ok.String(*v.ClientRequestToken) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SnapshotId != nil { + ok := object.Key("SnapshotId") + ok.String(*v.SnapshotId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateStorageVirtualMachineInput(v *UpdateStorageVirtualMachineInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3278,6 +4716,11 @@ func awsAwsjson11_serializeOpDocumentUpdateVolumeInput(v *UpdateVolumeInput, val ok.String(*v.ClientRequestToken) } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + if v.OntapConfiguration != nil { ok := object.Key("OntapConfiguration") if err := awsAwsjson11_serializeDocumentUpdateOntapVolumeConfiguration(v.OntapConfiguration, ok); err != nil { @@ -3285,6 +4728,13 @@ func awsAwsjson11_serializeOpDocumentUpdateVolumeInput(v *UpdateVolumeInput, val } } + if v.OpenZFSConfiguration != nil { + ok := object.Key("OpenZFSConfiguration") + if err := awsAwsjson11_serializeDocumentUpdateOpenZFSVolumeConfiguration(v.OpenZFSConfiguration, ok); err != nil { + return err + } + } + if v.VolumeId != nil { ok := object.Key("VolumeId") ok.String(*v.VolumeId) diff --git a/service/fsx/types/enums.go b/service/fsx/types/enums.go index 4d3a58ce8c8..0e405f04c83 100644 --- a/service/fsx/types/enums.go +++ b/service/fsx/types/enums.go @@ -32,6 +32,9 @@ const ( AdministrativeActionTypeStorageOptimization AdministrativeActionType = "STORAGE_OPTIMIZATION" AdministrativeActionTypeFileSystemAliasAssociation AdministrativeActionType = "FILE_SYSTEM_ALIAS_ASSOCIATION" AdministrativeActionTypeFileSystemAliasDisassociation AdministrativeActionType = "FILE_SYSTEM_ALIAS_DISASSOCIATION" + AdministrativeActionTypeVolumeUpdate AdministrativeActionType = "VOLUME_UPDATE" + AdministrativeActionTypeSnapshotUpdate AdministrativeActionType = "SNAPSHOT_UPDATE" + AdministrativeActionTypeReleaseNfsV3Locks AdministrativeActionType = "RELEASE_NFS_V3_LOCKS" ) // Values returns all known values for AdministrativeActionType. Note that this can @@ -43,6 +46,9 @@ func (AdministrativeActionType) Values() []AdministrativeActionType { "STORAGE_OPTIMIZATION", "FILE_SYSTEM_ALIAS_ASSOCIATION", "FILE_SYSTEM_ALIAS_DISASSOCIATION", + "VOLUME_UPDATE", + "SNAPSHOT_UPDATE", + "RELEASE_NFS_V3_LOCKS", } } @@ -74,9 +80,10 @@ type AutoImportPolicyType string // Enum values for AutoImportPolicyType const ( - AutoImportPolicyTypeNone AutoImportPolicyType = "NONE" - AutoImportPolicyTypeNew AutoImportPolicyType = "NEW" - AutoImportPolicyTypeNewChanged AutoImportPolicyType = "NEW_CHANGED" + AutoImportPolicyTypeNone AutoImportPolicyType = "NONE" + AutoImportPolicyTypeNew AutoImportPolicyType = "NEW" + AutoImportPolicyTypeNewChanged AutoImportPolicyType = "NEW_CHANGED" + AutoImportPolicyTypeNewChangedDeleted AutoImportPolicyType = "NEW_CHANGED_DELETED" ) // Values returns all known values for AutoImportPolicyType. Note that this can be @@ -87,6 +94,7 @@ func (AutoImportPolicyType) Values() []AutoImportPolicyType { "NONE", "NEW", "NEW_CHANGED", + "NEW_CHANGED_DELETED", } } @@ -165,6 +173,7 @@ const ( DataRepositoryLifecycleMisconfigured DataRepositoryLifecycle = "MISCONFIGURED" DataRepositoryLifecycleUpdating DataRepositoryLifecycle = "UPDATING" DataRepositoryLifecycleDeleting DataRepositoryLifecycle = "DELETING" + DataRepositoryLifecycleFailed DataRepositoryLifecycle = "FAILED" ) // Values returns all known values for DataRepositoryLifecycle. Note that this can @@ -177,6 +186,7 @@ func (DataRepositoryLifecycle) Values() []DataRepositoryLifecycle { "MISCONFIGURED", "UPDATING", "DELETING", + "FAILED", } } @@ -184,8 +194,9 @@ type DataRepositoryTaskFilterName string // Enum values for DataRepositoryTaskFilterName const ( - DataRepositoryTaskFilterNameFileSystemId DataRepositoryTaskFilterName = "file-system-id" - DataRepositoryTaskFilterNameTaskLifecycle DataRepositoryTaskFilterName = "task-lifecycle" + DataRepositoryTaskFilterNameFileSystemId DataRepositoryTaskFilterName = "file-system-id" + DataRepositoryTaskFilterNameTaskLifecycle DataRepositoryTaskFilterName = "task-lifecycle" + DataRepositoryTaskFilterNameDataRepoAssociationId DataRepositoryTaskFilterName = "data-repository-association-id" ) // Values returns all known values for DataRepositoryTaskFilterName. Note that this @@ -195,6 +206,7 @@ func (DataRepositoryTaskFilterName) Values() []DataRepositoryTaskFilterName { return []DataRepositoryTaskFilterName{ "file-system-id", "task-lifecycle", + "data-repository-association-id", } } @@ -229,6 +241,7 @@ type DataRepositoryTaskType string // Enum values for DataRepositoryTaskType const ( DataRepositoryTaskTypeExport DataRepositoryTaskType = "EXPORT_TO_REPOSITORY" + DataRepositoryTaskTypeImport DataRepositoryTaskType = "IMPORT_METADATA_FROM_REPOSITORY" ) // Values returns all known values for DataRepositoryTaskType. Note that this can @@ -237,6 +250,23 @@ const ( func (DataRepositoryTaskType) Values() []DataRepositoryTaskType { return []DataRepositoryTaskType{ "EXPORT_TO_REPOSITORY", + "IMPORT_METADATA_FROM_REPOSITORY", + } +} + +type DeleteOpenZFSVolumeOption string + +// Enum values for DeleteOpenZFSVolumeOption +const ( + DeleteOpenZFSVolumeOptionDeleteChildVolumesAndSnapshots DeleteOpenZFSVolumeOption = "DELETE_CHILD_VOLUMES_AND_SNAPSHOTS" +) + +// Values returns all known values for DeleteOpenZFSVolumeOption. 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 (DeleteOpenZFSVolumeOption) Values() []DeleteOpenZFSVolumeOption { + return []DeleteOpenZFSVolumeOption{ + "DELETE_CHILD_VOLUMES_AND_SNAPSHOTS", } } @@ -276,6 +306,26 @@ func (DriveCacheType) Values() []DriveCacheType { } } +type EventType string + +// Enum values for EventType +const ( + EventTypeNew EventType = "NEW" + EventTypeChanged EventType = "CHANGED" + EventTypeDeleted EventType = "DELETED" +) + +// Values returns all known values for EventType. 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 (EventType) Values() []EventType { + return []EventType{ + "NEW", + "CHANGED", + "DELETED", + } +} + type FileSystemLifecycle string // Enum values for FileSystemLifecycle @@ -328,6 +378,7 @@ const ( FileSystemTypeWindows FileSystemType = "WINDOWS" FileSystemTypeLustre FileSystemType = "LUSTRE" FileSystemTypeOntap FileSystemType = "ONTAP" + FileSystemTypeOpenzfs FileSystemType = "OPENZFS" ) // Values returns all known values for FileSystemType. Note that this can be @@ -338,6 +389,7 @@ func (FileSystemType) Values() []FileSystemType { "WINDOWS", "LUSTRE", "ONTAP", + "OPENZFS", } } @@ -345,10 +397,11 @@ type FilterName string // Enum values for FilterName const ( - FilterNameFileSystemId FilterName = "file-system-id" - FilterNameBackupType FilterName = "backup-type" - FilterNameFileSystemType FilterName = "file-system-type" - FilterNameVolumeId FilterName = "volume-id" + FilterNameFileSystemId FilterName = "file-system-id" + FilterNameBackupType FilterName = "backup-type" + FilterNameFileSystemType FilterName = "file-system-type" + FilterNameVolumeId FilterName = "volume-id" + FilterNameDataRepositoryType FilterName = "data-repository-type" ) // Values returns all known values for FilterName. Note that this can be expanded @@ -360,6 +413,7 @@ func (FilterName) Values() []FilterName { "backup-type", "file-system-type", "volume-id", + "data-repository-type", } } @@ -383,6 +437,28 @@ func (FlexCacheEndpointType) Values() []FlexCacheEndpointType { } } +type LustreAccessAuditLogLevel string + +// Enum values for LustreAccessAuditLogLevel +const ( + LustreAccessAuditLogLevelDisabled LustreAccessAuditLogLevel = "DISABLED" + LustreAccessAuditLogLevelWarnOnly LustreAccessAuditLogLevel = "WARN_ONLY" + LustreAccessAuditLogLevelErrorOnly LustreAccessAuditLogLevel = "ERROR_ONLY" + LustreAccessAuditLogLevelWarnError LustreAccessAuditLogLevel = "WARN_ERROR" +) + +// Values returns all known values for LustreAccessAuditLogLevel. 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 (LustreAccessAuditLogLevel) Values() []LustreAccessAuditLogLevel { + return []LustreAccessAuditLogLevel{ + "DISABLED", + "WARN_ONLY", + "ERROR_ONLY", + "WARN_ERROR", + } +} + type LustreDeploymentType string // Enum values for LustreDeploymentType @@ -390,6 +466,7 @@ const ( LustreDeploymentTypeScratch1 LustreDeploymentType = "SCRATCH_1" LustreDeploymentTypeScratch2 LustreDeploymentType = "SCRATCH_2" LustreDeploymentTypePersistent1 LustreDeploymentType = "PERSISTENT_1" + LustreDeploymentTypePersistent2 LustreDeploymentType = "PERSISTENT_2" ) // Values returns all known values for LustreDeploymentType. Note that this can be @@ -400,6 +477,7 @@ func (LustreDeploymentType) Values() []LustreDeploymentType { "SCRATCH_1", "SCRATCH_2", "PERSISTENT_1", + "PERSISTENT_2", } } @@ -439,6 +517,76 @@ func (OntapVolumeType) Values() []OntapVolumeType { } } +type OpenZFSCopyStrategy string + +// Enum values for OpenZFSCopyStrategy +const ( + OpenZFSCopyStrategyClone OpenZFSCopyStrategy = "CLONE" + OpenZFSCopyStrategyFullCopy OpenZFSCopyStrategy = "FULL_COPY" +) + +// Values returns all known values for OpenZFSCopyStrategy. 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 (OpenZFSCopyStrategy) Values() []OpenZFSCopyStrategy { + return []OpenZFSCopyStrategy{ + "CLONE", + "FULL_COPY", + } +} + +type OpenZFSDataCompressionType string + +// Enum values for OpenZFSDataCompressionType +const ( + OpenZFSDataCompressionTypeNone OpenZFSDataCompressionType = "NONE" + OpenZFSDataCompressionTypeZstd OpenZFSDataCompressionType = "ZSTD" +) + +// Values returns all known values for OpenZFSDataCompressionType. 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 (OpenZFSDataCompressionType) Values() []OpenZFSDataCompressionType { + return []OpenZFSDataCompressionType{ + "NONE", + "ZSTD", + } +} + +type OpenZFSDeploymentType string + +// Enum values for OpenZFSDeploymentType +const ( + OpenZFSDeploymentTypeSingleAz1 OpenZFSDeploymentType = "SINGLE_AZ_1" +) + +// Values returns all known values for OpenZFSDeploymentType. 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 (OpenZFSDeploymentType) Values() []OpenZFSDeploymentType { + return []OpenZFSDeploymentType{ + "SINGLE_AZ_1", + } +} + +type OpenZFSQuotaType string + +// Enum values for OpenZFSQuotaType +const ( + OpenZFSQuotaTypeUser OpenZFSQuotaType = "USER" + OpenZFSQuotaTypeGroup OpenZFSQuotaType = "GROUP" +) + +// Values returns all known values for OpenZFSQuotaType. 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 (OpenZFSQuotaType) Values() []OpenZFSQuotaType { + return []OpenZFSQuotaType{ + "USER", + "GROUP", + } +} + type ReportFormat string // Enum values for ReportFormat @@ -489,6 +637,24 @@ func (ResourceType) Values() []ResourceType { } } +type RestoreOpenZFSVolumeOption string + +// Enum values for RestoreOpenZFSVolumeOption +const ( + RestoreOpenZFSVolumeOptionDeleteIntermediateSnapshots RestoreOpenZFSVolumeOption = "DELETE_INTERMEDIATE_SNAPSHOTS" + RestoreOpenZFSVolumeOptionDeleteClonedVolumes RestoreOpenZFSVolumeOption = "DELETE_CLONED_VOLUMES" +) + +// Values returns all known values for RestoreOpenZFSVolumeOption. 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 (RestoreOpenZFSVolumeOption) Values() []RestoreOpenZFSVolumeOption { + return []RestoreOpenZFSVolumeOption{ + "DELETE_INTERMEDIATE_SNAPSHOTS", + "DELETE_CLONED_VOLUMES", + } +} + type SecurityStyle string // Enum values for SecurityStyle @@ -541,6 +707,46 @@ func (ServiceLimit) Values() []ServiceLimit { } } +type SnapshotFilterName string + +// Enum values for SnapshotFilterName +const ( + SnapshotFilterNameFileSystemId SnapshotFilterName = "file-system-id" + SnapshotFilterNameVolumeId SnapshotFilterName = "volume-id" +) + +// Values returns all known values for SnapshotFilterName. 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 (SnapshotFilterName) Values() []SnapshotFilterName { + return []SnapshotFilterName{ + "file-system-id", + "volume-id", + } +} + +type SnapshotLifecycle string + +// Enum values for SnapshotLifecycle +const ( + SnapshotLifecyclePending SnapshotLifecycle = "PENDING" + SnapshotLifecycleCreating SnapshotLifecycle = "CREATING" + SnapshotLifecycleDeleting SnapshotLifecycle = "DELETING" + SnapshotLifecycleAvailable SnapshotLifecycle = "AVAILABLE" +) + +// Values returns all known values for SnapshotLifecycle. 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 (SnapshotLifecycle) Values() []SnapshotLifecycle { + return []SnapshotLifecycle{ + "PENDING", + "CREATING", + "DELETING", + "AVAILABLE", + } +} + type Status string // Enum values for Status @@ -720,6 +926,7 @@ const ( VolumeLifecycleFailed VolumeLifecycle = "FAILED" VolumeLifecycleMisconfigured VolumeLifecycle = "MISCONFIGURED" VolumeLifecyclePending VolumeLifecycle = "PENDING" + VolumeLifecycleAvailable VolumeLifecycle = "AVAILABLE" ) // Values returns all known values for VolumeLifecycle. Note that this can be @@ -733,6 +940,7 @@ func (VolumeLifecycle) Values() []VolumeLifecycle { "FAILED", "MISCONFIGURED", "PENDING", + "AVAILABLE", } } @@ -740,7 +948,8 @@ type VolumeType string // Enum values for VolumeType const ( - VolumeTypeOntap VolumeType = "ONTAP" + VolumeTypeOntap VolumeType = "ONTAP" + VolumeTypeOpenzfs VolumeType = "OPENZFS" ) // Values returns all known values for VolumeType. Note that this can be expanded @@ -749,6 +958,7 @@ const ( func (VolumeType) Values() []VolumeType { return []VolumeType{ "ONTAP", + "OPENZFS", } } diff --git a/service/fsx/types/errors.go b/service/fsx/types/errors.go index edbde0db13a..d57537f223d 100644 --- a/service/fsx/types/errors.go +++ b/service/fsx/types/errors.go @@ -129,6 +129,27 @@ func (e *BadRequest) ErrorMessage() string { func (e *BadRequest) ErrorCode() string { return "BadRequest" } func (e *BadRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// No data repository associations were found based upon the supplied parameters. +type DataRepositoryAssociationNotFound struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *DataRepositoryAssociationNotFound) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *DataRepositoryAssociationNotFound) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *DataRepositoryAssociationNotFound) ErrorCode() string { + return "DataRepositoryAssociationNotFound" +} +func (e *DataRepositoryAssociationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The data repository task could not be canceled because the task has already // ended. type DataRepositoryTaskEnded struct { @@ -269,7 +290,26 @@ func (e *InternalServerError) ErrorMessage() string { func (e *InternalServerError) ErrorCode() string { return "InternalServerError" } func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } -// The Key Management Service (KMS) key of the destination backup is invalid. +// You have filtered the response to a data repository type that is not supported. +type InvalidDataRepositoryType struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InvalidDataRepositoryType) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidDataRepositoryType) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidDataRepositoryType) ErrorCode() string { return "InvalidDataRepositoryType" } +func (e *InvalidDataRepositoryType) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The Key Management Service (KMS) key of the destination backup is not valid. type InvalidDestinationKmsKey struct { Message *string @@ -371,8 +411,8 @@ func (e *InvalidPerUnitStorageThroughput) ErrorCode() string { } func (e *InvalidPerUnitStorageThroughput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The Region provided for Source Region is invalid or is in a different Amazon Web -// Services partition. +// The Region provided for SourceRegion is not valid or is in a different Amazon +// Web Services partition. type InvalidRegion struct { Message *string @@ -391,7 +431,7 @@ func (e *InvalidRegion) ErrorMessage() string { func (e *InvalidRegion) ErrorCode() string { return "InvalidRegion" } func (e *InvalidRegion) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The Key Management Service (KMS) key of the source backup is invalid. +// The Key Management Service (KMS) key of the source backup is not valid. type InvalidSourceKmsKey struct { Message *string @@ -534,8 +574,27 @@ func (e *ServiceLimitExceeded) ErrorMessage() string { func (e *ServiceLimitExceeded) ErrorCode() string { return "ServiceLimitExceeded" } func (e *ServiceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The request was rejected because the lifecycle status of the source backup is -// not AVAILABLE. +// No Amazon FSx snapshots were found based on the supplied parameters. +type SnapshotNotFound struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *SnapshotNotFound) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *SnapshotNotFound) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *SnapshotNotFound) ErrorCode() string { return "SnapshotNotFound" } +func (e *SnapshotNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was rejected because the lifecycle status of the source backup isn't +// AVAILABLE. type SourceBackupUnavailable struct { Message *string diff --git a/service/fsx/types/types.go b/service/fsx/types/types.go index 27cb17f36b1..0e201094083 100644 --- a/service/fsx/types/types.go +++ b/service/fsx/types/types.go @@ -7,15 +7,15 @@ import ( "time" ) -// The Microsoft AD attributes of the Amazon FSx for Windows File Server file -// system. +// The Microsoft Active Directory attributes of the Amazon FSx for Windows File +// Server file system. type ActiveDirectoryBackupAttributes struct { // The ID of the Amazon Web Services Managed Microsoft Active Directory instance to // which the file system is joined. ActiveDirectoryId *string - // The fully qualified domain name of the self-managed AD directory. + // The fully qualified domain name of the self-managed Active Directory directory. DomainName *string // The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify @@ -29,54 +29,76 @@ type ActiveDirectoryBackupAttributes struct { noSmithyDocumentSerde } -// Describes a specific Amazon FSx administrative action for the current Windows or -// Lustre file system. +// Describes a specific Amazon FSx administrative action for the current Windows, +// Lustre, or OpenZFS file system. type AdministrativeAction struct { // Describes the type of administrative action, as follows: // // * FILE_SYSTEM_UPDATE - - // A file system update administrative action initiated by the user from the Amazon - // FSx console, API (UpdateFileSystem), or CLI (update-file-system). + // A file system update administrative action initiated from the Amazon FSx + // console, API (UpdateFileSystem), or CLI (update-file-system). // // * - // STORAGE_OPTIMIZATION - Once the FILE_SYSTEM_UPDATE task to increase a file - // system's storage capacity completes successfully, a STORAGE_OPTIMIZATION task - // starts. + // STORAGE_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file + // system's storage capacity has been completed successfully, a + // STORAGE_OPTIMIZATION task starts. // - // * For Windows, storage optimization is the process of migrating the - // file system data to the new, larger disks. + // * For Windows, storage optimization is the + // process of migrating the file system data to the new, larger disks. // - // * For Lustre, storage optimization - // consists of rebalancing the data across the existing and newly added file - // servers. + // * For + // Lustre, storage optimization consists of rebalancing the data across the + // existing and newly added file servers. // - // You can track the storage optimization progress using the - // ProgressPercent property. When STORAGE_OPTIMIZATION completes successfully, the - // parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more - // information, see Managing storage capacity + // * For OpenZFS, storage optimization + // consists of migrating data from the older smaller disks to the newer larger + // disks. + // + // You can track the storage-optimization progress using the + // ProgressPercent property. When STORAGE_OPTIMIZATION has been completed + // successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. + // For more information, see Managing storage capacity // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-storage-capacity.html) - // in the Amazon FSx for Windows File Server User Guide and Managing storage and + // in the Amazon FSx for Windows File Server User Guide, Managing storage and // throughput capacity // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/managing-storage-capacity.html) - // in the Amazon FSx for Lustre User Guide. + // in the Amazon FSx for Lustre User Guide, and Managing storage capacity + // (https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/managing-storage-capacity.html) + // in the Amazon FSx for OpenZFS User Guide. // // * FILE_SYSTEM_ALIAS_ASSOCIATION - A - // file system update to associate a new DNS alias with the file system. For more - // information, see . + // file system update to associate a new Domain Name System (DNS) alias with the + // file system. For more information, see AssociateFileSystemAliases + // (https://docs.aws.amazon.com/fsx/latest/APIReference/API_AssociateFileSystemAliases.html). + // + // * + // FILE_SYSTEM_ALIAS_DISASSOCIATION - A file system update to disassociate a DNS + // alias from the file system. For more information, see + // DisassociateFileSystemAliases + // (https://docs.aws.amazon.com/fsx/latest/APIReference/API_DisassociateFileSystemAliases.html). + // + // * + // VOLUME_UPDATE - A volume update to an Amazon FSx for NetApp ONTAP or Amazon FSx + // for OpenZFS volume initiated from the Amazon FSx console, API (UpdateVolume), or + // CLI (update-volume). + // + // * SNAPSHOT_UPDATE - A snapshot update to an Amazon FSx for + // OpenZFS volume initiated from the Amazon FSx console, API (UpdateSnapshot), or + // CLI (update-snapshot). // - // * FILE_SYSTEM_ALIAS_DISASSOCIATION - A file system update to - // disassociate a DNS alias from the file system. For more information, see . + // * RELEASE_NFS_V3_LOCKS - Tracks the release of Network + // File System (NFS) V3 locks on an Amazon FSx for OpenZFS file system. AdministrativeActionType AdministrativeActionType // Provides information about a failed administrative action. FailureDetails *AdministrativeActionFailureDetails - // Provides the percent complete of a STORAGE_OPTIMIZATION administrative action. + // The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. // Does not apply to any other administrative action type. ProgressPercent *int32 - // Time that the administrative action request was received. + // The time that the administrative action request was received. RequestTime *time.Time // Describes the status of the administrative action, as follows: @@ -94,15 +116,9 @@ type AdministrativeAction struct { // Amazon FSx has finished processing the administrative task. // // * - // UPDATED_OPTIMIZING - For a storage capacity increase update, Amazon FSx has + // UPDATED_OPTIMIZING - For a storage-capacity increase update, Amazon FSx has // updated the file system with the new storage capacity, and is now performing the - // storage optimization process. For more information, see Managing storage - // capacity - // (https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-storage-capacity.html) - // in the Amazon FSx for Windows File Server User Guide and Managing storage and - // throughput capacity - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/managing-storage-capacity.html) - // in the Amazon FSx for Lustre User Guide. + // storage-optimization process. Status Status // Describes the target value for the administration action, provided in the @@ -110,7 +126,10 @@ type AdministrativeAction struct { // actions. TargetFileSystemValues *FileSystem - // Describes an Amazon FSx for NetApp ONTAP volume. + // A snapshot of an Amazon FSx for OpenZFS volume. + TargetSnapshotValues *Snapshot + + // Describes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume. TargetVolumeValues *Volume noSmithyDocumentSerde @@ -175,8 +194,66 @@ type Alias struct { noSmithyDocumentSerde } -// A backup of an Amazon FSx for Windows File Server or Amazon FSx for Lustre file -// system, or of an Amazon FSx for NetApp ONTAP volume. +// Describes a data repository association's automatic export policy. The +// AutoExportPolicy defines the types of updated objects on the file system that +// will be automatically exported to the data repository. As you create, modify, or +// delete files, Amazon FSx automatically exports the defined changes +// asynchronously once your application finishes modifying the file. This +// AutoExportPolicy is supported only for file systems with the Persistent_2 +// deployment type. +type AutoExportPolicy struct { + + // The AutoExportPolicy can have the following event values: + // + // * NEW - Amazon FSx + // automatically exports new files and directories to the data repository as they + // are added to the file system. + // + // * CHANGED - Amazon FSx automatically exports + // changes to files and directories on the file system to the data repository. + // + // * + // DELETED - Files and directories are automatically deleted on the data repository + // when they are deleted on the file system. + // + // You can define any combination of + // event types for your AutoExportPolicy. + Events []EventType + + noSmithyDocumentSerde +} + +// Describes the data repository association's automatic import policy. The +// AutoImportPolicy defines how Amazon FSx keeps your file metadata and directory +// listings up to date by importing changes to your file system as you modify +// objects in a linked S3 bucket. This AutoImportPolicy is supported only for file +// systems with the Persistent_2 deployment type. +type AutoImportPolicy struct { + + // The AutoImportPolicy can have the following event values: + // + // * NEW - Amazon FSx + // automatically imports metadata of files added to the linked S3 bucket that do + // not currently exist in the FSx file system. + // + // * CHANGED - Amazon FSx + // automatically updates file metadata and invalidates existing file content on the + // file system as files change in the data repository. + // + // * DELETED - Amazon FSx + // automatically deletes files on the file system as corresponding files are + // deleted in the data repository. + // + // You can define any combination of event types + // for your AutoImportPolicy. + Events []EventType + + noSmithyDocumentSerde +} + +// A backup of an Amazon FSx for Windows File Server, Amazon FSx for Lustre file +// system, Amazon FSx for NetApp ONTAP volume, or Amazon FSx for OpenZFS file +// system. type Backup struct { // The ID of the backup. @@ -189,7 +266,7 @@ type Backup struct { // This member is required. CreationTime *time.Time - // Metadata of the file system associated with the backup. This metadata is + // The metadata of the file system associated with the backup. This metadata is // persisted even if the file system is deleted. // // This member is required. @@ -201,35 +278,35 @@ type Backup struct { // available. // // * PENDING - For user-initiated backups on Lustre file systems only; - // Amazon FSx has not started creating the backup. + // Amazon FSx hasn't started creating the backup. // // * CREATING - Amazon FSx is // creating the backup. // // * TRANSFERRING - For user-initiated backups on Lustre file - // systems only; Amazon FSx is transferring the backup to S3. + // systems only; Amazon FSx is transferring the backup to Amazon S3. // - // * COPYING - Amazon - // FSx is copying the backup. + // * COPYING - + // Amazon FSx is copying the backup. // - // * DELETED - Amazon FSx deleted the backup and it is - // no longer available. + // * DELETED - Amazon FSx deleted the backup and + // it's no longer available. // - // * FAILED - Amazon FSx could not complete the backup. + // * FAILED - Amazon FSx couldn't finish the backup. // // This member is required. Lifecycle BackupLifecycle - // The type of the file system backup. + // The type of the file-system backup. // // This member is required. Type BackupType - // The configuration of the self-managed Microsoft Active Directory (AD) to which - // the Windows File Server instance is joined. + // The configuration of the self-managed Microsoft Active Directory directory to + // which the Windows File Server instance is joined. DirectoryInformation *ActiveDirectoryBackupAttributes - // Details explaining any failures that occur when creating a backup. + // Details explaining any failures that occurred when creating a backup. FailureDetails *BackupFailureDetails // The ID of the Key Management Service (KMS) key used to encrypt the backup of the @@ -246,20 +323,20 @@ type Backup struct { // The Amazon Resource Name (ARN) for the backup resource. ResourceARN *string - // Specifies the resource type that is backed up. + // Specifies the resource type that's backed up. ResourceType ResourceType - // The ID of the source backup. Specifies the backup you are copying. + // The ID of the source backup. Specifies the backup that you are copying. SourceBackupId *string // The source Region of the backup. Specifies the Region from where this backup is // copied. SourceBackupRegion *string - // Tags associated with a particular file system. + // The tags associated with a particular file system. Tags []Tag - // Describes an Amazon FSx for NetApp ONTAP volume. + // Describes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume. Volume *Volume noSmithyDocumentSerde @@ -268,7 +345,7 @@ type Backup struct { // If backup creation fails, this structure contains the details of that failure. type BackupFailureDetails struct { - // A message describing the backup creation failure. + // A message describing the backup-creation failure. Message *string noSmithyDocumentSerde @@ -313,49 +390,72 @@ type CompletionReport struct { noSmithyDocumentSerde } -// The Lustre configuration for the file system being created. +// The Lustre configuration for the file system being created. The following +// parameters are not supported for file systems with the Persistent_2 deployment +// type. Instead, use CreateDataRepositoryAssociation to create a data repository +// association to link your Lustre file system to a data repository. +// +// * +// AutoImportPolicy +// +// * ExportPath +// +// * ImportedChunkSize +// +// * ImportPath type CreateFileSystemLustreConfiguration struct { - // (Optional) When you create your file system, your existing S3 objects appear as - // file and directory listings. Use this property to choose how Amazon FSx keeps - // your file and directory listings up to date as you add or modify objects in your - // linked S3 bucket. AutoImportPolicy can have the following values: + // (Optional) Available with Scratch and Persistent_1 deployment types. When you + // create your file system, your existing S3 objects appear as file and directory + // listings. Use this property to choose how Amazon FSx keeps your file and + // directory listings up to date as you add or modify objects in your linked S3 + // bucket. AutoImportPolicy can have the following values: // - // * NONE - - // (Default) AutoImport is off. Amazon FSx only updates file and directory listings - // from the linked S3 bucket when the file system is created. FSx does not update - // file and directory listings for any new or changed objects after choosing this - // option. + // * NONE - (Default) + // AutoImport is off. Amazon FSx only updates file and directory listings from the + // linked S3 bucket when the file system is created. FSx does not update file and + // directory listings for any new or changed objects after choosing this option. + // + // * + // NEW - AutoImport is on. Amazon FSx automatically imports directory listings of + // any new objects added to the linked S3 bucket that do not currently exist in the + // FSx file system. // - // * NEW - AutoImport is on. Amazon FSx automatically imports directory - // listings of any new objects added to the linked S3 bucket that do not currently - // exist in the FSx file system. + // * NEW_CHANGED - AutoImport is on. Amazon FSx automatically + // imports file and directory listings of any new objects added to the S3 bucket + // and any existing objects that are changed in the S3 bucket after you choose this + // option. // - // * NEW_CHANGED - AutoImport is on. Amazon FSx - // automatically imports file and directory listings of any new objects added to - // the S3 bucket and any existing objects that are changed in the S3 bucket after - // you choose this option. + // * NEW_CHANGED_DELETED - AutoImport is on. Amazon FSx automatically + // imports file and directory listings of any new objects added to the S3 bucket, + // any existing objects that are changed in the S3 bucket, and any objects that + // were deleted in the S3 bucket. // - // For more information, see Automatically import updates - // from your S3 bucket + // For more information, see Automatically import + // updates from your S3 bucket // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/autoimport-data-repo.html). + // This parameter is not supported for file systems with the Persistent_2 + // deployment type. Instead, use CreateDataRepositoryAssociation" to create a data + // repository association to link your Lustre file system to a data repository. AutoImportPolicy AutoImportPolicyType - // The number of days to retain automatic backups. Setting this to 0 disables - // automatic backups. You can retain automatic backups for a maximum of 90 days. - // The default is 0. + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. AutomaticBackupRetentionDays *int32 - // (Optional) Not available to use with file systems that are linked to a data + // (Optional) Not available for use with file systems that are linked to a data // repository. A boolean flag indicating whether tags for the file system should be - // copied to backups. The default value is false. If it's set to true, all file - // system tags are copied to all automatic and user-initiated backups when the user - // doesn't specify any backup-specific tags. If this value is true, and you specify - // one or more backup tags, only the specified tags are copied to backups. If you - // specify one or more tags when creating a user-initiated backup, no tags are - // copied from the file system, regardless of this value. For more information, see - // Working with backups - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-backups-fsx.html). + // copied to backups. The default value is false. If CopyTagsToBackups is set to + // true, all file system tags are copied to all automatic and user-initiated + // backups when the user doesn't specify any backup-specific tags. If + // CopyTagsToBackups is set to true and you specify one or more backup tags, only + // the specified tags are copied to backups. If you specify one or more tags when + // creating a user-initiated backup, no tags are copied from the file system, + // regardless of this value. (Default = false) For more information, see Working + // with backups + // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-backups-fsx.html) in + // the Amazon FSx for Lustre User Guide. CopyTagsToBackups *bool // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the @@ -373,34 +473,46 @@ type CreateFileSystemLustreConfiguration struct { // the LZ4 algorithm. // // For more information, see Lustre data compression - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-compression.html). + // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-compression.html) in + // the Amazon FSx for Lustre User Guide. DataCompressionType DataCompressionType - // Choose SCRATCH_1 and SCRATCH_2 deployment types when you need temporary storage - // and shorter-term processing of data. The SCRATCH_2 deployment type provides - // in-transit encryption of data and higher burst throughput capacity than - // SCRATCH_1. Choose PERSISTENT_1 deployment type for longer-term storage and - // workloads and encryption of data in transit. To learn more about deployment - // types, see FSx for Lustre Deployment Options - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/lustre-deployment-types.html). - // Encryption of data in-transit is automatically enabled when you access a - // SCRATCH_2 or PERSISTENT_1 file system from Amazon EC2 instances that support - // this feature (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data- - // protection.html). (Default = SCRATCH_1) Encryption of data in-transit for - // SCRATCH_2 and PERSISTENT_1 deployment types is supported when accessed from - // supported instance types in supported Amazon Web Services Regions. To learn - // more, Encrypting Data in Transit - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/encryption-in-transit-fsxl.html). + // (Optional) Choose SCRATCH_1 and SCRATCH_2 deployment types when you need + // temporary storage and shorter-term processing of data. The SCRATCH_2 deployment + // type provides in-transit encryption of data and higher burst throughput capacity + // than SCRATCH_1. Choose PERSISTENT_1 for longer-term storage and for + // throughput-focused workloads that aren’t latency-sensitive. a. PERSISTENT_1 + // supports encryption of data in transit, and is available in all Amazon Web + // Services Regions in which FSx for Lustre is available. Choose PERSISTENT_2 for + // longer-term storage and for latency-sensitive workloads that require the highest + // levels of IOPS/throughput. PERSISTENT_2 supports SSD storage, and offers higher + // PerUnitStorageThroughput (up to 1000 MB/s/TiB). PERSISTENT_2 is available in a + // limited number of Amazon Web Services Regions. For more information, and an + // up-to-date list of Amazon Web Services Regions in which PERSISTENT_2 is + // available, see File system deployment options for FSx for Lustre + // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/using-fsx-lustre.html#lustre-deployment-types) + // in the Amazon FSx for Lustre User Guide. If you choose PERSISTENT_2, and you set + // FileSystemTypeVersion to 2.10, the CreateFileSystem operation fails. Encryption + // of data in transit is automatically turned on when you access SCRATCH_2, + // PERSISTENT_1 and PERSISTENT_2 file systems from Amazon EC2 instances that + // support automatic encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data- + // protection.html) in the Amazon Web Services Regions where they are available. + // For more information about encryption in transit for FSx for Lustre file + // systems, see Encrypting data in transit + // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/encryption-in-transit-fsxl.html) + // in the Amazon FSx for Lustre User Guide. (Default = SCRATCH_1) DeploymentType LustreDeploymentType // The type of drive cache used by PERSISTENT_1 file systems that are provisioned // with HDD storage devices. This parameter is required when storage type is HDD. - // Set to READ, improve the performance for frequently accessed files and allows - // 20% of the total storage capacity of the file system to be cached. This - // parameter is required when StorageType is set to HDD. + // Set this property to READ to improve the performance for frequently accessed + // files by caching up to 20% of the total storage capacity of the file system. + // This parameter is required when StorageType is set to HDD. DriveCacheType DriveCacheType - // (Optional) The path in Amazon S3 where the root of your Amazon FSx file system + // (Optional) Available with Scratch and Persistent_1 deployment types. Specifies + // the path in the Amazon S3 bucket where the root of your Amazon FSx file system // is exported. The path must use the same Amazon S3 bucket as specified in // ImportPath. You can provide an optional prefix to which new and changed data is // to be exported from your Amazon FSx for Lustre file system. If an ExportPath @@ -408,12 +520,14 @@ type CreateFileSystemLustreConfiguration struct { // s3://import-bucket/FSxLustre[creation-timestamp]. The timestamp is in UTC // format, for example s3://import-bucket/FSxLustre20181105T222312Z. The Amazon S3 // export bucket must be the same as the import bucket specified by ImportPath. If - // you only specify a bucket name, such as s3://import-bucket, you get a 1:1 + // you specify only a bucket name, such as s3://import-bucket, you get a 1:1 // mapping of file system objects to S3 bucket objects. This mapping means that the // input data in S3 is overwritten on export. If you provide a custom prefix in the // export path, such as s3://import-bucket/[custom-optional-prefix], Amazon FSx // exports the contents of your file system to that export prefix in the Amazon S3 - // bucket. + // bucket. This parameter is not supported for file systems with the Persistent_2 + // deployment type. Instead, use CreateDataRepositoryAssociation to create a data + // repository association to link your Lustre file system to a data repository. ExportPath *string // (Optional) The path to the Amazon S3 bucket (including the optional prefix) that @@ -421,7 +535,10 @@ type CreateFileSystemLustreConfiguration struct { // The root of your FSx for Lustre file system will be mapped to the root of the // Amazon S3 bucket you select. An example is s3://import-bucket/optional-prefix. // If you specify a prefix after the Amazon S3 bucket name, only object keys with - // that prefix are loaded into the file system. + // that prefix are loaded into the file system. This parameter is not supported for + // file systems with the Persistent_2 deployment type. Instead, use + // CreateDataRepositoryAssociation to create a data repository association to link + // your Lustre file system to a data repository. ImportPath *string // (Optional) For files imported from a data repository, this value determines the @@ -429,17 +546,32 @@ type CreateFileSystemLustreConfiguration struct { // physical disk. The maximum number of disks that a single file can be striped // across is limited by the total number of disks that make up the file system. The // default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 - // GiB). Amazon S3 objects have a maximum size of 5 TB. + // GiB). Amazon S3 objects have a maximum size of 5 TB. This parameter is not + // supported for file systems with the Persistent_2 deployment type. Instead, use + // CreateDataRepositoryAssociation to create a data repository association to link + // your Lustre file system to a data repository. ImportedFileChunkSize *int32 - // Required for the PERSISTENT_1 deployment type, describes the amount of read and - // write throughput for each 1 tebibyte of storage, in MB/s/TiB. File system - // throughput capacity is calculated by multiplying file system storage capacity - // (TiB) by the PerUnitStorageThroughput (MB/s/TiB). For a 2.4 TiB file system, - // provisioning 50 MB/s/TiB of PerUnitStorageThroughput yields 120 MB/s of file - // system throughput. You pay for the amount of throughput that you provision. - // Valid values for SSD storage: 50, 100, 200. Valid values for HDD storage: 12, - // 40. + // The Lustre logging configuration used when creating an Amazon FSx for Lustre + // file system. When logging is enabled, Lustre logs error and warning events for + // data repositories associated with your file system to Amazon CloudWatch Logs. + LogConfiguration *LustreLogCreateConfiguration + + // Required with PERSISTENT_1 and PERSISTENT_2 deployment types, provisions the + // amount of read and write throughput for each 1 tebibyte (TiB) of file system + // storage capacity, in MB/s/TiB. File system throughput capacity is calculated by + // multiplying file system storage capacity (TiB) by the PerUnitStorageThroughput + // (MB/s/TiB). For a 2.4-TiB file system, provisioning 50 MB/s/TiB of + // PerUnitStorageThroughput yields 120 MB/s of file system throughput. You pay for + // the amount of throughput that you provision. Valid values: + // + // * For PERSISTENT_1 + // SSD storage: 50, 100, 200 MB/s/TiB. + // + // * For PERSISTENT_1 HDD storage: 12, 40 + // MB/s/TiB. + // + // * For PERSISTENT_2 SSD storage: 125, 250, 500, 1000 MB/s/TiB. PerUnitStorageThroughput *int32 // (Optional) The preferred start time to perform weekly maintenance, formatted @@ -450,24 +582,25 @@ type CreateFileSystemLustreConfiguration struct { noSmithyDocumentSerde } -// The ONTAP configuration properties of the FSx for NetApp ONTAP file system that -// you are creating. +// The ONTAP configuration properties of the FSx for ONTAP file system that you are +// creating. type CreateFileSystemOntapConfiguration struct { - // Specifies the ONTAP file system deployment type to use in creating the file - // system. + // Specifies the FSx for ONTAP file system deployment type to use in creating the + // file system. MULTI_AZ_1 is the supported ONTAP deployment type. // // This member is required. DeploymentType OntapDeploymentType - // Sustained throughput of an Amazon FSx file system in MBps. + // Sets the throughput capacity for the file system that you're creating. Valid + // values are 512, 1024, and 2048 MBps. // // This member is required. ThroughputCapacity *int32 - // The number of days to retain automatic backups. Setting this to 0 disables - // automatic backups. You can retain automatic backups for a maximum of 90 days. - // The default is 0. + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. AutomaticBackupRetentionDays *int32 // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the @@ -475,7 +608,7 @@ type CreateFileSystemOntapConfiguration struct { // specifies 5 AM daily. DailyAutomaticBackupStartTime *string - // The SSD IOPS configuration for the Amazon FSx for NetApp ONTAP file system. + // The SSD IOPS configuration for the FSx for ONTAP file system. DiskIopsConfiguration *DiskIopsConfiguration // Specifies the IP address range in which the endpoints to access your file system @@ -483,20 +616,18 @@ type CreateFileSystemOntapConfiguration struct { // you from the 198.19.* range. EndpointIpAddressRange *string - // The ONTAP administrative password for the fsxadmin user that you can use to - // administer your file system using the ONTAP CLI and REST API. + // The ONTAP administrative password for the fsxadmin user with which you + // administer your file system using the NetApp ONTAP CLI and REST API. FsxAdminPassword *string - // The ID for a subnet. A subnet is a range of IP addresses in your virtual private - // cloud (VPC). For more information, see VPC and Subnets - // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) in the - // Amazon VPC User Guide. + // Required when DeploymentType is set to MULTI_AZ_1. This specifies the subnet in + // which you want the preferred file server to be located. PreferredSubnetId *string - // Specifies the VPC route tables in which your file system's endpoints will be - // created. You should specify all VPC route tables associated with the subnets in - // which your clients are located. By default, Amazon FSx selects your VPC's - // default route table. + // Specifies the virtual private cloud (VPC) route tables in which your file + // system's endpoints will be created. You should specify all VPC route tables + // associated with the subnets in which your clients are located. By default, + // Amazon FSx selects your VPC's default route table. RouteTableIds []string // A recurring weekly time, in the format D:HH:MM. D is the day of the week, for @@ -510,12 +641,79 @@ type CreateFileSystemOntapConfiguration struct { noSmithyDocumentSerde } +// The OpenZFS configuration properties for the file system that you are creating. +type CreateFileSystemOpenZFSConfiguration struct { + + // Specifies the file system deployment type. Amazon FSx for OpenZFS supports + // SINGLE_AZ_1. SINGLE_AZ_1 is a file system configured for a single Availability + // Zone (AZ) of redundancy. + // + // This member is required. + DeploymentType OpenZFSDeploymentType + + // Specifies the throughput of an Amazon FSx for OpenZFS file system, measured in + // megabytes per second (MB/s). Valid values are 64, 128, 256, 512, 1024, 2048, + // 3072, or 4096 MB/s. You pay for additional throughput capacity that you + // provision. + // + // This member is required. + ThroughputCapacity *int32 + + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. + AutomaticBackupRetentionDays *int32 + + // A Boolean value indicating whether tags for the file system should be copied to + // backups. This value defaults to false. If it's set to true, all tags for the + // file system are copied to all automatic and user-initiated backups where the + // user doesn't specify tags. If this value is true, and you specify one or more + // tags, only the specified tags are copied to backups. If you specify one or more + // tags when creating a user-initiated backup, no tags are copied from the file + // system, regardless of this value. + CopyTagsToBackups *bool + + // A Boolean value indicating whether tags for the volume should be copied to + // snapshots. This value defaults to false. If it's set to true, all tags for the + // volume are copied to snapshots where the user doesn't specify tags. If this + // value is true, and you specify one or more tags, only the specified tags are + // copied to snapshots. If you specify one or more tags when creating the snapshot, + // no tags are copied from the volume, regardless of this value. + CopyTagsToVolumes *bool + + // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the + // day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 + // specifies 5 AM daily. + DailyAutomaticBackupStartTime *string + + // The SSD IOPS (input/output operations per second) configuration for an Amazon + // FSx for NetApp ONTAP or Amazon FSx for OpenZFS file system. The default is 3 + // IOPS per GB of storage capacity, but you can provision additional IOPS per GB of + // storage. The configuration consists of the total number of provisioned SSD IOPS + // and how the amount was provisioned (by the customer or by the system). + DiskIopsConfiguration *DiskIopsConfiguration + + // The configuration Amazon FSx uses when creating the root value of the Amazon FSx + // for OpenZFS file system. All volumes are children of the root volume. + RootVolumeConfiguration *OpenZFSCreateRootVolumeConfiguration + + // A recurring weekly time, in the format D:HH:MM. D is the day of the week, for + // which 1 represents Monday and 7 represents Sunday. For further details, see the + // ISO-8601 spec as described on Wikipedia + // (https://en.wikipedia.org/wiki/ISO_week_date). HH is the zero-padded hour of the + // day (0-23), and MM is the zero-padded minute of the hour. For example, 1:05:00 + // specifies maintenance at 5 AM Monday. + WeeklyMaintenanceStartTime *string + + noSmithyDocumentSerde +} + // The configuration object for the Microsoft Windows file system used in // CreateFileSystem and CreateFileSystemFromBackup operations. type CreateFileSystemWindowsConfiguration struct { - // The throughput of an Amazon FSx file system, measured in megabytes per second, - // in 2 to the nth increments, between 2^3 (8) and 2^11 (2048). + // Sets the throughput capacity of an Amazon FSx file system, measured in megabytes + // per second (MB/s), in 2 to the nth increments, between 2^3 (8) and 2^11 (2048). // // This member is required. ThroughputCapacity *int32 @@ -674,6 +872,90 @@ type CreateOntapVolumeConfiguration struct { noSmithyDocumentSerde } +// The snapshot configuration to use when creating an OpenZFS volume from a +// snapshot. +type CreateOpenZFSOriginSnapshotConfiguration struct { + + // The strategy used when copying data from the snapshot to the new volume. + // + // * + // CLONE - The new volume references the data in the origin snapshot. Cloning a + // snapshot is faster than copying data from the snapshot to a new volume and + // doesn't consume disk throughput. However, the origin snapshot can't be deleted + // if there is a volume using its copied data. + // + // * FULL_COPY - Copies all data from + // the snapshot to the new volume. + // + // This member is required. + CopyStrategy OpenZFSCopyStrategy + + // The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify + // Amazon Web Services resources. We require an ARN when you need to specify a + // resource unambiguously across all of Amazon Web Services. For more information, + // see Amazon Resource Names (ARNs) + // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in + // the Amazon Web Services General Reference. + // + // This member is required. + SnapshotARN *string + + noSmithyDocumentSerde +} + +// Specifies the configuration of the OpenZFS volume that you are creating. +type CreateOpenZFSVolumeConfiguration struct { + + // The ID of the volume to use as the parent volume. + // + // This member is required. + ParentVolumeId *string + + // A Boolean value indicating whether tags for the volume should be copied to + // snapshots. This value defaults to false. If it's set to true, all tags for the + // volume are copied to snapshots where the user doesn't specify tags. If this + // value is true, and you specify one or more tags, only the specified tags are + // copied to snapshots. If you specify one or more tags when creating the snapshot, + // no tags are copied from the volume, regardless of this value. + CopyTagsToSnapshots *bool + + // Specifies the method used to compress the data on the volume. Unless the + // compression type is specified, volumes inherit the DataCompressionType value of + // their parent volume. + // + // * NONE - Doesn't compress the data on the volume. + // + // * ZSTD + // - Compresses the data in the volume using the Zstandard (ZSTD) compression + // algorithm. This algorithm reduces the amount of space used on your volume and + // has very little impact on compute resources. + DataCompressionType OpenZFSDataCompressionType + + // The configuration object for mounting a Network File System (NFS) file system. + NfsExports []OpenZFSNfsExport + + // The configuration object that specifies the snapshot to use as the origin of the + // data for the volume. + OriginSnapshot *CreateOpenZFSOriginSnapshotConfiguration + + // A Boolean value indicating whether the volume is read-only. + ReadOnly *bool + + // The maximum amount of storage in gibibytes (GiB) that the volume can use from + // its parent. You can specify a quota larger than the storage on the parent + // volume. + StorageCapacityQuotaGiB *int32 + + // The amount of storage in gibibytes (GiB) to reserve from the parent volume. You + // can't reserve more storage than the parent volume has reserved. + StorageCapacityReservationGiB *int32 + + // An object specifying how much storage users or groups can use on the volume. + UserAndGroupQuotas []OpenZFSUserOrGroupQuota + + noSmithyDocumentSerde +} + // The configuration that Amazon FSx uses to join the ONTAP storage virtual machine // (SVM) to your self-managed (including on-premises) Microsoft Active Directory // (AD) directory. @@ -698,8 +980,115 @@ type CreateSvmActiveDirectoryConfiguration struct { noSmithyDocumentSerde } +// The configuration of a data repository association that links an Amazon FSx for +// Lustre file system to an Amazon S3 bucket. The data repository association +// configuration object is returned in the response of the following operations: +// +// * +// CreateDataRepositoryAssociation +// +// * UpdateDataRepositoryAssociation +// +// * +// DescribeDataRepositoryAssociations +// +// Data repository associations are supported +// only for file systems with the Persistent_2 deployment type. +type DataRepositoryAssociation struct { + + // The system-generated, unique ID of the data repository association. + AssociationId *string + + // A boolean flag indicating whether an import data repository task to import + // metadata should run after the data repository association is created. The task + // runs if this flag is set to true. + BatchImportMetaDataOnCreate *bool + + // The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), + // also known as Unix time. + CreationTime *time.Time + + // The path to the Amazon S3 data repository that will be linked to the file + // system. The path can be an S3 bucket or prefix in the format + // s3://myBucket/myPrefix/. This path specifies where in the S3 data repository + // files will be imported from or exported to. + DataRepositoryPath *string + + // Provides detailed information about the data respository if its Lifecycle is set + // to MISCONFIGURED or FAILED. + FailureDetails *DataRepositoryFailureDetails + + // The globally unique ID of the file system, assigned by Amazon FSx. + FileSystemId *string + + // A path on the file system that points to a high-level directory (such as /ns1/) + // or subdirectory (such as /ns1/subdir/) that will be mapped 1-1 with + // DataRepositoryPath. The leading forward slash in the name is required. Two data + // repository associations cannot have overlapping file system paths. For example, + // if a data repository is associated with file system path /ns1/, then you cannot + // link another data repository with file system path /ns1/ns2. This path specifies + // where in your file system files will be exported from or imported to. This file + // system directory can be linked to only one Amazon S3 bucket, and no other S3 + // bucket can be linked to the directory. + FileSystemPath *string + + // For files imported from a data repository, this value determines the stripe + // count and maximum amount of data per file (in MiB) stored on a single physical + // disk. The maximum number of disks that a single file can be striped across is + // limited by the total number of disks that make up the file system. The default + // chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). + // Amazon S3 objects have a maximum size of 5 TB. + ImportedFileChunkSize *int32 + + // Describes the state of a data repository association. The lifecycle can have the + // following values: + // + // * CREATING - The data repository association between the FSx + // file system and the S3 data repository is being created. The data repository is + // unavailable. + // + // * AVAILABLE - The data repository association is available for + // use. + // + // * MISCONFIGURED - Amazon FSx cannot automatically import updates from the + // S3 bucket or automatically export updates to the S3 bucket until the data + // repository association configuration is corrected. + // + // * UPDATING - The data + // repository association is undergoing a customer initiated update that might + // affect its availability. + // + // * DELETING - The data repository association is + // undergoing a customer initiated deletion. + // + // * FAILED - The data repository + // association is in a terminal state that cannot be recovered. + Lifecycle DataRepositoryLifecycle + + // The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify + // Amazon Web Services resources. We require an ARN when you need to specify a + // resource unambiguously across all of Amazon Web Services. For more information, + // see Amazon Resource Names (ARNs) + // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in + // the Amazon Web Services General Reference. + ResourceARN *string + + // The configuration for an Amazon S3 data repository linked to an Amazon FSx + // Lustre file system with a data repository association. The configuration defines + // which file events (new, changed, or deleted files or directories) are + // automatically imported from the linked data repository to the file system or + // automatically exported from the file system to the data repository. + S3 *S3DataRepositoryConfiguration + + // A list of Tag values, with a maximum of 50 elements. + Tags []Tag + + noSmithyDocumentSerde +} + // The data repository configuration object for Lustre file systems returned in the -// response of the CreateFileSystem operation. +// response of the CreateFileSystem operation. This data type is not supported for +// file systems with the Persistent_2 deployment type. Instead, use . type DataRepositoryConfiguration struct { // Describes the file system's linked S3 data repository's AutoImportPolicy. The @@ -722,9 +1111,10 @@ type DataRepositoryConfiguration struct { // existing objects that are changed in the S3 bucket after you choose this // option. // - // For more information, see Automatically import updates from your S3 - // bucket - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/autoimport-data-repo.html). + // * NEW_CHANGED_DELETED - AutoImport is on. Amazon FSx automatically + // imports file and directory listings of any new objects added to the S3 bucket, + // any existing objects that are changed in the S3 bucket, and any objects that + // were deleted in the S3 bucket. AutoImportPolicy AutoImportPolicyType // The export path to the Amazon S3 bucket (and prefix) that you are using to store @@ -732,7 +1122,7 @@ type DataRepositoryConfiguration struct { ExportPath *string // Provides detailed information about the data respository if its Lifecycle is set - // to MISCONFIGURED. + // to MISCONFIGURED or FAILED. FailureDetails *DataRepositoryFailureDetails // The import path to the Amazon S3 bucket (and optional prefix) that you're using @@ -768,13 +1158,16 @@ type DataRepositoryConfiguration struct { // * // UPDATING - The data repository is undergoing a customer initiated update and // availability may be impacted. + // + // * FAILED - The data repository is in a terminal + // state that cannot be recovered. Lifecycle DataRepositoryLifecycle noSmithyDocumentSerde } // Provides detailed information about the data respository if its Lifecycle is set -// to MISCONFIGURED. +// to MISCONFIGURED or FAILED. type DataRepositoryFailureDetails struct { // A detailed error message. @@ -784,7 +1177,7 @@ type DataRepositoryFailureDetails struct { } // A description of the data repository task. You use data repository tasks to -// perform bulk transfer operations between your Amazon FSx file system and its +// perform bulk transfer operations between your Amazon FSx file system and a // linked data repository. type DataRepositoryTask struct { @@ -835,8 +1228,14 @@ type DataRepositoryTask struct { // This member is required. TaskId *string - // The type of data repository task; EXPORT_TO_REPOSITORY is the only type - // currently supported. + // The type of data repository task. + // + // * The EXPORT_TO_REPOSITORY data repository + // task exports from your Lustre file system from to a linked S3 bucket. + // + // * The + // IMPORT_METADATA_FROM_REPOSITORY data repository task imports metadata changes + // from a linked S3 bucket to your Lustre file system. // // This member is required. Type DataRepositoryTaskType @@ -953,7 +1352,9 @@ type DeleteFileSystemLustreConfiguration struct { // Set SkipFinalBackup to false if you want to take a final backup of the file // system you are deleting. By default, Amazon FSx will not take a final backup on - // your behalf when the DeleteFileSystem operation is invoked. (Default = true) + // your behalf when the DeleteFileSystem operation is invoked. (Default = true) The + // fsx:CreateBackup permission is required if you set SkipFinalBackup to false in + // order to delete the file system and take a final backup. SkipFinalBackup *bool noSmithyDocumentSerde @@ -972,6 +1373,35 @@ type DeleteFileSystemLustreResponse struct { noSmithyDocumentSerde } +// The configuration object for the OpenZFS file system used in the +// DeleteFileSystem operation. +type DeleteFileSystemOpenZFSConfiguration struct { + + // A list of Tag values, with a maximum of 50 elements. + FinalBackupTags []Tag + + // By default, Amazon FSx for OpenZFS takes a final backup on your behalf when the + // DeleteFileSystem operation is invoked. Doing this helps protect you from data + // loss, and we highly recommend taking the final backup. If you want to skip this + // backup, use this value to do so. + SkipFinalBackup *bool + + noSmithyDocumentSerde +} + +// The response object for the Amazon FSx for OpenZFS file system that's being +// deleted in the DeleteFileSystem operation. +type DeleteFileSystemOpenZFSResponse struct { + + // The ID of the source backup. Specifies the backup that you are copying. + FinalBackupId *string + + // A list of Tag values, with a maximum of 50 elements. + FinalBackupTags []Tag + + noSmithyDocumentSerde +} + // The configuration object for the Microsoft Windows file system used in the // DeleteFileSystem operation. type DeleteFileSystemWindowsConfiguration struct { @@ -1018,7 +1448,7 @@ type DeleteVolumeOntapConfiguration struct { // the DeleteVolume operation. type DeleteVolumeOntapResponse struct { - // The ID of the source backup. Specifies the backup you are copying. + // The ID of the source backup. Specifies the backup that you are copying. FinalBackupId *string // A list of Tag values, with a maximum of 50 elements. @@ -1027,11 +1457,21 @@ type DeleteVolumeOntapResponse struct { noSmithyDocumentSerde } +// A value that specifies whether to delete all child volumes and snapshots. +type DeleteVolumeOpenZFSConfiguration struct { + + // To delete the volume's children and snapshots, use the string + // DELETE_CHILD_VOLUMES_AND_SNAPSHOTS. + Options []DeleteOpenZFSVolumeOption + + noSmithyDocumentSerde +} + // The SSD IOPS (input/output operations per second) configuration for an Amazon -// FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of storage -// capacity, but you can provision additional IOPS per GB of storage. The -// configuration consists of the total number of provisioned SSD IOPS and how the -// amount was provisioned (by the customer or by the system). +// FSx for NetApp ONTAP or Amazon FSx for OpenZFS file system. The default is 3 +// IOPS per GB of storage capacity, but you can provision additional IOPS per GB of +// storage. The configuration consists of the total number of provisioned SSD IOPS +// and how the amount was provisioned (by the customer or by the system). type DiskIopsConfiguration struct { // The total number of SSD IOPS provisioned for the file system. @@ -1049,41 +1489,42 @@ type FileSystem struct { // A list of administrative actions for the file system that are in process or // waiting to be processed. Administrative actions describe changes to the Amazon - // FSx file system that you have initiated using the UpdateFileSystem action. + // FSx system that you have initiated using the UpdateFileSystem operation. AdministrativeActions []AdministrativeAction // The time that the file system was created, in seconds (since // 1970-01-01T00:00:00Z), also known as Unix time. CreationTime *time.Time - // The DNS name for the file system. + // The Domain Name System (DNS) name for the file system. DNSName *string - // A structure providing details of any failures that occur when creating the file - // system has failed. + // A structure providing details of any failures that occurred when creating a file + // system. FailureDetails *FileSystemFailureDetails // The system-generated, unique 17-digit ID of the file system. FileSystemId *string - // The type of Amazon FSx file system, which can be LUSTRE, WINDOWS, or ONTAP. + // The type of Amazon FSx file system, which can be LUSTRE, WINDOWS, ONTAP, or + // OPENZFS. FileSystemType FileSystemType - // The version of your Amazon FSx for Lustre file system, either 2.10 or 2.12. + // The Lustre version of the Amazon FSx for Lustrefile system, either 2.10 or 2.12. FileSystemTypeVersion *string // The ID of the Key Management Service (KMS) key used to encrypt the file system's // data for Amazon FSx for Windows File Server file systems, Amazon FSx for NetApp - // ONTAP file systems, and persistent Amazon FSx for Lustre file systems at rest. - // If not specified, the Amazon FSx managed key is used. The scratch Amazon FSx for - // Lustre file systems are always encrypted at rest using Amazon FSx managed keys. - // For more information, see Encrypt - // (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) in the - // Key Management Service API Reference. + // ONTAP file systems, and PERSISTENT Amazon FSx for Lustre file systems at rest. + // If this ID isn't specified, the Amazon FSx-managed key for your account is used. + // The scratch Amazon FSx for Lustre file systems are always encrypted at rest + // using the Amazon FSx-managed key for your account. For more information, see + // Encrypt (https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) + // in the Key Management Service API Reference. KmsKeyId *string - // The lifecycle status of the file system, following are the possible values and - // what they mean: + // The lifecycle status of the file system. The following are the possible values + // and what they mean: // // * AVAILABLE - The file system is in a healthy state, and is // reachable and available for use. @@ -1098,29 +1539,31 @@ type FileSystem struct { // creating a new file system, Amazon FSx was unable to create the file system. // // * - // MISCONFIGURED indicates that the file system is in a failed but recoverable - // state. + // MISCONFIGURED - The file system is in a failed but recoverable state. // - // * UPDATING indicates that the file system is undergoing a customer - // initiated update. + // * + // UPDATING - The file system is undergoing a customer-initiated update. Lifecycle FileSystemLifecycle // The configuration for the Amazon FSx for Lustre file system. LustreConfiguration *LustreFileSystemConfiguration - // The IDs of the elastic network interface from which a specific file system is + // The IDs of the elastic network interfaces from which a specific file system is // accessible. The elastic network interface is automatically created in the same - // VPC that the Amazon FSx file system was created in. For more information, see - // Elastic Network Interfaces + // virtual private cloud (VPC) that the Amazon FSx file system was created in. For + // more information, see Elastic Network Interfaces // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the // Amazon EC2 User Guide. For an Amazon FSx for Windows File Server file system, // you can have one network interface ID. For an Amazon FSx for Lustre file system, // you can have more than one. NetworkInterfaceIds []string - // The configuration for this FSx for NetApp ONTAP file system. + // The configuration for this FSx for ONTAP file system. OntapConfiguration *OntapFileSystemConfiguration + // The configuration for this Amazon FSx for OpenZFS file system. + OpenZFSConfiguration *OpenZFSFileSystemConfiguration + // The Amazon Web Services account that created the file system. If the file system // was created by an Identity and Access Management (IAM) user, the Amazon Web // Services account to which the IAM user belongs is the owner. @@ -1132,31 +1575,32 @@ type FileSystem struct { // The storage capacity of the file system in gibibytes (GiB). StorageCapacity *int32 - // The storage type of the file system. Valid values are SSD and HDD. If set to - // SSD, the file system uses solid state drive storage. If set to HDD, the file - // system uses hard disk drive storage. + // The type of storage the file system is using. If set to SSD, the file system + // uses solid state drive storage. If set to HDD, the file system uses hard disk + // drive storage. StorageType StorageType // Specifies the IDs of the subnets that the file system is accessible from. For - // Windows and ONTAP MULTI_AZ_1 file system deployment type, there are two subnet - // IDs, one for the preferred file server and one for the standby file server. The - // preferred file server subnet identified in the PreferredSubnetID property. All - // other file systems have only one subnet ID. For Lustre file systems, and - // Single-AZ Windows file systems, this is the ID of the subnet that contains the - // endpoint for the file system. For MULTI_AZ_1 Windows and ONTAP file systems, the - // endpoint for the file system is available in the PreferredSubnetID. + // the Amazon FSx Windows and ONTAP MULTI_AZ_1 file system deployment type, there + // are two subnet IDs, one for the preferred file server and one for the standby + // file server. The preferred file server subnet identified in the + // PreferredSubnetID property. All other file systems have only one subnet ID. For + // FSx for Lustre file systems, and Single-AZ Windows file systems, this is the ID + // of the subnet that contains the file system's endpoint. For MULTI_AZ_1 Windows + // and ONTAP file systems, the file system endpoint is available in the + // PreferredSubnetID. SubnetIds []string // The tags to associate with the file system. For more information, see Tagging - // Your Amazon EC2 Resources + // your Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the // Amazon EC2 User Guide. Tags []Tag - // The ID of the primary VPC for the file system. + // The ID of the primary virtual private cloud (VPC) for the file system. VpcId *string - // The configuration for this Microsoft Windows file system. + // The configuration for this FSx for Windows File Server file system. WindowsConfiguration *WindowsFileSystemConfiguration noSmithyDocumentSerde @@ -1193,8 +1637,8 @@ type FileSystemEndpoints struct { noSmithyDocumentSerde } -// A structure providing details of any failures that occur when creating the file -// system has failed. +// A structure providing details of any failures that occurred when creating a file +// system. type FileSystemFailureDetails struct { // A message describing any failures that occurred during file system creation. @@ -1229,18 +1673,18 @@ type LifecycleTransitionReason struct { // The configuration for the Amazon FSx for Lustre file system. type LustreFileSystemConfiguration struct { - // The number of days to retain automatic backups. Setting this to 0 disables - // automatic backups. You can retain automatic backups for a maximum of 90 days. - // The default is 0. + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. AutomaticBackupRetentionDays *int32 - // A boolean flag indicating whether tags on the file system should be copied to - // backups. If it's set to true, all tags on the file system are copied to all - // automatic backups and any user-initiated backups where the user doesn't specify - // any tags. If this value is true, and you specify one or more tags, only the - // specified tags are copied to backups. If you specify one or more tags when - // creating a user-initiated backup, no tags are copied from the file system, - // regardless of this value. (Default = false) + // A boolean flag indicating whether tags on the file system are copied to backups. + // If it's set to true, all tags on the file system are copied to all automatic + // backups and any user-initiated backups where the user doesn't specify any tags. + // If this value is true, and you specify one or more tags, only the specified tags + // are copied to backups. If you specify one or more tags when creating a + // user-initiated backup, no tags are copied from the file system, regardless of + // this value. (Default = false) CopyTagsToBackups *bool // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the @@ -1262,55 +1706,161 @@ type LustreFileSystemConfiguration struct { DataCompressionType DataCompressionType // The data repository configuration object for Lustre file systems returned in the - // response of the CreateFileSystem operation. + // response of the CreateFileSystem operation. This data type is not supported for + // file systems with the Persistent_2 deployment type. Instead, use . DataRepositoryConfiguration *DataRepositoryConfiguration - // The deployment type of the FSX for Lustre file system. Scratch deployment type + // The deployment type of the FSx for Lustre file system. Scratch deployment type // is designed for temporary storage and shorter-term processing of data. SCRATCH_1 // and SCRATCH_2 deployment types are best suited for when you need temporary // storage and shorter-term processing of data. The SCRATCH_2 deployment type // provides in-transit encryption of data and higher burst throughput capacity than - // SCRATCH_1. The PERSISTENT_1 deployment type is used for longer-term storage and - // workloads and encryption of data in transit. To learn more about deployment - // types, see FSx for Lustre Deployment Options + // SCRATCH_1. The PERSISTENT_1 and PERSISTENT_2 deployment type is used for + // longer-term storage and workloads and encryption of data in transit. + // PERSISTENT_2 is built on Lustre v2.12 and offers higher PerUnitStorageThroughput + // (up to 1000 MB/s/TiB) along with a lower minimum storage capacity requirement + // (600 GiB). To learn more about FSx for Lustre deployment types, see FSx for + // Lustre deployment options // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/lustre-deployment-types.html). - // (Default = SCRATCH_1) + // The default is SCRATCH_1. DeploymentType LustreDeploymentType // The type of drive cache used by PERSISTENT_1 file systems that are provisioned - // with HDD storage devices. This parameter is required when storage type is HDD. - // Set to READ, improve the performance for frequently accessed files and allows - // 20% of the total storage capacity of the file system to be cached. This - // parameter is required when StorageType is set to HDD. + // with HDD storage devices. This parameter is required when StorageType is HDD. + // When set to READ the file system has an SSD storage cache that is sized to 20% + // of the file system's storage capacity. This improves the performance for + // frequently accessed files by caching up to 20% of the total storage capacity. + // This parameter is required when StorageType is set to HDD. DriveCacheType DriveCacheType + // The Lustre logging configuration. Lustre logging writes the enabled log events + // for your file system to Amazon CloudWatch Logs. + LogConfiguration *LustreLogConfiguration + // You use the MountName value when mounting the file system. For the SCRATCH_1 - // deployment type, this value is always "fsx". For SCRATCH_2 and PERSISTENT_1 - // deployment types, this value is a string that is unique within an Amazon Web - // Services Region. + // deployment type, this value is always "fsx". For SCRATCH_2, PERSISTENT_1, and + // PERSISTENT_2 deployment types, this value is a string that is unique within an + // Amazon Web Services Region. MountName *string // Per unit storage throughput represents the megabytes per second of read or write // throughput per 1 tebibyte of storage provisioned. File system throughput // capacity is equal to Storage capacity (TiB) * PerUnitStorageThroughput - // (MB/s/TiB). This option is only valid for PERSISTENT_1 deployment types. Valid - // values for SSD storage: 50, 100, 200. Valid values for HDD storage: 12, 40. + // (MB/s/TiB). This option is only valid for PERSISTENT_1 and PERSISTENT_2 + // deployment types. Valid values: + // + // * For PERSISTENT_1 SSD storage: 50, 100, + // 200. + // + // * For PERSISTENT_1 HDD storage: 12, 40. + // + // * For PERSISTENT_2 SSD storage: + // 125, 250, 500, 1000. PerUnitStorageThroughput *int32 // The preferred start time to perform weekly maintenance, formatted d:HH:MM in the - // UTC time zone. d is the weekday number, from 1 through 7, beginning with Monday - // and ending with Sunday. + // UTC time zone. Here, d is the weekday number, from 1 through 7, beginning with + // Monday and ending with Sunday. WeeklyMaintenanceStartTime *string noSmithyDocumentSerde } +// The configuration for Lustre logging used to write the enabled logging events +// for your file system to Amazon CloudWatch Logs. When logging is enabled, Lustre +// logs error and warning events from data repository operations such as automatic +// export and data repository tasks. To learn more about Lustre logging, see +// Logging with Amazon CloudWatch Logs +// (https://docs.aws.amazon.com/fsx/latest/LustreGuide/cw-event-logging.html). +type LustreLogConfiguration struct { + + // The data repository events that are logged by Amazon FSx. + // + // * WARN_ONLY - only + // warning events are logged. + // + // * ERROR_ONLY - only error events are logged. + // + // * + // WARN_ERROR - both warning events and error events are logged. + // + // * DISABLED - + // logging of data repository events is turned off. + // + // This member is required. + Level LustreAccessAuditLogLevel + + // The Amazon Resource Name (ARN) that specifies the destination of the logs. The + // destination can be any Amazon CloudWatch Logs log group ARN. The destination ARN + // must be in the same Amazon Web Services partition, Amazon Web Services Region, + // and Amazon Web Services account as your Amazon FSx file system. + Destination *string + + noSmithyDocumentSerde +} + +// The Lustre logging configuration used when creating or updating an Amazon FSx +// for Lustre file system. Lustre logging writes the enabled logging events for +// your file system to Amazon CloudWatch Logs. Error and warning events can be +// logged from the following data repository operations: +// +// * Automatic export +// +// * +// Data repository tasks +// +// To learn more about Lustre logging, see Logging to Amazon +// CloudWatch Logs +// (https://docs.aws.amazon.com/fsx/latest/LustreGuide/cw-event-logging.html). +type LustreLogCreateConfiguration struct { + + // Sets which data repository events are logged by Amazon FSx. + // + // * WARN_ONLY - only + // warning events are logged. + // + // * ERROR_ONLY - only error events are logged. + // + // * + // WARN_ERROR - both warning events and error events are logged. + // + // * DISABLED - + // logging of data repository events is turned off. + // + // This member is required. + Level LustreAccessAuditLogLevel + + // The Amazon Resource Name (ARN) that specifies the destination of the logs. The + // destination can be any Amazon CloudWatch Logs log group ARN, with the following + // requirements: + // + // * The destination ARN that you provide must be in the same Amazon + // Web Services partition, Amazon Web Services Region, and Amazon Web Services + // account as your Amazon FSx file system. + // + // * The name of the Amazon CloudWatch + // Logs log group must begin with the /aws/fsx prefix. + // + // * If you do not provide a + // destination, Amazon FSx will create and use a log stream in the CloudWatch Logs + // /aws/fsx/lustre log group. + // + // * If Destination is provided and the resource does + // not exist, the request will fail with a BadRequest error. + // + // * If Level is set to + // DISABLED, you cannot specify a destination in Destination. + Destination *string + + noSmithyDocumentSerde +} + // Configuration for the FSx for NetApp ONTAP file system. type OntapFileSystemConfiguration struct { - // The number of days to retain automatic backups. Setting this to 0 disables - // automatic backups. You can retain automatic backups for a maximum of 90 days. - // The default is 0. + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. AutomaticBackupRetentionDays *int32 // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the @@ -1335,7 +1885,7 @@ type OntapFileSystemConfiguration struct { Endpoints *FileSystemEndpoints // The ID for a subnet. A subnet is a range of IP addresses in your virtual private - // cloud (VPC). For more information, see VPC and Subnets + // cloud (VPC). For more information, see VPC and subnets // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) in the // Amazon VPC User Guide. PreferredSubnetId *string @@ -1343,7 +1893,7 @@ type OntapFileSystemConfiguration struct { // The VPC route tables in which your file system's endpoints are created. RouteTableIds []string - // Sustained throughput of an Amazon FSx file system in MBps. + // The sustained throughput of an Amazon FSx file system in MBps. ThroughputCapacity *int32 // A recurring weekly time, in the format D:HH:MM. D is the day of the week, for @@ -1357,7 +1907,7 @@ type OntapFileSystemConfiguration struct { noSmithyDocumentSerde } -// The configuration of an Amazon FSx for NetApp ONTAP volume +// The configuration of an Amazon FSx for NetApp ONTAP volume. type OntapVolumeConfiguration struct { // Specifies the FlexCache endpoint type of the volume. Valid values are the @@ -1373,26 +1923,27 @@ type OntapVolumeConfiguration struct { // FlexCache volume. FlexCacheEndpointType FlexCacheEndpointType - // Specifies the directory that NAS clients use to mount the volume, along with the - // SVM DNS name or IP address. You can create a JunctionPath directly below a - // parent volume junction or on a directory within a volume. A JunctionPath for a - // volume named vol3 might be /vol1/vol2/vol3, or /vol1/dir2/vol3, or even - // /dir1/dir2/vol3.. + // Specifies the directory that network-attached storage (NAS) clients use to mount + // the volume, along with the storage virtual machine (SVM) Domain Name System + // (DNS) name or IP address. You can create a JunctionPath directly below a parent + // volume junction or on a directory within a volume. A JunctionPath for a volume + // named vol3 might be /vol1/vol2/vol3, or /vol1/dir2/vol3, or even + // /dir1/dir2/vol3. JunctionPath *string // Specifies the type of volume. Valid values are the following: // // * RW specifies a - // read-write volume. RW is the default. + // read/write volume. RW is the default. // - // * DP specifies a data protection volume. - // You can protect data by replicating it to data protection mirror copies and use - // data protection mirror copies to recover data when a disaster occurs. + // * DP specifies a data-protection volume. + // You can protect data by replicating it to data-protection mirror copies. If a + // disaster occurs, you can use these data-protection mirror copies to recover + // data. // - // * LS - // specifies a load-sharing mirror volume. A load-sharing mirror reduces the - // network traffic to a FlexVol volume by providing additional read-only access to - // clients. + // * LS specifies a load-sharing mirror volume. A load-sharing mirror + // reduces the network traffic to a FlexVol volume by providing additional + // read-only access to clients. OntapVolumeType OntapVolumeType // The security style for the volume, which can be UNIX, NTFS, or MIXED. @@ -1407,7 +1958,7 @@ type OntapVolumeConfiguration struct { // The ID of the volume's storage virtual machine. StorageVirtualMachineId *string - // A boolean flag indicating whether this volume is the root volume for its storage + // A Boolean flag indicating whether this volume is the root volume for its storage // virtual machine (SVM). Only one volume on an SVM can be the root volume. This // value defaults to false. If this value is true, then this is the SVM root // volume. This flag is useful when you're deleting an SVM, because you must first @@ -1418,12 +1969,276 @@ type OntapVolumeConfiguration struct { // The volume's TieringPolicy setting. TieringPolicy *TieringPolicy - // The volume's UUID (universally unique identifier). + // The volume's universally unique identifier (UUID). UUID *string noSmithyDocumentSerde } +// Specifies who can mount the file system and the options that can be used while +// mounting the file system. +type OpenZFSClientConfiguration struct { + + // A value that specifies who can mount the file system. You can provide a wildcard + // character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24. By + // default, Amazon FSx uses the wildcard character when specifying the client. + // + // This member is required. + Clients *string + + // The options to use when mounting the file system. For a list of options that you + // can use with Network File System (NFS), see the exports(5) - Linux man page + // (https://linux.die.net/man/5/exports). When choosing your options, consider the + // following: + // + // * crossmount is used by default. If you don't specify crossmount + // when changing the client configuration, you won't be able to see or access + // snapshots in your file system's snapshot directory. + // + // * sync is used by default. + // If you instead specify async, the system acknowledges writes before writing to + // disk. If the system crashes before the writes are finished, you lose the + // unwritten data. + // + // This member is required. + Options []string + + noSmithyDocumentSerde +} + +// The configuration of an Amazon FSx for OpenZFS root volume. +type OpenZFSCreateRootVolumeConfiguration struct { + + // A Boolean value indicating whether tags for the volume should be copied to + // snapshots. This value defaults to false. If it's set to true, all tags for the + // volume are copied to snapshots where the user doesn't specify tags. If this + // value is true and you specify one or more tags, only the specified tags are + // copied to snapshots. If you specify one or more tags when creating the snapshot, + // no tags are copied from the volume, regardless of this value. + CopyTagsToSnapshots *bool + + // Specifies the method used to compress the data on the volume. Unless the + // compression type is specified, volumes inherit the DataCompressionType value of + // their parent volume. + // + // * NONE - Doesn't compress the data on the volume. + // + // * ZSTD + // - Compresses the data in the volume using the ZStandard (ZSTD) compression + // algorithm. This algorithm reduces the amount of space used on your volume and + // has very little impact on compute resources. + DataCompressionType OpenZFSDataCompressionType + + // The configuration object for mounting a file system. + NfsExports []OpenZFSNfsExport + + // A Boolean value indicating whether the volume is read-only. Setting this value + // to true can be useful after you have completed changes to a volume and no longer + // want changes to occur. + ReadOnly *bool + + // An object specifying how much storage users or groups can use on the volume. + UserAndGroupQuotas []OpenZFSUserOrGroupQuota + + noSmithyDocumentSerde +} + +// The configuration for the Amazon FSx for OpenZFS file system. +type OpenZFSFileSystemConfiguration struct { + + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. + AutomaticBackupRetentionDays *int32 + + // A Boolean value indicating whether tags on the file system should be copied to + // backups. If it's set to true, all tags on the file system are copied to all + // automatic backups and any user-initiated backups where the user doesn't specify + // any tags. If this value is true and you specify one or more tags, only the + // specified tags are copied to backups. If you specify one or more tags when + // creating a user-initiated backup, no tags are copied from the file system, + // regardless of this value. + CopyTagsToBackups *bool + + // A Boolean value indicating whether tags for the volume should be copied to + // snapshots. This value defaults to false. If it's set to true, all tags for the + // volume are copied to snapshots where the user doesn't specify tags. If this + // value is true and you specify one or more tags, only the specified tags are + // copied to snapshots. If you specify one or more tags when creating the snapshot, + // no tags are copied from the volume, regardless of this value. + CopyTagsToVolumes *bool + + // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the + // day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 + // specifies 5 AM daily. + DailyAutomaticBackupStartTime *string + + // Specifies the file-system deployment type. Amazon FSx for OpenZFS supports + // SINGLE_AZ_1. SINGLE_AZ_1 is a file system configured for a single Availability + // Zone (AZ) of redundancy. + DeploymentType OpenZFSDeploymentType + + // The SSD IOPS (input/output operations per second) configuration for an Amazon + // FSx for NetApp ONTAP or Amazon FSx for OpenZFS file system. The default is 3 + // IOPS per GB of storage capacity, but you can provision additional IOPS per GB of + // storage. The configuration consists of the total number of provisioned SSD IOPS + // and how the amount was provisioned (by the customer or by the system). + DiskIopsConfiguration *DiskIopsConfiguration + + // The ID of the root volume of the OpenZFS file system. + RootVolumeId *string + + // The throughput of an Amazon FSx file system, measured in megabytes per second + // (MBps), in 2 to the nth increments, between 2^3 (8) and 2^11 (2048). + ThroughputCapacity *int32 + + // A recurring weekly time, in the format D:HH:MM. D is the day of the week, for + // which 1 represents Monday and 7 represents Sunday. For further details, see the + // ISO-8601 spec as described on Wikipedia + // (https://en.wikipedia.org/wiki/ISO_week_date). HH is the zero-padded hour of the + // day (0-23), and MM is the zero-padded minute of the hour. For example, 1:05:00 + // specifies maintenance at 5 AM Monday. + WeeklyMaintenanceStartTime *string + + noSmithyDocumentSerde +} + +// The Network File System NFS) configurations for mounting an Amazon FSx for +// OpenZFS file system. +type OpenZFSNfsExport struct { + + // A list of configuration objects that contain the client and options for mounting + // the OpenZFS file system. + // + // This member is required. + ClientConfigurations []OpenZFSClientConfiguration + + noSmithyDocumentSerde +} + +// The snapshot configuration to use when creating an OpenZFS volume from a +// snapshot. +type OpenZFSOriginSnapshotConfiguration struct { + + // The strategy used when copying data from the snapshot to the new volume. + // + // * + // CLONE - The new volume references the data in the origin snapshot. Cloning a + // snapshot is faster than copying the data from a snapshot to a new volume and + // doesn't consume disk throughput. However, the origin snapshot can't be deleted + // if there is a volume using its copied data. + // + // * FULL_COPY - Copies all data from + // the snapshot to the new volume. + CopyStrategy OpenZFSCopyStrategy + + // The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify + // Amazon Web Services resources. We require an ARN when you need to specify a + // resource unambiguously across all of Amazon Web Services. For more information, + // see Amazon Resource Names (ARNs) + // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in + // the Amazon Web Services General Reference. + SnapshotARN *string + + noSmithyDocumentSerde +} + +// The configuration for how much storage a user or group can use on the volume. +type OpenZFSUserOrGroupQuota struct { + + // The ID of the user or group. + // + // This member is required. + Id *int32 + + // The amount of storage that the user or group can use in gibibytes (GiB). + // + // This member is required. + StorageCapacityQuotaGiB *int32 + + // A value that specifies whether the quota applies to a user or group. + // + // This member is required. + Type OpenZFSQuotaType + + noSmithyDocumentSerde +} + +// The configuration of an Amazon FSx for OpenZFS volume. +type OpenZFSVolumeConfiguration struct { + + // A Boolean value indicating whether tags for the volume should be copied to + // snapshots. This value defaults to false. If it's set to true, all tags for the + // volume are copied to snapshots where the user doesn't specify tags. If this + // value is true and you specify one or more tags, only the specified tags are + // copied to snapshots. If you specify one or more tags when creating the snapshot, + // no tags are copied from the volume, regardless of this value. + CopyTagsToSnapshots *bool + + // The method used to compress the data on the volume. Unless a compression type is + // specified, volumes inherit the DataCompressionType value of their parent + // volume. + // + // * NONE - Doesn't compress the data on the volume. + // + // * ZSTD - Compresses + // the data in the volume using the Zstandard (ZSTD) compression algorithm. This + // algorithm reduces the amount of space used on your volume and has very little + // impact on compute resources. + DataCompressionType OpenZFSDataCompressionType + + // The configuration object for mounting a Network File System (NFS) file system. + NfsExports []OpenZFSNfsExport + + // The configuration object that specifies the snapshot to use as the origin of the + // data for the volume. + OriginSnapshot *OpenZFSOriginSnapshotConfiguration + + // The ID of the parent volume. + ParentVolumeId *string + + // A Boolean value indicating whether the volume is read-only. + ReadOnly *bool + + // The maximum amount of storage in gibibtyes (GiB) that the volume can use from + // its parent. You can specify a quota larger than the storage on the parent + // volume. + StorageCapacityQuotaGiB *int32 + + // The amount of storage in gibibytes (GiB) to reserve from the parent volume. You + // can't reserve more storage than the parent volume has reserved. + StorageCapacityReservationGiB *int32 + + // An object specifying how much storage users or groups can use on the volume. + UserAndGroupQuotas []OpenZFSUserOrGroupQuota + + // The path to the volume from the root volume. For example, + // fsx/parentVolume/volume1. + VolumePath *string + + noSmithyDocumentSerde +} + +// The configuration for an Amazon S3 data repository linked to an Amazon FSx +// Lustre file system with a data repository association. The configuration +// consists of an AutoImportPolicy that defines file events on the data repository +// are automatically imported to the file system and an AutoExportPolicy that +// defines which file events on the file system are automatically exported to the +// data repository. File events are when files or directories are added, changed, +// or deleted on the file system or the data repository. +type S3DataRepositoryConfiguration struct { + + // Specifies the type of updated objects (new, changed, deleted) that will be + // automatically exported from your file system to the linked S3 bucket. + AutoExportPolicy *AutoExportPolicy + + // Specifies the type of updated objects (new, changed, deleted) that will be + // automatically imported from the linked S3 bucket to your file system. + AutoImportPolicy *AutoImportPolicy + + noSmithyDocumentSerde +} + // The configuration of the self-managed Microsoft Active Directory (AD) directory // to which the Windows File Server or ONTAP storage virtual machine (SVM) instance // is joined. @@ -1530,6 +2345,69 @@ type SelfManagedActiveDirectoryConfigurationUpdates struct { noSmithyDocumentSerde } +// A snapshot of an Amazon FSx for OpenZFS volume. +type Snapshot struct { + + // A list of administrative actions for the file system that are in process or + // waiting to be processed. Administrative actions describe changes to the Amazon + // FSx system. + AdministrativeActions []AdministrativeAction + + // The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), + // also known as Unix time. + CreationTime *time.Time + + // The lifecycle status of the snapshot. + // + // * PENDING - Amazon FSx hasn't started + // creating the snapshot. + // + // * CREATING - Amazon FSx is creating the snapshot. + // + // * + // DELETING - Amazon FSx is deleting the snapshot. + // + // * AVAILABLE - The snapshot is + // fully available. + Lifecycle SnapshotLifecycle + + // The name of the snapshot. + Name *string + + // The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify + // Amazon Web Services resources. We require an ARN when you need to specify a + // resource unambiguously across all of Amazon Web Services. For more information, + // see Amazon Resource Names (ARNs) + // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in + // the Amazon Web Services General Reference. + ResourceARN *string + + // The ID of the snapshot. + SnapshotId *string + + // A list of Tag values, with a maximum of 50 elements. + Tags []Tag + + // The ID of the volume that the snapshot is of. + VolumeId *string + + noSmithyDocumentSerde +} + +// A filter used to restrict the results of DescribeSnapshots calls. You can use +// multiple filters to return results that meet all applied filter requirements. +type SnapshotFilter struct { + + // The name of the filter to use. You can filter by the file-system-id or by + // volume-id. + Name SnapshotFilterName + + // The file-system-id or volume-id that you are filtering for. + Values []string + + noSmithyDocumentSerde +} + // Describes the Amazon FSx for NetApp ONTAP storage virtual machine (SVM) // configuraton. type StorageVirtualMachine struct { @@ -1747,14 +2625,20 @@ type UpdateFileSystemLustreConfiguration struct { // added to the S3 bucket and any existing objects that are changed in the S3 // bucket after you choose this option. // - // For more information, see Automatically - // import updates from your S3 bucket - // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/autoimport-data-repo.html). + // * NEW_CHANGED_DELETED - AutoImport is on. + // Amazon FSx automatically imports file and directory listings of any new objects + // added to the S3 bucket, any existing objects that are changed in the S3 bucket, + // and any objects that were deleted in the S3 bucket. + // + // The AutoImportPolicy + // parameter is not supported for Lustre file systems with the Persistent_2 + // deployment type. Instead, use to update a data repository association on your + // Persistent_2 file system. AutoImportPolicy AutoImportPolicyType - // The number of days to retain automatic backups. Setting this to 0 disables - // automatic backups. You can retain automatic backups for a maximum of 90 days. - // The default is 0. + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. AutomaticBackupRetentionDays *int32 // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the @@ -1776,6 +2660,11 @@ type UpdateFileSystemLustreConfiguration struct { // (https://docs.aws.amazon.com/fsx/latest/LustreGuide/data-compression.html). DataCompressionType DataCompressionType + // The Lustre logging configuration used when updating an Amazon FSx for Lustre + // file system. When logging is enabled, Lustre logs error and warning events for + // data repositories associated with your file system to Amazon CloudWatch Logs. + LogConfiguration *LustreLogCreateConfiguration + // (Optional) The preferred start time to perform weekly maintenance, formatted // d:HH:MM in the UTC time zone. d is the weekday number, from 1 through 7, // beginning with Monday and ending with Sunday. @@ -1787,9 +2676,9 @@ type UpdateFileSystemLustreConfiguration struct { // The configuration updates for an Amazon FSx for NetApp ONTAP file system. type UpdateFileSystemOntapConfiguration struct { - // The number of days to retain automatic backups. Setting this to 0 disables - // automatic backups. You can retain automatic backups for a maximum of 90 days. - // The default is 0. + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. AutomaticBackupRetentionDays *int32 // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the @@ -1811,6 +2700,58 @@ type UpdateFileSystemOntapConfiguration struct { noSmithyDocumentSerde } +// The configuration updates for an Amazon FSx for OpenZFS file system. +type UpdateFileSystemOpenZFSConfiguration struct { + + // The number of days to retain automatic backups. Setting this property to 0 + // disables automatic backups. You can retain automatic backups for a maximum of 90 + // days. The default is 0. + AutomaticBackupRetentionDays *int32 + + // A Boolean value indicating whether tags for the file system should be copied to + // backups. This value defaults to false. If it's set to true, all tags for the + // file system are copied to all automatic and user-initiated backups where the + // user doesn't specify tags. If this value is true and you specify one or more + // tags, only the specified tags are copied to backups. If you specify one or more + // tags when creating a user-initiated backup, no tags are copied from the file + // system, regardless of this value. + CopyTagsToBackups *bool + + // A Boolean value indicating whether tags for the volume should be copied to + // snapshots. This value defaults to false. If it's set to true, all tags for the + // volume are copied to snapshots where the user doesn't specify tags. If this + // value is true and you specify one or more tags, only the specified tags are + // copied to snapshots. If you specify one or more tags when creating the snapshot, + // no tags are copied from the volume, regardless of this value. + CopyTagsToVolumes *bool + + // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the + // day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 + // specifies 5 AM daily. + DailyAutomaticBackupStartTime *string + + // The SSD IOPS (input/output operations per second) configuration for an Amazon + // FSx for NetApp ONTAP or Amazon FSx for OpenZFS file system. The default is 3 + // IOPS per GB of storage capacity, but you can provision additional IOPS per GB of + // storage. The configuration consists of the total number of provisioned SSD IOPS + // and how the amount was provisioned (by the customer or by the system). + DiskIopsConfiguration *DiskIopsConfiguration + + // The throughput of an Amazon FSx file system, measured in megabytes per second + // (MBps), in 2 to the nth increments, between 2^3 (8) and 2^11 (2048). + ThroughputCapacity *int32 + + // A recurring weekly time, in the format D:HH:MM. D is the day of the week, for + // which 1 represents Monday and 7 represents Sunday. For further details, see the + // ISO-8601 spec as described on Wikipedia + // (https://en.wikipedia.org/wiki/ISO_week_date). HH is the zero-padded hour of the + // day (0-23), and MM is the zero-padded minute of the hour. For example, 1:05:00 + // specifies maintenance at 5 AM Monday. + WeeklyMaintenanceStartTime *string + + noSmithyDocumentSerde +} + // Updates the configuration for an existing Amazon FSx for Windows File Server // file system. Amazon FSx only overwrites existing properties with non-null values // provided in the request. @@ -1878,8 +2819,45 @@ type UpdateOntapVolumeConfiguration struct { noSmithyDocumentSerde } +// Used to specify changes to the OpenZFS configuration for the volume that you are +// updating. +type UpdateOpenZFSVolumeConfiguration struct { + + // Specifies the method used to compress the data on the volume. Unless the + // compression type is specified, volumes inherit the DataCompressionType value of + // their parent volume. + // + // * NONE - Doesn't compress the data on the volume. + // + // * ZSTD + // - Compresses the data in the volume using the Zstandard (ZSTD) compression + // algorithm. This algorithm reduces the amount of space used on your volume and + // has very little impact on compute resources. + DataCompressionType OpenZFSDataCompressionType + + // The configuration object for mounting a Network File System (NFS) file system. + NfsExports []OpenZFSNfsExport + + // A Boolean value indicating whether the volume is read-only. + ReadOnly *bool + + // The maximum amount of storage in gibibytes (GiB) that the volume can use from + // its parent. You can specify a quota larger than the storage on the parent + // volume. + StorageCapacityQuotaGiB *int32 + + // The amount of storage in gibibytes (GiB) to reserve from the parent volume. You + // can't reserve more storage than the parent volume has reserved. + StorageCapacityReservationGiB *int32 + + // An object specifying how much storage users or groups can use on the volume. + UserAndGroupQuotas []OpenZFSUserOrGroupQuota + + noSmithyDocumentSerde +} + // Updates the Microsoft Active Directory (AD) configuration of an SVM joined to an -// AD. Pleae note, account credentials are not returned in the response payload. +// AD. Please note, account credentials are not returned in the response payload. type UpdateSvmActiveDirectoryConfiguration struct { // The configuration that Amazon FSx uses to join the Windows File Server instance @@ -1889,9 +2867,14 @@ type UpdateSvmActiveDirectoryConfiguration struct { noSmithyDocumentSerde } -// Describes an Amazon FSx for NetApp ONTAP volume. +// Describes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume. type Volume struct { + // A list of administrative actions for the file system that are in process or + // waiting to be processed. Administrative actions describe changes to the Amazon + // FSx system that you initiated. + AdministrativeActions []AdministrativeAction + // The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), // also known as Unix time. CreationTime *time.Time @@ -1901,32 +2884,38 @@ type Volume struct { // The lifecycle status of the volume. // - // * CREATED - The volume is fully available + // * AVAILABLE - The volume is fully available // for use. // - // * CREATING - Amazon FSx is creating the new volume. + // * CREATED - The volume has been created. // - // * DELETING - - // Amazon FSx is deleting an existing volume. + // * CREATING - Amazon FSx is + // creating the new volume. // - // * FAILED - Amazon FSx was unable to - // create the volume. + // * DELETING - Amazon FSx is deleting an existing + // volume. // - // * MISCONFIGURED - The volume is in a failed but recoverable - // state. + // * FAILED - Amazon FSx was unable to create the volume. // - // * PENDING - Amazon FSx has not started creating the volume. + // * MISCONFIGURED + // - The volume is in a failed but recoverable state. + // + // * PENDING - Amazon FSx + // hasn't started creating the volume. Lifecycle VolumeLifecycle - // Describes why the volume lifecycle state changed. + // The reason why the volume lifecycle status changed. LifecycleTransitionReason *LifecycleTransitionReason // The name of the volume. Name *string - // The configuration of an Amazon FSx for NetApp ONTAP volume + // The configuration of an Amazon FSx for NetApp ONTAP volume. OntapConfiguration *OntapVolumeConfiguration + // The configuration of an Amazon FSx for OpenZFS volume. + OpenZFSConfiguration *OpenZFSVolumeConfiguration + // The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify // Amazon Web Services resources. We require an ARN when you need to specify a // resource unambiguously across all of Amazon Web Services. For more information, @@ -1941,15 +2930,15 @@ type Volume struct { // The system-generated, unique ID of the volume. VolumeId *string - // The type of volume; ONTAP is the only valid volume type. + // The type of the volume. VolumeType VolumeType noSmithyDocumentSerde } // A filter used to restrict the results of describe calls for Amazon FSx for -// NetApp ONTAP volumes. You can use multiple filters to return results that meet -// all applied filter requirements. +// NetApp ONTAP or Amazon FSx for OpenZFS volumes. You can use multiple filters to +// return results that meet all applied filter requirements. type VolumeFilter struct { // The name for this filter. diff --git a/service/fsx/validators.go b/service/fsx/validators.go index fde8e09ad98..1fbe5992d1a 100644 --- a/service/fsx/validators.go +++ b/service/fsx/validators.go @@ -90,6 +90,26 @@ func (m *validateOpCreateBackup) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpCreateDataRepositoryAssociation struct { +} + +func (*validateOpCreateDataRepositoryAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateDataRepositoryAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateDataRepositoryAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateDataRepositoryAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateDataRepositoryTask struct { } @@ -150,6 +170,26 @@ func (m *validateOpCreateFileSystem) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpCreateSnapshot struct { +} + +func (*validateOpCreateSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateStorageVirtualMachine struct { } @@ -230,6 +270,26 @@ func (m *validateOpDeleteBackup) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpDeleteDataRepositoryAssociation struct { +} + +func (*validateOpDeleteDataRepositoryAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteDataRepositoryAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteDataRepositoryAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteDataRepositoryAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteFileSystem struct { } @@ -250,6 +310,26 @@ func (m *validateOpDeleteFileSystem) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpDeleteSnapshot struct { +} + +func (*validateOpDeleteSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteStorageVirtualMachine struct { } @@ -350,6 +430,46 @@ func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpReleaseFileSystemNfsV3Locks struct { +} + +func (*validateOpReleaseFileSystemNfsV3Locks) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpReleaseFileSystemNfsV3Locks) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ReleaseFileSystemNfsV3LocksInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpReleaseFileSystemNfsV3LocksInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpRestoreVolumeFromSnapshot struct { +} + +func (*validateOpRestoreVolumeFromSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpRestoreVolumeFromSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*RestoreVolumeFromSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpRestoreVolumeFromSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpTagResource struct { } @@ -390,6 +510,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateDataRepositoryAssociation struct { +} + +func (*validateOpUpdateDataRepositoryAssociation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateDataRepositoryAssociation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateDataRepositoryAssociationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateDataRepositoryAssociationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateFileSystem struct { } @@ -410,6 +550,26 @@ func (m *validateOpUpdateFileSystem) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpUpdateSnapshot struct { +} + +func (*validateOpUpdateSnapshot) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateSnapshot) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateSnapshotInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateSnapshotInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateStorageVirtualMachine struct { } @@ -466,6 +626,10 @@ func addOpCreateBackupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateBackup{}, middleware.After) } +func addOpCreateDataRepositoryAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateDataRepositoryAssociation{}, middleware.After) +} + func addOpCreateDataRepositoryTaskValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateDataRepositoryTask{}, middleware.After) } @@ -478,6 +642,10 @@ func addOpCreateFileSystemValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateFileSystem{}, middleware.After) } +func addOpCreateSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSnapshot{}, middleware.After) +} + func addOpCreateStorageVirtualMachineValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateStorageVirtualMachine{}, middleware.After) } @@ -494,10 +662,18 @@ func addOpDeleteBackupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteBackup{}, middleware.After) } +func addOpDeleteDataRepositoryAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteDataRepositoryAssociation{}, middleware.After) +} + func addOpDeleteFileSystemValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteFileSystem{}, middleware.After) } +func addOpDeleteSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteSnapshot{}, middleware.After) +} + func addOpDeleteStorageVirtualMachineValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteStorageVirtualMachine{}, middleware.After) } @@ -518,6 +694,14 @@ func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } +func addOpReleaseFileSystemNfsV3LocksValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpReleaseFileSystemNfsV3Locks{}, middleware.After) +} + +func addOpRestoreVolumeFromSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpRestoreVolumeFromSnapshot{}, middleware.After) +} + func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) } @@ -526,10 +710,18 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateDataRepositoryAssociationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateDataRepositoryAssociation{}, middleware.After) +} + func addOpUpdateFileSystemValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateFileSystem{}, middleware.After) } +func addOpUpdateSnapshotValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateSnapshot{}, middleware.After) +} + func addOpUpdateStorageVirtualMachineValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateStorageVirtualMachine{}, middleware.After) } @@ -553,6 +745,23 @@ func validateCompletionReport(v *types.CompletionReport) error { } } +func validateCreateFileSystemLustreConfiguration(v *types.CreateFileSystemLustreConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateFileSystemLustreConfiguration"} + if v.LogConfiguration != nil { + if err := validateLustreLogCreateConfiguration(v.LogConfiguration); err != nil { + invalidParams.AddNested("LogConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCreateFileSystemOntapConfiguration(v *types.CreateFileSystemOntapConfiguration) error { if v == nil { return nil @@ -571,6 +780,29 @@ func validateCreateFileSystemOntapConfiguration(v *types.CreateFileSystemOntapCo } } +func validateCreateFileSystemOpenZFSConfiguration(v *types.CreateFileSystemOpenZFSConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateFileSystemOpenZFSConfiguration"} + if len(v.DeploymentType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DeploymentType")) + } + if v.ThroughputCapacity == nil { + invalidParams.Add(smithy.NewErrParamRequired("ThroughputCapacity")) + } + if v.RootVolumeConfiguration != nil { + if err := validateOpenZFSCreateRootVolumeConfiguration(v.RootVolumeConfiguration); err != nil { + invalidParams.AddNested("RootVolumeConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCreateFileSystemWindowsConfiguration(v *types.CreateFileSystemWindowsConfiguration) error { if v == nil { return nil @@ -620,6 +852,54 @@ func validateCreateOntapVolumeConfiguration(v *types.CreateOntapVolumeConfigurat } } +func validateCreateOpenZFSOriginSnapshotConfiguration(v *types.CreateOpenZFSOriginSnapshotConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateOpenZFSOriginSnapshotConfiguration"} + if v.SnapshotARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotARN")) + } + if len(v.CopyStrategy) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("CopyStrategy")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateCreateOpenZFSVolumeConfiguration(v *types.CreateOpenZFSVolumeConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateOpenZFSVolumeConfiguration"} + if v.ParentVolumeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ParentVolumeId")) + } + if v.OriginSnapshot != nil { + if err := validateCreateOpenZFSOriginSnapshotConfiguration(v.OriginSnapshot); err != nil { + invalidParams.AddNested("OriginSnapshot", err.(smithy.InvalidParamsError)) + } + } + if v.NfsExports != nil { + if err := validateOpenZFSNfsExports(v.NfsExports); err != nil { + invalidParams.AddNested("NfsExports", err.(smithy.InvalidParamsError)) + } + } + if v.UserAndGroupQuotas != nil { + if err := validateOpenZFSUserAndGroupQuotas(v.UserAndGroupQuotas); err != nil { + invalidParams.AddNested("UserAndGroupQuotas", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCreateSvmActiveDirectoryConfiguration(v *types.CreateSvmActiveDirectoryConfiguration) error { if v == nil { return nil @@ -657,6 +937,23 @@ func validateDeleteFileSystemLustreConfiguration(v *types.DeleteFileSystemLustre } } +func validateDeleteFileSystemOpenZFSConfiguration(v *types.DeleteFileSystemOpenZFSConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteFileSystemOpenZFSConfiguration"} + if v.FinalBackupTags != nil { + if err := validateTags(v.FinalBackupTags); err != nil { + invalidParams.AddNested("FinalBackupTags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDeleteFileSystemWindowsConfiguration(v *types.DeleteFileSystemWindowsConfiguration) error { if v == nil { return nil @@ -691,6 +988,152 @@ func validateDeleteVolumeOntapConfiguration(v *types.DeleteVolumeOntapConfigurat } } +func validateLustreLogCreateConfiguration(v *types.LustreLogCreateConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "LustreLogCreateConfiguration"} + if len(v.Level) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Level")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSClientConfiguration(v *types.OpenZFSClientConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSClientConfiguration"} + if v.Clients == nil { + invalidParams.Add(smithy.NewErrParamRequired("Clients")) + } + if v.Options == nil { + invalidParams.Add(smithy.NewErrParamRequired("Options")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSClientConfigurations(v []types.OpenZFSClientConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSClientConfigurations"} + for i := range v { + if err := validateOpenZFSClientConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSCreateRootVolumeConfiguration(v *types.OpenZFSCreateRootVolumeConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSCreateRootVolumeConfiguration"} + if v.NfsExports != nil { + if err := validateOpenZFSNfsExports(v.NfsExports); err != nil { + invalidParams.AddNested("NfsExports", err.(smithy.InvalidParamsError)) + } + } + if v.UserAndGroupQuotas != nil { + if err := validateOpenZFSUserAndGroupQuotas(v.UserAndGroupQuotas); err != nil { + invalidParams.AddNested("UserAndGroupQuotas", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSNfsExport(v *types.OpenZFSNfsExport) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSNfsExport"} + if v.ClientConfigurations == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClientConfigurations")) + } else if v.ClientConfigurations != nil { + if err := validateOpenZFSClientConfigurations(v.ClientConfigurations); err != nil { + invalidParams.AddNested("ClientConfigurations", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSNfsExports(v []types.OpenZFSNfsExport) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSNfsExports"} + for i := range v { + if err := validateOpenZFSNfsExport(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSUserAndGroupQuotas(v []types.OpenZFSUserOrGroupQuota) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSUserAndGroupQuotas"} + for i := range v { + if err := validateOpenZFSUserOrGroupQuota(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpenZFSUserOrGroupQuota(v *types.OpenZFSUserOrGroupQuota) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OpenZFSUserOrGroupQuota"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.StorageCapacityQuotaGiB == nil { + invalidParams.Add(smithy.NewErrParamRequired("StorageCapacityQuotaGiB")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateSelfManagedActiveDirectoryConfiguration(v *types.SelfManagedActiveDirectoryConfiguration) error { if v == nil { return nil @@ -750,6 +1193,23 @@ func validateTags(v []types.Tag) error { } } +func validateUpdateFileSystemLustreConfiguration(v *types.UpdateFileSystemLustreConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateFileSystemLustreConfiguration"} + if v.LogConfiguration != nil { + if err := validateLustreLogCreateConfiguration(v.LogConfiguration); err != nil { + invalidParams.AddNested("LogConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateUpdateFileSystemWindowsConfiguration(v *types.UpdateFileSystemWindowsConfiguration) error { if v == nil { return nil @@ -767,6 +1227,28 @@ func validateUpdateFileSystemWindowsConfiguration(v *types.UpdateFileSystemWindo } } +func validateUpdateOpenZFSVolumeConfiguration(v *types.UpdateOpenZFSVolumeConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateOpenZFSVolumeConfiguration"} + if v.NfsExports != nil { + if err := validateOpenZFSNfsExports(v.NfsExports); err != nil { + invalidParams.AddNested("NfsExports", err.(smithy.InvalidParamsError)) + } + } + if v.UserAndGroupQuotas != nil { + if err := validateOpenZFSUserAndGroupQuotas(v.UserAndGroupQuotas); err != nil { + invalidParams.AddNested("UserAndGroupQuotas", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateWindowsAuditLogCreateConfiguration(v *types.WindowsAuditLogCreateConfiguration) error { if v == nil { return nil @@ -855,6 +1337,32 @@ func validateOpCreateBackupInput(v *CreateBackupInput) error { } } +func validateOpCreateDataRepositoryAssociationInput(v *CreateDataRepositoryAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateDataRepositoryAssociationInput"} + if v.FileSystemId == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileSystemId")) + } + if v.FileSystemPath == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileSystemPath")) + } + if v.DataRepositoryPath == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataRepositoryPath")) + } + if v.Tags != nil { + if err := validateTags(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateDataRepositoryTaskInput(v *CreateDataRepositoryTaskInput) error { if v == nil { return nil @@ -906,6 +1414,16 @@ func validateOpCreateFileSystemFromBackupInput(v *CreateFileSystemFromBackupInpu invalidParams.AddNested("WindowsConfiguration", err.(smithy.InvalidParamsError)) } } + if v.LustreConfiguration != nil { + if err := validateCreateFileSystemLustreConfiguration(v.LustreConfiguration); err != nil { + invalidParams.AddNested("LustreConfiguration", err.(smithy.InvalidParamsError)) + } + } + if v.OpenZFSConfiguration != nil { + if err := validateCreateFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration); err != nil { + invalidParams.AddNested("OpenZFSConfiguration", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -937,11 +1455,44 @@ func validateOpCreateFileSystemInput(v *CreateFileSystemInput) error { invalidParams.AddNested("WindowsConfiguration", err.(smithy.InvalidParamsError)) } } + if v.LustreConfiguration != nil { + if err := validateCreateFileSystemLustreConfiguration(v.LustreConfiguration); err != nil { + invalidParams.AddNested("LustreConfiguration", err.(smithy.InvalidParamsError)) + } + } if v.OntapConfiguration != nil { if err := validateCreateFileSystemOntapConfiguration(v.OntapConfiguration); err != nil { invalidParams.AddNested("OntapConfiguration", err.(smithy.InvalidParamsError)) } } + if v.OpenZFSConfiguration != nil { + if err := validateCreateFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration); err != nil { + invalidParams.AddNested("OpenZFSConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateSnapshotInput(v *CreateSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSnapshotInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.VolumeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VolumeId")) + } + if v.Tags != nil { + if err := validateTags(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1026,6 +1577,11 @@ func validateOpCreateVolumeInput(v *CreateVolumeInput) error { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } + if v.OpenZFSConfiguration != nil { + if err := validateCreateOpenZFSVolumeConfiguration(v.OpenZFSConfiguration); err != nil { + invalidParams.AddNested("OpenZFSConfiguration", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1048,6 +1604,24 @@ func validateOpDeleteBackupInput(v *DeleteBackupInput) error { } } +func validateOpDeleteDataRepositoryAssociationInput(v *DeleteDataRepositoryAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteDataRepositoryAssociationInput"} + if v.AssociationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociationId")) + } + if v.DeleteDataInFileSystem == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeleteDataInFileSystem")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteFileSystemInput(v *DeleteFileSystemInput) error { if v == nil { return nil @@ -1066,6 +1640,26 @@ func validateOpDeleteFileSystemInput(v *DeleteFileSystemInput) error { invalidParams.AddNested("LustreConfiguration", err.(smithy.InvalidParamsError)) } } + if v.OpenZFSConfiguration != nil { + if err := validateDeleteFileSystemOpenZFSConfiguration(v.OpenZFSConfiguration); err != nil { + invalidParams.AddNested("OpenZFSConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteSnapshotInput(v *DeleteSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteSnapshotInput"} + if v.SnapshotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1156,6 +1750,39 @@ func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { } } +func validateOpReleaseFileSystemNfsV3LocksInput(v *ReleaseFileSystemNfsV3LocksInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ReleaseFileSystemNfsV3LocksInput"} + if v.FileSystemId == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileSystemId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpRestoreVolumeFromSnapshotInput(v *RestoreVolumeFromSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RestoreVolumeFromSnapshotInput"} + if v.VolumeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VolumeId")) + } + if v.SnapshotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpTagResourceInput(v *TagResourceInput) error { if v == nil { return nil @@ -1196,6 +1823,21 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { } } +func validateOpUpdateDataRepositoryAssociationInput(v *UpdateDataRepositoryAssociationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateDataRepositoryAssociationInput"} + if v.AssociationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateFileSystemInput(v *UpdateFileSystemInput) error { if v == nil { return nil @@ -1209,6 +1851,29 @@ func validateOpUpdateFileSystemInput(v *UpdateFileSystemInput) error { invalidParams.AddNested("WindowsConfiguration", err.(smithy.InvalidParamsError)) } } + if v.LustreConfiguration != nil { + if err := validateUpdateFileSystemLustreConfiguration(v.LustreConfiguration); err != nil { + invalidParams.AddNested("LustreConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateSnapshotInput(v *UpdateSnapshotInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateSnapshotInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.SnapshotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1239,6 +1904,11 @@ func validateOpUpdateVolumeInput(v *UpdateVolumeInput) error { if v.VolumeId == nil { invalidParams.Add(smithy.NewErrParamRequired("VolumeId")) } + if v.OpenZFSConfiguration != nil { + if err := validateUpdateOpenZFSVolumeConfiguration(v.OpenZFSConfiguration); err != nil { + invalidParams.AddNested("OpenZFSConfiguration", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/glue/api_op_BatchDeleteTable.go b/service/glue/api_op_BatchDeleteTable.go index 468743a4193..4292c22579c 100644 --- a/service/glue/api_op_BatchDeleteTable.go +++ b/service/glue/api_op_BatchDeleteTable.go @@ -50,6 +50,9 @@ type BatchDeleteTableInput struct { // Amazon Web Services account ID is used by default. CatalogId *string + // The transaction ID at which to delete the table contents. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/api_op_CreateTable.go b/service/glue/api_op_CreateTable.go index 9ece45295ac..8ac8bd19b4c 100644 --- a/service/glue/api_op_CreateTable.go +++ b/service/glue/api_op_CreateTable.go @@ -47,6 +47,9 @@ type CreateTableInput struct { // A list of partition indexes, PartitionIndex structures, to create in the table. PartitionIndexes []types.PartitionIndex + // The ID of the transaction. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/api_op_DeleteTable.go b/service/glue/api_op_DeleteTable.go index 93252e81619..42358ef7b79 100644 --- a/service/glue/api_op_DeleteTable.go +++ b/service/glue/api_op_DeleteTable.go @@ -50,6 +50,9 @@ type DeleteTableInput struct { // Amazon Web Services account ID is used by default. CatalogId *string + // The transaction ID at which to delete the table contents. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/api_op_GetPartitions.go b/service/glue/api_op_GetPartitions.go index 8c19a341a39..2bb758fed83 100644 --- a/service/glue/api_op_GetPartitions.go +++ b/service/glue/api_op_GetPartitions.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/glue/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" + "time" ) // Retrieves information about the partitions in a table. @@ -103,9 +104,17 @@ type GetPartitionsInput struct { // partitions. NextToken *string + // The time as of when to read the partition contents. If not set, the most recent + // transaction commit time will be used. Cannot be specified along with + // TransactionId. + QueryAsOfTime *time.Time + // The segment of the table's partitions to scan in this request. Segment *types.Segment + // The transaction ID at which to read the partition contents. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/api_op_GetTable.go b/service/glue/api_op_GetTable.go index 79e881ec2cb..ce892358719 100644 --- a/service/glue/api_op_GetTable.go +++ b/service/glue/api_op_GetTable.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/glue/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" + "time" ) // Retrieves the Table definition in a Data Catalog for a specified table. @@ -45,6 +46,14 @@ type GetTableInput struct { // Amazon Web Services account ID is used by default. CatalogId *string + // The time as of when to read the table contents. If not set, the most recent + // transaction commit time will be used. Cannot be specified along with + // TransactionId. + QueryAsOfTime *time.Time + + // The transaction ID at which to read the table contents. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/api_op_GetTables.go b/service/glue/api_op_GetTables.go index a2836f0c63b..66390eb86a5 100644 --- a/service/glue/api_op_GetTables.go +++ b/service/glue/api_op_GetTables.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/glue/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" + "time" ) // Retrieves the definitions of some or all of the tables in a given Database. @@ -50,6 +51,14 @@ type GetTablesInput struct { // A continuation token, included if this is a continuation call. NextToken *string + // The time as of when to read the table contents. If not set, the most recent + // transaction commit time will be used. Cannot be specified along with + // TransactionId. + QueryAsOfTime *time.Time + + // The transaction ID at which to read the table contents. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/api_op_UpdateTable.go b/service/glue/api_op_UpdateTable.go index 83c227ff248..b5b25503d62 100644 --- a/service/glue/api_op_UpdateTable.go +++ b/service/glue/api_op_UpdateTable.go @@ -49,6 +49,9 @@ type UpdateTableInput struct { // the archived version. SkipArchive *bool + // The transaction ID at which to update the table contents. + TransactionId *string + noSmithyDocumentSerde } diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index 35745f54ec7..a2dd9a0da41 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -485,6 +485,9 @@ func awsAwsjson11_deserializeOpErrorBatchDeleteTable(response *smithyhttp.Respon case strings.EqualFold("EntityNotFoundException", errorCode): return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("GlueEncryptionException", errorCode): + return awsAwsjson11_deserializeErrorGlueEncryptionException(response, errorBody) + case strings.EqualFold("InternalServiceException", errorCode): return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) @@ -494,6 +497,9 @@ func awsAwsjson11_deserializeOpErrorBatchDeleteTable(response *smithyhttp.Respon case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotReadyException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1202,6 +1208,9 @@ func awsAwsjson11_deserializeOpErrorBatchGetPartition(response *smithyhttp.Respo case strings.EqualFold("InvalidInputException", errorCode): return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + case strings.EqualFold("InvalidStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody) + case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) @@ -3794,6 +3803,9 @@ func awsAwsjson11_deserializeOpErrorCreateTable(response *smithyhttp.Response, m case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotReadyException(response, errorBody) + case strings.EqualFold("ResourceNumberLimitExceededException", errorCode): return awsAwsjson11_deserializeErrorResourceNumberLimitExceededException(response, errorBody) @@ -6347,6 +6359,9 @@ func awsAwsjson11_deserializeOpErrorDeleteTable(response *smithyhttp.Response, m case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotReadyException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -10631,9 +10646,15 @@ func awsAwsjson11_deserializeOpErrorGetPartitions(response *smithyhttp.Response, case strings.EqualFold("InvalidInputException", errorCode): return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + case strings.EqualFold("InvalidStateException", errorCode): + return awsAwsjson11_deserializeErrorInvalidStateException(response, errorBody) + case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotReadyException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -11954,6 +11975,9 @@ func awsAwsjson11_deserializeOpErrorGetTable(response *smithyhttp.Response, meta case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotReadyException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19730,6 +19754,9 @@ func awsAwsjson11_deserializeOpErrorUpdateTable(response *smithyhttp.Response, m case strings.EqualFold("OperationTimeoutException", errorCode): return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotReadyException(response, errorBody) + case strings.EqualFold("ResourceNumberLimitExceededException", errorCode): return awsAwsjson11_deserializeErrorResourceNumberLimitExceededException(response, errorBody) @@ -20672,6 +20699,41 @@ func awsAwsjson11_deserializeErrorInvalidInputException(response *smithyhttp.Res return output } +func awsAwsjson11_deserializeErrorInvalidStateException(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.InvalidStateException{} + err := awsAwsjson11_deserializeDocumentInvalidStateException(&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_deserializeErrorMLTransformNotReadyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -20777,6 +20839,41 @@ func awsAwsjson11_deserializeErrorOperationTimeoutException(response *smithyhttp return output } +func awsAwsjson11_deserializeErrorResourceNotReadyException(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.ResourceNotReadyException{} + err := awsAwsjson11_deserializeDocumentResourceNotReadyException(&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_deserializeErrorResourceNumberLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -27697,6 +27794,46 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu return nil } +func awsAwsjson11_deserializeDocumentInvalidStateException(v **types.InvalidStateException, 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.InvalidStateException + if *v == nil { + sv = &types.InvalidStateException{} + } 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 MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentJdbcTarget(v **types.JdbcTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -31340,6 +31477,46 @@ func awsAwsjson11_deserializeDocumentRegistryListItem(v **types.RegistryListItem return nil } +func awsAwsjson11_deserializeDocumentResourceNotReadyException(v **types.ResourceNotReadyException, 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.ResourceNotReadyException + if *v == nil { + sv = &types.ResourceNotReadyException{} + } 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 MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(v **types.ResourceNumberLimitExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/glue/serializers.go b/service/glue/serializers.go index b04863baca9..bad122c7fb6 100644 --- a/service/glue/serializers.go +++ b/service/glue/serializers.go @@ -12451,6 +12451,11 @@ func awsAwsjson11_serializeOpDocumentBatchDeleteTableInput(v *BatchDeleteTableIn } } + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } @@ -13404,6 +13409,11 @@ func awsAwsjson11_serializeOpDocumentCreateTableInput(v *CreateTableInput, value } } + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } @@ -13850,6 +13860,11 @@ func awsAwsjson11_serializeOpDocumentDeleteTableInput(v *DeleteTableInput, value ok.String(*v.Name) } + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } @@ -14603,6 +14618,11 @@ func awsAwsjson11_serializeOpDocumentGetPartitionsInput(v *GetPartitionsInput, v ok.String(*v.NextToken) } + if v.QueryAsOfTime != nil { + ok := object.Key("QueryAsOfTime") + ok.Double(smithytime.FormatEpochSeconds(*v.QueryAsOfTime)) + } + if v.Segment != nil { ok := object.Key("Segment") if err := awsAwsjson11_serializeDocumentSegment(v.Segment, ok); err != nil { @@ -14615,6 +14635,11 @@ func awsAwsjson11_serializeOpDocumentGetPartitionsInput(v *GetPartitionsInput, v ok.String(*v.TableName) } + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } @@ -14848,6 +14873,16 @@ func awsAwsjson11_serializeOpDocumentGetTableInput(v *GetTableInput, value smith ok.String(*v.Name) } + if v.QueryAsOfTime != nil { + ok := object.Key("QueryAsOfTime") + ok.Double(smithytime.FormatEpochSeconds(*v.QueryAsOfTime)) + } + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } @@ -14880,6 +14915,16 @@ func awsAwsjson11_serializeOpDocumentGetTablesInput(v *GetTablesInput, value smi ok.String(*v.NextToken) } + if v.QueryAsOfTime != nil { + ok := object.Key("QueryAsOfTime") + ok.Double(smithytime.FormatEpochSeconds(*v.QueryAsOfTime)) + } + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } @@ -16509,6 +16554,11 @@ func awsAwsjson11_serializeOpDocumentUpdateTableInput(v *UpdateTableInput, value } } + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + return nil } diff --git a/service/glue/types/errors.go b/service/glue/types/errors.go index 83ff47ebce2..18a3c52b127 100644 --- a/service/glue/types/errors.go +++ b/service/glue/types/errors.go @@ -318,6 +318,25 @@ func (e *InvalidInputException) ErrorMessage() string { func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// An error that indicates your data is in an invalid state. +type InvalidStateException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidStateException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidStateException) ErrorCode() string { return "InvalidStateException" } +func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The machine learning transform is not ready to run. type MLTransformNotReadyException struct { Message *string @@ -375,6 +394,25 @@ func (e *OperationTimeoutException) ErrorMessage() string { func (e *OperationTimeoutException) ErrorCode() string { return "OperationTimeoutException" } func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// A resource was not ready for a transaction. +type ResourceNotReadyException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotReadyException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // A resource numerical limit was exceeded. type ResourceNumberLimitExceededException struct { Message *string diff --git a/service/inspector2/internal/endpoints/endpoints.go b/service/inspector2/internal/endpoints/endpoints.go index c261cd6a488..6c70db42c7f 100644 --- a/service/inspector2/internal/endpoints/endpoints.go +++ b/service/inspector2/internal/endpoints/endpoints.go @@ -134,6 +134,65 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "ap-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ca-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-north-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-3", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "me-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "sa-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-cn", diff --git a/service/iot/api_op_DescribeIndex.go b/service/iot/api_op_DescribeIndex.go index 3b190bc15b6..18d7c4eb446 100644 --- a/service/iot/api_op_DescribeIndex.go +++ b/service/iot/api_op_DescribeIndex.go @@ -62,6 +62,11 @@ type DescribeIndexOutput struct { // * // REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index contains registry // data, shadow data, and thing connectivity status data. + // + // * MULTI_INDEXING_MODE - + // Your thing index contains multiple data sources. For more information, see + // GetIndexingConfiguration + // (https://docs.aws.amazon.com/iot/latest/apireference/API_GetIndexingConfiguration.html). Schema *string // Metadata pertaining to the operation's result. diff --git a/service/iot/api_op_UpdateFleetMetric.go b/service/iot/api_op_UpdateFleetMetric.go index 24299b698c3..c8ea80aea8a 100644 --- a/service/iot/api_op_UpdateFleetMetric.go +++ b/service/iot/api_op_UpdateFleetMetric.go @@ -66,7 +66,7 @@ type UpdateFleetMetricInput struct { // Used to support unit transformation such as milliseconds to seconds. The unit // must be supported by CW metric - // (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html). + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html). Unit types.FleetMetricUnit noSmithyDocumentSerde diff --git a/service/iot/deserializers.go b/service/iot/deserializers.go index c705f0e84dc..eb21069ce7c 100644 --- a/service/iot/deserializers.go +++ b/service/iot/deserializers.go @@ -52324,6 +52324,15 @@ func awsRestjson1_deserializeDocumentThingDocument(v **types.ThingDocument, valu return err } + case "deviceDefender": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected JsonDocument to be of type string, got %T instead", value) + } + sv.DeviceDefender = ptr.String(jtv) + } + case "shadow": if value != nil { jtv, ok := value.(string) @@ -52799,11 +52808,29 @@ func awsRestjson1_deserializeDocumentThingIndexingConfiguration(v **types.ThingI return err } + case "deviceDefenderIndexingMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DeviceDefenderIndexingMode to be of type string, got %T instead", value) + } + sv.DeviceDefenderIndexingMode = types.DeviceDefenderIndexingMode(jtv) + } + case "managedFields": if err := awsRestjson1_deserializeDocumentFields(&sv.ManagedFields, value); err != nil { return err } + case "namedShadowIndexingMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NamedShadowIndexingMode to be of type string, got %T instead", value) + } + sv.NamedShadowIndexingMode = types.NamedShadowIndexingMode(jtv) + } + case "thingConnectivityIndexingMode": if value != nil { jtv, ok := value.(string) diff --git a/service/iot/serializers.go b/service/iot/serializers.go index 83f11bf4ce0..df44b9bd9ed 100644 --- a/service/iot/serializers.go +++ b/service/iot/serializers.go @@ -20100,6 +20100,11 @@ func awsRestjson1_serializeDocumentThingIndexingConfiguration(v *types.ThingInde } } + if len(v.DeviceDefenderIndexingMode) > 0 { + ok := object.Key("deviceDefenderIndexingMode") + ok.String(string(v.DeviceDefenderIndexingMode)) + } + if v.ManagedFields != nil { ok := object.Key("managedFields") if err := awsRestjson1_serializeDocumentFields(v.ManagedFields, ok); err != nil { @@ -20107,6 +20112,11 @@ func awsRestjson1_serializeDocumentThingIndexingConfiguration(v *types.ThingInde } } + if len(v.NamedShadowIndexingMode) > 0 { + ok := object.Key("namedShadowIndexingMode") + ok.String(string(v.NamedShadowIndexingMode)) + } + if len(v.ThingConnectivityIndexingMode) > 0 { ok := object.Key("thingConnectivityIndexingMode") ok.String(string(v.ThingConnectivityIndexingMode)) diff --git a/service/iot/types/enums.go b/service/iot/types/enums.go index 4be63ff7e0d..dc0588f3193 100644 --- a/service/iot/types/enums.go +++ b/service/iot/types/enums.go @@ -643,6 +643,24 @@ func (DeviceCertificateUpdateAction) Values() []DeviceCertificateUpdateAction { } } +type DeviceDefenderIndexingMode string + +// Enum values for DeviceDefenderIndexingMode +const ( + DeviceDefenderIndexingModeOff DeviceDefenderIndexingMode = "OFF" + DeviceDefenderIndexingModeViolations DeviceDefenderIndexingMode = "VIOLATIONS" +) + +// Values returns all known values for DeviceDefenderIndexingMode. 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 (DeviceDefenderIndexingMode) Values() []DeviceDefenderIndexingMode { + return []DeviceDefenderIndexingMode{ + "OFF", + "VIOLATIONS", + } +} + type DimensionType string // Enum values for DimensionType @@ -1077,6 +1095,24 @@ func (ModelStatus) Values() []ModelStatus { } } +type NamedShadowIndexingMode string + +// Enum values for NamedShadowIndexingMode +const ( + NamedShadowIndexingModeOff NamedShadowIndexingMode = "OFF" + NamedShadowIndexingModeOn NamedShadowIndexingMode = "ON" +) + +// Values returns all known values for NamedShadowIndexingMode. 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 (NamedShadowIndexingMode) Values() []NamedShadowIndexingMode { + return []NamedShadowIndexingMode{ + "OFF", + "ON", + } +} + type OTAUpdateStatus string // Enum values for OTAUpdateStatus diff --git a/service/iot/types/types.go b/service/iot/types/types.go index 1a4aed2b615..44a1fff256c 100644 --- a/service/iot/types/types.go +++ b/service/iot/types/types.go @@ -3387,7 +3387,14 @@ type ThingDocument struct { // service. Connectivity *ThingConnectivity - // The shadow. + // Contains Device Defender data. For more information about Device Defender, see + // Device Defender + // (https://docs.aws.amazon.com/iot/latest/developerguide/device-defender.html). + DeviceDefender *string + + // The unnamed shadow and named shadow. For more information about shadows, see IoT + // Device Shadow service. + // (https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html) Shadow *string // Thing group names. @@ -3494,10 +3501,37 @@ type ThingIndexingConfiguration struct { // Contains custom field names and their data type. CustomFields []Field + // Device Defender indexing mode. Valid values are: + // + // * VIOLATIONS – Your thing + // index contains Device Defender violations. To enable Device Defender indexing, + // deviceDefenderIndexingMode must not be set to OFF. + // + // * OFF - Device Defender + // indexing is disabled. + // + // For more information about Device Defender violations, + // see Device Defender Detect. + // (https://docs.aws.amazon.com/iot/latest/developerguide/device-defender-detect.html) + DeviceDefenderIndexingMode DeviceDefenderIndexingMode + // Contains fields that are indexed and whose types are already known by the Fleet // Indexing service. ManagedFields []Field + // Named shadow indexing mode. Valid values are: + // + // * ON – Your thing index contains + // named shadow. To enable thing named shadow indexing, namedShadowIndexingMode + // must not be set to OFF. + // + // * OFF - Named shadow indexing is disabled. + // + // For more + // information about Shadows, see IoT Device Shadow service. + // (https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html) + NamedShadowIndexingMode NamedShadowIndexingMode + // Thing connectivity indexing mode. Valid values are: // // * STATUS – Your thing index diff --git a/service/iottwinmaker/LICENSE.txt b/service/iottwinmaker/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/iottwinmaker/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/iottwinmaker/api_client.go b/service/iottwinmaker/api_client.go new file mode 100644 index 00000000000..d15490143c2 --- /dev/null +++ b/service/iottwinmaker/api_client.go @@ -0,0 +1,296 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "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/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "time" +) + +const ServiceID = "IoTTwinMaker" +const ServiceAPIVersion = "2021-11-29" + +// Client provides the API client to make operations call for AWS IoT TwinMaker. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + resolveRetryer(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveDefaultEndpointConfiguration(&options) + + for _, fn := range optFns { + fn(&options) + } + + client := &Client{ + options: options, + } + + return client +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + EndpointResolver EndpointResolver + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. + Retryer aws.Retryer + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + return to +} +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + for _, fn := range optFns { + fn(&options) + } + + finalizeClientEndpointResolverOptions(&options) + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + resolveUseDualStackEndpoint(cfg, &opts) + resolveUseFIPSEndpoint(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + if o.HTTPClient != nil { + return + } + o.HTTPClient = awshttp.NewBuildableClient() +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + o.Retryer = retry.NewStandard() +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver()) +} + +func addClientUserAgent(stack *middleware.Stack) error { + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "iottwinmaker", goModuleVersion)(stack) +} + +func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { + mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ + CredentialsProvider: o.Credentials, + Signer: o.HTTPSignerV4, + LogSigning: o.ClientLogMode.IsSigning(), + }) + return stack.Finalize.Add(mw, middleware.After) +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// resolves dual-stack endpoint configuration +func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseDualStackEndpoint = value + } + return nil +} + +// resolves FIPS endpoint configuration +func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseFIPSEndpoint = value + } + return nil +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} diff --git a/service/iottwinmaker/api_op_BatchPutPropertyValues.go b/service/iottwinmaker/api_op_BatchPutPropertyValues.go new file mode 100644 index 00000000000..18a37cdd4d3 --- /dev/null +++ b/service/iottwinmaker/api_op_BatchPutPropertyValues.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Sets values for multiple time series properties. +func (c *Client) BatchPutPropertyValues(ctx context.Context, params *BatchPutPropertyValuesInput, optFns ...func(*Options)) (*BatchPutPropertyValuesOutput, error) { + if params == nil { + params = &BatchPutPropertyValuesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "BatchPutPropertyValues", params, optFns, c.addOperationBatchPutPropertyValuesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*BatchPutPropertyValuesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type BatchPutPropertyValuesInput struct { + + // An object that maps strings to the property value entries to set. Each string in + // the mapping must be unique to this object. + // + // This member is required. + Entries []types.PropertyValueEntry + + // The ID of the workspace that contains the properties to set. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type BatchPutPropertyValuesOutput struct { + + // Entries that caused errors in the batch put operation. + // + // This member is required. + ErrorEntries []types.BatchPutPropertyErrorEntry + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationBatchPutPropertyValuesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchPutPropertyValues{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchPutPropertyValues{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opBatchPutPropertyValuesMiddleware(stack); err != nil { + return err + } + if err = addOpBatchPutPropertyValuesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchPutPropertyValues(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opBatchPutPropertyValuesMiddleware struct { +} + +func (*endpointPrefix_opBatchPutPropertyValuesMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opBatchPutPropertyValuesMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "data." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opBatchPutPropertyValuesMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opBatchPutPropertyValuesMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opBatchPutPropertyValues(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "BatchPutPropertyValues", + } +} diff --git a/service/iottwinmaker/api_op_CreateComponentType.go b/service/iottwinmaker/api_op_CreateComponentType.go new file mode 100644 index 00000000000..d2855476704 --- /dev/null +++ b/service/iottwinmaker/api_op_CreateComponentType.go @@ -0,0 +1,192 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates a component type. TwinMaker is in public preview and is subject to +// change. +func (c *Client) CreateComponentType(ctx context.Context, params *CreateComponentTypeInput, optFns ...func(*Options)) (*CreateComponentTypeOutput, error) { + if params == nil { + params = &CreateComponentTypeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateComponentType", params, optFns, c.addOperationCreateComponentTypeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateComponentTypeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateComponentTypeInput struct { + + // The ID of the component type. + // + // This member is required. + ComponentTypeId *string + + // The ID of the workspace that contains the component type. + // + // This member is required. + WorkspaceId *string + + // The description of the component type. + Description *string + + // Specifies the parent component type to extend. + ExtendsFrom []string + + // An object that maps strings to the functions in the component type. Each string + // in the mapping must be unique to this object. + Functions map[string]types.FunctionRequest + + // A Boolean value that specifies whether an entity can have more than one + // component of this type. + IsSingleton *bool + + // An object that maps strings to the property definitions in the component type. + // Each string in the mapping must be unique to this object. + PropertyDefinitions map[string]types.PropertyDefinitionRequest + + // Metadata that you can use to manage the component type. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateComponentTypeOutput struct { + + // The ARN of the component type. + // + // This member is required. + Arn *string + + // The date and time when the entity was created. + // + // This member is required. + CreationDateTime *time.Time + + // The current state of the component type. + // + // This member is required. + State types.State + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateComponentTypeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateComponentType{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateComponentType{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opCreateComponentTypeMiddleware(stack); err != nil { + return err + } + if err = addOpCreateComponentTypeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateComponentType(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opCreateComponentTypeMiddleware struct { +} + +func (*endpointPrefix_opCreateComponentTypeMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateComponentTypeMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opCreateComponentTypeMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opCreateComponentTypeMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opCreateComponentType(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "CreateComponentType", + } +} diff --git a/service/iottwinmaker/api_op_CreateEntity.go b/service/iottwinmaker/api_op_CreateEntity.go new file mode 100644 index 00000000000..46393bbbbc7 --- /dev/null +++ b/service/iottwinmaker/api_op_CreateEntity.go @@ -0,0 +1,191 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates an entity. +func (c *Client) CreateEntity(ctx context.Context, params *CreateEntityInput, optFns ...func(*Options)) (*CreateEntityOutput, error) { + if params == nil { + params = &CreateEntityInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateEntity", params, optFns, c.addOperationCreateEntityMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateEntityOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateEntityInput struct { + + // The name of the entity. + // + // This member is required. + EntityName *string + + // The ID of the workspace that contains the entity. + // + // This member is required. + WorkspaceId *string + + // An object that maps strings to the components in the entity. Each string in the + // mapping must be unique to this object. + Components map[string]types.ComponentRequest + + // The description of the entity. + Description *string + + // The ID of the entity. + EntityId *string + + // The ID of the entity's parent entity. + ParentEntityId *string + + // Metadata that you can use to manage the entity. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateEntityOutput struct { + + // The ARN of the entity. + // + // This member is required. + Arn *string + + // The date and time when the entity was created. + // + // This member is required. + CreationDateTime *time.Time + + // The ID of the entity. + // + // This member is required. + EntityId *string + + // The current state of the entity. + // + // This member is required. + State types.State + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateEntityMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateEntity{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateEntity{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opCreateEntityMiddleware(stack); err != nil { + return err + } + if err = addOpCreateEntityValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateEntity(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opCreateEntityMiddleware struct { +} + +func (*endpointPrefix_opCreateEntityMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateEntityMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opCreateEntityMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opCreateEntityMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opCreateEntity(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "CreateEntity", + } +} diff --git a/service/iottwinmaker/api_op_CreateScene.go b/service/iottwinmaker/api_op_CreateScene.go new file mode 100644 index 00000000000..02609e8f159 --- /dev/null +++ b/service/iottwinmaker/api_op_CreateScene.go @@ -0,0 +1,178 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates a scene. +func (c *Client) CreateScene(ctx context.Context, params *CreateSceneInput, optFns ...func(*Options)) (*CreateSceneOutput, error) { + if params == nil { + params = &CreateSceneInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateScene", params, optFns, c.addOperationCreateSceneMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSceneOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSceneInput struct { + + // The relative path that specifies the location of the content definition file. + // + // This member is required. + ContentLocation *string + + // The ID of the scene. + // + // This member is required. + SceneId *string + + // The ID of the workspace that contains the scene. + // + // This member is required. + WorkspaceId *string + + // A list of capabilities that the scene uses to render itself. + Capabilities []string + + // The description for this scene. + Description *string + + // Metadata that you can use to manage the scene. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateSceneOutput struct { + + // The ARN of the scene. + // + // This member is required. + Arn *string + + // The date and time when the scene was created. + // + // This member is required. + CreationDateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSceneMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateScene{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateScene{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opCreateSceneMiddleware(stack); err != nil { + return err + } + if err = addOpCreateSceneValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateScene(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opCreateSceneMiddleware struct { +} + +func (*endpointPrefix_opCreateSceneMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateSceneMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opCreateSceneMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opCreateSceneMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opCreateScene(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "CreateScene", + } +} diff --git a/service/iottwinmaker/api_op_CreateWorkspace.go b/service/iottwinmaker/api_op_CreateWorkspace.go new file mode 100644 index 00000000000..d32fbcd31ed --- /dev/null +++ b/service/iottwinmaker/api_op_CreateWorkspace.go @@ -0,0 +1,176 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates a workplace. +func (c *Client) CreateWorkspace(ctx context.Context, params *CreateWorkspaceInput, optFns ...func(*Options)) (*CreateWorkspaceOutput, error) { + if params == nil { + params = &CreateWorkspaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateWorkspace", params, optFns, c.addOperationCreateWorkspaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateWorkspaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateWorkspaceInput struct { + + // The ARN of the execution role associated with the workspace. + // + // This member is required. + Role *string + + // The ARN of the S3 bucket where resources associated with the workspace are + // stored. + // + // This member is required. + S3Location *string + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // The description of the workspace. + Description *string + + // Metadata that you can use to manage the workspace + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateWorkspaceOutput struct { + + // The ARN of the workspace. + // + // This member is required. + Arn *string + + // The date and time when the workspace was created. + // + // This member is required. + CreationDateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateWorkspace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateWorkspace{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opCreateWorkspaceMiddleware(stack); err != nil { + return err + } + if err = addOpCreateWorkspaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateWorkspace(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opCreateWorkspaceMiddleware struct { +} + +func (*endpointPrefix_opCreateWorkspaceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opCreateWorkspaceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opCreateWorkspaceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opCreateWorkspaceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opCreateWorkspace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "CreateWorkspace", + } +} diff --git a/service/iottwinmaker/api_op_DeleteComponentType.go b/service/iottwinmaker/api_op_DeleteComponentType.go new file mode 100644 index 00000000000..92bd21c3134 --- /dev/null +++ b/service/iottwinmaker/api_op_DeleteComponentType.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a component type. +func (c *Client) DeleteComponentType(ctx context.Context, params *DeleteComponentTypeInput, optFns ...func(*Options)) (*DeleteComponentTypeOutput, error) { + if params == nil { + params = &DeleteComponentTypeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteComponentType", params, optFns, c.addOperationDeleteComponentTypeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteComponentTypeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteComponentTypeInput struct { + + // The ID of the component type to delete. + // + // This member is required. + ComponentTypeId *string + + // The ID of the workspace that contains the component type. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type DeleteComponentTypeOutput struct { + + // The current state of the component type to be deleted. + // + // This member is required. + State types.State + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteComponentTypeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteComponentType{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteComponentType{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteComponentTypeMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteComponentTypeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteComponentType(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opDeleteComponentTypeMiddleware struct { +} + +func (*endpointPrefix_opDeleteComponentTypeMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteComponentTypeMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDeleteComponentTypeMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDeleteComponentTypeMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteComponentType(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "DeleteComponentType", + } +} diff --git a/service/iottwinmaker/api_op_DeleteEntity.go b/service/iottwinmaker/api_op_DeleteEntity.go new file mode 100644 index 00000000000..9af48c1e7ac --- /dev/null +++ b/service/iottwinmaker/api_op_DeleteEntity.go @@ -0,0 +1,162 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes an entity. +func (c *Client) DeleteEntity(ctx context.Context, params *DeleteEntityInput, optFns ...func(*Options)) (*DeleteEntityOutput, error) { + if params == nil { + params = &DeleteEntityInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteEntity", params, optFns, c.addOperationDeleteEntityMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteEntityOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteEntityInput struct { + + // The ID of the entity to delete. + // + // This member is required. + EntityId *string + + // The ID of the workspace that contains the entity to delete. + // + // This member is required. + WorkspaceId *string + + // A Boolean value that specifies whether the operation deletes child entities. + IsRecursive *bool + + noSmithyDocumentSerde +} + +type DeleteEntityOutput struct { + + // The current state of the deleted entity. + // + // This member is required. + State types.State + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteEntityMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteEntity{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteEntity{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteEntityMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteEntityValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteEntity(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opDeleteEntityMiddleware struct { +} + +func (*endpointPrefix_opDeleteEntityMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteEntityMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDeleteEntityMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDeleteEntityMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteEntity(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "DeleteEntity", + } +} diff --git a/service/iottwinmaker/api_op_DeleteScene.go b/service/iottwinmaker/api_op_DeleteScene.go new file mode 100644 index 00000000000..fb7b270b7f3 --- /dev/null +++ b/service/iottwinmaker/api_op_DeleteScene.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a scene. +func (c *Client) DeleteScene(ctx context.Context, params *DeleteSceneInput, optFns ...func(*Options)) (*DeleteSceneOutput, error) { + if params == nil { + params = &DeleteSceneInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteScene", params, optFns, c.addOperationDeleteSceneMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteSceneOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteSceneInput struct { + + // The ID of the scene to delete. + // + // This member is required. + SceneId *string + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type DeleteSceneOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteSceneMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteScene{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteScene{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteSceneMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteSceneValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteScene(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opDeleteSceneMiddleware struct { +} + +func (*endpointPrefix_opDeleteSceneMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteSceneMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDeleteSceneMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDeleteSceneMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteScene(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "DeleteScene", + } +} diff --git a/service/iottwinmaker/api_op_DeleteWorkspace.go b/service/iottwinmaker/api_op_DeleteWorkspace.go new file mode 100644 index 00000000000..9bb4ff120ef --- /dev/null +++ b/service/iottwinmaker/api_op_DeleteWorkspace.go @@ -0,0 +1,147 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a workspace. +func (c *Client) DeleteWorkspace(ctx context.Context, params *DeleteWorkspaceInput, optFns ...func(*Options)) (*DeleteWorkspaceOutput, error) { + if params == nil { + params = &DeleteWorkspaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteWorkspace", params, optFns, c.addOperationDeleteWorkspaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteWorkspaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteWorkspaceInput struct { + + // The ID of the workspace to delete. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type DeleteWorkspaceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteWorkspace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteWorkspace{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opDeleteWorkspaceMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteWorkspaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteWorkspace(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opDeleteWorkspaceMiddleware struct { +} + +func (*endpointPrefix_opDeleteWorkspaceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opDeleteWorkspaceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opDeleteWorkspaceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opDeleteWorkspaceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opDeleteWorkspace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "DeleteWorkspace", + } +} diff --git a/service/iottwinmaker/api_op_GetComponentType.go b/service/iottwinmaker/api_op_GetComponentType.go new file mode 100644 index 00000000000..98a53980c5c --- /dev/null +++ b/service/iottwinmaker/api_op_GetComponentType.go @@ -0,0 +1,208 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about a component type. +func (c *Client) GetComponentType(ctx context.Context, params *GetComponentTypeInput, optFns ...func(*Options)) (*GetComponentTypeOutput, error) { + if params == nil { + params = &GetComponentTypeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetComponentType", params, optFns, c.addOperationGetComponentTypeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetComponentTypeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetComponentTypeInput struct { + + // The ID of the component type. + // + // This member is required. + ComponentTypeId *string + + // The ID of the workspace that contains the component type. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type GetComponentTypeOutput struct { + + // The ARN of the component type. + // + // This member is required. + Arn *string + + // The ID of the component type. + // + // This member is required. + ComponentTypeId *string + + // The date and time when the component type was created. + // + // This member is required. + CreationDateTime *time.Time + + // The date and time when the component was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The ID of the workspace that contains the component type. + // + // This member is required. + WorkspaceId *string + + // The description of the component type. + Description *string + + // The name of the parent component type that this component type extends. + ExtendsFrom []string + + // An object that maps strings to the functions in the component type. Each string + // in the mapping must be unique to this object. + Functions map[string]types.FunctionResponse + + // A Boolean value that specifies whether the component type is abstract. + IsAbstract *bool + + // A Boolean value that specifies whether the component type has a schema + // initializer and that the schema initializer has run. + IsSchemaInitialized *bool + + // A Boolean value that specifies whether an entity can have more than one + // component of this type. + IsSingleton *bool + + // An object that maps strings to the property definitions in the component type. + // Each string in the mapping must be unique to this object. + PropertyDefinitions map[string]types.PropertyDefinitionResponse + + // The current status of the component type. + Status *types.Status + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetComponentTypeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetComponentType{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetComponentType{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetComponentTypeMiddleware(stack); err != nil { + return err + } + if err = addOpGetComponentTypeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetComponentType(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetComponentTypeMiddleware struct { +} + +func (*endpointPrefix_opGetComponentTypeMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetComponentTypeMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetComponentTypeMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetComponentTypeMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetComponentType(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "GetComponentType", + } +} diff --git a/service/iottwinmaker/api_op_GetEntity.go b/service/iottwinmaker/api_op_GetEntity.go new file mode 100644 index 00000000000..b3f07f12f4f --- /dev/null +++ b/service/iottwinmaker/api_op_GetEntity.go @@ -0,0 +1,207 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about an entity. +func (c *Client) GetEntity(ctx context.Context, params *GetEntityInput, optFns ...func(*Options)) (*GetEntityOutput, error) { + if params == nil { + params = &GetEntityInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetEntity", params, optFns, c.addOperationGetEntityMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetEntityOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetEntityInput struct { + + // The ID of the entity. + // + // This member is required. + EntityId *string + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type GetEntityOutput struct { + + // The ARN of the entity. + // + // This member is required. + Arn *string + + // The date and time when the entity was created. + // + // This member is required. + CreationDateTime *time.Time + + // The ID of the entity. + // + // This member is required. + EntityId *string + + // The name of the entity. + // + // This member is required. + EntityName *string + + // A Boolean value that specifies whether the entity has associated child entities. + // + // This member is required. + HasChildEntities *bool + + // The ID of the parent entity for this entity. + // + // This member is required. + ParentEntityId *string + + // The current status of the entity. + // + // This member is required. + Status *types.Status + + // The date and time when the entity was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // An object that maps strings to the components in the entity. Each string in the + // mapping must be unique to this object. + Components map[string]types.ComponentResponse + + // The description of the entity. + Description *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetEntityMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetEntity{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetEntity{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetEntityMiddleware(stack); err != nil { + return err + } + if err = addOpGetEntityValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetEntity(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetEntityMiddleware struct { +} + +func (*endpointPrefix_opGetEntityMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetEntityMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetEntityMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetEntityMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetEntity(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "GetEntity", + } +} diff --git a/service/iottwinmaker/api_op_GetPropertyValue.go b/service/iottwinmaker/api_op_GetPropertyValue.go new file mode 100644 index 00000000000..a4d9fcf4fc6 --- /dev/null +++ b/service/iottwinmaker/api_op_GetPropertyValue.go @@ -0,0 +1,171 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the property values for a component, component type, entity, or workspace. +// You must specify a value for either componentName, componentTypeId, entityId, or +// workspaceId. +func (c *Client) GetPropertyValue(ctx context.Context, params *GetPropertyValueInput, optFns ...func(*Options)) (*GetPropertyValueOutput, error) { + if params == nil { + params = &GetPropertyValueInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetPropertyValue", params, optFns, c.addOperationGetPropertyValueMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetPropertyValueOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetPropertyValueInput struct { + + // The properties whose values the operation returns. + // + // This member is required. + SelectedProperties []string + + // The ID of the workspace whose values the operation returns. + // + // This member is required. + WorkspaceId *string + + // The name of the component whose property values the operation returns. + ComponentName *string + + // The ID of the component type whose property values the operation returns. + ComponentTypeId *string + + // The ID of the entity whose property values the operation returns. + EntityId *string + + noSmithyDocumentSerde +} + +type GetPropertyValueOutput struct { + + // An object that maps strings to the properties and latest property values in the + // response. Each string in the mapping must be unique to this object. + // + // This member is required. + PropertyValues map[string]types.PropertyLatestValue + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetPropertyValueMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPropertyValue{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPropertyValue{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetPropertyValueMiddleware(stack); err != nil { + return err + } + if err = addOpGetPropertyValueValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPropertyValue(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetPropertyValueMiddleware struct { +} + +func (*endpointPrefix_opGetPropertyValueMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetPropertyValueMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "data." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetPropertyValueMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetPropertyValueMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetPropertyValue(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "GetPropertyValue", + } +} diff --git a/service/iottwinmaker/api_op_GetPropertyValueHistory.go b/service/iottwinmaker/api_op_GetPropertyValueHistory.go new file mode 100644 index 00000000000..423d5b1e9c3 --- /dev/null +++ b/service/iottwinmaker/api_op_GetPropertyValueHistory.go @@ -0,0 +1,290 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about the history of a time series property value for a +// component, component type, entity, or workspace. You must specify a value for +// workspaceId. For entity-specific queries, specify values for componentName and +// entityId. For cross-entity quries, specify a value for componentTypeId. +func (c *Client) GetPropertyValueHistory(ctx context.Context, params *GetPropertyValueHistoryInput, optFns ...func(*Options)) (*GetPropertyValueHistoryOutput, error) { + if params == nil { + params = &GetPropertyValueHistoryInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetPropertyValueHistory", params, optFns, c.addOperationGetPropertyValueHistoryMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetPropertyValueHistoryOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetPropertyValueHistoryInput struct { + + // The date and time of the latest property value to return. + // + // This member is required. + EndDateTime *time.Time + + // A list of properties whose value histories the request retrieves. + // + // This member is required. + SelectedProperties []string + + // The date and time of the earliest property value to return. + // + // This member is required. + StartDateTime *time.Time + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // The name of the component. + ComponentName *string + + // The ID of the component type. + ComponentTypeId *string + + // The ID of the entity. + EntityId *string + + // An object that specifies the interpolation type and the interval over which to + // interpolate data. + Interpolation *types.InterpolationParameters + + // The maximum number of results to return. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + // The time direction to use in the result order. + OrderByTime types.OrderByTime + + // A list of objects that filter the property value history request. + PropertyFilters []types.PropertyFilter + + noSmithyDocumentSerde +} + +type GetPropertyValueHistoryOutput struct { + + // An object that maps strings to the property definitions in the component type. + // Each string in the mapping must be unique to this object. + // + // This member is required. + PropertyValues []types.PropertyValueHistory + + // The string that specifies the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetPropertyValueHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPropertyValueHistory{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPropertyValueHistory{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetPropertyValueHistoryMiddleware(stack); err != nil { + return err + } + if err = addOpGetPropertyValueHistoryValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPropertyValueHistory(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetPropertyValueHistoryMiddleware struct { +} + +func (*endpointPrefix_opGetPropertyValueHistoryMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetPropertyValueHistoryMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "data." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetPropertyValueHistoryMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetPropertyValueHistoryMiddleware{}, `OperationSerializer`, middleware.After) +} + +// GetPropertyValueHistoryAPIClient is a client that implements the +// GetPropertyValueHistory operation. +type GetPropertyValueHistoryAPIClient interface { + GetPropertyValueHistory(context.Context, *GetPropertyValueHistoryInput, ...func(*Options)) (*GetPropertyValueHistoryOutput, error) +} + +var _ GetPropertyValueHistoryAPIClient = (*Client)(nil) + +// GetPropertyValueHistoryPaginatorOptions is the paginator options for +// GetPropertyValueHistory +type GetPropertyValueHistoryPaginatorOptions struct { + // The maximum number of results 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 +} + +// GetPropertyValueHistoryPaginator is a paginator for GetPropertyValueHistory +type GetPropertyValueHistoryPaginator struct { + options GetPropertyValueHistoryPaginatorOptions + client GetPropertyValueHistoryAPIClient + params *GetPropertyValueHistoryInput + nextToken *string + firstPage bool +} + +// NewGetPropertyValueHistoryPaginator returns a new +// GetPropertyValueHistoryPaginator +func NewGetPropertyValueHistoryPaginator(client GetPropertyValueHistoryAPIClient, params *GetPropertyValueHistoryInput, optFns ...func(*GetPropertyValueHistoryPaginatorOptions)) *GetPropertyValueHistoryPaginator { + if params == nil { + params = &GetPropertyValueHistoryInput{} + } + + options := GetPropertyValueHistoryPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetPropertyValueHistoryPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetPropertyValueHistoryPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetPropertyValueHistory page. +func (p *GetPropertyValueHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetPropertyValueHistoryOutput, 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.GetPropertyValueHistory(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_opGetPropertyValueHistory(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "GetPropertyValueHistory", + } +} diff --git a/service/iottwinmaker/api_op_GetScene.go b/service/iottwinmaker/api_op_GetScene.go new file mode 100644 index 00000000000..26c44162917 --- /dev/null +++ b/service/iottwinmaker/api_op_GetScene.go @@ -0,0 +1,190 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about a scene. +func (c *Client) GetScene(ctx context.Context, params *GetSceneInput, optFns ...func(*Options)) (*GetSceneOutput, error) { + if params == nil { + params = &GetSceneInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetScene", params, optFns, c.addOperationGetSceneMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSceneOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSceneInput struct { + + // The ID of the scene. + // + // This member is required. + SceneId *string + + // The ID of the workspace that contains the scene. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type GetSceneOutput struct { + + // The ARN of the scene. + // + // This member is required. + Arn *string + + // The relative path that specifies the location of the content definition file. + // + // This member is required. + ContentLocation *string + + // The date and time when the scene was created. + // + // This member is required. + CreationDateTime *time.Time + + // The ID of the scene. + // + // This member is required. + SceneId *string + + // The date and time when the scene was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The ID of the workspace that contains the scene. + // + // This member is required. + WorkspaceId *string + + // A list of capabilities that the scene uses to render. + Capabilities []string + + // The description of the scene. + Description *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSceneMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetScene{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetScene{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetSceneMiddleware(stack); err != nil { + return err + } + if err = addOpGetSceneValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetScene(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetSceneMiddleware struct { +} + +func (*endpointPrefix_opGetSceneMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetSceneMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetSceneMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetSceneMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetScene(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "GetScene", + } +} diff --git a/service/iottwinmaker/api_op_GetWorkspace.go b/service/iottwinmaker/api_op_GetWorkspace.go new file mode 100644 index 00000000000..cc5364b4401 --- /dev/null +++ b/service/iottwinmaker/api_op_GetWorkspace.go @@ -0,0 +1,183 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves information about a workspace. +func (c *Client) GetWorkspace(ctx context.Context, params *GetWorkspaceInput, optFns ...func(*Options)) (*GetWorkspaceOutput, error) { + if params == nil { + params = &GetWorkspaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetWorkspace", params, optFns, c.addOperationGetWorkspaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetWorkspaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetWorkspaceInput struct { + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + noSmithyDocumentSerde +} + +type GetWorkspaceOutput struct { + + // The ARN of the workspace. + // + // This member is required. + Arn *string + + // The date and time when the workspace was created. + // + // This member is required. + CreationDateTime *time.Time + + // The ARN of the execution role associated with the workspace. + // + // This member is required. + Role *string + + // The ARN of the S3 bucket where resources associated with the workspace are + // stored. + // + // This member is required. + S3Location *string + + // The date and time when the workspace was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // The description of the workspace. + Description *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetWorkspace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetWorkspace{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetWorkspaceMiddleware(stack); err != nil { + return err + } + if err = addOpGetWorkspaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetWorkspace(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetWorkspaceMiddleware struct { +} + +func (*endpointPrefix_opGetWorkspaceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetWorkspaceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetWorkspaceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetWorkspaceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetWorkspace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "GetWorkspace", + } +} diff --git a/service/iottwinmaker/api_op_ListComponentTypes.go b/service/iottwinmaker/api_op_ListComponentTypes.go new file mode 100644 index 00000000000..0049217d51b --- /dev/null +++ b/service/iottwinmaker/api_op_ListComponentTypes.go @@ -0,0 +1,261 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all component types in a workspace. +func (c *Client) ListComponentTypes(ctx context.Context, params *ListComponentTypesInput, optFns ...func(*Options)) (*ListComponentTypesOutput, error) { + if params == nil { + params = &ListComponentTypesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListComponentTypes", params, optFns, c.addOperationListComponentTypesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListComponentTypesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListComponentTypesInput struct { + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // A list of objects that filter the request. + Filters []types.ListComponentTypesFilter + + // The maximum number of results to display. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListComponentTypesOutput struct { + + // A list of objects that contain information about the component types. + // + // This member is required. + ComponentTypeSummaries []types.ComponentTypeSummary + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // Specifies the maximum number of results to display. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListComponentTypesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListComponentTypes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListComponentTypes{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opListComponentTypesMiddleware(stack); err != nil { + return err + } + if err = addOpListComponentTypesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListComponentTypes(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opListComponentTypesMiddleware struct { +} + +func (*endpointPrefix_opListComponentTypesMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListComponentTypesMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListComponentTypesMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListComponentTypesMiddleware{}, `OperationSerializer`, middleware.After) +} + +// ListComponentTypesAPIClient is a client that implements the ListComponentTypes +// operation. +type ListComponentTypesAPIClient interface { + ListComponentTypes(context.Context, *ListComponentTypesInput, ...func(*Options)) (*ListComponentTypesOutput, error) +} + +var _ ListComponentTypesAPIClient = (*Client)(nil) + +// ListComponentTypesPaginatorOptions is the paginator options for +// ListComponentTypes +type ListComponentTypesPaginatorOptions struct { + // The maximum number of results to display. + 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 +} + +// ListComponentTypesPaginator is a paginator for ListComponentTypes +type ListComponentTypesPaginator struct { + options ListComponentTypesPaginatorOptions + client ListComponentTypesAPIClient + params *ListComponentTypesInput + nextToken *string + firstPage bool +} + +// NewListComponentTypesPaginator returns a new ListComponentTypesPaginator +func NewListComponentTypesPaginator(client ListComponentTypesAPIClient, params *ListComponentTypesInput, optFns ...func(*ListComponentTypesPaginatorOptions)) *ListComponentTypesPaginator { + if params == nil { + params = &ListComponentTypesInput{} + } + + options := ListComponentTypesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListComponentTypesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListComponentTypesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListComponentTypes page. +func (p *ListComponentTypesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListComponentTypesOutput, 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.ListComponentTypes(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_opListComponentTypes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "ListComponentTypes", + } +} diff --git a/service/iottwinmaker/api_op_ListEntities.go b/service/iottwinmaker/api_op_ListEntities.go new file mode 100644 index 00000000000..a2c7f87356c --- /dev/null +++ b/service/iottwinmaker/api_op_ListEntities.go @@ -0,0 +1,249 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all entities in a workspace. +func (c *Client) ListEntities(ctx context.Context, params *ListEntitiesInput, optFns ...func(*Options)) (*ListEntitiesOutput, error) { + if params == nil { + params = &ListEntitiesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListEntities", params, optFns, c.addOperationListEntitiesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListEntitiesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListEntitiesInput struct { + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // A list of objects that filter the request. + Filters []types.ListEntitiesFilter + + // The maximum number of results to display. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListEntitiesOutput struct { + + // A list of objects that contain information about the entities. + EntitySummaries []types.EntitySummary + + // The string that specifies the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListEntitiesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListEntities{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListEntities{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opListEntitiesMiddleware(stack); err != nil { + return err + } + if err = addOpListEntitiesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListEntities(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opListEntitiesMiddleware struct { +} + +func (*endpointPrefix_opListEntitiesMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListEntitiesMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListEntitiesMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListEntitiesMiddleware{}, `OperationSerializer`, middleware.After) +} + +// ListEntitiesAPIClient is a client that implements the ListEntities operation. +type ListEntitiesAPIClient interface { + ListEntities(context.Context, *ListEntitiesInput, ...func(*Options)) (*ListEntitiesOutput, error) +} + +var _ ListEntitiesAPIClient = (*Client)(nil) + +// ListEntitiesPaginatorOptions is the paginator options for ListEntities +type ListEntitiesPaginatorOptions struct { + // The maximum number of results to display. + 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 +} + +// ListEntitiesPaginator is a paginator for ListEntities +type ListEntitiesPaginator struct { + options ListEntitiesPaginatorOptions + client ListEntitiesAPIClient + params *ListEntitiesInput + nextToken *string + firstPage bool +} + +// NewListEntitiesPaginator returns a new ListEntitiesPaginator +func NewListEntitiesPaginator(client ListEntitiesAPIClient, params *ListEntitiesInput, optFns ...func(*ListEntitiesPaginatorOptions)) *ListEntitiesPaginator { + if params == nil { + params = &ListEntitiesInput{} + } + + options := ListEntitiesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListEntitiesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListEntitiesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListEntities page. +func (p *ListEntitiesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListEntitiesOutput, 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.ListEntities(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_opListEntities(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "ListEntities", + } +} diff --git a/service/iottwinmaker/api_op_ListScenes.go b/service/iottwinmaker/api_op_ListScenes.go new file mode 100644 index 00000000000..6da858d4a21 --- /dev/null +++ b/service/iottwinmaker/api_op_ListScenes.go @@ -0,0 +1,246 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all scenes in a workspace. +func (c *Client) ListScenes(ctx context.Context, params *ListScenesInput, optFns ...func(*Options)) (*ListScenesOutput, error) { + if params == nil { + params = &ListScenesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListScenes", params, optFns, c.addOperationListScenesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListScenesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListScenesInput struct { + + // The ID of the workspace that contains the scenes. + // + // This member is required. + WorkspaceId *string + + // Specifies the maximum number of results to display. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListScenesOutput struct { + + // The string that specifies the next page of results. + NextToken *string + + // A list of objects that contain information about the scenes. + SceneSummaries []types.SceneSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListScenesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListScenes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListScenes{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opListScenesMiddleware(stack); err != nil { + return err + } + if err = addOpListScenesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListScenes(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opListScenesMiddleware struct { +} + +func (*endpointPrefix_opListScenesMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListScenesMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListScenesMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListScenesMiddleware{}, `OperationSerializer`, middleware.After) +} + +// ListScenesAPIClient is a client that implements the ListScenes operation. +type ListScenesAPIClient interface { + ListScenes(context.Context, *ListScenesInput, ...func(*Options)) (*ListScenesOutput, error) +} + +var _ ListScenesAPIClient = (*Client)(nil) + +// ListScenesPaginatorOptions is the paginator options for ListScenes +type ListScenesPaginatorOptions struct { + // Specifies the maximum number of results to display. + 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 +} + +// ListScenesPaginator is a paginator for ListScenes +type ListScenesPaginator struct { + options ListScenesPaginatorOptions + client ListScenesAPIClient + params *ListScenesInput + nextToken *string + firstPage bool +} + +// NewListScenesPaginator returns a new ListScenesPaginator +func NewListScenesPaginator(client ListScenesAPIClient, params *ListScenesInput, optFns ...func(*ListScenesPaginatorOptions)) *ListScenesPaginator { + if params == nil { + params = &ListScenesInput{} + } + + options := ListScenesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListScenesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListScenesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListScenes page. +func (p *ListScenesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListScenesOutput, 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.ListScenes(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_opListScenes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "ListScenes", + } +} diff --git a/service/iottwinmaker/api_op_ListTagsForResource.go b/service/iottwinmaker/api_op_ListTagsForResource.go new file mode 100644 index 00000000000..2881db71610 --- /dev/null +++ b/service/iottwinmaker/api_op_ListTagsForResource.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all tags associated with a resource. +func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { + if params == nil { + params = &ListTagsForResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTagsForResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTagsForResourceInput struct { + + // The ARN of the resource. + // + // This member is required. + ResourceARN *string + + // The maximum number of results to display. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListTagsForResourceOutput struct { + + // The string that specifies the next page of results. + NextToken *string + + // Metadata that you can use to manage a resource. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opListTagsForResourceMiddleware(stack); err != nil { + return err + } + if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opListTagsForResourceMiddleware struct { +} + +func (*endpointPrefix_opListTagsForResourceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListTagsForResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListTagsForResourceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListTagsForResourceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "ListTagsForResource", + } +} diff --git a/service/iottwinmaker/api_op_ListWorkspaces.go b/service/iottwinmaker/api_op_ListWorkspaces.go new file mode 100644 index 00000000000..5da4ada376b --- /dev/null +++ b/service/iottwinmaker/api_op_ListWorkspaces.go @@ -0,0 +1,239 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves information about workspaces in the current account. +func (c *Client) ListWorkspaces(ctx context.Context, params *ListWorkspacesInput, optFns ...func(*Options)) (*ListWorkspacesOutput, error) { + if params == nil { + params = &ListWorkspacesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListWorkspaces", params, optFns, c.addOperationListWorkspacesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListWorkspacesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListWorkspacesInput struct { + + // The maximum number of results to display. + MaxResults *int32 + + // The string that specifies the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListWorkspacesOutput struct { + + // The string that specifies the next page of results. + NextToken *string + + // A list of objects that contain information about the workspaces. + WorkspaceSummaries []types.WorkspaceSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListWorkspacesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListWorkspaces{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListWorkspaces{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opListWorkspacesMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListWorkspaces(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opListWorkspacesMiddleware struct { +} + +func (*endpointPrefix_opListWorkspacesMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opListWorkspacesMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opListWorkspacesMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opListWorkspacesMiddleware{}, `OperationSerializer`, middleware.After) +} + +// ListWorkspacesAPIClient is a client that implements the ListWorkspaces +// operation. +type ListWorkspacesAPIClient interface { + ListWorkspaces(context.Context, *ListWorkspacesInput, ...func(*Options)) (*ListWorkspacesOutput, error) +} + +var _ ListWorkspacesAPIClient = (*Client)(nil) + +// ListWorkspacesPaginatorOptions is the paginator options for ListWorkspaces +type ListWorkspacesPaginatorOptions struct { + // The maximum number of results to display. + 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 +} + +// ListWorkspacesPaginator is a paginator for ListWorkspaces +type ListWorkspacesPaginator struct { + options ListWorkspacesPaginatorOptions + client ListWorkspacesAPIClient + params *ListWorkspacesInput + nextToken *string + firstPage bool +} + +// NewListWorkspacesPaginator returns a new ListWorkspacesPaginator +func NewListWorkspacesPaginator(client ListWorkspacesAPIClient, params *ListWorkspacesInput, optFns ...func(*ListWorkspacesPaginatorOptions)) *ListWorkspacesPaginator { + if params == nil { + params = &ListWorkspacesInput{} + } + + options := ListWorkspacesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListWorkspacesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListWorkspacesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListWorkspaces page. +func (p *ListWorkspacesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListWorkspacesOutput, 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.ListWorkspaces(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_opListWorkspaces(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "ListWorkspaces", + } +} diff --git a/service/iottwinmaker/api_op_TagResource.go b/service/iottwinmaker/api_op_TagResource.go new file mode 100644 index 00000000000..39cbb98e12e --- /dev/null +++ b/service/iottwinmaker/api_op_TagResource.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds tags to a resource. +func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { + if params == nil { + params = &TagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TagResourceInput struct { + + // The ARN of the resource. + // + // This member is required. + ResourceARN *string + + // Metadata to add to this resource. + // + // This member is required. + Tags map[string]string + + noSmithyDocumentSerde +} + +type TagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opTagResourceMiddleware(stack); err != nil { + return err + } + if err = addOpTagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opTagResourceMiddleware struct { +} + +func (*endpointPrefix_opTagResourceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opTagResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opTagResourceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opTagResourceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "TagResource", + } +} diff --git a/service/iottwinmaker/api_op_UntagResource.go b/service/iottwinmaker/api_op_UntagResource.go new file mode 100644 index 00000000000..7bf45af4049 --- /dev/null +++ b/service/iottwinmaker/api_op_UntagResource.go @@ -0,0 +1,153 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes tags from a resource. +func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { + if params == nil { + params = &UntagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UntagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UntagResourceInput struct { + + // The ARN of the resource. + // + // This member is required. + ResourceARN *string + + // A list of tag key names to remove from the resource. You don't specify the + // value. Both the key and its associated value are removed. + // + // This member is required. + TagKeys []string + + noSmithyDocumentSerde +} + +type UntagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opUntagResourceMiddleware(stack); err != nil { + return err + } + if err = addOpUntagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opUntagResourceMiddleware struct { +} + +func (*endpointPrefix_opUntagResourceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUntagResourceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opUntagResourceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opUntagResourceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "UntagResource", + } +} diff --git a/service/iottwinmaker/api_op_UpdateComponentType.go b/service/iottwinmaker/api_op_UpdateComponentType.go new file mode 100644 index 00000000000..5417d3dff3c --- /dev/null +++ b/service/iottwinmaker/api_op_UpdateComponentType.go @@ -0,0 +1,192 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates information in a component type. +func (c *Client) UpdateComponentType(ctx context.Context, params *UpdateComponentTypeInput, optFns ...func(*Options)) (*UpdateComponentTypeOutput, error) { + if params == nil { + params = &UpdateComponentTypeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateComponentType", params, optFns, c.addOperationUpdateComponentTypeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateComponentTypeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateComponentTypeInput struct { + + // The ID of the component type. + // + // This member is required. + ComponentTypeId *string + + // The ID of the workspace that contains the component type. + // + // This member is required. + WorkspaceId *string + + // The description of the component type. + Description *string + + // Specifies the component type that this component type extends. + ExtendsFrom []string + + // An object that maps strings to the functions in the component type. Each string + // in the mapping must be unique to this object. + Functions map[string]types.FunctionRequest + + // A Boolean value that specifies whether an entity can have more than one + // component of this type. + IsSingleton *bool + + // An object that maps strings to the property definitions in the component type. + // Each string in the mapping must be unique to this object. + PropertyDefinitions map[string]types.PropertyDefinitionRequest + + noSmithyDocumentSerde +} + +type UpdateComponentTypeOutput struct { + + // The ARN of the component type. + // + // This member is required. + Arn *string + + // The ID of the component type. + // + // This member is required. + ComponentTypeId *string + + // The current state of the component type. + // + // This member is required. + State types.State + + // The ID of the workspace that contains the component type. + // + // This member is required. + WorkspaceId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateComponentTypeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateComponentType{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateComponentType{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opUpdateComponentTypeMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateComponentTypeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateComponentType(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opUpdateComponentTypeMiddleware struct { +} + +func (*endpointPrefix_opUpdateComponentTypeMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUpdateComponentTypeMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opUpdateComponentTypeMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opUpdateComponentTypeMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opUpdateComponentType(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "UpdateComponentType", + } +} diff --git a/service/iottwinmaker/api_op_UpdateEntity.go b/service/iottwinmaker/api_op_UpdateEntity.go new file mode 100644 index 00000000000..4342fbc4bd9 --- /dev/null +++ b/service/iottwinmaker/api_op_UpdateEntity.go @@ -0,0 +1,178 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates an entity. +func (c *Client) UpdateEntity(ctx context.Context, params *UpdateEntityInput, optFns ...func(*Options)) (*UpdateEntityOutput, error) { + if params == nil { + params = &UpdateEntityInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateEntity", params, optFns, c.addOperationUpdateEntityMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateEntityOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateEntityInput struct { + + // The ID of the entity. + // + // This member is required. + EntityId *string + + // The ID of the workspace that contains the entity. + // + // This member is required. + WorkspaceId *string + + // An object that maps strings to the component updates in the request. Each string + // in the mapping must be unique to this object. + ComponentUpdates map[string]types.ComponentUpdateRequest + + // The description of the entity. + Description *string + + // The name of the entity. + EntityName *string + + // An object that describes the update request for a parent entity. + ParentEntityUpdate *types.ParentEntityUpdateRequest + + noSmithyDocumentSerde +} + +type UpdateEntityOutput struct { + + // The current state of the entity update. + // + // This member is required. + State types.State + + // The date and time when the entity was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateEntityMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateEntity{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateEntity{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opUpdateEntityMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateEntityValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateEntity(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opUpdateEntityMiddleware struct { +} + +func (*endpointPrefix_opUpdateEntityMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUpdateEntityMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opUpdateEntityMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opUpdateEntityMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opUpdateEntity(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "UpdateEntity", + } +} diff --git a/service/iottwinmaker/api_op_UpdateScene.go b/service/iottwinmaker/api_op_UpdateScene.go new file mode 100644 index 00000000000..f0881c4e77c --- /dev/null +++ b/service/iottwinmaker/api_op_UpdateScene.go @@ -0,0 +1,168 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates a scene. +func (c *Client) UpdateScene(ctx context.Context, params *UpdateSceneInput, optFns ...func(*Options)) (*UpdateSceneOutput, error) { + if params == nil { + params = &UpdateSceneInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateScene", params, optFns, c.addOperationUpdateSceneMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateSceneOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateSceneInput struct { + + // The ID of the scene. + // + // This member is required. + SceneId *string + + // The ID of the workspace that contains the scene. + // + // This member is required. + WorkspaceId *string + + // A list of capabilities that the scene uses to render. + Capabilities []string + + // The relative path that specifies the location of the content definition file. + ContentLocation *string + + // The description of this scene. + Description *string + + noSmithyDocumentSerde +} + +type UpdateSceneOutput struct { + + // The date and time when the scene was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateSceneMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateScene{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateScene{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opUpdateSceneMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateSceneValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateScene(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opUpdateSceneMiddleware struct { +} + +func (*endpointPrefix_opUpdateSceneMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUpdateSceneMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opUpdateSceneMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opUpdateSceneMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opUpdateScene(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "UpdateScene", + } +} diff --git a/service/iottwinmaker/api_op_UpdateWorkspace.go b/service/iottwinmaker/api_op_UpdateWorkspace.go new file mode 100644 index 00000000000..badbe114a4c --- /dev/null +++ b/service/iottwinmaker/api_op_UpdateWorkspace.go @@ -0,0 +1,160 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates a workspace. +func (c *Client) UpdateWorkspace(ctx context.Context, params *UpdateWorkspaceInput, optFns ...func(*Options)) (*UpdateWorkspaceOutput, error) { + if params == nil { + params = &UpdateWorkspaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateWorkspace", params, optFns, c.addOperationUpdateWorkspaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateWorkspaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateWorkspaceInput struct { + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // The description of the workspace. + Description *string + + // The ARN of the execution role associated with the workspace. + Role *string + + noSmithyDocumentSerde +} + +type UpdateWorkspaceOutput struct { + + // The date and time of the current update. + // + // This member is required. + UpdateDateTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateWorkspace{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateWorkspace{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opUpdateWorkspaceMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateWorkspaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkspace(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opUpdateWorkspaceMiddleware struct { +} + +func (*endpointPrefix_opUpdateWorkspaceMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opUpdateWorkspaceMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "api." + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opUpdateWorkspaceMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opUpdateWorkspaceMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opUpdateWorkspace(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "iottwinmaker", + OperationName: "UpdateWorkspace", + } +} diff --git a/service/iottwinmaker/deserializers.go b/service/iottwinmaker/deserializers.go new file mode 100644 index 00000000000..ff2a09871a6 --- /dev/null +++ b/service/iottwinmaker/deserializers.go @@ -0,0 +1,7536 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "math" + "strings" +) + +type awsRestjson1_deserializeOpBatchPutPropertyValues struct { +} + +func (*awsRestjson1_deserializeOpBatchPutPropertyValues) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpBatchPutPropertyValues) 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, awsRestjson1_deserializeOpErrorBatchPutPropertyValues(response, &metadata) + } + output := &BatchPutPropertyValuesOutput{} + 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 = awsRestjson1_deserializeOpDocumentBatchPutPropertyValuesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorBatchPutPropertyValues(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentBatchPutPropertyValuesOutput(v **BatchPutPropertyValuesOutput, 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 *BatchPutPropertyValuesOutput + if *v == nil { + sv = &BatchPutPropertyValuesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "errorEntries": + if err := awsRestjson1_deserializeDocumentErrorEntries(&sv.ErrorEntries, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateComponentType struct { +} + +func (*awsRestjson1_deserializeOpCreateComponentType) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateComponentType) 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, awsRestjson1_deserializeOpErrorCreateComponentType(response, &metadata) + } + output := &CreateComponentTypeOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateComponentTypeOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateComponentType(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateComponentTypeOutput(v **CreateComponentTypeOutput, 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 *CreateComponentTypeOutput + if *v == nil { + sv = &CreateComponentTypeOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateEntity struct { +} + +func (*awsRestjson1_deserializeOpCreateEntity) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateEntity) 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, awsRestjson1_deserializeOpErrorCreateEntity(response, &metadata) + } + output := &CreateEntityOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateEntityOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateEntity(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateEntityOutput(v **CreateEntityOutput, 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 *CreateEntityOutput + if *v == nil { + sv = &CreateEntityOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "entityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) + } + sv.EntityId = ptr.String(jtv) + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateScene struct { +} + +func (*awsRestjson1_deserializeOpCreateScene) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateScene) 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, awsRestjson1_deserializeOpErrorCreateScene(response, &metadata) + } + output := &CreateSceneOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateSceneOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateScene(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateSceneOutput(v **CreateSceneOutput, 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 *CreateSceneOutput + if *v == nil { + sv = &CreateSceneOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 +} + +type awsRestjson1_deserializeOpCreateWorkspace struct { +} + +func (*awsRestjson1_deserializeOpCreateWorkspace) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateWorkspace) 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, awsRestjson1_deserializeOpErrorCreateWorkspace(response, &metadata) + } + output := &CreateWorkspaceOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateWorkspaceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateWorkspace(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateWorkspaceOutput(v **CreateWorkspaceOutput, 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 *CreateWorkspaceOutput + if *v == nil { + sv = &CreateWorkspaceOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 +} + +type awsRestjson1_deserializeOpDeleteComponentType struct { +} + +func (*awsRestjson1_deserializeOpDeleteComponentType) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteComponentType) 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, awsRestjson1_deserializeOpErrorDeleteComponentType(response, &metadata) + } + output := &DeleteComponentTypeOutput{} + 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 = awsRestjson1_deserializeOpDocumentDeleteComponentTypeOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteComponentType(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDeleteComponentTypeOutput(v **DeleteComponentTypeOutput, 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 *DeleteComponentTypeOutput + if *v == nil { + sv = &DeleteComponentTypeOutput{} + } 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 State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteEntity struct { +} + +func (*awsRestjson1_deserializeOpDeleteEntity) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteEntity) 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, awsRestjson1_deserializeOpErrorDeleteEntity(response, &metadata) + } + output := &DeleteEntityOutput{} + 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 = awsRestjson1_deserializeOpDocumentDeleteEntityOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteEntity(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDeleteEntityOutput(v **DeleteEntityOutput, 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 *DeleteEntityOutput + if *v == nil { + sv = &DeleteEntityOutput{} + } 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 State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteScene struct { +} + +func (*awsRestjson1_deserializeOpDeleteScene) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteScene) 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, awsRestjson1_deserializeOpErrorDeleteScene(response, &metadata) + } + output := &DeleteSceneOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteScene(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteWorkspace struct { +} + +func (*awsRestjson1_deserializeOpDeleteWorkspace) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteWorkspace) 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, awsRestjson1_deserializeOpErrorDeleteWorkspace(response, &metadata) + } + output := &DeleteWorkspaceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteWorkspace(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpGetComponentType struct { +} + +func (*awsRestjson1_deserializeOpGetComponentType) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetComponentType) 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, awsRestjson1_deserializeOpErrorGetComponentType(response, &metadata) + } + output := &GetComponentTypeOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetComponentTypeOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetComponentType(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetComponentTypeOutput(v **GetComponentTypeOutput, 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 *GetComponentTypeOutput + if *v == nil { + sv = &GetComponentTypeOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "componentTypeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComponentTypeId to be of type string, got %T instead", value) + } + sv.ComponentTypeId = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "extendsFrom": + if err := awsRestjson1_deserializeDocumentExtendsFrom(&sv.ExtendsFrom, value); err != nil { + return err + } + + case "functions": + if err := awsRestjson1_deserializeDocumentFunctionsResponse(&sv.Functions, value); err != nil { + return err + } + + case "isAbstract": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsAbstract = ptr.Bool(jtv) + } + + case "isSchemaInitialized": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsSchemaInitialized = ptr.Bool(jtv) + } + + case "isSingleton": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsSingleton = ptr.Bool(jtv) + } + + case "propertyDefinitions": + if err := awsRestjson1_deserializeDocumentPropertyDefinitionsResponse(&sv.PropertyDefinitions, value); err != nil { + return err + } + + case "status": + if err := awsRestjson1_deserializeDocumentStatus(&sv.Status, value); err != nil { + return err + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetEntity struct { +} + +func (*awsRestjson1_deserializeOpGetEntity) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetEntity) 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, awsRestjson1_deserializeOpErrorGetEntity(response, &metadata) + } + output := &GetEntityOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetEntityOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetEntity(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetEntityOutput(v **GetEntityOutput, 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 *GetEntityOutput + if *v == nil { + sv = &GetEntityOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "components": + if err := awsRestjson1_deserializeDocumentComponentsMap(&sv.Components, value); err != nil { + return err + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "entityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) + } + sv.EntityId = ptr.String(jtv) + } + + case "entityName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) + } + sv.EntityName = ptr.String(jtv) + } + + case "hasChildEntities": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.HasChildEntities = ptr.Bool(jtv) + } + + case "parentEntityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParentEntityId to be of type string, got %T instead", value) + } + sv.ParentEntityId = ptr.String(jtv) + } + + case "status": + if err := awsRestjson1_deserializeDocumentStatus(&sv.Status, value); err != nil { + return err + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetPropertyValue struct { +} + +func (*awsRestjson1_deserializeOpGetPropertyValue) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetPropertyValue) 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, awsRestjson1_deserializeOpErrorGetPropertyValue(response, &metadata) + } + output := &GetPropertyValueOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetPropertyValueOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetPropertyValue(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConnectorFailureException", errorCode): + return awsRestjson1_deserializeErrorConnectorFailureException(response, errorBody) + + case strings.EqualFold("ConnectorTimeoutException", errorCode): + return awsRestjson1_deserializeErrorConnectorTimeoutException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetPropertyValueOutput(v **GetPropertyValueOutput, 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 *GetPropertyValueOutput + if *v == nil { + sv = &GetPropertyValueOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "propertyValues": + if err := awsRestjson1_deserializeDocumentPropertyLatestValueMap(&sv.PropertyValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetPropertyValueHistory struct { +} + +func (*awsRestjson1_deserializeOpGetPropertyValueHistory) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetPropertyValueHistory) 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, awsRestjson1_deserializeOpErrorGetPropertyValueHistory(response, &metadata) + } + output := &GetPropertyValueHistoryOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetPropertyValueHistoryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetPropertyValueHistory(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConnectorFailureException", errorCode): + return awsRestjson1_deserializeErrorConnectorFailureException(response, errorBody) + + case strings.EqualFold("ConnectorTimeoutException", errorCode): + return awsRestjson1_deserializeErrorConnectorTimeoutException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetPropertyValueHistoryOutput(v **GetPropertyValueHistoryOutput, 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 *GetPropertyValueHistoryOutput + if *v == nil { + sv = &GetPropertyValueHistoryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "propertyValues": + if err := awsRestjson1_deserializeDocumentPropertyValueList(&sv.PropertyValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetScene struct { +} + +func (*awsRestjson1_deserializeOpGetScene) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetScene) 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, awsRestjson1_deserializeOpErrorGetScene(response, &metadata) + } + output := &GetSceneOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetSceneOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetScene(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetSceneOutput(v **GetSceneOutput, 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 *GetSceneOutput + if *v == nil { + sv = &GetSceneOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "capabilities": + if err := awsRestjson1_deserializeDocumentSceneCapabilities(&sv.Capabilities, value); err != nil { + return err + } + + case "contentLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) + } + sv.ContentLocation = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "sceneId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.SceneId = ptr.String(jtv) + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetWorkspace struct { +} + +func (*awsRestjson1_deserializeOpGetWorkspace) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetWorkspace) 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, awsRestjson1_deserializeOpErrorGetWorkspace(response, &metadata) + } + output := &GetWorkspaceOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetWorkspaceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetWorkspace(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetWorkspaceOutput(v **GetWorkspaceOutput, 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 *GetWorkspaceOutput + if *v == nil { + sv = &GetWorkspaceOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "role": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.Role = ptr.String(jtv) + } + + case "s3Location": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Location to be of type string, got %T instead", value) + } + sv.S3Location = ptr.String(jtv) + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListComponentTypes struct { +} + +func (*awsRestjson1_deserializeOpListComponentTypes) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListComponentTypes) 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, awsRestjson1_deserializeOpErrorListComponentTypes(response, &metadata) + } + output := &ListComponentTypesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListComponentTypesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListComponentTypes(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListComponentTypesOutput(v **ListComponentTypesOutput, 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 *ListComponentTypesOutput + if *v == nil { + sv = &ListComponentTypesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "componentTypeSummaries": + if err := awsRestjson1_deserializeDocumentComponentTypeSummaries(&sv.ComponentTypeSummaries, value); err != nil { + return err + } + + case "maxResults": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxResults to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxResults = ptr.Int32(int32(i64)) + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListEntities struct { +} + +func (*awsRestjson1_deserializeOpListEntities) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListEntities) 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, awsRestjson1_deserializeOpErrorListEntities(response, &metadata) + } + output := &ListEntitiesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListEntitiesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListEntities(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListEntitiesOutput(v **ListEntitiesOutput, 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 *ListEntitiesOutput + if *v == nil { + sv = &ListEntitiesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "entitySummaries": + if err := awsRestjson1_deserializeDocumentEntitySummaries(&sv.EntitySummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListScenes struct { +} + +func (*awsRestjson1_deserializeOpListScenes) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListScenes) 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, awsRestjson1_deserializeOpErrorListScenes(response, &metadata) + } + output := &ListScenesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListScenesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListScenes(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListScenesOutput(v **ListScenesOutput, 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 *ListScenesOutput + if *v == nil { + sv = &ListScenesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "sceneSummaries": + if err := awsRestjson1_deserializeDocumentSceneSummaries(&sv.SceneSummaries, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTagsForResource struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + 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, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + 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 = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, 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 *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListWorkspaces struct { +} + +func (*awsRestjson1_deserializeOpListWorkspaces) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListWorkspaces) 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, awsRestjson1_deserializeOpErrorListWorkspaces(response, &metadata) + } + output := &ListWorkspacesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListWorkspacesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListWorkspaces(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListWorkspacesOutput(v **ListWorkspacesOutput, 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 *ListWorkspacesOutput + if *v == nil { + sv = &ListWorkspacesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "workspaceSummaries": + if err := awsRestjson1_deserializeDocumentWorkspaceSummaries(&sv.WorkspaceSummaries, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpTagResource struct { +} + +func (*awsRestjson1_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpTagResource) 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, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorTagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("TooManyTagsException", errorCode): + return awsRestjson1_deserializeErrorTooManyTagsException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) 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, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUntagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateComponentType struct { +} + +func (*awsRestjson1_deserializeOpUpdateComponentType) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateComponentType) 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, awsRestjson1_deserializeOpErrorUpdateComponentType(response, &metadata) + } + output := &UpdateComponentTypeOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateComponentTypeOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateComponentType(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateComponentTypeOutput(v **UpdateComponentTypeOutput, 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 *UpdateComponentTypeOutput + if *v == nil { + sv = &UpdateComponentTypeOutput{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "componentTypeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComponentTypeId to be of type string, got %T instead", value) + } + sv.ComponentTypeId = ptr.String(jtv) + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateEntity struct { +} + +func (*awsRestjson1_deserializeOpUpdateEntity) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateEntity) 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, awsRestjson1_deserializeOpErrorUpdateEntity(response, &metadata) + } + output := &UpdateEntityOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateEntityOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateEntity(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateEntityOutput(v **UpdateEntityOutput, 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 *UpdateEntityOutput + if *v == nil { + sv = &UpdateEntityOutput{} + } 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 State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = 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 +} + +type awsRestjson1_deserializeOpUpdateScene struct { +} + +func (*awsRestjson1_deserializeOpUpdateScene) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateScene) 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, awsRestjson1_deserializeOpErrorUpdateScene(response, &metadata) + } + output := &UpdateSceneOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateSceneOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateScene(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateSceneOutput(v **UpdateSceneOutput, 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 *UpdateSceneOutput + if *v == nil { + sv = &UpdateSceneOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = 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 +} + +type awsRestjson1_deserializeOpUpdateWorkspace struct { +} + +func (*awsRestjson1_deserializeOpUpdateWorkspace) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateWorkspace) 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, awsRestjson1_deserializeOpErrorUpdateWorkspace(response, &metadata) + } + output := &UpdateWorkspaceOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateWorkspaceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateWorkspace(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateWorkspaceOutput(v **UpdateWorkspaceOutput, 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 *UpdateWorkspaceOutput + if *v == nil { + sv = &UpdateWorkspaceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = 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 awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_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 awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConnectorFailureException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConnectorFailureException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConnectorFailureException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConnectorTimeoutException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConnectorTimeoutException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConnectorTimeoutException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_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(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorTooManyTagsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyTagsException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentTooManyTagsException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchPutPropertyError(v **types.BatchPutPropertyError, 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.BatchPutPropertyError + if *v == nil { + sv = &types.BatchPutPropertyError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "entry": + if err := awsRestjson1_deserializeDocumentPropertyValueEntry(&sv.Entry, value); err != nil { + return err + } + + case "errorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String 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 String to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBatchPutPropertyErrorEntry(v **types.BatchPutPropertyErrorEntry, 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.BatchPutPropertyErrorEntry + if *v == nil { + sv = &types.BatchPutPropertyErrorEntry{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "errors": + if err := awsRestjson1_deserializeDocumentErrors(&sv.Errors, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentComponentResponse(v **types.ComponentResponse, 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.ComponentResponse + if *v == nil { + sv = &types.ComponentResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "componentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.ComponentName = ptr.String(jtv) + } + + case "componentTypeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComponentTypeId to be of type string, got %T instead", value) + } + sv.ComponentTypeId = ptr.String(jtv) + } + + case "definedIn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DefinedIn = ptr.String(jtv) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "properties": + if err := awsRestjson1_deserializeDocumentPropertyResponses(&sv.Properties, value); err != nil { + return err + } + + case "status": + if err := awsRestjson1_deserializeDocumentStatus(&sv.Status, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentComponentsMap(v *map[string]types.ComponentResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.ComponentResponse + if *v == nil { + mv = map[string]types.ComponentResponse{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.ComponentResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentComponentResponse(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentComponentTypeSummaries(v *[]types.ComponentTypeSummary, 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.ComponentTypeSummary + if *v == nil { + cv = []types.ComponentTypeSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ComponentTypeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentComponentTypeSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentComponentTypeSummary(v **types.ComponentTypeSummary, 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.ComponentTypeSummary + if *v == nil { + sv = &types.ComponentTypeSummary{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "componentTypeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComponentTypeId to be of type string, got %T instead", value) + } + sv.ComponentTypeId = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "status": + if err := awsRestjson1_deserializeDocumentStatus(&sv.Status, value); err != nil { + return err + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = 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 awsRestjson1_deserializeDocumentConfiguration(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Value to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, 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.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConnectorFailureException(v **types.ConnectorFailureException, 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.ConnectorFailureException + if *v == nil { + sv = &types.ConnectorFailureException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConnectorTimeoutException(v **types.ConnectorTimeoutException, 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.ConnectorTimeoutException + if *v == nil { + sv = &types.ConnectorTimeoutException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataConnector(v **types.DataConnector, 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.DataConnector + if *v == nil { + sv = &types.DataConnector{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "isNative": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsNative = ptr.Bool(jtv) + } + + case "lambda": + if err := awsRestjson1_deserializeDocumentLambdaFunction(&sv.Lambda, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataType(v **types.DataType, 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.DataType + if *v == nil { + sv = &types.DataType{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "allowedValues": + if err := awsRestjson1_deserializeDocumentDataValueList(&sv.AllowedValues, value); err != nil { + return err + } + + case "nestedType": + if err := awsRestjson1_deserializeDocumentDataType(&sv.NestedType, value); err != nil { + return err + } + + case "relationship": + if err := awsRestjson1_deserializeDocumentRelationship(&sv.Relationship, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Type to be of type string, got %T instead", value) + } + sv.Type = types.Type(jtv) + } + + case "unitOfMeasure": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.UnitOfMeasure = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataValue(v **types.DataValue, 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.DataValue + if *v == nil { + sv = &types.DataValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "booleanValue": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.BooleanValue = ptr.Bool(jtv) + } + + case "doubleValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DoubleValue = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.DoubleValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) + } + + case "integerValue": + 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.IntegerValue = ptr.Int32(int32(i64)) + } + + case "listValue": + if err := awsRestjson1_deserializeDocumentDataValueList(&sv.ListValue, value); err != nil { + return err + } + + case "longValue": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.LongValue = ptr.Int64(i64) + } + + case "mapValue": + if err := awsRestjson1_deserializeDocumentDataValueMap(&sv.MapValue, value); err != nil { + return err + } + + case "relationshipValue": + if err := awsRestjson1_deserializeDocumentRelationshipValue(&sv.RelationshipValue, value); err != nil { + return err + } + + case "stringValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.StringValue = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataValueList(v *[]types.DataValue, 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.DataValue + if *v == nil { + cv = []types.DataValue{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataValue(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataValueMap(v *map[string]types.DataValue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.DataValue + if *v == nil { + mv = map[string]types.DataValue{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.DataValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentDataValue(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentEntityPropertyReference(v **types.EntityPropertyReference, 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.EntityPropertyReference + if *v == nil { + sv = &types.EntityPropertyReference{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "componentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.ComponentName = ptr.String(jtv) + } + + case "entityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) + } + sv.EntityId = ptr.String(jtv) + } + + case "externalIdProperty": + if err := awsRestjson1_deserializeDocumentExternalIdProperty(&sv.ExternalIdProperty, value); err != nil { + return err + } + + case "propertyName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.PropertyName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentEntitySummaries(v *[]types.EntitySummary, 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.EntitySummary + if *v == nil { + cv = []types.EntitySummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.EntitySummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentEntitySummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, 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.EntitySummary + if *v == nil { + sv = &types.EntitySummary{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "entityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) + } + sv.EntityId = ptr.String(jtv) + } + + case "entityName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) + } + sv.EntityName = ptr.String(jtv) + } + + case "hasChildEntities": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.HasChildEntities = ptr.Bool(jtv) + } + + case "parentEntityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParentEntityId to be of type string, got %T instead", value) + } + sv.ParentEntityId = ptr.String(jtv) + } + + case "status": + if err := awsRestjson1_deserializeDocumentStatus(&sv.Status, value); err != nil { + return err + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = 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 awsRestjson1_deserializeDocumentErrorDetails(v **types.ErrorDetails, 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.ErrorDetails + if *v == nil { + sv = &types.ErrorDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) + } + sv.Code = types.ErrorCode(jtv) + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentErrorEntries(v *[]types.BatchPutPropertyErrorEntry, 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.BatchPutPropertyErrorEntry + if *v == nil { + cv = []types.BatchPutPropertyErrorEntry{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchPutPropertyErrorEntry + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchPutPropertyErrorEntry(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentErrors(v *[]types.BatchPutPropertyError, 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.BatchPutPropertyError + if *v == nil { + cv = []types.BatchPutPropertyError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchPutPropertyError + destAddr := &col + if err := awsRestjson1_deserializeDocumentBatchPutPropertyError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentExtendsFrom(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 ComponentTypeId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentExternalIdProperty(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentFunctionResponse(v **types.FunctionResponse, 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.FunctionResponse + if *v == nil { + sv = &types.FunctionResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "implementedBy": + if err := awsRestjson1_deserializeDocumentDataConnector(&sv.ImplementedBy, value); err != nil { + return err + } + + case "isInherited": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsInherited = ptr.Bool(jtv) + } + + case "requiredProperties": + if err := awsRestjson1_deserializeDocumentRequiredProperties(&sv.RequiredProperties, value); err != nil { + return err + } + + case "scope": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Scope to be of type string, got %T instead", value) + } + sv.Scope = types.Scope(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFunctionsResponse(v *map[string]types.FunctionResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.FunctionResponse + if *v == nil { + mv = map[string]types.FunctionResponse{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.FunctionResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentFunctionResponse(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, 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.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentLambdaFunction(v **types.LambdaFunction, 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.LambdaFunction + if *v == nil { + sv = &types.LambdaFunction{} + } 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 LambdaArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyDefinitionResponse(v **types.PropertyDefinitionResponse, 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.PropertyDefinitionResponse + if *v == nil { + sv = &types.PropertyDefinitionResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuration": + if err := awsRestjson1_deserializeDocumentConfiguration(&sv.Configuration, value); err != nil { + return err + } + + case "dataType": + if err := awsRestjson1_deserializeDocumentDataType(&sv.DataType, value); err != nil { + return err + } + + case "defaultValue": + if err := awsRestjson1_deserializeDocumentDataValue(&sv.DefaultValue, value); err != nil { + return err + } + + case "isExternalId": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsExternalId = ptr.Bool(jtv) + } + + case "isFinal": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsFinal = ptr.Bool(jtv) + } + + case "isImported": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsImported = ptr.Bool(jtv) + } + + case "isInherited": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsInherited = ptr.Bool(jtv) + } + + case "isRequiredInEntity": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsRequiredInEntity = ptr.Bool(jtv) + } + + case "isStoredExternally": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsStoredExternally = ptr.Bool(jtv) + } + + case "isTimeSeries": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsTimeSeries = ptr.Bool(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyDefinitionsResponse(v *map[string]types.PropertyDefinitionResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.PropertyDefinitionResponse + if *v == nil { + mv = map[string]types.PropertyDefinitionResponse{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.PropertyDefinitionResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentPropertyDefinitionResponse(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyLatestValue(v **types.PropertyLatestValue, 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.PropertyLatestValue + if *v == nil { + sv = &types.PropertyLatestValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "propertyReference": + if err := awsRestjson1_deserializeDocumentEntityPropertyReference(&sv.PropertyReference, value); err != nil { + return err + } + + case "propertyValue": + if err := awsRestjson1_deserializeDocumentDataValue(&sv.PropertyValue, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyLatestValueMap(v *map[string]types.PropertyLatestValue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.PropertyLatestValue + if *v == nil { + mv = map[string]types.PropertyLatestValue{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.PropertyLatestValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentPropertyLatestValue(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyResponse(v **types.PropertyResponse, 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.PropertyResponse + if *v == nil { + sv = &types.PropertyResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "definition": + if err := awsRestjson1_deserializeDocumentPropertyDefinitionResponse(&sv.Definition, value); err != nil { + return err + } + + case "value": + if err := awsRestjson1_deserializeDocumentDataValue(&sv.Value, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyResponses(v *map[string]types.PropertyResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.PropertyResponse + if *v == nil { + mv = map[string]types.PropertyResponse{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.PropertyResponse + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentPropertyResponse(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyValue(v **types.PropertyValue, 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.PropertyValue + if *v == nil { + sv = &types.PropertyValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "timestamp": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Timestamp = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "value": + if err := awsRestjson1_deserializeDocumentDataValue(&sv.Value, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyValueEntry(v **types.PropertyValueEntry, 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.PropertyValueEntry + if *v == nil { + sv = &types.PropertyValueEntry{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "entityPropertyReference": + if err := awsRestjson1_deserializeDocumentEntityPropertyReference(&sv.EntityPropertyReference, value); err != nil { + return err + } + + case "propertyValues": + if err := awsRestjson1_deserializeDocumentPropertyValues(&sv.PropertyValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyValueHistory(v **types.PropertyValueHistory, 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.PropertyValueHistory + if *v == nil { + sv = &types.PropertyValueHistory{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "entityPropertyReference": + if err := awsRestjson1_deserializeDocumentEntityPropertyReference(&sv.EntityPropertyReference, value); err != nil { + return err + } + + case "values": + if err := awsRestjson1_deserializeDocumentValues(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyValueList(v *[]types.PropertyValueHistory, 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.PropertyValueHistory + if *v == nil { + cv = []types.PropertyValueHistory{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PropertyValueHistory + destAddr := &col + if err := awsRestjson1_deserializeDocumentPropertyValueHistory(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPropertyValues(v *[]types.PropertyValue, 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.PropertyValue + if *v == nil { + cv = []types.PropertyValue{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PropertyValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentPropertyValue(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRelationship(v **types.Relationship, 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.Relationship + if *v == nil { + sv = &types.Relationship{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "relationshipType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RelationshipType = ptr.String(jtv) + } + + case "targetComponentTypeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ComponentTypeId to be of type string, got %T instead", value) + } + sv.TargetComponentTypeId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRelationshipValue(v **types.RelationshipValue, 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.RelationshipValue + if *v == nil { + sv = &types.RelationshipValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "targetComponentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.TargetComponentName = ptr.String(jtv) + } + + case "targetEntityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) + } + sv.TargetEntityId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRequiredProperties(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 Name to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, 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.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSceneCapabilities(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 SceneCapability to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentSceneSummaries(v *[]types.SceneSummary, 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.SceneSummary + if *v == nil { + cv = []types.SceneSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SceneSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentSceneSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentSceneSummary(v **types.SceneSummary, 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.SceneSummary + if *v == nil { + sv = &types.SceneSummary{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "contentLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Url to be of type string, got %T instead", value) + } + sv.ContentLocation = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "sceneId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.SceneId = ptr.String(jtv) + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = 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 awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, 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.ServiceQuotaExceededException + if *v == nil { + sv = &types.ServiceQuotaExceededException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentStatus(v **types.Status, 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.Status + if *v == nil { + sv = &types.Status{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "error": + if err := awsRestjson1_deserializeDocumentErrorDetails(&sv.Error, value); err != nil { + return err + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, 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.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsException, 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.TooManyTagsException + if *v == nil { + sv = &types.TooManyTagsException{} + } 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 awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, 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.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValues(v *[]types.PropertyValue, 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.PropertyValue + if *v == nil { + cv = []types.PropertyValue{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PropertyValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentPropertyValue(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentWorkspaceSummaries(v *[]types.WorkspaceSummary, 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.WorkspaceSummary + if *v == nil { + cv = []types.WorkspaceSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.WorkspaceSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorkspaceSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentWorkspaceSummary(v **types.WorkspaceSummary, 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.WorkspaceSummary + if *v == nil { + sv = &types.WorkspaceSummary{} + } 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 TwinMakerArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "updateDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdateDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "workspaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.WorkspaceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/iottwinmaker/doc.go b/service/iottwinmaker/doc.go new file mode 100644 index 00000000000..717171bc2b0 --- /dev/null +++ b/service/iottwinmaker/doc.go @@ -0,0 +1,12 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package iottwinmaker provides the API client, operations, and parameter types +// for AWS IoT TwinMaker. +// +// TwinMaker is in public preview and is subject to change. IoT TwinMaker is a +// service that enables you to build operational digital twins of physical systems. +// IoT TwinMaker overlays measurements and analysis from real-world sensors, +// cameras, and enterprise applications so you can create data visualizations to +// monitor your physical factory, building, or industrial plant. You can use this +// real-world data to monitor operations and diagnose and repair errors. +package iottwinmaker diff --git a/service/iottwinmaker/endpoints.go b/service/iottwinmaker/endpoints.go new file mode 100644 index 00000000000..e57c47542de --- /dev/null +++ b/service/iottwinmaker/endpoints.go @@ -0,0 +1,200 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/internal/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/url" + "strings" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +func resolveDefaultEndpointConfiguration(o *Options) { + if o.EndpointResolver != nil { + return + } + o.EndpointResolver = NewDefaultEndpointResolver() +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + eo := m.Options + eo.Logger = middleware.GetLogger(ctx) + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "awsiottwinmaker" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolverWithOptions + resolver EndpointResolver +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + if w.awsResolver == nil { + goto fallback + } + endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) + if err == nil { + return endpoint, nil + } + + if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { + return endpoint, err + } + +fallback: + if w.resolver == nil { + return endpoint, fmt.Errorf("default endpoint resolver provided was nil") + } + return w.resolver.ResolveEndpoint(region, options) +} + +type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) + +func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { + return a(service, region) +} + +var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) + +// withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. +// If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided +// fallbackResolver for resolution. +// +// fallbackResolver must not be nil +func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { + var resolver aws.EndpointResolverWithOptions + + if awsResolverWithOptions != nil { + resolver = awsResolverWithOptions + } else if awsResolver != nil { + resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) + } + + return &wrappedEndpointResolver{ + awsResolver: resolver, + resolver: fallbackResolver, + } +} + +func finalizeClientEndpointResolverOptions(options *Options) { + options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() + + if len(options.EndpointOptions.ResolvedRegion) == 0 { + const fipsInfix = "-fips-" + const fipsPrefix = "fips-" + const fipsSuffix = "-fips" + + if strings.Contains(options.Region, fipsInfix) || + strings.Contains(options.Region, fipsPrefix) || + strings.Contains(options.Region, fipsSuffix) { + options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( + options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") + options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled + } + } + +} diff --git a/service/iottwinmaker/generated.json b/service/iottwinmaker/generated.json new file mode 100644 index 00000000000..830b7c6f3d9 --- /dev/null +++ b/service/iottwinmaker/generated.json @@ -0,0 +1,53 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", + "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", + "github.com/aws/smithy-go": "v1.4.0" + }, + "files": [ + "api_client.go", + "api_op_BatchPutPropertyValues.go", + "api_op_CreateComponentType.go", + "api_op_CreateEntity.go", + "api_op_CreateScene.go", + "api_op_CreateWorkspace.go", + "api_op_DeleteComponentType.go", + "api_op_DeleteEntity.go", + "api_op_DeleteScene.go", + "api_op_DeleteWorkspace.go", + "api_op_GetComponentType.go", + "api_op_GetEntity.go", + "api_op_GetPropertyValue.go", + "api_op_GetPropertyValueHistory.go", + "api_op_GetScene.go", + "api_op_GetWorkspace.go", + "api_op_ListComponentTypes.go", + "api_op_ListEntities.go", + "api_op_ListScenes.go", + "api_op_ListTagsForResource.go", + "api_op_ListWorkspaces.go", + "api_op_TagResource.go", + "api_op_UntagResource.go", + "api_op_UpdateComponentType.go", + "api_op_UpdateEntity.go", + "api_op_UpdateScene.go", + "api_op_UpdateWorkspace.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "types/types_exported_test.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/iottwinmaker", + "unstable": false +} diff --git a/service/iottwinmaker/go.mod b/service/iottwinmaker/go.mod new file mode 100644 index 00000000000..b4fa12f8330 --- /dev/null +++ b/service/iottwinmaker/go.mod @@ -0,0 +1,16 @@ +module github.com/aws/aws-sdk-go-v2/service/iottwinmaker + +go 1.15 + +require ( + github.com/aws/aws-sdk-go-v2 v1.11.1 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.1 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.0.1 + github.com/aws/smithy-go v1.9.0 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ + +replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ + +replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum new file mode 100644 index 00000000000..45efc0b1e03 --- /dev/null +++ b/service/iottwinmaker/go.sum @@ -0,0 +1,14 @@ +github.com/aws/smithy-go v1.9.0 h1:c7FUdEqrQA1/UVKKCNDFQPNKGp4FQg3YW4Ck5SLTG58= +github.com/aws/smithy-go v1.9.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/iottwinmaker/go_module_metadata.go b/service/iottwinmaker/go_module_metadata.go new file mode 100644 index 00000000000..1eb853029a0 --- /dev/null +++ b/service/iottwinmaker/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package iottwinmaker + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/iottwinmaker/internal/endpoints/endpoints.go b/service/iottwinmaker/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..65ee83888c7 --- /dev/null +++ b/service/iottwinmaker/internal/endpoints/endpoints.go @@ -0,0 +1,250 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" + "github.com/aws/smithy-go/logging" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + // Logger is a logging implementation that log events should be sent to. + Logger logging.Logger + + // LogDeprecated indicates that deprecated endpoints should be logged to the + // provided logger. + LogDeprecated bool + + // ResolvedRegion is used to override the region to be resolved, rather then the + // using the value passed to the ResolveEndpoint method. This value is used by the + // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative + // name. You must not set this value directly in your application. + ResolvedRegion string + + // DisableHTTPS informs the resolver to return an endpoint that does not use the + // HTTPS scheme. + DisableHTTPS bool + + // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. + UseDualStackEndpoint aws.DualStackEndpointState + + // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. + UseFIPSEndpoint aws.FIPSEndpointState +} + +func (o Options) GetResolvedRegion() string { + return o.ResolvedRegion +} + +func (o Options) GetDisableHTTPS() bool { + return o.DisableHTTPS +} + +func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { + return o.UseDualStackEndpoint +} + +func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { + return o.UseFIPSEndpoint +} + +func transformToSharedOptions(options Options) endpoints.Options { + return endpoints.Options{ + Logger: options.Logger, + LogDeprecated: options.LogDeprecated, + ResolvedRegion: options.ResolvedRegion, + DisableHTTPS: options.DisableHTTPS, + UseDualStackEndpoint: options.UseDualStackEndpoint, + UseFIPSEndpoint: options.UseFIPSEndpoint, + } +} + +// Resolver IoTTwinMaker endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := transformToSharedOptions(options) + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "iottwinmaker.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iottwinmaker.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "iottwinmaker.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iottwinmaker.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iottwinmaker.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iottwinmaker.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "iottwinmaker.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iottwinmaker.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/iottwinmaker/internal/endpoints/endpoints_test.go b/service/iottwinmaker/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/iottwinmaker/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/iottwinmaker/protocol_test.go b/service/iottwinmaker/protocol_test.go new file mode 100644 index 00000000000..ce2faa97075 --- /dev/null +++ b/service/iottwinmaker/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker diff --git a/service/iottwinmaker/serializers.go b/service/iottwinmaker/serializers.go new file mode 100644 index 00000000000..415aa04373b --- /dev/null +++ b/service/iottwinmaker/serializers.go @@ -0,0 +1,3006 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "math" +) + +type awsRestjson1_serializeOpBatchPutPropertyValues struct { +} + +func (*awsRestjson1_serializeOpBatchPutPropertyValues) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpBatchPutPropertyValues) 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.(*BatchPutPropertyValuesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entity-properties") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsBatchPutPropertyValuesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentBatchPutPropertyValuesInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsBatchPutPropertyValuesInput(v *BatchPutPropertyValuesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchPutPropertyValuesInput(v *BatchPutPropertyValuesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Entries != nil { + ok := object.Key("entries") + if err := awsRestjson1_serializeDocumentEntries(v.Entries, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateComponentType struct { +} + +func (*awsRestjson1_serializeOpCreateComponentType) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateComponentType) 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.(*CreateComponentTypeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/component-types/{componentTypeId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateComponentTypeInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateComponentTypeInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateComponentTypeInput(v *CreateComponentTypeInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ComponentTypeId == nil || len(*v.ComponentTypeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member componentTypeId must not be empty")} + } + if v.ComponentTypeId != nil { + if err := encoder.SetURI("componentTypeId").String(*v.ComponentTypeId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateComponentTypeInput(v *CreateComponentTypeInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.ExtendsFrom != nil { + ok := object.Key("extendsFrom") + if err := awsRestjson1_serializeDocumentExtendsFrom(v.ExtendsFrom, ok); err != nil { + return err + } + } + + if v.Functions != nil { + ok := object.Key("functions") + if err := awsRestjson1_serializeDocumentFunctionsRequest(v.Functions, ok); err != nil { + return err + } + } + + if v.IsSingleton != nil { + ok := object.Key("isSingleton") + ok.Boolean(*v.IsSingleton) + } + + if v.PropertyDefinitions != nil { + ok := object.Key("propertyDefinitions") + if err := awsRestjson1_serializeDocumentPropertyDefinitionsRequest(v.PropertyDefinitions, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateEntity struct { +} + +func (*awsRestjson1_serializeOpCreateEntity) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateEntity) 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.(*CreateEntityInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entities") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateEntityInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateEntityInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateEntityInput(v *CreateEntityInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateEntityInput(v *CreateEntityInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Components != nil { + ok := object.Key("components") + if err := awsRestjson1_serializeDocumentComponentsMapRequest(v.Components, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.EntityId != nil { + ok := object.Key("entityId") + ok.String(*v.EntityId) + } + + if v.EntityName != nil { + ok := object.Key("entityName") + ok.String(*v.EntityName) + } + + if v.ParentEntityId != nil { + ok := object.Key("parentEntityId") + ok.String(*v.ParentEntityId) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateScene struct { +} + +func (*awsRestjson1_serializeOpCreateScene) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateScene) 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.(*CreateSceneInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/scenes") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateSceneInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateSceneInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateSceneInput(v *CreateSceneInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateSceneInput(v *CreateSceneInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Capabilities != nil { + ok := object.Key("capabilities") + if err := awsRestjson1_serializeDocumentSceneCapabilities(v.Capabilities, ok); err != nil { + return err + } + } + + if v.ContentLocation != nil { + ok := object.Key("contentLocation") + ok.String(*v.ContentLocation) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.SceneId != nil { + ok := object.Key("sceneId") + ok.String(*v.SceneId) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateWorkspace struct { +} + +func (*awsRestjson1_serializeOpCreateWorkspace) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateWorkspace) 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.(*CreateWorkspaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsCreateWorkspaceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateWorkspaceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateWorkspaceInput(v *CreateWorkspaceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateWorkspaceInput(v *CreateWorkspaceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Role != nil { + ok := object.Key("role") + ok.String(*v.Role) + } + + if v.S3Location != nil { + ok := object.Key("s3Location") + ok.String(*v.S3Location) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteComponentType struct { +} + +func (*awsRestjson1_serializeOpDeleteComponentType) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteComponentType) 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.(*DeleteComponentTypeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/component-types/{componentTypeId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteComponentTypeInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteComponentTypeInput(v *DeleteComponentTypeInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ComponentTypeId == nil || len(*v.ComponentTypeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member componentTypeId must not be empty")} + } + if v.ComponentTypeId != nil { + if err := encoder.SetURI("componentTypeId").String(*v.ComponentTypeId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteEntity struct { +} + +func (*awsRestjson1_serializeOpDeleteEntity) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteEntity) 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.(*DeleteEntityInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entities/{entityId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteEntityInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteEntityInput(v *DeleteEntityInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.EntityId == nil || len(*v.EntityId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member entityId must not be empty")} + } + if v.EntityId != nil { + if err := encoder.SetURI("entityId").String(*v.EntityId); err != nil { + return err + } + } + + if v.IsRecursive != nil { + encoder.SetQuery("isRecursive").Boolean(*v.IsRecursive) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteScene struct { +} + +func (*awsRestjson1_serializeOpDeleteScene) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteScene) 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.(*DeleteSceneInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/scenes/{sceneId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteSceneInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteSceneInput(v *DeleteSceneInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.SceneId == nil || len(*v.SceneId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member sceneId must not be empty")} + } + if v.SceneId != nil { + if err := encoder.SetURI("sceneId").String(*v.SceneId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteWorkspace struct { +} + +func (*awsRestjson1_serializeOpDeleteWorkspace) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteWorkspace) 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.(*DeleteWorkspaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteWorkspaceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteWorkspaceInput(v *DeleteWorkspaceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetComponentType struct { +} + +func (*awsRestjson1_serializeOpGetComponentType) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetComponentType) 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.(*GetComponentTypeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/component-types/{componentTypeId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetComponentTypeInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetComponentTypeInput(v *GetComponentTypeInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ComponentTypeId == nil || len(*v.ComponentTypeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member componentTypeId must not be empty")} + } + if v.ComponentTypeId != nil { + if err := encoder.SetURI("componentTypeId").String(*v.ComponentTypeId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetEntity struct { +} + +func (*awsRestjson1_serializeOpGetEntity) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetEntity) 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.(*GetEntityInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entities/{entityId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetEntityInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetEntityInput(v *GetEntityInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.EntityId == nil || len(*v.EntityId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member entityId must not be empty")} + } + if v.EntityId != nil { + if err := encoder.SetURI("entityId").String(*v.EntityId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetPropertyValue struct { +} + +func (*awsRestjson1_serializeOpGetPropertyValue) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetPropertyValue) 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.(*GetPropertyValueInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entity-properties/value") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetPropertyValueInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGetPropertyValueInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetPropertyValueInput(v *GetPropertyValueInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetPropertyValueInput(v *GetPropertyValueInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentName != nil { + ok := object.Key("componentName") + ok.String(*v.ComponentName) + } + + if v.ComponentTypeId != nil { + ok := object.Key("componentTypeId") + ok.String(*v.ComponentTypeId) + } + + if v.EntityId != nil { + ok := object.Key("entityId") + ok.String(*v.EntityId) + } + + if v.SelectedProperties != nil { + ok := object.Key("selectedProperties") + if err := awsRestjson1_serializeDocumentSelectedPropertyList(v.SelectedProperties, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetPropertyValueHistory struct { +} + +func (*awsRestjson1_serializeOpGetPropertyValueHistory) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetPropertyValueHistory) 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.(*GetPropertyValueHistoryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entity-properties/history") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetPropertyValueHistoryInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGetPropertyValueHistoryInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetPropertyValueHistoryInput(v *GetPropertyValueHistoryInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetPropertyValueHistoryInput(v *GetPropertyValueHistoryInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentName != nil { + ok := object.Key("componentName") + ok.String(*v.ComponentName) + } + + if v.ComponentTypeId != nil { + ok := object.Key("componentTypeId") + ok.String(*v.ComponentTypeId) + } + + if v.EndDateTime != nil { + ok := object.Key("endDateTime") + ok.Double(smithytime.FormatEpochSeconds(*v.EndDateTime)) + } + + if v.EntityId != nil { + ok := object.Key("entityId") + ok.String(*v.EntityId) + } + + if v.Interpolation != nil { + ok := object.Key("interpolation") + if err := awsRestjson1_serializeDocumentInterpolationParameters(v.Interpolation, 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) + } + + if len(v.OrderByTime) > 0 { + ok := object.Key("orderByTime") + ok.String(string(v.OrderByTime)) + } + + if v.PropertyFilters != nil { + ok := object.Key("propertyFilters") + if err := awsRestjson1_serializeDocumentPropertyFilters(v.PropertyFilters, ok); err != nil { + return err + } + } + + if v.SelectedProperties != nil { + ok := object.Key("selectedProperties") + if err := awsRestjson1_serializeDocumentSelectedPropertyList(v.SelectedProperties, ok); err != nil { + return err + } + } + + if v.StartDateTime != nil { + ok := object.Key("startDateTime") + ok.Double(smithytime.FormatEpochSeconds(*v.StartDateTime)) + } + + return nil +} + +type awsRestjson1_serializeOpGetScene struct { +} + +func (*awsRestjson1_serializeOpGetScene) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetScene) 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.(*GetSceneInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/scenes/{sceneId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetSceneInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetSceneInput(v *GetSceneInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.SceneId == nil || len(*v.SceneId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member sceneId must not be empty")} + } + if v.SceneId != nil { + if err := encoder.SetURI("sceneId").String(*v.SceneId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetWorkspace struct { +} + +func (*awsRestjson1_serializeOpGetWorkspace) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetWorkspace) 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.(*GetWorkspaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetWorkspaceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetWorkspaceInput(v *GetWorkspaceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListComponentTypes struct { +} + +func (*awsRestjson1_serializeOpListComponentTypes) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListComponentTypes) 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.(*ListComponentTypesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/component-types-list") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListComponentTypesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListComponentTypesInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListComponentTypesInput(v *ListComponentTypesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListComponentTypesInput(v *ListComponentTypesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsRestjson1_serializeDocumentListComponentTypesFilters(v.Filters, 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 +} + +type awsRestjson1_serializeOpListEntities struct { +} + +func (*awsRestjson1_serializeOpListEntities) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListEntities) 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.(*ListEntitiesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entities-list") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListEntitiesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListEntitiesInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListEntitiesInput(v *ListEntitiesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListEntitiesInput(v *ListEntitiesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsRestjson1_serializeDocumentListEntitiesFilters(v.Filters, 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 +} + +type awsRestjson1_serializeOpListScenes struct { +} + +func (*awsRestjson1_serializeOpListScenes) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListScenes) 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.(*ListScenesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/scenes-list") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListScenesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListScenesInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListScenesInput(v *ListScenesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListScenesInput(v *ListScenesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 +} + +type awsRestjson1_serializeOpListTagsForResource struct { +} + +func (*awsRestjson1_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTagsForResource) 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.(*ListTagsForResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags-list") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListTagsForResourceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListTagsForResourceInput(v *ListTagsForResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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.ResourceARN != nil { + ok := object.Key("resourceARN") + ok.String(*v.ResourceARN) + } + + return nil +} + +type awsRestjson1_serializeOpListWorkspaces struct { +} + +func (*awsRestjson1_serializeOpListWorkspaces) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListWorkspaces) 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.(*ListWorkspacesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces-list") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListWorkspacesInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListWorkspacesInput(v *ListWorkspacesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListWorkspacesInput(v *ListWorkspacesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 +} + +type awsRestjson1_serializeOpTagResource struct { +} + +func (*awsRestjson1_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpTagResource) 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.(*TagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentTagResourceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceARN != nil { + ok := object.Key("resourceARN") + ok.String(*v.ResourceARN) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUntagResource struct { +} + +func (*awsRestjson1_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUntagResource) 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.(*UntagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceARN != nil { + encoder.SetQuery("resourceARN").String(*v.ResourceARN) + } + + if v.TagKeys != nil { + for i := range v.TagKeys { + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateComponentType struct { +} + +func (*awsRestjson1_serializeOpUpdateComponentType) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateComponentType) 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.(*UpdateComponentTypeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/component-types/{componentTypeId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateComponentTypeInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateComponentTypeInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateComponentTypeInput(v *UpdateComponentTypeInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ComponentTypeId == nil || len(*v.ComponentTypeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member componentTypeId must not be empty")} + } + if v.ComponentTypeId != nil { + if err := encoder.SetURI("componentTypeId").String(*v.ComponentTypeId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateComponentTypeInput(v *UpdateComponentTypeInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.ExtendsFrom != nil { + ok := object.Key("extendsFrom") + if err := awsRestjson1_serializeDocumentExtendsFrom(v.ExtendsFrom, ok); err != nil { + return err + } + } + + if v.Functions != nil { + ok := object.Key("functions") + if err := awsRestjson1_serializeDocumentFunctionsRequest(v.Functions, ok); err != nil { + return err + } + } + + if v.IsSingleton != nil { + ok := object.Key("isSingleton") + ok.Boolean(*v.IsSingleton) + } + + if v.PropertyDefinitions != nil { + ok := object.Key("propertyDefinitions") + if err := awsRestjson1_serializeDocumentPropertyDefinitionsRequest(v.PropertyDefinitions, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateEntity struct { +} + +func (*awsRestjson1_serializeOpUpdateEntity) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateEntity) 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.(*UpdateEntityInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/entities/{entityId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateEntityInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateEntityInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateEntityInput(v *UpdateEntityInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.EntityId == nil || len(*v.EntityId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member entityId must not be empty")} + } + if v.EntityId != nil { + if err := encoder.SetURI("entityId").String(*v.EntityId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateEntityInput(v *UpdateEntityInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentUpdates != nil { + ok := object.Key("componentUpdates") + if err := awsRestjson1_serializeDocumentComponentUpdatesMapRequest(v.ComponentUpdates, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.EntityName != nil { + ok := object.Key("entityName") + ok.String(*v.EntityName) + } + + if v.ParentEntityUpdate != nil { + ok := object.Key("parentEntityUpdate") + if err := awsRestjson1_serializeDocumentParentEntityUpdateRequest(v.ParentEntityUpdate, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateScene struct { +} + +func (*awsRestjson1_serializeOpUpdateScene) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateScene) 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.(*UpdateSceneInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/scenes/{sceneId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateSceneInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateSceneInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateSceneInput(v *UpdateSceneInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.SceneId == nil || len(*v.SceneId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member sceneId must not be empty")} + } + if v.SceneId != nil { + if err := encoder.SetURI("sceneId").String(*v.SceneId); err != nil { + return err + } + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateSceneInput(v *UpdateSceneInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Capabilities != nil { + ok := object.Key("capabilities") + if err := awsRestjson1_serializeDocumentSceneCapabilities(v.Capabilities, ok); err != nil { + return err + } + } + + if v.ContentLocation != nil { + ok := object.Key("contentLocation") + ok.String(*v.ContentLocation) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateWorkspace struct { +} + +func (*awsRestjson1_serializeOpUpdateWorkspace) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateWorkspace) 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.(*UpdateWorkspaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateWorkspaceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceInput(v *UpdateWorkspaceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")} + } + if v.WorkspaceId != nil { + if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateWorkspaceInput(v *UpdateWorkspaceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Role != nil { + ok := object.Key("role") + ok.String(*v.Role) + } + + return nil +} + +func awsRestjson1_serializeDocumentComponentRequest(v *types.ComponentRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentTypeId != nil { + ok := object.Key("componentTypeId") + ok.String(*v.ComponentTypeId) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.Properties != nil { + ok := object.Key("properties") + if err := awsRestjson1_serializeDocumentPropertyRequests(v.Properties, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentComponentsMapRequest(v map[string]types.ComponentRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentComponentRequest(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentComponentUpdateRequest(v *types.ComponentUpdateRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentTypeId != nil { + ok := object.Key("componentTypeId") + ok.String(*v.ComponentTypeId) + } + + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + + if v.PropertyUpdates != nil { + ok := object.Key("propertyUpdates") + if err := awsRestjson1_serializeDocumentPropertyRequests(v.PropertyUpdates, ok); err != nil { + return err + } + } + + if len(v.UpdateType) > 0 { + ok := object.Key("updateType") + ok.String(string(v.UpdateType)) + } + + return nil +} + +func awsRestjson1_serializeDocumentComponentUpdatesMapRequest(v map[string]types.ComponentUpdateRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentComponentUpdateRequest(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentConfiguration(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentDataConnector(v *types.DataConnector, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IsNative != nil { + ok := object.Key("isNative") + ok.Boolean(*v.IsNative) + } + + if v.Lambda != nil { + ok := object.Key("lambda") + if err := awsRestjson1_serializeDocumentLambdaFunction(v.Lambda, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDataType(v *types.DataType, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AllowedValues != nil { + ok := object.Key("allowedValues") + if err := awsRestjson1_serializeDocumentDataValueList(v.AllowedValues, ok); err != nil { + return err + } + } + + if v.NestedType != nil { + ok := object.Key("nestedType") + if err := awsRestjson1_serializeDocumentDataType(v.NestedType, ok); err != nil { + return err + } + } + + if v.Relationship != nil { + ok := object.Key("relationship") + if err := awsRestjson1_serializeDocumentRelationship(v.Relationship, ok); err != nil { + return err + } + } + + if len(v.Type) > 0 { + ok := object.Key("type") + ok.String(string(v.Type)) + } + + if v.UnitOfMeasure != nil { + ok := object.Key("unitOfMeasure") + ok.String(*v.UnitOfMeasure) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataValue(v *types.DataValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BooleanValue != nil { + ok := object.Key("booleanValue") + ok.Boolean(*v.BooleanValue) + } + + if v.DoubleValue != nil { + ok := object.Key("doubleValue") + switch { + case math.IsNaN(*v.DoubleValue): + ok.String("NaN") + + case math.IsInf(*v.DoubleValue, 1): + ok.String("Infinity") + + case math.IsInf(*v.DoubleValue, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.DoubleValue) + + } + } + + if v.Expression != nil { + ok := object.Key("expression") + ok.String(*v.Expression) + } + + if v.IntegerValue != nil { + ok := object.Key("integerValue") + ok.Integer(*v.IntegerValue) + } + + if v.ListValue != nil { + ok := object.Key("listValue") + if err := awsRestjson1_serializeDocumentDataValueList(v.ListValue, ok); err != nil { + return err + } + } + + if v.LongValue != nil { + ok := object.Key("longValue") + ok.Long(*v.LongValue) + } + + if v.MapValue != nil { + ok := object.Key("mapValue") + if err := awsRestjson1_serializeDocumentDataValueMap(v.MapValue, ok); err != nil { + return err + } + } + + if v.RelationshipValue != nil { + ok := object.Key("relationshipValue") + if err := awsRestjson1_serializeDocumentRelationshipValue(v.RelationshipValue, ok); err != nil { + return err + } + } + + if v.StringValue != nil { + ok := object.Key("stringValue") + ok.String(*v.StringValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataValueList(v []types.DataValue, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataValue(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentDataValueMap(v map[string]types.DataValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentDataValue(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentEntityPropertyReference(v *types.EntityPropertyReference, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComponentName != nil { + ok := object.Key("componentName") + ok.String(*v.ComponentName) + } + + if v.EntityId != nil { + ok := object.Key("entityId") + ok.String(*v.EntityId) + } + + if v.ExternalIdProperty != nil { + ok := object.Key("externalIdProperty") + if err := awsRestjson1_serializeDocumentExternalIdProperty(v.ExternalIdProperty, ok); err != nil { + return err + } + } + + if v.PropertyName != nil { + ok := object.Key("propertyName") + ok.String(*v.PropertyName) + } + + return nil +} + +func awsRestjson1_serializeDocumentEntries(v []types.PropertyValueEntry, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPropertyValueEntry(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentExtendsFrom(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_serializeDocumentExternalIdProperty(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentFunctionRequest(v *types.FunctionRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ImplementedBy != nil { + ok := object.Key("implementedBy") + if err := awsRestjson1_serializeDocumentDataConnector(v.ImplementedBy, ok); err != nil { + return err + } + } + + if v.RequiredProperties != nil { + ok := object.Key("requiredProperties") + if err := awsRestjson1_serializeDocumentRequiredProperties(v.RequiredProperties, ok); err != nil { + return err + } + } + + if len(v.Scope) > 0 { + ok := object.Key("scope") + ok.String(string(v.Scope)) + } + + return nil +} + +func awsRestjson1_serializeDocumentFunctionsRequest(v map[string]types.FunctionRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentFunctionRequest(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentInterpolationParameters(v *types.InterpolationParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.InterpolationType) > 0 { + ok := object.Key("interpolationType") + ok.String(string(v.InterpolationType)) + } + + if v.IntervalInSeconds != nil { + ok := object.Key("intervalInSeconds") + ok.Long(*v.IntervalInSeconds) + } + + return nil +} + +func awsRestjson1_serializeDocumentLambdaFunction(v *types.LambdaFunction, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("arn") + ok.String(*v.Arn) + } + + return nil +} + +func awsRestjson1_serializeDocumentListComponentTypesFilter(v types.ListComponentTypesFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.ListComponentTypesFilterMemberExtendsFrom: + av := object.Key("extendsFrom") + av.String(uv.Value) + + case *types.ListComponentTypesFilterMemberIsAbstract: + av := object.Key("isAbstract") + av.Boolean(uv.Value) + + case *types.ListComponentTypesFilterMemberNamespace: + av := object.Key("namespace") + av.String(uv.Value) + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentListComponentTypesFilters(v []types.ListComponentTypesFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if vv := v[i]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentListComponentTypesFilter(v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentListEntitiesFilter(v types.ListEntitiesFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.ListEntitiesFilterMemberComponentTypeId: + av := object.Key("componentTypeId") + av.String(uv.Value) + + case *types.ListEntitiesFilterMemberParentEntityId: + av := object.Key("parentEntityId") + av.String(uv.Value) + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentListEntitiesFilters(v []types.ListEntitiesFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if vv := v[i]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentListEntitiesFilter(v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentParentEntityUpdateRequest(v *types.ParentEntityUpdateRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ParentEntityId != nil { + ok := object.Key("parentEntityId") + ok.String(*v.ParentEntityId) + } + + if len(v.UpdateType) > 0 { + ok := object.Key("updateType") + ok.String(string(v.UpdateType)) + } + + return nil +} + +func awsRestjson1_serializeDocumentPropertyDefinitionRequest(v *types.PropertyDefinitionRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Configuration != nil { + ok := object.Key("configuration") + if err := awsRestjson1_serializeDocumentConfiguration(v.Configuration, ok); err != nil { + return err + } + } + + if v.DataType != nil { + ok := object.Key("dataType") + if err := awsRestjson1_serializeDocumentDataType(v.DataType, ok); err != nil { + return err + } + } + + if v.DefaultValue != nil { + ok := object.Key("defaultValue") + if err := awsRestjson1_serializeDocumentDataValue(v.DefaultValue, ok); err != nil { + return err + } + } + + if v.IsExternalId != nil { + ok := object.Key("isExternalId") + ok.Boolean(*v.IsExternalId) + } + + if v.IsRequiredInEntity != nil { + ok := object.Key("isRequiredInEntity") + ok.Boolean(*v.IsRequiredInEntity) + } + + if v.IsStoredExternally != nil { + ok := object.Key("isStoredExternally") + ok.Boolean(*v.IsStoredExternally) + } + + if v.IsTimeSeries != nil { + ok := object.Key("isTimeSeries") + ok.Boolean(*v.IsTimeSeries) + } + + return nil +} + +func awsRestjson1_serializeDocumentPropertyDefinitionsRequest(v map[string]types.PropertyDefinitionRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentPropertyDefinitionRequest(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentPropertyFilter(v *types.PropertyFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Operator != nil { + ok := object.Key("operator") + ok.String(*v.Operator) + } + + if v.PropertyName != nil { + ok := object.Key("propertyName") + ok.String(*v.PropertyName) + } + + if v.Value != nil { + ok := object.Key("value") + if err := awsRestjson1_serializeDocumentDataValue(v.Value, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentPropertyFilters(v []types.PropertyFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPropertyFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentPropertyRequest(v *types.PropertyRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Definition != nil { + ok := object.Key("definition") + if err := awsRestjson1_serializeDocumentPropertyDefinitionRequest(v.Definition, ok); err != nil { + return err + } + } + + if len(v.UpdateType) > 0 { + ok := object.Key("updateType") + ok.String(string(v.UpdateType)) + } + + if v.Value != nil { + ok := object.Key("value") + if err := awsRestjson1_serializeDocumentDataValue(v.Value, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentPropertyRequests(v map[string]types.PropertyRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentPropertyRequest(&mapVar, om); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentPropertyValue(v *types.PropertyValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Timestamp != nil { + ok := object.Key("timestamp") + ok.Double(smithytime.FormatEpochSeconds(*v.Timestamp)) + } + + if v.Value != nil { + ok := object.Key("value") + if err := awsRestjson1_serializeDocumentDataValue(v.Value, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentPropertyValueEntry(v *types.PropertyValueEntry, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityPropertyReference != nil { + ok := object.Key("entityPropertyReference") + if err := awsRestjson1_serializeDocumentEntityPropertyReference(v.EntityPropertyReference, ok); err != nil { + return err + } + } + + if v.PropertyValues != nil { + ok := object.Key("propertyValues") + if err := awsRestjson1_serializeDocumentPropertyValues(v.PropertyValues, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentPropertyValues(v []types.PropertyValue, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPropertyValue(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentRelationship(v *types.Relationship, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RelationshipType != nil { + ok := object.Key("relationshipType") + ok.String(*v.RelationshipType) + } + + if v.TargetComponentTypeId != nil { + ok := object.Key("targetComponentTypeId") + ok.String(*v.TargetComponentTypeId) + } + + return nil +} + +func awsRestjson1_serializeDocumentRelationshipValue(v *types.RelationshipValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TargetComponentName != nil { + ok := object.Key("targetComponentName") + ok.String(*v.TargetComponentName) + } + + if v.TargetEntityId != nil { + ok := object.Key("targetEntityId") + ok.String(*v.TargetEntityId) + } + + return nil +} + +func awsRestjson1_serializeDocumentRequiredProperties(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_serializeDocumentSceneCapabilities(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_serializeDocumentSelectedPropertyList(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_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} diff --git a/service/iottwinmaker/types/enums.go b/service/iottwinmaker/types/enums.go new file mode 100644 index 00000000000..d805e172672 --- /dev/null +++ b/service/iottwinmaker/types/enums.go @@ -0,0 +1,183 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type ComponentUpdateType string + +// Enum values for ComponentUpdateType +const ( + ComponentUpdateTypeCreate ComponentUpdateType = "CREATE" + ComponentUpdateTypeUpdate ComponentUpdateType = "UPDATE" + ComponentUpdateTypeDelete ComponentUpdateType = "DELETE" +) + +// Values returns all known values for ComponentUpdateType. 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 (ComponentUpdateType) Values() []ComponentUpdateType { + return []ComponentUpdateType{ + "CREATE", + "UPDATE", + "DELETE", + } +} + +type ErrorCode string + +// Enum values for ErrorCode +const ( + ErrorCodeValidationError ErrorCode = "VALIDATION_ERROR" + ErrorCodeInternalFailure ErrorCode = "INTERNAL_FAILURE" +) + +// Values returns all known values for ErrorCode. 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 (ErrorCode) Values() []ErrorCode { + return []ErrorCode{ + "VALIDATION_ERROR", + "INTERNAL_FAILURE", + } +} + +type InterpolationType string + +// Enum values for InterpolationType +const ( + InterpolationTypeLinear InterpolationType = "LINEAR" +) + +// Values returns all known values for InterpolationType. 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 (InterpolationType) Values() []InterpolationType { + return []InterpolationType{ + "LINEAR", + } +} + +type OrderByTime string + +// Enum values for OrderByTime +const ( + OrderByTimeAscending OrderByTime = "ASCENDING" + OrderByTimeDescending OrderByTime = "DESCENDING" +) + +// Values returns all known values for OrderByTime. 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 (OrderByTime) Values() []OrderByTime { + return []OrderByTime{ + "ASCENDING", + "DESCENDING", + } +} + +type ParentEntityUpdateType string + +// Enum values for ParentEntityUpdateType +const ( + ParentEntityUpdateTypeUpdate ParentEntityUpdateType = "UPDATE" + ParentEntityUpdateTypeDelete ParentEntityUpdateType = "DELETE" +) + +// Values returns all known values for ParentEntityUpdateType. 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 (ParentEntityUpdateType) Values() []ParentEntityUpdateType { + return []ParentEntityUpdateType{ + "UPDATE", + "DELETE", + } +} + +type PropertyUpdateType string + +// Enum values for PropertyUpdateType +const ( + PropertyUpdateTypeUpdate PropertyUpdateType = "UPDATE" + PropertyUpdateTypeDelete PropertyUpdateType = "DELETE" +) + +// Values returns all known values for PropertyUpdateType. 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 (PropertyUpdateType) Values() []PropertyUpdateType { + return []PropertyUpdateType{ + "UPDATE", + "DELETE", + } +} + +type Scope string + +// Enum values for Scope +const ( + ScopeEntity Scope = "ENTITY" + ScopeWorkspace Scope = "WORKSPACE" +) + +// Values returns all known values for Scope. 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 (Scope) Values() []Scope { + return []Scope{ + "ENTITY", + "WORKSPACE", + } +} + +type State string + +// Enum values for State +const ( + StateCreating State = "CREATING" + StateUpdating State = "UPDATING" + StateDeleting State = "DELETING" + StateActive State = "ACTIVE" + StateError State = "ERROR" +) + +// Values returns all known values for State. 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 (State) Values() []State { + return []State{ + "CREATING", + "UPDATING", + "DELETING", + "ACTIVE", + "ERROR", + } +} + +type Type string + +// Enum values for Type +const ( + TypeRelationship Type = "RELATIONSHIP" + TypeString Type = "STRING" + TypeLong Type = "LONG" + TypeBoolean Type = "BOOLEAN" + TypeInteger Type = "INTEGER" + TypeDouble Type = "DOUBLE" + TypeList Type = "LIST" + TypeMap Type = "MAP" +) + +// Values returns all known values for Type. 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 (Type) Values() []Type { + return []Type{ + "RELATIONSHIP", + "STRING", + "LONG", + "BOOLEAN", + "INTEGER", + "DOUBLE", + "LIST", + "MAP", + } +} diff --git a/service/iottwinmaker/types/errors.go b/service/iottwinmaker/types/errors.go new file mode 100644 index 00000000000..f4c2c1e207c --- /dev/null +++ b/service/iottwinmaker/types/errors.go @@ -0,0 +1,198 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// Access is denied. +type AccessDeniedException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// A conflict occurred. +type ConflictException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The connector failed. +type ConnectorFailureException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ConnectorFailureException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConnectorFailureException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConnectorFailureException) ErrorCode() string { return "ConnectorFailureException" } +func (e *ConnectorFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The connector timed out. +type ConnectorTimeoutException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ConnectorTimeoutException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConnectorTimeoutException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConnectorTimeoutException) ErrorCode() string { return "ConnectorTimeoutException" } +func (e *ConnectorTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// An unexpected error has occurred. +type InternalServerException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// The resource wasn't found. +type ResourceNotFoundException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The service quota was exceeded. +type ServiceQuotaExceededException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServiceQuotaExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The rate exceeds the limit. +type ThrottlingException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The number of tags exceeds the limit. +type TooManyTagsException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *TooManyTagsException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Failed +type ValidationException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/iottwinmaker/types/types.go b/service/iottwinmaker/types/types.go new file mode 100644 index 00000000000..ed29f1812dd --- /dev/null +++ b/service/iottwinmaker/types/types.go @@ -0,0 +1,719 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" + "time" +) + +// An error returned by the BatchPutProperty action. +type BatchPutPropertyError struct { + + // An object that contains information about errors returned by the + // BatchPutProperty action. + // + // This member is required. + Entry *PropertyValueEntry + + // The error code. + // + // This member is required. + ErrorCode *string + + // The error message. + // + // This member is required. + ErrorMessage *string + + noSmithyDocumentSerde +} + +// An object that contains information about errors returned by the +// BatchPutProperty action. +type BatchPutPropertyErrorEntry struct { + + // A list of objects that contain information about errors returned by the + // BatchPutProperty action. + // + // This member is required. + Errors []BatchPutPropertyError + + noSmithyDocumentSerde +} + +// An object that sets information about a component type create or update request. +type ComponentRequest struct { + + // The ID of the component type. + ComponentTypeId *string + + // The description of the component request. + Description *string + + // An object that maps strings to the properties to set in the component type. Each + // string in the mapping must be unique to this object. + Properties map[string]PropertyRequest + + noSmithyDocumentSerde +} + +// An object that returns information about a component type create or update +// request. +type ComponentResponse struct { + + // The name of the component. + ComponentName *string + + // The ID of the component type. + ComponentTypeId *string + + // The name of the property definition set in the request. + DefinedIn *string + + // The description of the component type. + Description *string + + // An object that maps strings to the properties to set in the component type. Each + // string in the mapping must be unique to this object. + Properties map[string]PropertyResponse + + // The status of the component type. + Status *Status + + noSmithyDocumentSerde +} + +// An object that contains information about a component type. +type ComponentTypeSummary struct { + + // The ARN of the component type. + // + // This member is required. + Arn *string + + // The ID of the component type. + // + // This member is required. + ComponentTypeId *string + + // The date and time when the component type was created. + // + // This member is required. + CreationDateTime *time.Time + + // The date and time when the component type was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The description of the component type. + Description *string + + // The current status of the component type. + Status *Status + + noSmithyDocumentSerde +} + +// The component update request. +type ComponentUpdateRequest struct { + + // The ID of the component type. + ComponentTypeId *string + + // The description of the component type. + Description *string + + // An object that maps strings to the properties to set in the component type + // update. Each string in the mapping must be unique to this object. + PropertyUpdates map[string]PropertyRequest + + // The update type of the component update request. + UpdateType ComponentUpdateType + + noSmithyDocumentSerde +} + +// The data connector. +type DataConnector struct { + + // A Boolean value that specifies whether the data connector is native to + // TwinMaker. + IsNative *bool + + // The Lambda function associated with this data connector. + Lambda *LambdaFunction + + noSmithyDocumentSerde +} + +// An object that specifies the data type of a property. +type DataType struct { + + // The underlying type of the data type. + // + // This member is required. + Type Type + + // The allowed values for this data type. + AllowedValues []DataValue + + // The nested type in the data type. + NestedType *DataType + + // A relationship that associates a component with another component. + Relationship *Relationship + + // The unit of measure used in this data type. + UnitOfMeasure *string + + noSmithyDocumentSerde +} + +// An object that specifies a value for a property. +type DataValue struct { + + // A Boolean value. + BooleanValue *bool + + // A double value. + DoubleValue *float64 + + // An expression that produces the value. + Expression *string + + // An integer value. + IntegerValue *int32 + + // A list of multiple values. + ListValue []DataValue + + // A long value. + LongValue *int64 + + // An object that maps strings to multiple DataValue objects. + MapValue map[string]DataValue + + // A value that relates a component to another component. + RelationshipValue *RelationshipValue + + // A string value. + StringValue *string + + noSmithyDocumentSerde +} + +// An object that uniquely identifies an entity property. +type EntityPropertyReference struct { + + // The name of the property. + // + // This member is required. + PropertyName *string + + // The name of the component. + ComponentName *string + + // The ID of the entity. + EntityId *string + + // A mapping of external IDs to property names. External IDs uniquely identify + // properties from external data stores. + ExternalIdProperty map[string]string + + noSmithyDocumentSerde +} + +// An object that contains information about an entity. +type EntitySummary struct { + + // The ARN of the entity. + // + // This member is required. + Arn *string + + // The date and time when the entity was created. + // + // This member is required. + CreationDateTime *time.Time + + // The ID of the entity. + // + // This member is required. + EntityId *string + + // The name of the entity. + // + // This member is required. + EntityName *string + + // The current status of the entity. + // + // This member is required. + Status *Status + + // The last date and time when the entity was updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The description of the entity. + Description *string + + // A Boolean value that specifies whether the entity has child entities or not. + HasChildEntities *bool + + // The ID of the parent entity. + ParentEntityId *string + + noSmithyDocumentSerde +} + +// The error details. +type ErrorDetails struct { + + // The error code. + Code ErrorCode + + // The error message. + Message *string + + noSmithyDocumentSerde +} + +// The function request body. +type FunctionRequest struct { + + // The data connector. + ImplementedBy *DataConnector + + // The required properties of the function. + RequiredProperties []string + + // The scope of the function. + Scope Scope + + noSmithyDocumentSerde +} + +// The function response. +type FunctionResponse struct { + + // The data connector. + ImplementedBy *DataConnector + + // Indicates whether this function is inherited. + IsInherited *bool + + // The required properties of the function. + RequiredProperties []string + + // The scope of the function. + Scope Scope + + noSmithyDocumentSerde +} + +// An object that specifies how to interpolate data in a list. +type InterpolationParameters struct { + + // The interpolation type. + InterpolationType InterpolationType + + // The interpolation time interval in seconds. + IntervalInSeconds *int64 + + noSmithyDocumentSerde +} + +// The Lambda function. +type LambdaFunction struct { + + // The ARN of the Lambda function. + // + // This member is required. + Arn *string + + noSmithyDocumentSerde +} + +// An object that filters items in a list of component types. +// +// The following types satisfy this interface: +// ListComponentTypesFilterMemberExtendsFrom +// ListComponentTypesFilterMemberIsAbstract +// ListComponentTypesFilterMemberNamespace +type ListComponentTypesFilter interface { + isListComponentTypesFilter() +} + +// The component type that the component types in the list extend. +type ListComponentTypesFilterMemberExtendsFrom struct { + Value string + + noSmithyDocumentSerde +} + +func (*ListComponentTypesFilterMemberExtendsFrom) isListComponentTypesFilter() {} + +// A Boolean value that specifies whether the component types in the list are +// abstract. +type ListComponentTypesFilterMemberIsAbstract struct { + Value bool + + noSmithyDocumentSerde +} + +func (*ListComponentTypesFilterMemberIsAbstract) isListComponentTypesFilter() {} + +// The namespace to which the component types in the list belong. +type ListComponentTypesFilterMemberNamespace struct { + Value string + + noSmithyDocumentSerde +} + +func (*ListComponentTypesFilterMemberNamespace) isListComponentTypesFilter() {} + +// An object that filters items in a list of entities. +// +// The following types satisfy this interface: +// ListEntitiesFilterMemberComponentTypeId +// ListEntitiesFilterMemberParentEntityId +type ListEntitiesFilter interface { + isListEntitiesFilter() +} + +// The ID of the component type in the entities in the list. +type ListEntitiesFilterMemberComponentTypeId struct { + Value string + + noSmithyDocumentSerde +} + +func (*ListEntitiesFilterMemberComponentTypeId) isListEntitiesFilter() {} + +// The parent of the entities in the list. +type ListEntitiesFilterMemberParentEntityId struct { + Value string + + noSmithyDocumentSerde +} + +func (*ListEntitiesFilterMemberParentEntityId) isListEntitiesFilter() {} + +// The parent entity update request. +type ParentEntityUpdateRequest struct { + + // The type of the update. + // + // This member is required. + UpdateType ParentEntityUpdateType + + // The ID of the parent entity. + ParentEntityId *string + + noSmithyDocumentSerde +} + +// An object that sets information about a property. +type PropertyDefinitionRequest struct { + + // A mapping that specifies configuration information about the property. Use this + // field to specify information that you read from and write to an external source. + Configuration map[string]string + + // An object that contains information about the data type. + DataType *DataType + + // An object that contains the default value. + DefaultValue *DataValue + + // A Boolean value that specifies whether the property ID comes from an external + // data store. + IsExternalId *bool + + // A Boolean value that specifies whether the property is required. + IsRequiredInEntity *bool + + // A Boolean value that specifies whether the property is stored externally. + IsStoredExternally *bool + + // A Boolean value that specifies whether the property consists of time series + // data. + IsTimeSeries *bool + + noSmithyDocumentSerde +} + +// An object that contains response data from a property definition request. +type PropertyDefinitionResponse struct { + + // An object that contains information about the data type. + // + // This member is required. + DataType *DataType + + // A Boolean value that specifies whether the property ID comes from an external + // data store. + // + // This member is required. + IsExternalId *bool + + // A Boolean value that specifies whether the property definition can be updated. + // + // This member is required. + IsFinal *bool + + // A Boolean value that specifies whether the property definition is imported from + // an external data store. + // + // This member is required. + IsImported *bool + + // A Boolean value that specifies whether the property definition is inherited from + // a parent entity. + // + // This member is required. + IsInherited *bool + + // A Boolean value that specifies whether the property is required in an entity. + // + // This member is required. + IsRequiredInEntity *bool + + // A Boolean value that specifies whether the property is stored externally. + // + // This member is required. + IsStoredExternally *bool + + // A Boolean value that specifies whether the property consists of time series + // data. + // + // This member is required. + IsTimeSeries *bool + + // A mapping that specifies configuration information about the property. + Configuration map[string]string + + // An object that contains the default value. + DefaultValue *DataValue + + noSmithyDocumentSerde +} + +// An object that filters items returned by a property request. +type PropertyFilter struct { + + // The operator associated with this property filter. + Operator *string + + // The property name associated with this property filter. + PropertyName *string + + // The value associated with this property filter. + Value *DataValue + + noSmithyDocumentSerde +} + +// The latest value of the property. +type PropertyLatestValue struct { + + // An object that specifies information about a property.> + // + // This member is required. + PropertyReference *EntityPropertyReference + + // The value of the property. + PropertyValue *DataValue + + noSmithyDocumentSerde +} + +// An object that sets information about a property. +type PropertyRequest struct { + + // An object that specifies information about a property. + Definition *PropertyDefinitionRequest + + // The update type of the update property request. + UpdateType PropertyUpdateType + + // The value of the property. + Value *DataValue + + noSmithyDocumentSerde +} + +// An object that contains information about a property response. +type PropertyResponse struct { + + // An object that specifies information about a property. + Definition *PropertyDefinitionResponse + + // The value of the property. + Value *DataValue + + noSmithyDocumentSerde +} + +// An object that contains information about a value for a time series property. +type PropertyValue struct { + + // The timestamp of a value for a time series property. + // + // This member is required. + Timestamp *time.Time + + // An object that specifies a value for a time series property. + // + // This member is required. + Value *DataValue + + noSmithyDocumentSerde +} + +// An object that specifies information about time series property values. +type PropertyValueEntry struct { + + // An object that contains information about the entity that has the property. + // + // This member is required. + EntityPropertyReference *EntityPropertyReference + + // A list of objects that specify time series property values. + PropertyValues []PropertyValue + + noSmithyDocumentSerde +} + +// The history of values for a time series property. +type PropertyValueHistory struct { + + // An object that uniquely identifies an entity property. + // + // This member is required. + EntityPropertyReference *EntityPropertyReference + + // A list of objects that contain information about the values in the history of a + // time series property. + Values []PropertyValue + + noSmithyDocumentSerde +} + +// An object that specifies a relationship with another component type. +type Relationship struct { + + // The type of the relationship. + RelationshipType *string + + // The ID of the target component type associated with this relationship. + TargetComponentTypeId *string + + noSmithyDocumentSerde +} + +// A value that associates a component and an entity. +type RelationshipValue struct { + + // The name of the target component associated with the relationship value. + TargetComponentName *string + + // The ID of the target entity associated with this relationship value. + TargetEntityId *string + + noSmithyDocumentSerde +} + +// An object that contains information about a scene. +type SceneSummary struct { + + // The ARN of the scene. + // + // This member is required. + Arn *string + + // The relative path that specifies the location of the content definition file. + // + // This member is required. + ContentLocation *string + + // The date and time when the scene was created. + // + // This member is required. + CreationDateTime *time.Time + + // The ID of the scene. + // + // This member is required. + SceneId *string + + // The date and time when the scene was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The scene description. + Description *string + + noSmithyDocumentSerde +} + +// An object that represents the status of an entity, component, component type, or +// workspace. +type Status struct { + + // The error message. + Error *ErrorDetails + + // The current state of the entity, component, component type, or workspace. + State State + + noSmithyDocumentSerde +} + +// An object that contains information about a workspace. +type WorkspaceSummary struct { + + // The ARN of the workspace. + // + // This member is required. + Arn *string + + // The date and time when the workspace was created. + // + // This member is required. + CreationDateTime *time.Time + + // The date and time when the workspace was last updated. + // + // This member is required. + UpdateDateTime *time.Time + + // The ID of the workspace. + // + // This member is required. + WorkspaceId *string + + // The description of the workspace. + Description *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +// UnknownUnionMember is returned when a union member is returned over the wire, +// but has an unknown tag. +type UnknownUnionMember struct { + Tag string + Value []byte + + noSmithyDocumentSerde +} + +func (*UnknownUnionMember) isListComponentTypesFilter() {} +func (*UnknownUnionMember) isListEntitiesFilter() {} diff --git a/service/iottwinmaker/types/types_exported_test.go b/service/iottwinmaker/types/types_exported_test.go new file mode 100644 index 00000000000..ed5f1ad4390 --- /dev/null +++ b/service/iottwinmaker/types/types_exported_test.go @@ -0,0 +1,56 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" +) + +func ExampleListComponentTypesFilter_outputUsage() { + var union types.ListComponentTypesFilter + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ListComponentTypesFilterMemberExtendsFrom: + _ = v.Value // Value is string + + case *types.ListComponentTypesFilterMemberIsAbstract: + _ = v.Value // Value is bool + + case *types.ListComponentTypesFilterMemberNamespace: + _ = v.Value // Value is string + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *string +var _ *string +var _ *bool + +func ExampleListEntitiesFilter_outputUsage() { + var union types.ListEntitiesFilter + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ListEntitiesFilterMemberComponentTypeId: + _ = v.Value // Value is string + + case *types.ListEntitiesFilterMemberParentEntityId: + _ = v.Value // Value is string + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *string +var _ *string diff --git a/service/iottwinmaker/validators.go b/service/iottwinmaker/validators.go new file mode 100644 index 00000000000..f22358f2c42 --- /dev/null +++ b/service/iottwinmaker/validators.go @@ -0,0 +1,1424 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package iottwinmaker + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/iottwinmaker/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpBatchPutPropertyValues struct { +} + +func (*validateOpBatchPutPropertyValues) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpBatchPutPropertyValues) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*BatchPutPropertyValuesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpBatchPutPropertyValuesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateComponentType struct { +} + +func (*validateOpCreateComponentType) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateComponentType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateComponentTypeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateComponentTypeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateEntity struct { +} + +func (*validateOpCreateEntity) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateEntity) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateEntityInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateEntityInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateScene struct { +} + +func (*validateOpCreateScene) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateScene) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSceneInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSceneInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateWorkspace struct { +} + +func (*validateOpCreateWorkspace) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateWorkspaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateWorkspaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteComponentType struct { +} + +func (*validateOpDeleteComponentType) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteComponentType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteComponentTypeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteComponentTypeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteEntity struct { +} + +func (*validateOpDeleteEntity) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteEntity) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteEntityInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteEntityInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteScene struct { +} + +func (*validateOpDeleteScene) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteScene) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteSceneInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteSceneInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteWorkspace struct { +} + +func (*validateOpDeleteWorkspace) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteWorkspaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteWorkspaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetComponentType struct { +} + +func (*validateOpGetComponentType) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetComponentType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetComponentTypeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetComponentTypeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetEntity struct { +} + +func (*validateOpGetEntity) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetEntity) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetEntityInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetEntityInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetPropertyValueHistory struct { +} + +func (*validateOpGetPropertyValueHistory) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetPropertyValueHistory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetPropertyValueHistoryInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetPropertyValueHistoryInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetPropertyValue struct { +} + +func (*validateOpGetPropertyValue) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetPropertyValue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetPropertyValueInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetPropertyValueInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetScene struct { +} + +func (*validateOpGetScene) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetScene) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSceneInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSceneInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetWorkspace struct { +} + +func (*validateOpGetWorkspace) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetWorkspaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetWorkspaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListComponentTypes struct { +} + +func (*validateOpListComponentTypes) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListComponentTypes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListComponentTypesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListComponentTypesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListEntities struct { +} + +func (*validateOpListEntities) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListEntities) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListEntitiesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListEntitiesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListScenes struct { +} + +func (*validateOpListScenes) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListScenes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListScenesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListScenesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTagsForResource struct { +} + +func (*validateOpListTagsForResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTagsForResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTagsForResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTagResource struct { +} + +func (*validateOpTagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUntagResource struct { +} + +func (*validateOpUntagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UntagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUntagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateComponentType struct { +} + +func (*validateOpUpdateComponentType) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateComponentType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateComponentTypeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateComponentTypeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateEntity struct { +} + +func (*validateOpUpdateEntity) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateEntity) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateEntityInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateEntityInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateScene struct { +} + +func (*validateOpUpdateScene) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateScene) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateSceneInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateSceneInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateWorkspace struct { +} + +func (*validateOpUpdateWorkspace) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateWorkspaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateWorkspaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpBatchPutPropertyValuesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpBatchPutPropertyValues{}, middleware.After) +} + +func addOpCreateComponentTypeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateComponentType{}, middleware.After) +} + +func addOpCreateEntityValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateEntity{}, middleware.After) +} + +func addOpCreateSceneValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateScene{}, middleware.After) +} + +func addOpCreateWorkspaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateWorkspace{}, middleware.After) +} + +func addOpDeleteComponentTypeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteComponentType{}, middleware.After) +} + +func addOpDeleteEntityValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteEntity{}, middleware.After) +} + +func addOpDeleteSceneValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteScene{}, middleware.After) +} + +func addOpDeleteWorkspaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteWorkspace{}, middleware.After) +} + +func addOpGetComponentTypeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetComponentType{}, middleware.After) +} + +func addOpGetEntityValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetEntity{}, middleware.After) +} + +func addOpGetPropertyValueHistoryValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetPropertyValueHistory{}, middleware.After) +} + +func addOpGetPropertyValueValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetPropertyValue{}, middleware.After) +} + +func addOpGetSceneValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetScene{}, middleware.After) +} + +func addOpGetWorkspaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetWorkspace{}, middleware.After) +} + +func addOpListComponentTypesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListComponentTypes{}, middleware.After) +} + +func addOpListEntitiesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListEntities{}, middleware.After) +} + +func addOpListScenesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListScenes{}, middleware.After) +} + +func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) +} + +func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) +} + +func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) +} + +func addOpUpdateComponentTypeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateComponentType{}, middleware.After) +} + +func addOpUpdateEntityValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateEntity{}, middleware.After) +} + +func addOpUpdateSceneValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateScene{}, middleware.After) +} + +func addOpUpdateWorkspaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateWorkspace{}, middleware.After) +} + +func validateComponentRequest(v *types.ComponentRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ComponentRequest"} + if v.Properties != nil { + if err := validatePropertyRequests(v.Properties); err != nil { + invalidParams.AddNested("Properties", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateComponentsMapRequest(v map[string]types.ComponentRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ComponentsMapRequest"} + for key := range v { + value := v[key] + if err := validateComponentRequest(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateComponentUpdateRequest(v *types.ComponentUpdateRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ComponentUpdateRequest"} + if v.PropertyUpdates != nil { + if err := validatePropertyRequests(v.PropertyUpdates); err != nil { + invalidParams.AddNested("PropertyUpdates", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateComponentUpdatesMapRequest(v map[string]types.ComponentUpdateRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ComponentUpdatesMapRequest"} + for key := range v { + value := v[key] + if err := validateComponentUpdateRequest(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDataConnector(v *types.DataConnector) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DataConnector"} + if v.Lambda != nil { + if err := validateLambdaFunction(v.Lambda); err != nil { + invalidParams.AddNested("Lambda", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDataType(v *types.DataType) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DataType"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if v.NestedType != nil { + if err := validateDataType(v.NestedType); err != nil { + invalidParams.AddNested("NestedType", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateEntityPropertyReference(v *types.EntityPropertyReference) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EntityPropertyReference"} + if v.PropertyName == nil { + invalidParams.Add(smithy.NewErrParamRequired("PropertyName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateEntries(v []types.PropertyValueEntry) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Entries"} + for i := range v { + if err := validatePropertyValueEntry(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFunctionRequest(v *types.FunctionRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FunctionRequest"} + if v.ImplementedBy != nil { + if err := validateDataConnector(v.ImplementedBy); err != nil { + invalidParams.AddNested("ImplementedBy", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateFunctionsRequest(v map[string]types.FunctionRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FunctionsRequest"} + for key := range v { + value := v[key] + if err := validateFunctionRequest(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateLambdaFunction(v *types.LambdaFunction) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "LambdaFunction"} + if v.Arn == nil { + invalidParams.Add(smithy.NewErrParamRequired("Arn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateParentEntityUpdateRequest(v *types.ParentEntityUpdateRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ParentEntityUpdateRequest"} + if len(v.UpdateType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("UpdateType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyDefinitionRequest(v *types.PropertyDefinitionRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyDefinitionRequest"} + if v.DataType != nil { + if err := validateDataType(v.DataType); err != nil { + invalidParams.AddNested("DataType", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyDefinitionsRequest(v map[string]types.PropertyDefinitionRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyDefinitionsRequest"} + for key := range v { + value := v[key] + if err := validatePropertyDefinitionRequest(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyRequest(v *types.PropertyRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyRequest"} + if v.Definition != nil { + if err := validatePropertyDefinitionRequest(v.Definition); err != nil { + invalidParams.AddNested("Definition", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyRequests(v map[string]types.PropertyRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyRequests"} + for key := range v { + value := v[key] + if err := validatePropertyRequest(&value); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyValue(v *types.PropertyValue) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyValue"} + if v.Timestamp == nil { + invalidParams.Add(smithy.NewErrParamRequired("Timestamp")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyValueEntry(v *types.PropertyValueEntry) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyValueEntry"} + if v.EntityPropertyReference == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityPropertyReference")) + } else if v.EntityPropertyReference != nil { + if err := validateEntityPropertyReference(v.EntityPropertyReference); err != nil { + invalidParams.AddNested("EntityPropertyReference", err.(smithy.InvalidParamsError)) + } + } + if v.PropertyValues != nil { + if err := validatePropertyValues(v.PropertyValues); err != nil { + invalidParams.AddNested("PropertyValues", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validatePropertyValues(v []types.PropertyValue) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PropertyValues"} + for i := range v { + if err := validatePropertyValue(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpBatchPutPropertyValuesInput(v *BatchPutPropertyValuesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BatchPutPropertyValuesInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.Entries == nil { + invalidParams.Add(smithy.NewErrParamRequired("Entries")) + } else if v.Entries != nil { + if err := validateEntries(v.Entries); err != nil { + invalidParams.AddNested("Entries", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateComponentTypeInput(v *CreateComponentTypeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateComponentTypeInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.ComponentTypeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ComponentTypeId")) + } + if v.PropertyDefinitions != nil { + if err := validatePropertyDefinitionsRequest(v.PropertyDefinitions); err != nil { + invalidParams.AddNested("PropertyDefinitions", err.(smithy.InvalidParamsError)) + } + } + if v.Functions != nil { + if err := validateFunctionsRequest(v.Functions); err != nil { + invalidParams.AddNested("Functions", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateEntityInput(v *CreateEntityInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateEntityInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.EntityName == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityName")) + } + if v.Components != nil { + if err := validateComponentsMapRequest(v.Components); err != nil { + invalidParams.AddNested("Components", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateSceneInput(v *CreateSceneInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSceneInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.SceneId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SceneId")) + } + if v.ContentLocation == nil { + invalidParams.Add(smithy.NewErrParamRequired("ContentLocation")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateWorkspaceInput(v *CreateWorkspaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateWorkspaceInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.S3Location == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3Location")) + } + if v.Role == nil { + invalidParams.Add(smithy.NewErrParamRequired("Role")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteComponentTypeInput(v *DeleteComponentTypeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteComponentTypeInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.ComponentTypeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ComponentTypeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteEntityInput(v *DeleteEntityInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteEntityInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.EntityId == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteSceneInput(v *DeleteSceneInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteSceneInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.SceneId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SceneId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteWorkspaceInput(v *DeleteWorkspaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteWorkspaceInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetComponentTypeInput(v *GetComponentTypeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetComponentTypeInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.ComponentTypeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ComponentTypeId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetEntityInput(v *GetEntityInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetEntityInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.EntityId == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetPropertyValueHistoryInput(v *GetPropertyValueHistoryInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetPropertyValueHistoryInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.SelectedProperties == nil { + invalidParams.Add(smithy.NewErrParamRequired("SelectedProperties")) + } + if v.StartDateTime == nil { + invalidParams.Add(smithy.NewErrParamRequired("StartDateTime")) + } + if v.EndDateTime == nil { + invalidParams.Add(smithy.NewErrParamRequired("EndDateTime")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetPropertyValueInput(v *GetPropertyValueInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetPropertyValueInput"} + if v.SelectedProperties == nil { + invalidParams.Add(smithy.NewErrParamRequired("SelectedProperties")) + } + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetSceneInput(v *GetSceneInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSceneInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.SceneId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SceneId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetWorkspaceInput(v *GetWorkspaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetWorkspaceInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListComponentTypesInput(v *ListComponentTypesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListComponentTypesInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListEntitiesInput(v *ListEntitiesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListEntitiesInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListScenesInput(v *ListScenesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListScenesInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} + if v.ResourceARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTagResourceInput(v *TagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} + if v.ResourceARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) + } + if v.Tags == nil { + invalidParams.Add(smithy.NewErrParamRequired("Tags")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUntagResourceInput(v *UntagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} + if v.ResourceARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceARN")) + } + if v.TagKeys == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateComponentTypeInput(v *UpdateComponentTypeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateComponentTypeInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.ComponentTypeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ComponentTypeId")) + } + if v.PropertyDefinitions != nil { + if err := validatePropertyDefinitionsRequest(v.PropertyDefinitions); err != nil { + invalidParams.AddNested("PropertyDefinitions", err.(smithy.InvalidParamsError)) + } + } + if v.Functions != nil { + if err := validateFunctionsRequest(v.Functions); err != nil { + invalidParams.AddNested("Functions", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateEntityInput(v *UpdateEntityInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateEntityInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.EntityId == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityId")) + } + if v.ComponentUpdates != nil { + if err := validateComponentUpdatesMapRequest(v.ComponentUpdates); err != nil { + invalidParams.AddNested("ComponentUpdates", err.(smithy.InvalidParamsError)) + } + } + if v.ParentEntityUpdate != nil { + if err := validateParentEntityUpdateRequest(v.ParentEntityUpdate); err != nil { + invalidParams.AddNested("ParentEntityUpdate", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateSceneInput(v *UpdateSceneInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateSceneInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if v.SceneId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SceneId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateWorkspaceInput(v *UpdateWorkspaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateWorkspaceInput"} + if v.WorkspaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/kafka/api_op_CreateClusterV2.go b/service/kafka/api_op_CreateClusterV2.go new file mode 100644 index 00000000000..bea027814e7 --- /dev/null +++ b/service/kafka/api_op_CreateClusterV2.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kafka + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kafka/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new MSK cluster. +func (c *Client) CreateClusterV2(ctx context.Context, params *CreateClusterV2Input, optFns ...func(*Options)) (*CreateClusterV2Output, error) { + if params == nil { + params = &CreateClusterV2Input{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateClusterV2", params, optFns, c.addOperationCreateClusterV2Middlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateClusterV2Output) + out.ResultMetadata = metadata + return out, nil +} + +type CreateClusterV2Input struct { + + // The name of the cluster. + // + // This member is required. + ClusterName *string + + // Information about the provisioned cluster. + Provisioned *types.ProvisionedRequest + + // Information about the serverless cluster. + Serverless *types.ServerlessRequest + + // A map of tags that you want the cluster to have. + Tags map[string]string + + noSmithyDocumentSerde +} + +type CreateClusterV2Output struct { + + // The Amazon Resource Name (ARN) of the cluster. + ClusterArn *string + + // The name of the MSK cluster. + ClusterName *string + + // The type of the cluster. The possible states are PROVISIONED or SERVERLESS. + ClusterType types.ClusterType + + // The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, + // FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING. + State types.ClusterState + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateClusterV2Middlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateClusterV2{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateClusterV2{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateClusterV2ValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateClusterV2(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreateClusterV2(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kafka", + OperationName: "CreateClusterV2", + } +} diff --git a/service/kafka/api_op_DescribeClusterV2.go b/service/kafka/api_op_DescribeClusterV2.go new file mode 100644 index 00000000000..c77b8747e9b --- /dev/null +++ b/service/kafka/api_op_DescribeClusterV2.go @@ -0,0 +1,122 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kafka + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kafka/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is +// specified in the request. +func (c *Client) DescribeClusterV2(ctx context.Context, params *DescribeClusterV2Input, optFns ...func(*Options)) (*DescribeClusterV2Output, error) { + if params == nil { + params = &DescribeClusterV2Input{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeClusterV2", params, optFns, c.addOperationDescribeClusterV2Middlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeClusterV2Output) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeClusterV2Input struct { + + // The Amazon Resource Name (ARN) that uniquely identifies the cluster. + // + // This member is required. + ClusterArn *string + + noSmithyDocumentSerde +} + +type DescribeClusterV2Output struct { + + // The cluster information. + ClusterInfo *types.Cluster + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeClusterV2Middlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeClusterV2{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeClusterV2{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeClusterV2ValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClusterV2(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeClusterV2(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kafka", + OperationName: "DescribeClusterV2", + } +} diff --git a/service/kafka/api_op_ListClustersV2.go b/service/kafka/api_op_ListClustersV2.go new file mode 100644 index 00000000000..7d3fee20c70 --- /dev/null +++ b/service/kafka/api_op_ListClustersV2.go @@ -0,0 +1,218 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kafka + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kafka/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of all the MSK clusters in the current Region. +func (c *Client) ListClustersV2(ctx context.Context, params *ListClustersV2Input, optFns ...func(*Options)) (*ListClustersV2Output, error) { + if params == nil { + params = &ListClustersV2Input{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListClustersV2", params, optFns, c.addOperationListClustersV2Middlewares) + if err != nil { + return nil, err + } + + out := result.(*ListClustersV2Output) + out.ResultMetadata = metadata + return out, nil +} + +type ListClustersV2Input struct { + + // Specify a prefix of the names of the clusters that you want to list. The service + // lists all the clusters whose names start with this prefix. + ClusterNameFilter *string + + // Specify either PROVISIONED or SERVERLESS. + ClusterTypeFilter *string + + // The maximum number of results to return in the response. If there are more + // results, the response includes a NextToken parameter. + MaxResults int32 + + // The paginated results marker. When the result of the operation is truncated, the + // call returns NextToken in the response. To get the next batch, provide this + // token in your next request. + NextToken *string + + noSmithyDocumentSerde +} + +type ListClustersV2Output struct { + + // Information on each of the MSK clusters in the response. + ClusterInfoList []types.Cluster + + // The paginated results marker. When the result of a ListClusters operation is + // truncated, the call returns NextToken in the response. To get another batch of + // clusters, provide this token in your next request. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListClustersV2Middlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListClustersV2{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListClustersV2{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListClustersV2(options.Region), middleware.Before); 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 + } + return nil +} + +// ListClustersV2APIClient is a client that implements the ListClustersV2 +// operation. +type ListClustersV2APIClient interface { + ListClustersV2(context.Context, *ListClustersV2Input, ...func(*Options)) (*ListClustersV2Output, error) +} + +var _ ListClustersV2APIClient = (*Client)(nil) + +// ListClustersV2PaginatorOptions is the paginator options for ListClustersV2 +type ListClustersV2PaginatorOptions struct { + // The maximum number of results to return in the response. If there are more + // results, the response includes a NextToken parameter. + 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 +} + +// ListClustersV2Paginator is a paginator for ListClustersV2 +type ListClustersV2Paginator struct { + options ListClustersV2PaginatorOptions + client ListClustersV2APIClient + params *ListClustersV2Input + nextToken *string + firstPage bool +} + +// NewListClustersV2Paginator returns a new ListClustersV2Paginator +func NewListClustersV2Paginator(client ListClustersV2APIClient, params *ListClustersV2Input, optFns ...func(*ListClustersV2PaginatorOptions)) *ListClustersV2Paginator { + if params == nil { + params = &ListClustersV2Input{} + } + + options := ListClustersV2PaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListClustersV2Paginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListClustersV2Paginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListClustersV2 page. +func (p *ListClustersV2Paginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListClustersV2Output, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.ListClustersV2(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_opListClustersV2(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kafka", + OperationName: "ListClustersV2", + } +} diff --git a/service/kafka/deserializers.go b/service/kafka/deserializers.go index 5ee973c3a14..49c2d072691 100644 --- a/service/kafka/deserializers.go +++ b/service/kafka/deserializers.go @@ -557,6 +557,202 @@ func awsRestjson1_deserializeOpDocumentCreateClusterOutput(v **CreateClusterOutp return nil } +type awsRestjson1_deserializeOpCreateClusterV2 struct { +} + +func (*awsRestjson1_deserializeOpCreateClusterV2) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateClusterV2) 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, awsRestjson1_deserializeOpErrorCreateClusterV2(response, &metadata) + } + output := &CreateClusterV2Output{} + 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 = awsRestjson1_deserializeOpDocumentCreateClusterV2Output(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateClusterV2(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ForbiddenException", errorCode): + return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) + + case strings.EqualFold("InternalServerErrorException", errorCode): + return awsRestjson1_deserializeErrorInternalServerErrorException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("TooManyRequestsException", errorCode): + return awsRestjson1_deserializeErrorTooManyRequestsException(response, errorBody) + + case strings.EqualFold("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateClusterV2Output(v **CreateClusterV2Output, 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 *CreateClusterV2Output + if *v == nil { + sv = &CreateClusterV2Output{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "clusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + case "clusterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ClusterName = ptr.String(jtv) + } + + case "clusterType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterType to be of type string, got %T instead", value) + } + sv.ClusterType = types.ClusterType(jtv) + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterState to be of type string, got %T instead", value) + } + sv.State = types.ClusterState(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpCreateConfiguration struct { } @@ -1418,14 +1614,14 @@ func awsRestjson1_deserializeOpDocumentDescribeClusterOperationOutput(v **Descri return nil } -type awsRestjson1_deserializeOpDescribeConfiguration struct { +type awsRestjson1_deserializeOpDescribeClusterV2 struct { } -func (*awsRestjson1_deserializeOpDescribeConfiguration) ID() string { +func (*awsRestjson1_deserializeOpDescribeClusterV2) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeClusterV2) 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) @@ -1439,9 +1635,9 @@ func (m *awsRestjson1_deserializeOpDescribeConfiguration) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeConfiguration(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeClusterV2(response, &metadata) } - output := &DescribeConfigurationOutput{} + output := &DescribeClusterV2Output{} out.Result = output var buff [1024]byte @@ -1462,7 +1658,7 @@ func (m *awsRestjson1_deserializeOpDescribeConfiguration) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeClusterV2Output(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1475,7 +1671,7 @@ func (m *awsRestjson1_deserializeOpDescribeConfiguration) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeClusterV2(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)} @@ -1528,9 +1724,6 @@ func awsRestjson1_deserializeOpErrorDescribeConfiguration(response *smithyhttp.R case strings.EqualFold("NotFoundException", errorCode): return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) - case strings.EqualFold("ServiceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) - case strings.EqualFold("UnauthorizedException", errorCode): return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) @@ -1544,7 +1737,7 @@ func awsRestjson1_deserializeOpErrorDescribeConfiguration(response *smithyhttp.R } } -func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeConfigurationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeClusterV2Output(v **DescribeClusterV2Output, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1557,74 +1750,20 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeConfigurationOutput + var sv *DescribeClusterV2Output if *v == nil { - sv = &DescribeConfigurationOutput{} + sv = &DescribeClusterV2Output{} } 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 __string to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "creationTime": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __timestampIso8601 to be of type string, got %T instead", value) - } - t, err := smithytime.ParseDateTime(jtv) - if err != nil { - return err - } - sv.CreationTime = ptr.Time(t) - } - - case "description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "kafkaVersions": - if err := awsRestjson1_deserializeDocument__listOf__string(&sv.KafkaVersions, value); err != nil { - return err - } - - case "latestRevision": - if err := awsRestjson1_deserializeDocumentConfigurationRevision(&sv.LatestRevision, value); err != nil { + case "clusterInfo": + if err := awsRestjson1_deserializeDocumentCluster(&sv.ClusterInfo, value); err != nil { return err } - case "name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected __string to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "state": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConfigurationState to be of type string, got %T instead", value) - } - sv.State = types.ConfigurationState(jtv) - } - default: _, _ = key, value @@ -1634,10 +1773,226 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeC return nil } -type awsRestjson1_deserializeOpDescribeConfigurationRevision struct { +type awsRestjson1_deserializeOpDescribeConfiguration struct { } -func (*awsRestjson1_deserializeOpDescribeConfigurationRevision) ID() string { +func (*awsRestjson1_deserializeOpDescribeConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeConfiguration) 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, awsRestjson1_deserializeOpErrorDescribeConfiguration(response, &metadata) + } + output := &DescribeConfigurationOutput{} + 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 = awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeConfiguration(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("ForbiddenException", errorCode): + return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) + + case strings.EqualFold("InternalServerErrorException", errorCode): + return awsRestjson1_deserializeErrorInternalServerErrorException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeConfigurationOutput(v **DescribeConfigurationOutput, 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 *DescribeConfigurationOutput + if *v == nil { + sv = &DescribeConfigurationOutput{} + } 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 __string to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "creationTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __timestampIso8601 to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.CreationTime = ptr.Time(t) + } + + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "kafkaVersions": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.KafkaVersions, value); err != nil { + return err + } + + case "latestRevision": + if err := awsRestjson1_deserializeDocumentConfigurationRevision(&sv.LatestRevision, value); err != nil { + return err + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfigurationState to be of type string, got %T instead", value) + } + sv.State = types.ConfigurationState(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDescribeConfigurationRevision struct { +} + +func (*awsRestjson1_deserializeOpDescribeConfigurationRevision) ID() string { return "OperationDeserializer" } @@ -2560,14 +2915,14 @@ func awsRestjson1_deserializeOpDocumentListClustersOutput(v **ListClustersOutput return nil } -type awsRestjson1_deserializeOpListConfigurationRevisions struct { +type awsRestjson1_deserializeOpListClustersV2 struct { } -func (*awsRestjson1_deserializeOpListConfigurationRevisions) ID() string { +func (*awsRestjson1_deserializeOpListClustersV2) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListConfigurationRevisions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListClustersV2) 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) @@ -2581,9 +2936,9 @@ func (m *awsRestjson1_deserializeOpListConfigurationRevisions) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListConfigurationRevisions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListClustersV2(response, &metadata) } - output := &ListConfigurationRevisionsOutput{} + output := &ListClustersV2Output{} out.Result = output var buff [1024]byte @@ -2604,7 +2959,7 @@ func (m *awsRestjson1_deserializeOpListConfigurationRevisions) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListClustersV2Output(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2617,7 +2972,7 @@ func (m *awsRestjson1_deserializeOpListConfigurationRevisions) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorListConfigurationRevisions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListClustersV2(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)} @@ -2667,12 +3022,6 @@ func awsRestjson1_deserializeOpErrorListConfigurationRevisions(response *smithyh case strings.EqualFold("InternalServerErrorException", errorCode): return awsRestjson1_deserializeErrorInternalServerErrorException(response, errorBody) - case strings.EqualFold("NotFoundException", errorCode): - return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) - - case strings.EqualFold("ServiceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) - case strings.EqualFold("UnauthorizedException", errorCode): return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) @@ -2686,7 +3035,7 @@ func awsRestjson1_deserializeOpErrorListConfigurationRevisions(response *smithyh } } -func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **ListConfigurationRevisionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListClustersV2Output(v **ListClustersV2Output, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -2699,15 +3048,20 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListConfigurationRevisionsOutput + var sv *ListClustersV2Output if *v == nil { - sv = &ListConfigurationRevisionsOutput{} + sv = &ListClustersV2Output{} } else { sv = *v } for key, value := range shape { switch key { + case "clusterInfoList": + if err := awsRestjson1_deserializeDocument__listOfCluster(&sv.ClusterInfoList, value); err != nil { + return err + } + case "nextToken": if value != nil { jtv, ok := value.(string) @@ -2717,11 +3071,6 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List sv.NextToken = ptr.String(jtv) } - case "revisions": - if err := awsRestjson1_deserializeDocument__listOfConfigurationRevision(&sv.Revisions, value); err != nil { - return err - } - default: _, _ = key, value @@ -2731,14 +3080,14 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List return nil } -type awsRestjson1_deserializeOpListConfigurations struct { +type awsRestjson1_deserializeOpListConfigurationRevisions struct { } -func (*awsRestjson1_deserializeOpListConfigurations) ID() string { +func (*awsRestjson1_deserializeOpListConfigurationRevisions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListConfigurationRevisions) 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) @@ -2752,9 +3101,9 @@ func (m *awsRestjson1_deserializeOpListConfigurations) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListConfigurations(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListConfigurationRevisions(response, &metadata) } - output := &ListConfigurationsOutput{} + output := &ListConfigurationRevisionsOutput{} out.Result = output var buff [1024]byte @@ -2775,7 +3124,7 @@ func (m *awsRestjson1_deserializeOpListConfigurations) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListConfigurationsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2788,7 +3137,178 @@ func (m *awsRestjson1_deserializeOpListConfigurations) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListConfigurationRevisions(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BadRequestException", errorCode): + return awsRestjson1_deserializeErrorBadRequestException(response, errorBody) + + case strings.EqualFold("ForbiddenException", errorCode): + return awsRestjson1_deserializeErrorForbiddenException(response, errorBody) + + case strings.EqualFold("InternalServerErrorException", errorCode): + return awsRestjson1_deserializeErrorInternalServerErrorException(response, errorBody) + + case strings.EqualFold("NotFoundException", errorCode): + return awsRestjson1_deserializeErrorNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody) + + case strings.EqualFold("UnauthorizedException", errorCode): + return awsRestjson1_deserializeErrorUnauthorizedException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **ListConfigurationRevisionsOutput, 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 *ListConfigurationRevisionsOutput + if *v == nil { + sv = &ListConfigurationRevisionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "revisions": + if err := awsRestjson1_deserializeDocument__listOfConfigurationRevision(&sv.Revisions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListConfigurations struct { +} + +func (*awsRestjson1_deserializeOpListConfigurations) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListConfigurations) 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, awsRestjson1_deserializeOpErrorListConfigurations(response, &metadata) + } + output := &ListConfigurationsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListConfigurationsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListConfigurations(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)} @@ -5853,6 +6373,40 @@ func awsRestjson1_deserializeDocument__listOfBrokerEBSVolumeInfo(v *[]types.Brok return nil } +func awsRestjson1_deserializeDocument__listOfCluster(v *[]types.Cluster, 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.Cluster + if *v == nil { + cv = []types.Cluster{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Cluster + destAddr := &col + if err := awsRestjson1_deserializeDocumentCluster(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocument__listOfClusterInfo(v *[]types.ClusterInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6159,6 +6713,40 @@ func awsRestjson1_deserializeDocument__listOfUnprocessedScramSecret(v *[]types.U return nil } +func awsRestjson1_deserializeDocument__listOfVpcConfig(v *[]types.VpcConfig, 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.VpcConfig + if *v == nil { + cv = []types.VpcConfig{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.VpcConfig + destAddr := &col + if err := awsRestjson1_deserializeDocumentVpcConfig(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocument__mapOf__string(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6671,7 +7259,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogs(v **types.CloudWatchLogs, va return nil } -func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentCluster(v **types.Cluster, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6684,9 +7272,9 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClusterInfo + var sv *types.Cluster if *v == nil { - sv = &types.ClusterInfo{} + sv = &types.Cluster{} } else { sv = *v } @@ -6702,16 +7290,6 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in sv.ActiveOperationArn = ptr.String(jtv) } - case "brokerNodeGroupInfo": - if err := awsRestjson1_deserializeDocumentBrokerNodeGroupInfo(&sv.BrokerNodeGroupInfo, value); err != nil { - return err - } - - case "clientAuthentication": - if err := awsRestjson1_deserializeDocumentClientAuthentication(&sv.ClientAuthentication, value); err != nil { - return err - } - case "clusterArn": if value != nil { jtv, ok := value.(string) @@ -6730,6 +7308,15 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in sv.ClusterName = ptr.String(jtv) } + case "clusterType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterType to be of type string, got %T instead", value) + } + sv.ClusterType = types.ClusterType(jtv) + } + case "creationTime": if value != nil { jtv, ok := value.(string) @@ -6743,11 +7330,6 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in sv.CreationTime = ptr.Time(t) } - case "currentBrokerSoftwareInfo": - if err := awsRestjson1_deserializeDocumentBrokerSoftwareInfo(&sv.CurrentBrokerSoftwareInfo, value); err != nil { - return err - } - case "currentVersion": if value != nil { jtv, ok := value.(string) @@ -6757,12 +7339,136 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in sv.CurrentVersion = ptr.String(jtv) } - case "encryptionInfo": - if err := awsRestjson1_deserializeDocumentEncryptionInfo(&sv.EncryptionInfo, value); err != nil { + case "provisioned": + if err := awsRestjson1_deserializeDocumentProvisioned(&sv.Provisioned, value); err != nil { return err } - case "enhancedMonitoring": + case "serverless": + if err := awsRestjson1_deserializeDocumentServerless(&sv.Serverless, value); err != nil { + return err + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterState to be of type string, got %T instead", value) + } + sv.State = types.ClusterState(jtv) + } + + case "stateInfo": + if err := awsRestjson1_deserializeDocumentStateInfo(&sv.StateInfo, value); err != nil { + return err + } + + case "tags": + if err := awsRestjson1_deserializeDocument__mapOf__string(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, 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.ClusterInfo + if *v == nil { + sv = &types.ClusterInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "activeOperationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ActiveOperationArn = ptr.String(jtv) + } + + case "brokerNodeGroupInfo": + if err := awsRestjson1_deserializeDocumentBrokerNodeGroupInfo(&sv.BrokerNodeGroupInfo, value); err != nil { + return err + } + + case "clientAuthentication": + if err := awsRestjson1_deserializeDocumentClientAuthentication(&sv.ClientAuthentication, value); err != nil { + return err + } + + case "clusterArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ClusterArn = ptr.String(jtv) + } + + case "clusterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ClusterName = ptr.String(jtv) + } + + case "creationTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __timestampIso8601 to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.CreationTime = ptr.Time(t) + } + + case "currentBrokerSoftwareInfo": + if err := awsRestjson1_deserializeDocumentBrokerSoftwareInfo(&sv.CurrentBrokerSoftwareInfo, value); err != nil { + return err + } + + case "currentVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.CurrentVersion = ptr.String(jtv) + } + + case "encryptionInfo": + if err := awsRestjson1_deserializeDocumentEncryptionInfo(&sv.EncryptionInfo, value); err != nil { + return err + } + + case "enhancedMonitoring": if value != nil { jtv, ok := value.(string) if !ok { @@ -7836,6 +8542,46 @@ func awsRestjson1_deserializeDocumentJmxExporter(v **types.JmxExporter, value in return nil } +func awsRestjson1_deserializeDocumentJmxExporterInfo(v **types.JmxExporterInfo, 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.JmxExporterInfo + if *v == nil { + sv = &types.JmxExporterInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "enabledInBroker": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) + } + sv.EnabledInBroker = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentKafkaVersion(v **types.KafkaVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8067,6 +8813,46 @@ func awsRestjson1_deserializeDocumentNodeExporter(v **types.NodeExporter, value return nil } +func awsRestjson1_deserializeDocumentNodeExporterInfo(v **types.NodeExporterInfo, 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.NodeExporterInfo + if *v == nil { + sv = &types.NodeExporterInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "enabledInBroker": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) + } + sv.EnabledInBroker = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentNodeInfo(v **types.NodeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8229,6 +9015,42 @@ func awsRestjson1_deserializeDocumentOpenMonitoring(v **types.OpenMonitoring, va return nil } +func awsRestjson1_deserializeDocumentOpenMonitoringInfo(v **types.OpenMonitoringInfo, 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.OpenMonitoringInfo + if *v == nil { + sv = &types.OpenMonitoringInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "prometheus": + if err := awsRestjson1_deserializeDocumentPrometheusInfo(&sv.Prometheus, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentPrometheus(v **types.Prometheus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8270,6 +9092,148 @@ func awsRestjson1_deserializeDocumentPrometheus(v **types.Prometheus, value inte return nil } +func awsRestjson1_deserializeDocumentPrometheusInfo(v **types.PrometheusInfo, 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.PrometheusInfo + if *v == nil { + sv = &types.PrometheusInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "jmxExporter": + if err := awsRestjson1_deserializeDocumentJmxExporterInfo(&sv.JmxExporter, value); err != nil { + return err + } + + case "nodeExporter": + if err := awsRestjson1_deserializeDocumentNodeExporterInfo(&sv.NodeExporter, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentProvisioned(v **types.Provisioned, 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.Provisioned + if *v == nil { + sv = &types.Provisioned{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "brokerNodeGroupInfo": + if err := awsRestjson1_deserializeDocumentBrokerNodeGroupInfo(&sv.BrokerNodeGroupInfo, value); err != nil { + return err + } + + case "clientAuthentication": + if err := awsRestjson1_deserializeDocumentClientAuthentication(&sv.ClientAuthentication, value); err != nil { + return err + } + + case "currentBrokerSoftwareInfo": + if err := awsRestjson1_deserializeDocumentBrokerSoftwareInfo(&sv.CurrentBrokerSoftwareInfo, value); err != nil { + return err + } + + case "encryptionInfo": + if err := awsRestjson1_deserializeDocumentEncryptionInfo(&sv.EncryptionInfo, value); err != nil { + return err + } + + case "enhancedMonitoring": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnhancedMonitoring to be of type string, got %T instead", value) + } + sv.EnhancedMonitoring = types.EnhancedMonitoring(jtv) + } + + case "loggingInfo": + if err := awsRestjson1_deserializeDocumentLoggingInfo(&sv.LoggingInfo, value); err != nil { + return err + } + + case "numberOfBrokerNodes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected __integerMin1Max15 to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NumberOfBrokerNodes = int32(i64) + } + + case "openMonitoring": + if err := awsRestjson1_deserializeDocumentOpenMonitoringInfo(&sv.OpenMonitoring, value); err != nil { + return err + } + + case "zookeeperConnectString": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ZookeeperConnectString = ptr.String(jtv) + } + + case "zookeeperConnectStringTls": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.ZookeeperConnectStringTls = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentPublicAccess(v **types.PublicAccess, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8449,6 +9413,119 @@ func awsRestjson1_deserializeDocumentScram(v **types.Scram, value interface{}) e return nil } +func awsRestjson1_deserializeDocumentServerless(v **types.Serverless, 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.Serverless + if *v == nil { + sv = &types.Serverless{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "clientAuthentication": + if err := awsRestjson1_deserializeDocumentServerlessClientAuthentication(&sv.ClientAuthentication, value); err != nil { + return err + } + + case "vpcConfigs": + if err := awsRestjson1_deserializeDocument__listOfVpcConfig(&sv.VpcConfigs, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentServerlessClientAuthentication(v **types.ServerlessClientAuthentication, 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.ServerlessClientAuthentication + if *v == nil { + sv = &types.ServerlessClientAuthentication{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "sasl": + if err := awsRestjson1_deserializeDocumentServerlessSasl(&sv.Sasl, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentServerlessSasl(v **types.ServerlessSasl, 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.ServerlessSasl + if *v == nil { + sv = &types.ServerlessSasl{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "iam": + if err := awsRestjson1_deserializeDocumentIam(&sv.Iam, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentServiceUnavailableException(v **types.ServiceUnavailableException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8824,6 +9901,47 @@ func awsRestjson1_deserializeDocumentUnprocessedScramSecret(v **types.Unprocesse return nil } +func awsRestjson1_deserializeDocumentVpcConfig(v **types.VpcConfig, 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.VpcConfig + if *v == nil { + sv = &types.VpcConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "securityGroupIds": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.SecurityGroupIds, value); err != nil { + return err + } + + case "subnetIds": + if err := awsRestjson1_deserializeDocument__listOf__string(&sv.SubnetIds, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/kafka/generated.json b/service/kafka/generated.json index 75a31de69ae..d020e30e990 100644 --- a/service/kafka/generated.json +++ b/service/kafka/generated.json @@ -10,17 +10,20 @@ "api_op_BatchAssociateScramSecret.go", "api_op_BatchDisassociateScramSecret.go", "api_op_CreateCluster.go", + "api_op_CreateClusterV2.go", "api_op_CreateConfiguration.go", "api_op_DeleteCluster.go", "api_op_DeleteConfiguration.go", "api_op_DescribeCluster.go", "api_op_DescribeClusterOperation.go", + "api_op_DescribeClusterV2.go", "api_op_DescribeConfiguration.go", "api_op_DescribeConfigurationRevision.go", "api_op_GetBootstrapBrokers.go", "api_op_GetCompatibleKafkaVersions.go", "api_op_ListClusterOperations.go", "api_op_ListClusters.go", + "api_op_ListClustersV2.go", "api_op_ListConfigurationRevisions.go", "api_op_ListConfigurations.go", "api_op_ListKafkaVersions.go", diff --git a/service/kafka/serializers.go b/service/kafka/serializers.go index 7a82a9358a6..6ad216d9986 100644 --- a/service/kafka/serializers.go +++ b/service/kafka/serializers.go @@ -312,6 +312,95 @@ func awsRestjson1_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, v return nil } +type awsRestjson1_serializeOpCreateClusterV2 struct { +} + +func (*awsRestjson1_serializeOpCreateClusterV2) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateClusterV2) 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.(*CreateClusterV2Input) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/api/v2/clusters") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateClusterV2Input(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateClusterV2Input(v *CreateClusterV2Input, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateClusterV2Input(v *CreateClusterV2Input, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClusterName != nil { + ok := object.Key("clusterName") + ok.String(*v.ClusterName) + } + + if v.Provisioned != nil { + ok := object.Key("provisioned") + if err := awsRestjson1_serializeDocumentProvisionedRequest(v.Provisioned, ok); err != nil { + return err + } + } + + if v.Serverless != nil { + ok := object.Key("serverless") + if err := awsRestjson1_serializeDocumentServerlessRequest(v.Serverless, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocument__mapOf__string(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpCreateConfiguration struct { } @@ -633,6 +722,64 @@ func awsRestjson1_serializeOpHttpBindingsDescribeClusterOperationInput(v *Descri return nil } +type awsRestjson1_serializeOpDescribeClusterV2 struct { +} + +func (*awsRestjson1_serializeOpDescribeClusterV2) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeClusterV2) 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.(*DescribeClusterV2Input) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/api/v2/clusters/{ClusterArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeClusterV2Input(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeClusterV2Input(v *DescribeClusterV2Input, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ClusterArn == nil || len(*v.ClusterArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ClusterArn must not be empty")} + } + if v.ClusterArn != nil { + if err := encoder.SetURI("ClusterArn").String(*v.ClusterArn); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDescribeConfiguration struct { } @@ -993,6 +1140,71 @@ func awsRestjson1_serializeOpHttpBindingsListClustersInput(v *ListClustersInput, return nil } +type awsRestjson1_serializeOpListClustersV2 struct { +} + +func (*awsRestjson1_serializeOpListClustersV2) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListClustersV2) 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.(*ListClustersV2Input) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/api/v2/clusters") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListClustersV2Input(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListClustersV2Input(v *ListClustersV2Input, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ClusterNameFilter != nil { + encoder.SetQuery("clusterNameFilter").String(*v.ClusterNameFilter) + } + + if v.ClusterTypeFilter != nil { + encoder.SetQuery("clusterTypeFilter").String(*v.ClusterTypeFilter) + } + + if v.MaxResults != 0 { + encoder.SetQuery("maxResults").Integer(v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + type awsRestjson1_serializeOpListConfigurationRevisions struct { } @@ -2427,6 +2639,19 @@ func awsRestjson1_serializeDocument__listOfBrokerEBSVolumeInfo(v []types.BrokerE return nil } +func awsRestjson1_serializeDocument__listOfVpcConfig(v []types.VpcConfig, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentVpcConfig(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2768,6 +2993,70 @@ func awsRestjson1_serializeDocumentPrometheusInfo(v *types.PrometheusInfo, value return nil } +func awsRestjson1_serializeDocumentProvisionedRequest(v *types.ProvisionedRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BrokerNodeGroupInfo != nil { + ok := object.Key("brokerNodeGroupInfo") + if err := awsRestjson1_serializeDocumentBrokerNodeGroupInfo(v.BrokerNodeGroupInfo, ok); err != nil { + return err + } + } + + if v.ClientAuthentication != nil { + ok := object.Key("clientAuthentication") + if err := awsRestjson1_serializeDocumentClientAuthentication(v.ClientAuthentication, ok); err != nil { + return err + } + } + + if v.ConfigurationInfo != nil { + ok := object.Key("configurationInfo") + if err := awsRestjson1_serializeDocumentConfigurationInfo(v.ConfigurationInfo, ok); err != nil { + return err + } + } + + if v.EncryptionInfo != nil { + ok := object.Key("encryptionInfo") + if err := awsRestjson1_serializeDocumentEncryptionInfo(v.EncryptionInfo, ok); err != nil { + return err + } + } + + if len(v.EnhancedMonitoring) > 0 { + ok := object.Key("enhancedMonitoring") + ok.String(string(v.EnhancedMonitoring)) + } + + if v.KafkaVersion != nil { + ok := object.Key("kafkaVersion") + ok.String(*v.KafkaVersion) + } + + if v.LoggingInfo != nil { + ok := object.Key("loggingInfo") + if err := awsRestjson1_serializeDocumentLoggingInfo(v.LoggingInfo, ok); err != nil { + return err + } + } + + { + ok := object.Key("numberOfBrokerNodes") + ok.Integer(v.NumberOfBrokerNodes) + } + + if v.OpenMonitoring != nil { + ok := object.Key("openMonitoring") + if err := awsRestjson1_serializeDocumentOpenMonitoringInfo(v.OpenMonitoring, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentPublicAccess(v *types.PublicAccess, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2835,6 +3124,55 @@ func awsRestjson1_serializeDocumentScram(v *types.Scram, value smithyjson.Value) return nil } +func awsRestjson1_serializeDocumentServerlessClientAuthentication(v *types.ServerlessClientAuthentication, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Sasl != nil { + ok := object.Key("sasl") + if err := awsRestjson1_serializeDocumentServerlessSasl(v.Sasl, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentServerlessRequest(v *types.ServerlessRequest, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientAuthentication != nil { + ok := object.Key("clientAuthentication") + if err := awsRestjson1_serializeDocumentServerlessClientAuthentication(v.ClientAuthentication, ok); err != nil { + return err + } + } + + if v.VpcConfigs != nil { + ok := object.Key("vpcConfigs") + if err := awsRestjson1_serializeDocument__listOfVpcConfig(v.VpcConfigs, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentServerlessSasl(v *types.ServerlessSasl, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Iam != nil { + ok := object.Key("iam") + if err := awsRestjson1_serializeDocumentIam(v.Iam, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentStorageInfo(v *types.StorageInfo, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2879,3 +3217,24 @@ func awsRestjson1_serializeDocumentUnauthenticated(v *types.Unauthenticated, val return nil } + +func awsRestjson1_serializeDocumentVpcConfig(v *types.VpcConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SecurityGroupIds != nil { + ok := object.Key("securityGroupIds") + if err := awsRestjson1_serializeDocument__listOf__string(v.SecurityGroupIds, ok); err != nil { + return err + } + } + + if v.SubnetIds != nil { + ok := object.Key("subnetIds") + if err := awsRestjson1_serializeDocument__listOf__string(v.SubnetIds, ok); err != nil { + return err + } + } + + return nil +} diff --git a/service/kafka/types/enums.go b/service/kafka/types/enums.go index b8785357d4f..e9dbe2f52db 100644 --- a/service/kafka/types/enums.go +++ b/service/kafka/types/enums.go @@ -68,6 +68,24 @@ func (ClusterState) Values() []ClusterState { } } +type ClusterType string + +// Enum values for ClusterType +const ( + ClusterTypeProvisioned ClusterType = "PROVISIONED" + ClusterTypeServerless ClusterType = "SERVERLESS" +) + +// Values returns all known values for ClusterType. 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 (ClusterType) Values() []ClusterType { + return []ClusterType{ + "PROVISIONED", + "SERVERLESS", + } +} + type ConfigurationState string // Enum values for ConfigurationState diff --git a/service/kafka/types/types.go b/service/kafka/types/types.go index ecb7d5af0f7..7b7099ba1a9 100644 --- a/service/kafka/types/types.go +++ b/service/kafka/types/types.go @@ -143,6 +143,46 @@ type CloudWatchLogs struct { noSmithyDocumentSerde } +// Returns information about a cluster. +type Cluster struct { + + // The Amazon Resource Name (ARN) that uniquely identifies a cluster operation. + ActiveOperationArn *string + + // The Amazon Resource Name (ARN) that uniquely identifies the cluster. + ClusterArn *string + + // The name of the cluster. + ClusterName *string + + // Cluster Type. + ClusterType ClusterType + + // The time when the cluster was created. + CreationTime *time.Time + + // The current version of the MSK cluster. + CurrentVersion *string + + // Information about the provisioned cluster. + Provisioned *Provisioned + + // Information about the serverless cluster. + Serverless *Serverless + + // The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, + // FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING. + State ClusterState + + // State Info for the Amazon MSK cluster. + StateInfo *StateInfo + + // Tags attached to the cluster. + Tags map[string]string + + noSmithyDocumentSerde +} + // Returns information about a cluster. type ClusterInfo struct { @@ -625,6 +665,89 @@ type PrometheusInfo struct { noSmithyDocumentSerde } +// Provisioned cluster. +type Provisioned struct { + + // Information about the brokers. + // + // This member is required. + BrokerNodeGroupInfo *BrokerNodeGroupInfo + + // The number of broker nodes in the cluster. + // + // This member is required. + NumberOfBrokerNodes int32 + + // Includes all client authentication information. + ClientAuthentication *ClientAuthentication + + // Information about the Apache Kafka version deployed on the brokers. + CurrentBrokerSoftwareInfo *BrokerSoftwareInfo + + // Includes all encryption-related information. + EncryptionInfo *EncryptionInfo + + // Specifies the level of monitoring for the MSK cluster. The possible values are + // DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION. + EnhancedMonitoring EnhancedMonitoring + + // Log delivery information for the cluster. + LoggingInfo *LoggingInfo + + // The settings for open monitoring. + OpenMonitoring *OpenMonitoringInfo + + // The connection string to use to connect to the Apache ZooKeeper cluster. + ZookeeperConnectString *string + + // The connection string to use to connect to the Apache ZooKeeper cluster on a TLS + // port. + ZookeeperConnectStringTls *string + + noSmithyDocumentSerde +} + +// Provisioned cluster request. +type ProvisionedRequest struct { + + // Information about the brokers. + // + // This member is required. + BrokerNodeGroupInfo *BrokerNodeGroupInfo + + // The Apache Kafka version that you want for the cluster. + // + // This member is required. + KafkaVersion *string + + // The number of broker nodes in the cluster. + // + // This member is required. + NumberOfBrokerNodes int32 + + // Includes all client authentication information. + ClientAuthentication *ClientAuthentication + + // Represents the configuration that you want Amazon MSK to use for the brokers in + // a cluster. + ConfigurationInfo *ConfigurationInfo + + // Includes all encryption-related information. + EncryptionInfo *EncryptionInfo + + // Specifies the level of monitoring for the MSK cluster. The possible values are + // DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION. + EnhancedMonitoring EnhancedMonitoring + + // Log delivery information for the cluster. + LoggingInfo *LoggingInfo + + // The settings for open monitoring. + OpenMonitoring *OpenMonitoringInfo + + noSmithyDocumentSerde +} + // Public access control for brokers. type PublicAccess struct { @@ -668,6 +791,52 @@ type Scram struct { noSmithyDocumentSerde } +// Serverless cluster. +type Serverless struct { + + // The configuration of the Amazon VPCs for the cluster. + // + // This member is required. + VpcConfigs []VpcConfig + + // Includes all client authentication information. + ClientAuthentication *ServerlessClientAuthentication + + noSmithyDocumentSerde +} + +// Includes all client authentication information. +type ServerlessClientAuthentication struct { + + // Details for ClientAuthentication using SASL. + Sasl *ServerlessSasl + + noSmithyDocumentSerde +} + +// Serverless cluster request. +type ServerlessRequest struct { + + // The configuration of the Amazon VPCs for the cluster. + // + // This member is required. + VpcConfigs []VpcConfig + + // Includes all client authentication information. + ClientAuthentication *ServerlessClientAuthentication + + noSmithyDocumentSerde +} + +// Details for client authentication using SASL. +type ServerlessSasl struct { + + // Indicates whether IAM access control is enabled. + Iam *Iam + + noSmithyDocumentSerde +} + type StateInfo struct { Code *string @@ -721,6 +890,20 @@ type UnprocessedScramSecret struct { noSmithyDocumentSerde } +// The configuration of the Amazon VPCs for the cluster. +type VpcConfig struct { + + // The IDs of the subnets associated with the cluster. + // + // This member is required. + SubnetIds []string + + // The IDs of the security groups associated with the cluster. + SecurityGroupIds []string + + noSmithyDocumentSerde +} + // Zookeeper node information. type ZookeeperNodeInfo struct { diff --git a/service/kafka/validators.go b/service/kafka/validators.go index c91c263bcb6..494f9d31165 100644 --- a/service/kafka/validators.go +++ b/service/kafka/validators.go @@ -70,6 +70,26 @@ func (m *validateOpCreateCluster) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpCreateClusterV2 struct { +} + +func (*validateOpCreateClusterV2) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateClusterV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateClusterV2Input) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateClusterV2Input(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateConfiguration struct { } @@ -170,6 +190,26 @@ func (m *validateOpDescribeClusterOperation) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpDescribeClusterV2 struct { +} + +func (*validateOpDescribeClusterV2) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeClusterV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeClusterV2Input) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeClusterV2Input(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeConfiguration struct { } @@ -582,6 +622,10 @@ func addOpCreateClusterValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateCluster{}, middleware.After) } +func addOpCreateClusterV2ValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateClusterV2{}, middleware.After) +} + func addOpCreateConfigurationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateConfiguration{}, middleware.After) } @@ -602,6 +646,10 @@ func addOpDescribeClusterOperationValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpDescribeClusterOperation{}, middleware.After) } +func addOpDescribeClusterV2ValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeClusterV2{}, middleware.After) +} + func addOpDescribeConfigurationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeConfiguration{}, middleware.After) } @@ -699,6 +747,23 @@ func validate__listOfBrokerEBSVolumeInfo(v []types.BrokerEBSVolumeInfo) error { } } +func validate__listOfVpcConfig(v []types.VpcConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListOfVpcConfig"} + for i := range v { + if err := validateVpcConfig(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateBrokerEBSVolumeInfo(v *types.BrokerEBSVolumeInfo) error { if v == nil { return nil @@ -914,6 +979,48 @@ func validatePrometheusInfo(v *types.PrometheusInfo) error { } } +func validateProvisionedRequest(v *types.ProvisionedRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProvisionedRequest"} + if v.BrokerNodeGroupInfo == nil { + invalidParams.Add(smithy.NewErrParamRequired("BrokerNodeGroupInfo")) + } else if v.BrokerNodeGroupInfo != nil { + if err := validateBrokerNodeGroupInfo(v.BrokerNodeGroupInfo); err != nil { + invalidParams.AddNested("BrokerNodeGroupInfo", err.(smithy.InvalidParamsError)) + } + } + if v.ConfigurationInfo != nil { + if err := validateConfigurationInfo(v.ConfigurationInfo); err != nil { + invalidParams.AddNested("ConfigurationInfo", err.(smithy.InvalidParamsError)) + } + } + if v.EncryptionInfo != nil { + if err := validateEncryptionInfo(v.EncryptionInfo); err != nil { + invalidParams.AddNested("EncryptionInfo", err.(smithy.InvalidParamsError)) + } + } + if v.OpenMonitoring != nil { + if err := validateOpenMonitoringInfo(v.OpenMonitoring); err != nil { + invalidParams.AddNested("OpenMonitoring", err.(smithy.InvalidParamsError)) + } + } + if v.KafkaVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("KafkaVersion")) + } + if v.LoggingInfo != nil { + if err := validateLoggingInfo(v.LoggingInfo); err != nil { + invalidParams.AddNested("LoggingInfo", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateS3(v *types.S3) error { if v == nil { return nil @@ -926,6 +1033,40 @@ func validateS3(v *types.S3) error { } } +func validateServerlessRequest(v *types.ServerlessRequest) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ServerlessRequest"} + if v.VpcConfigs == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcConfigs")) + } else if v.VpcConfigs != nil { + if err := validate__listOfVpcConfig(v.VpcConfigs); err != nil { + invalidParams.AddNested("VpcConfigs", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateVpcConfig(v *types.VpcConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VpcConfig"} + if v.SubnetIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetIds")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchAssociateScramSecretInput(v *BatchAssociateScramSecretInput) error { if v == nil { return nil @@ -1007,6 +1148,31 @@ func validateOpCreateClusterInput(v *CreateClusterInput) error { } } +func validateOpCreateClusterV2Input(v *CreateClusterV2Input) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateClusterV2Input"} + if v.ClusterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterName")) + } + if v.Provisioned != nil { + if err := validateProvisionedRequest(v.Provisioned); err != nil { + invalidParams.AddNested("Provisioned", err.(smithy.InvalidParamsError)) + } + } + if v.Serverless != nil { + if err := validateServerlessRequest(v.Serverless); err != nil { + invalidParams.AddNested("Serverless", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateConfigurationInput(v *CreateConfigurationInput) error { if v == nil { return nil @@ -1085,6 +1251,21 @@ func validateOpDescribeClusterOperationInput(v *DescribeClusterOperationInput) e } } +func validateOpDescribeClusterV2Input(v *DescribeClusterV2Input) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeClusterV2Input"} + if v.ClusterArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ClusterArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeConfigurationInput(v *DescribeConfigurationInput) error { if v == nil { return nil diff --git a/service/kendra/api_op_AssociateEntitiesToExperience.go b/service/kendra/api_op_AssociateEntitiesToExperience.go new file mode 100644 index 00000000000..46f0ca16afb --- /dev/null +++ b/service/kendra/api_op_AssociateEntitiesToExperience.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Grants users or groups in your Amazon Web Services SSO identity source access to +// your Amazon Kendra experience. You can create an Amazon Kendra experience such +// as a search application. For more information on creating a search application +// experience, see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) AssociateEntitiesToExperience(ctx context.Context, params *AssociateEntitiesToExperienceInput, optFns ...func(*Options)) (*AssociateEntitiesToExperienceOutput, error) { + if params == nil { + params = &AssociateEntitiesToExperienceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateEntitiesToExperience", params, optFns, c.addOperationAssociateEntitiesToExperienceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateEntitiesToExperienceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateEntitiesToExperienceInput struct { + + // Lists users or groups in your Amazon Web Services SSO identity source. + // + // This member is required. + EntityList []types.EntityConfiguration + + // The identifier of your Amazon Kendra experience. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + noSmithyDocumentSerde +} + +type AssociateEntitiesToExperienceOutput struct { + + // Lists the users or groups in your Amazon Web Services SSO identity source that + // failed to properly configure with your Amazon Kendra experience. + FailedEntityList []types.FailedEntity + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateEntitiesToExperienceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociateEntitiesToExperience{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociateEntitiesToExperience{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateEntitiesToExperienceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateEntitiesToExperience(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateEntitiesToExperience(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "AssociateEntitiesToExperience", + } +} diff --git a/service/kendra/api_op_AssociatePersonasToEntities.go b/service/kendra/api_op_AssociatePersonasToEntities.go new file mode 100644 index 00000000000..c2e2b87e848 --- /dev/null +++ b/service/kendra/api_op_AssociatePersonasToEntities.go @@ -0,0 +1,141 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Defines the specific permissions of users or groups in your Amazon Web Services +// SSO identity source with access to your Amazon Kendra experience. You can create +// an Amazon Kendra experience such as a search application. For more information +// on creating a search application experience, see Building a search experience +// with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) AssociatePersonasToEntities(ctx context.Context, params *AssociatePersonasToEntitiesInput, optFns ...func(*Options)) (*AssociatePersonasToEntitiesOutput, error) { + if params == nil { + params = &AssociatePersonasToEntitiesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociatePersonasToEntities", params, optFns, c.addOperationAssociatePersonasToEntitiesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociatePersonasToEntitiesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociatePersonasToEntitiesInput struct { + + // The identifier of your Amazon Kendra experience. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + // The personas that define the specific permissions of users or groups in your + // Amazon Web Services SSO identity source. The available personas or access roles + // are Owner and Viewer. For more information on these personas, see Providing + // access to your search page + // (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html#access-search-experience). + // + // This member is required. + Personas []types.EntityPersonaConfiguration + + noSmithyDocumentSerde +} + +type AssociatePersonasToEntitiesOutput struct { + + // Lists the users or groups in your Amazon Web Services SSO identity source that + // failed to properly configure with your Amazon Kendra experience. + FailedEntityList []types.FailedEntity + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociatePersonasToEntitiesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpAssociatePersonasToEntities{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAssociatePersonasToEntities{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociatePersonasToEntitiesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociatePersonasToEntities(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociatePersonasToEntities(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "AssociatePersonasToEntities", + } +} diff --git a/service/kendra/api_op_BatchPutDocument.go b/service/kendra/api_op_BatchPutDocument.go index 37abd117c5f..a8554229131 100644 --- a/service/kendra/api_op_BatchPutDocument.go +++ b/service/kendra/api_op_BatchPutDocument.go @@ -63,6 +63,14 @@ type BatchPutDocumentInput struct { // This member is required. IndexId *string + // Configuration information for altering your document metadata and content during + // the document ingestion process when you use the BatchPutDocument operation. For + // more information on how to create, modify and delete document metadata, or make + // other content alterations when you ingest documents into Amazon Kendra, see + // Customizing document metadata during the ingestion process + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). + CustomDocumentEnrichmentConfiguration *types.CustomDocumentEnrichmentConfiguration + // The Amazon Resource Name (ARN) of a role that is allowed to run the // BatchPutDocument operation. For more information, see IAM Roles for Amazon // Kendra (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). diff --git a/service/kendra/api_op_ClearQuerySuggestions.go b/service/kendra/api_op_ClearQuerySuggestions.go index db123c55ca4..846b562877f 100644 --- a/service/kendra/api_op_ClearQuerySuggestions.go +++ b/service/kendra/api_op_ClearQuerySuggestions.go @@ -15,7 +15,8 @@ import ( // Amazon Kendra learns new suggestions based on new queries added to the query log // from the time you cleared suggestions. If you do not see any new suggestions, // then please allow Amazon Kendra to collect enough queries to learn new -// suggestions. +// suggestions. ClearQuerySuggestions is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) ClearQuerySuggestions(ctx context.Context, params *ClearQuerySuggestionsInput, optFns ...func(*Options)) (*ClearQuerySuggestionsOutput, error) { if params == nil { params = &ClearQuerySuggestionsInput{} diff --git a/service/kendra/api_op_CreateDataSource.go b/service/kendra/api_op_CreateDataSource.go index b99e36456a1..29ca5a15c39 100644 --- a/service/kendra/api_op_CreateDataSource.go +++ b/service/kendra/api_op_CreateDataSource.go @@ -16,7 +16,11 @@ import ( // specify a name, data source connector type and description for your data source. // You also specify configuration information for the data source connector. // CreateDataSource is a synchronous operation. The operation returns 200 if the -// data source was successfully created. Otherwise, an exception is raised. +// data source was successfully created. Otherwise, an exception is raised. Amazon +// S3 and custom +// (https://docs.aws.amazon.com/kendra/latest/dg/data-source-custom.html) data +// sources are the only supported data sources in the Amazon Web Services GovCloud +// (US-West) region. func (c *Client) CreateDataSource(ctx context.Context, params *CreateDataSourceInput, optFns ...func(*Options)) (*CreateDataSourceOutput, error) { if params == nil { params = &CreateDataSourceInput{} @@ -61,6 +65,14 @@ type CreateDataSourceInput struct { // exception. The Configuration parameter is required for all other data sources. Configuration *types.DataSourceConfiguration + // Configuration information for altering document metadata and content during the + // document ingestion process when you create a data source. For more information + // on how to create, modify and delete document metadata, or make other content + // alterations when you ingest documents into Amazon Kendra, see Customizing + // document metadata during the ingestion process + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). + CustomDocumentEnrichmentConfiguration *types.CustomDocumentEnrichmentConfiguration + // A description for the data source. Description *string diff --git a/service/kendra/api_op_CreateExperience.go b/service/kendra/api_op_CreateExperience.go new file mode 100644 index 00000000000..f42632cc193 --- /dev/null +++ b/service/kendra/api_op_CreateExperience.go @@ -0,0 +1,189 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an Amazon Kendra experience such as a search application. For more +// information on creating a search application experience, see Building a search +// experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) CreateExperience(ctx context.Context, params *CreateExperienceInput, optFns ...func(*Options)) (*CreateExperienceOutput, error) { + if params == nil { + params = &CreateExperienceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateExperience", params, optFns, c.addOperationCreateExperienceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateExperienceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateExperienceInput struct { + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + // A name for your Amazon Kendra experience. + // + // This member is required. + Name *string + + // A token that you provide to identify the request to create your Amazon Kendra + // experience. Multiple calls to the CreateExperience operation with the same + // client token creates only one Amazon Kendra experience. + ClientToken *string + + // Provides the configuration information for your Amazon Kendra experience. This + // includes ContentSourceConfiguration, which specifies the data source IDs and/or + // FAQ IDs, and UserIdentityConfiguration, which specifies the user or group + // information to grant access to your Amazon Kendra experience. + Configuration *types.ExperienceConfiguration + + // A description for your Amazon Kendra experience. + Description *string + + // The Amazon Resource Name (ARN) of a role with permission to access Query + // operations, QuerySuggestions operations, SubmitFeedback operations, and Amazon + // Web Services SSO that stores your user and group information. For more + // information, see IAM roles for Amazon Kendra + // (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). + RoleArn *string + + noSmithyDocumentSerde +} + +type CreateExperienceOutput struct { + + // The identifier for your created Amazon Kendra experience. + // + // This member is required. + Id *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateExperienceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateExperience{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateExperience{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateExperienceMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateExperienceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateExperience(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateExperience struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateExperience) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateExperienceInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateExperienceMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateExperience{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateExperience(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "CreateExperience", + } +} diff --git a/service/kendra/api_op_CreateIndex.go b/service/kendra/api_op_CreateIndex.go index cd0c7331970..5c37b17233b 100644 --- a/service/kendra/api_op_CreateIndex.go +++ b/service/kendra/api_op_CreateIndex.go @@ -81,8 +81,9 @@ type CreateIndexInput struct { // displayable. UserContextPolicy types.UserContextPolicy - // Enables fetching access levels of groups and users from an AWS Single Sign-On - // identity source. To configure this, see UserGroupResolutionConfiguration + // Enables fetching access levels of groups and users from an Amazon Web Services + // Single Sign On identity source. To configure this, see + // UserGroupResolutionConfiguration // (https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html). UserGroupResolutionConfiguration *types.UserGroupResolutionConfiguration diff --git a/service/kendra/api_op_CreateQuerySuggestionsBlockList.go b/service/kendra/api_op_CreateQuerySuggestionsBlockList.go index e5f9c2fefe9..c38f3279849 100644 --- a/service/kendra/api_op_CreateQuerySuggestionsBlockList.go +++ b/service/kendra/api_op_CreateQuerySuggestionsBlockList.go @@ -19,6 +19,8 @@ import ( // or phrase on a separate line. For information on the current quota limits for // block lists, see Quotas for Amazon Kendra // (https://docs.aws.amazon.com/kendra/latest/dg/quotas.html). +// CreateQuerySuggestionsBlockList is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) CreateQuerySuggestionsBlockList(ctx context.Context, params *CreateQuerySuggestionsBlockListInput, optFns ...func(*Options)) (*CreateQuerySuggestionsBlockListOutput, error) { if params == nil { params = &CreateQuerySuggestionsBlockListInput{} diff --git a/service/kendra/api_op_CreateThesaurus.go b/service/kendra/api_op_CreateThesaurus.go index 8991c6bfdb9..07e619bb051 100644 --- a/service/kendra/api_op_CreateThesaurus.go +++ b/service/kendra/api_op_CreateThesaurus.go @@ -41,8 +41,8 @@ type CreateThesaurusInput struct { // This member is required. Name *string - // An AWS Identity and Access Management (IAM) role that gives Amazon Kendra - // permissions to access thesaurus file specified in SourceS3Path. + // An IAM role that gives Amazon Kendra permissions to access thesaurus file + // specified in SourceS3Path. // // This member is required. RoleArn *string diff --git a/service/kendra/api_op_DeleteExperience.go b/service/kendra/api_op_DeleteExperience.go new file mode 100644 index 00000000000..8e975e9f620 --- /dev/null +++ b/service/kendra/api_op_DeleteExperience.go @@ -0,0 +1,125 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes your Amazon Kendra experience such as a search application. For more +// information on creating a search application experience, see Building a search +// experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) DeleteExperience(ctx context.Context, params *DeleteExperienceInput, optFns ...func(*Options)) (*DeleteExperienceOutput, error) { + if params == nil { + params = &DeleteExperienceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteExperience", params, optFns, c.addOperationDeleteExperienceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteExperienceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteExperienceInput struct { + + // The identifier of your Amazon Kendra experience you want to delete. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience you want to + // delete. + // + // This member is required. + IndexId *string + + noSmithyDocumentSerde +} + +type DeleteExperienceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteExperienceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteExperience{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteExperience{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteExperienceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteExperience(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteExperience(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "DeleteExperience", + } +} diff --git a/service/kendra/api_op_DeletePrincipalMapping.go b/service/kendra/api_op_DeletePrincipalMapping.go index 8d737aa52d7..bfbaf23632c 100644 --- a/service/kendra/api_op_DeletePrincipalMapping.go +++ b/service/kendra/api_op_DeletePrincipalMapping.go @@ -20,6 +20,8 @@ import ( // updated list of users or sub groups that belong to the "Engineering" group when // calling PutPrincipalMapping. You can update your internal list of users or sub // groups and input this list when calling PutPrincipalMapping. +// DeletePrincipalMapping is currently not supported in the Amazon Web Services +// GovCloud (US-West) region. func (c *Client) DeletePrincipalMapping(ctx context.Context, params *DeletePrincipalMappingInput, optFns ...func(*Options)) (*DeletePrincipalMappingOutput, error) { if params == nil { params = &DeletePrincipalMappingInput{} diff --git a/service/kendra/api_op_DeleteQuerySuggestionsBlockList.go b/service/kendra/api_op_DeleteQuerySuggestionsBlockList.go index 31a5fc8b579..37939cd94ef 100644 --- a/service/kendra/api_op_DeleteQuerySuggestionsBlockList.go +++ b/service/kendra/api_op_DeleteQuerySuggestionsBlockList.go @@ -13,6 +13,8 @@ import ( // Deletes a block list used for query suggestions for an index. A deleted block // list might not take effect right away. Amazon Kendra needs to refresh the entire // suggestions list to add back the queries that were previously blocked. +// DeleteQuerySuggestionsBlockList is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) DeleteQuerySuggestionsBlockList(ctx context.Context, params *DeleteQuerySuggestionsBlockListInput, optFns ...func(*Options)) (*DeleteQuerySuggestionsBlockListOutput, error) { if params == nil { params = &DeleteQuerySuggestionsBlockListInput{} diff --git a/service/kendra/api_op_DescribeDataSource.go b/service/kendra/api_op_DescribeDataSource.go index aad606c9c9c..4478a854785 100644 --- a/service/kendra/api_op_DescribeDataSource.go +++ b/service/kendra/api_op_DescribeDataSource.go @@ -53,6 +53,14 @@ type DescribeDataSourceOutput struct { // The Unix timestamp of when the data source was created. CreatedAt *time.Time + // Configuration information for altering document metadata and content during the + // document ingestion process when you describe a data source. For more information + // on how to create, modify and delete document metadata, or make other content + // alterations when you ingest documents into Amazon Kendra, see Customizing + // document metadata during the ingestion process + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). + CustomDocumentEnrichmentConfiguration *types.CustomDocumentEnrichmentConfiguration + // The description of the data source. Description *string diff --git a/service/kendra/api_op_DescribeExperience.go b/service/kendra/api_op_DescribeExperience.go new file mode 100644 index 00000000000..e94fad9393a --- /dev/null +++ b/service/kendra/api_op_DescribeExperience.go @@ -0,0 +1,169 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Gets information about your Amazon Kendra experience such as a search +// application. For more information on creating a search application experience, +// see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) DescribeExperience(ctx context.Context, params *DescribeExperienceInput, optFns ...func(*Options)) (*DescribeExperienceOutput, error) { + if params == nil { + params = &DescribeExperienceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeExperience", params, optFns, c.addOperationDescribeExperienceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeExperienceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeExperienceInput struct { + + // The identifier of your Amazon Kendra experience you want to get information on. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience you want to get + // information on. + // + // This member is required. + IndexId *string + + noSmithyDocumentSerde +} + +type DescribeExperienceOutput struct { + + // Shows the configuration information for your Amazon Kendra experience. This + // includes ContentSourceConfiguration, which specifies the data source IDs and/or + // FAQ IDs, and UserIdentityConfiguration, which specifies the user or group + // information to grant access to your Amazon Kendra experience. + Configuration *types.ExperienceConfiguration + + // Shows the date-time your Amazon Kendra experience was created. + CreatedAt *time.Time + + // Shows the description for your Amazon Kendra experience. + Description *string + + // Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique + // and fully hosted by Amazon Web Services. + Endpoints []types.ExperienceEndpoint + + // The reason your Amazon Kendra experience could not properly process. + ErrorMessage *string + + // Shows the identifier of your Amazon Kendra experience. + Id *string + + // Shows the identifier of the index for your Amazon Kendra experience. + IndexId *string + + // Shows the name of your Amazon Kendra experience. + Name *string + + // Shows the Amazon Resource Name (ARN) of a role with permission to access Query + // operations, QuerySuggestions operations, SubmitFeedback operations, and Amazon + // Web Services SSO that stores your user and group information. + RoleArn *string + + // The current processing status of your Amazon Kendra experience. When the status + // is ACTIVE, your Amazon Kendra experience is ready to use. When the status is + // FAILED, the ErrorMessage field contains the reason that this failed. + Status types.ExperienceStatus + + // Shows the date-time your Amazon Kendra experience was last updated. + UpdatedAt *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeExperienceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeExperience{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeExperience{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeExperienceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeExperience(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeExperience(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "DescribeExperience", + } +} diff --git a/service/kendra/api_op_DescribeIndex.go b/service/kendra/api_op_DescribeIndex.go index be2b4a2fdd4..8f7c04c030f 100644 --- a/service/kendra/api_op_DescribeIndex.go +++ b/service/kendra/api_op_DescribeIndex.go @@ -93,7 +93,7 @@ type DescribeIndexOutput struct { UserContextPolicy types.UserContextPolicy // Shows whether you have enabled the configuration for fetching access levels of - // groups and users from an AWS Single Sign-On identity source. + // groups and users from an Amazon Web Services Single Sign On identity source. UserGroupResolutionConfiguration *types.UserGroupResolutionConfiguration // The user token configuration for the Amazon Kendra index. diff --git a/service/kendra/api_op_DescribePrincipalMapping.go b/service/kendra/api_op_DescribePrincipalMapping.go index ca4b687d5b5..8c50a4dd927 100644 --- a/service/kendra/api_op_DescribePrincipalMapping.go +++ b/service/kendra/api_op_DescribePrincipalMapping.go @@ -16,6 +16,8 @@ import ( // or yet to be processed, when actions were last updated, when actions were // received by Amazon Kendra, the latest action that should process and apply after // other actions, and useful error messages if an action could not be processed. +// DescribePrincipalMapping is currently not supported in the Amazon Web Services +// GovCloud (US-West) region. func (c *Client) DescribePrincipalMapping(ctx context.Context, params *DescribePrincipalMappingInput, optFns ...func(*Options)) (*DescribePrincipalMappingOutput, error) { if params == nil { params = &DescribePrincipalMappingInput{} diff --git a/service/kendra/api_op_DescribeQuerySuggestionsBlockList.go b/service/kendra/api_op_DescribeQuerySuggestionsBlockList.go index 3cd0d3061ee..0d9edbef3f2 100644 --- a/service/kendra/api_op_DescribeQuerySuggestionsBlockList.go +++ b/service/kendra/api_op_DescribeQuerySuggestionsBlockList.go @@ -14,6 +14,8 @@ import ( // Describes a block list used for query suggestions for an index. This is used to // check the current settings that are applied to a block list. +// DescribeQuerySuggestionsBlockList is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) DescribeQuerySuggestionsBlockList(ctx context.Context, params *DescribeQuerySuggestionsBlockListInput, optFns ...func(*Options)) (*DescribeQuerySuggestionsBlockListOutput, error) { if params == nil { params = &DescribeQuerySuggestionsBlockListInput{} diff --git a/service/kendra/api_op_DescribeQuerySuggestionsConfig.go b/service/kendra/api_op_DescribeQuerySuggestionsConfig.go index c7f351c5410..b3612c380fc 100644 --- a/service/kendra/api_op_DescribeQuerySuggestionsConfig.go +++ b/service/kendra/api_op_DescribeQuerySuggestionsConfig.go @@ -14,6 +14,8 @@ import ( // Describes the settings of query suggestions for an index. This is used to check // the current settings applied to query suggestions. +// DescribeQuerySuggestionsConfig is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) DescribeQuerySuggestionsConfig(ctx context.Context, params *DescribeQuerySuggestionsConfigInput, optFns ...func(*Options)) (*DescribeQuerySuggestionsConfigOutput, error) { if params == nil { params = &DescribeQuerySuggestionsConfigInput{} diff --git a/service/kendra/api_op_DescribeThesaurus.go b/service/kendra/api_op_DescribeThesaurus.go index 07c6d09720c..e0a129911a2 100644 --- a/service/kendra/api_op_DescribeThesaurus.go +++ b/service/kendra/api_op_DescribeThesaurus.go @@ -67,8 +67,8 @@ type DescribeThesaurusOutput struct { // The thesaurus name. Name *string - // An AWS Identity and Access Management (IAM) role that gives Amazon Kendra - // permissions to access thesaurus file specified in SourceS3Path. + // An IAM role that gives Amazon Kendra permissions to access thesaurus file + // specified in SourceS3Path. RoleArn *string // Information required to find a specific file in an Amazon S3 bucket. diff --git a/service/kendra/api_op_DisassociateEntitiesFromExperience.go b/service/kendra/api_op_DisassociateEntitiesFromExperience.go new file mode 100644 index 00000000000..88c0a487e95 --- /dev/null +++ b/service/kendra/api_op_DisassociateEntitiesFromExperience.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Prevents users or groups in your Amazon Web Services SSO identity source from +// accessing your Amazon Kendra experience. You can create an Amazon Kendra +// experience such as a search application. For more information on creating a +// search application experience, see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) DisassociateEntitiesFromExperience(ctx context.Context, params *DisassociateEntitiesFromExperienceInput, optFns ...func(*Options)) (*DisassociateEntitiesFromExperienceOutput, error) { + if params == nil { + params = &DisassociateEntitiesFromExperienceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateEntitiesFromExperience", params, optFns, c.addOperationDisassociateEntitiesFromExperienceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateEntitiesFromExperienceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateEntitiesFromExperienceInput struct { + + // Lists users or groups in your Amazon Web Services SSO identity source. + // + // This member is required. + EntityList []types.EntityConfiguration + + // The identifier of your Amazon Kendra experience. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + noSmithyDocumentSerde +} + +type DisassociateEntitiesFromExperienceOutput struct { + + // Lists the users or groups in your Amazon Web Services SSO identity source that + // failed to properly remove access to your Amazon Kendra experience. + FailedEntityList []types.FailedEntity + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateEntitiesFromExperienceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociateEntitiesFromExperience{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociateEntitiesFromExperience{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateEntitiesFromExperienceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateEntitiesFromExperience(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateEntitiesFromExperience(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "DisassociateEntitiesFromExperience", + } +} diff --git a/service/kendra/api_op_DisassociatePersonasFromEntities.go b/service/kendra/api_op_DisassociatePersonasFromEntities.go new file mode 100644 index 00000000000..e9198107470 --- /dev/null +++ b/service/kendra/api_op_DisassociatePersonasFromEntities.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes the specific permissions of users or groups in your Amazon Web Services +// SSO identity source with access to your Amazon Kendra experience. You can create +// an Amazon Kendra experience such as a search application. For more information +// on creating a search application experience, see Building a search experience +// with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) DisassociatePersonasFromEntities(ctx context.Context, params *DisassociatePersonasFromEntitiesInput, optFns ...func(*Options)) (*DisassociatePersonasFromEntitiesOutput, error) { + if params == nil { + params = &DisassociatePersonasFromEntitiesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociatePersonasFromEntities", params, optFns, c.addOperationDisassociatePersonasFromEntitiesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociatePersonasFromEntitiesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociatePersonasFromEntitiesInput struct { + + // The identifiers of users or groups in your Amazon Web Services SSO identity + // source. For example, user IDs could be user emails. + // + // This member is required. + EntityIds []string + + // The identifier of your Amazon Kendra experience. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + noSmithyDocumentSerde +} + +type DisassociatePersonasFromEntitiesOutput struct { + + // Lists the users or groups in your Amazon Web Services SSO identity source that + // failed to properly remove access to your Amazon Kendra experience. + FailedEntityList []types.FailedEntity + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociatePersonasFromEntitiesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisassociatePersonasFromEntities{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisassociatePersonasFromEntities{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociatePersonasFromEntitiesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociatePersonasFromEntities(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociatePersonasFromEntities(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "DisassociatePersonasFromEntities", + } +} diff --git a/service/kendra/api_op_GetQuerySuggestions.go b/service/kendra/api_op_GetQuerySuggestions.go index bd86592dce8..0018b0834da 100644 --- a/service/kendra/api_op_GetQuerySuggestions.go +++ b/service/kendra/api_op_GetQuerySuggestions.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Fetches the queries that are suggested to your users. +// Fetches the queries that are suggested to your users. GetQuerySuggestions is +// currently not supported in the Amazon Web Services GovCloud (US-West) region. func (c *Client) GetQuerySuggestions(ctx context.Context, params *GetQuerySuggestionsInput, optFns ...func(*Options)) (*GetQuerySuggestionsOutput, error) { if params == nil { params = &GetQuerySuggestionsInput{} diff --git a/service/kendra/api_op_GetSnapshots.go b/service/kendra/api_op_GetSnapshots.go new file mode 100644 index 00000000000..6f575bc7439 --- /dev/null +++ b/service/kendra/api_op_GetSnapshots.go @@ -0,0 +1,177 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves search metrics data. The data provides a snapshot of how your users +// interact with your search application and how effective the application is. +func (c *Client) GetSnapshots(ctx context.Context, params *GetSnapshotsInput, optFns ...func(*Options)) (*GetSnapshotsOutput, error) { + if params == nil { + params = &GetSnapshotsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSnapshots", params, optFns, c.addOperationGetSnapshotsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSnapshotsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSnapshotsInput struct { + + // The identifier of the index to get search metrics data. + // + // This member is required. + IndexId *string + + // The time interval or time window to get search metrics data. The time interval + // uses the time zone of your index. You can view data in the following time + // windows: + // + // * THIS_WEEK: The current week, starting on the Sunday and ending on + // the day before the current date. + // + // * ONE_WEEK_AGO: The previous week, starting on + // the Sunday and ending on the following Saturday. + // + // * TWO_WEEKS_AGO: The week + // before the previous week, starting on the Sunday and ending on the following + // Saturday. + // + // * THIS_MONTH: The current month, starting on the first day of the + // month and ending on the day before the current date. + // + // * ONE_MONTH_AGO: The + // previous month, starting on the first day of the month and ending on the last + // day of the month. + // + // * TWO_MONTHS_AGO: The month before the previous month, + // starting on the first day of the month and ending on last day of the month. + // + // This member is required. + Interval types.Interval + + // The metric you want to retrieve. You can specify only one metric per call. For + // more information about the metrics you can view, see Gaining insights with + // search analytics + // (https://docs.aws.amazon.com/kendra/latest/dg/search-analytics.html). + // + // This member is required. + MetricType types.MetricType + + // The maximum number of returned data for the metric. + MaxResults *int32 + + // If the previous response was incomplete (because there is more data to + // retrieve), Amazon Kendra returns a pagination token in the response. You can use + // this pagination token to retrieve the next set of search metrics data. + NextToken *string + + noSmithyDocumentSerde +} + +type GetSnapshotsOutput struct { + + // If the response is truncated, Amazon Kendra returns this token, which you can + // use in a later request to retrieve the next set of search metrics data. + NextToken *string + + // The date-time for the beginning and end of the time window for the search + // metrics data. + SnapShotTimeFilter *types.TimeRange + + // The search metrics data. The data returned depends on the metric type you + // requested. + SnapshotsData [][]string + + // The column headers for the search metrics data. + SnapshotsDataHeader []string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetSnapshots{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetSnapshots{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetSnapshotsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSnapshots(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetSnapshots(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "GetSnapshots", + } +} diff --git a/service/kendra/api_op_ListEntityPersonas.go b/service/kendra/api_op_ListEntityPersonas.go new file mode 100644 index 00000000000..373215770e4 --- /dev/null +++ b/service/kendra/api_op_ListEntityPersonas.go @@ -0,0 +1,227 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists specific permissions of users and groups with access to your Amazon Kendra +// experience. +func (c *Client) ListEntityPersonas(ctx context.Context, params *ListEntityPersonasInput, optFns ...func(*Options)) (*ListEntityPersonasOutput, error) { + if params == nil { + params = &ListEntityPersonasInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListEntityPersonas", params, optFns, c.addOperationListEntityPersonasMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListEntityPersonasOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListEntityPersonasInput struct { + + // The identifier of your Amazon Kendra experience. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + // The maximum number of returned users or groups. + MaxResults *int32 + + // If the previous response was incomplete (because there is more data to + // retrieve), Amazon Kendra returns a pagination token in the response. You can use + // this pagination token to retrieve the next set of users or groups. + NextToken *string + + noSmithyDocumentSerde +} + +type ListEntityPersonasOutput struct { + + // If the response is truncated, Amazon Kendra returns this token, which you can + // use in a later request to retrieve the next set of users or groups. + NextToken *string + + // An array of summary information for one or more users or groups. + SummaryItems []types.PersonasSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListEntityPersonasMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListEntityPersonas{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListEntityPersonas{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListEntityPersonasValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListEntityPersonas(options.Region), middleware.Before); 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 + } + return nil +} + +// ListEntityPersonasAPIClient is a client that implements the ListEntityPersonas +// operation. +type ListEntityPersonasAPIClient interface { + ListEntityPersonas(context.Context, *ListEntityPersonasInput, ...func(*Options)) (*ListEntityPersonasOutput, error) +} + +var _ ListEntityPersonasAPIClient = (*Client)(nil) + +// ListEntityPersonasPaginatorOptions is the paginator options for +// ListEntityPersonas +type ListEntityPersonasPaginatorOptions struct { + // The maximum number of returned users or groups. + 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 +} + +// ListEntityPersonasPaginator is a paginator for ListEntityPersonas +type ListEntityPersonasPaginator struct { + options ListEntityPersonasPaginatorOptions + client ListEntityPersonasAPIClient + params *ListEntityPersonasInput + nextToken *string + firstPage bool +} + +// NewListEntityPersonasPaginator returns a new ListEntityPersonasPaginator +func NewListEntityPersonasPaginator(client ListEntityPersonasAPIClient, params *ListEntityPersonasInput, optFns ...func(*ListEntityPersonasPaginatorOptions)) *ListEntityPersonasPaginator { + if params == nil { + params = &ListEntityPersonasInput{} + } + + options := ListEntityPersonasPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListEntityPersonasPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListEntityPersonasPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListEntityPersonas page. +func (p *ListEntityPersonasPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListEntityPersonasOutput, 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.ListEntityPersonas(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_opListEntityPersonas(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "ListEntityPersonas", + } +} diff --git a/service/kendra/api_op_ListExperienceEntities.go b/service/kendra/api_op_ListExperienceEntities.go new file mode 100644 index 00000000000..05115dfc7de --- /dev/null +++ b/service/kendra/api_op_ListExperienceEntities.go @@ -0,0 +1,215 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists users or groups in your Amazon Web Services SSO identity source that are +// granted access to your Amazon Kendra experience. You can create an Amazon Kendra +// experience such as a search application. For more information on creating a +// search application experience, see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) ListExperienceEntities(ctx context.Context, params *ListExperienceEntitiesInput, optFns ...func(*Options)) (*ListExperienceEntitiesOutput, error) { + if params == nil { + params = &ListExperienceEntitiesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListExperienceEntities", params, optFns, c.addOperationListExperienceEntitiesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListExperienceEntitiesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListExperienceEntitiesInput struct { + + // The identifier of your Amazon Kendra experience. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + // If the previous response was incomplete (because there is more data to + // retrieve), Amazon Kendra returns a pagination token in the response. You can use + // this pagination token to retrieve the next set of users or groups. + NextToken *string + + noSmithyDocumentSerde +} + +type ListExperienceEntitiesOutput struct { + + // If the response is truncated, Amazon Kendra returns this token, which you can + // use in a later request to retrieve the next set of users or groups. + NextToken *string + + // An array of summary information for one or more users or groups. + SummaryItems []types.ExperienceEntitiesSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListExperienceEntitiesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListExperienceEntities{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListExperienceEntities{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListExperienceEntitiesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListExperienceEntities(options.Region), middleware.Before); 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 + } + return nil +} + +// ListExperienceEntitiesAPIClient is a client that implements the +// ListExperienceEntities operation. +type ListExperienceEntitiesAPIClient interface { + ListExperienceEntities(context.Context, *ListExperienceEntitiesInput, ...func(*Options)) (*ListExperienceEntitiesOutput, error) +} + +var _ ListExperienceEntitiesAPIClient = (*Client)(nil) + +// ListExperienceEntitiesPaginatorOptions is the paginator options for +// ListExperienceEntities +type ListExperienceEntitiesPaginatorOptions struct { + // 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 +} + +// ListExperienceEntitiesPaginator is a paginator for ListExperienceEntities +type ListExperienceEntitiesPaginator struct { + options ListExperienceEntitiesPaginatorOptions + client ListExperienceEntitiesAPIClient + params *ListExperienceEntitiesInput + nextToken *string + firstPage bool +} + +// NewListExperienceEntitiesPaginator returns a new ListExperienceEntitiesPaginator +func NewListExperienceEntitiesPaginator(client ListExperienceEntitiesAPIClient, params *ListExperienceEntitiesInput, optFns ...func(*ListExperienceEntitiesPaginatorOptions)) *ListExperienceEntitiesPaginator { + if params == nil { + params = &ListExperienceEntitiesInput{} + } + + options := ListExperienceEntitiesPaginatorOptions{} + + for _, fn := range optFns { + fn(&options) + } + + return &ListExperienceEntitiesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListExperienceEntitiesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListExperienceEntities page. +func (p *ListExperienceEntitiesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListExperienceEntitiesOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + result, err := p.client.ListExperienceEntities(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_opListExperienceEntities(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "ListExperienceEntities", + } +} diff --git a/service/kendra/api_op_ListExperiences.go b/service/kendra/api_op_ListExperiences.go new file mode 100644 index 00000000000..7cb4b1a36f3 --- /dev/null +++ b/service/kendra/api_op_ListExperiences.go @@ -0,0 +1,223 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists one or more Amazon Kendra experiences. You can create an Amazon Kendra +// experience such as a search application. For more information on creating a +// search application experience, see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) ListExperiences(ctx context.Context, params *ListExperiencesInput, optFns ...func(*Options)) (*ListExperiencesOutput, error) { + if params == nil { + params = &ListExperiencesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListExperiences", params, optFns, c.addOperationListExperiencesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListExperiencesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListExperiencesInput struct { + + // The identifier of the index for your Amazon Kendra experience. + // + // This member is required. + IndexId *string + + // The maximum number of returned Amazon Kendra experiences. + MaxResults *int32 + + // If the previous response was incomplete (because there is more data to + // retrieve), Amazon Kendra returns a pagination token in the response. You can use + // this pagination token to retrieve the next set of Amazon Kendra experiences. + NextToken *string + + noSmithyDocumentSerde +} + +type ListExperiencesOutput struct { + + // If the response is truncated, Amazon Kendra returns this token, which you can + // use in a later request to retrieve the next set of Amazon Kendra experiences. + NextToken *string + + // An array of summary information for one or more Amazon Kendra experiences. + SummaryItems []types.ExperiencesSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListExperiencesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListExperiences{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListExperiences{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListExperiencesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListExperiences(options.Region), middleware.Before); 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 + } + return nil +} + +// ListExperiencesAPIClient is a client that implements the ListExperiences +// operation. +type ListExperiencesAPIClient interface { + ListExperiences(context.Context, *ListExperiencesInput, ...func(*Options)) (*ListExperiencesOutput, error) +} + +var _ ListExperiencesAPIClient = (*Client)(nil) + +// ListExperiencesPaginatorOptions is the paginator options for ListExperiences +type ListExperiencesPaginatorOptions struct { + // The maximum number of returned Amazon Kendra experiences. + 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 +} + +// ListExperiencesPaginator is a paginator for ListExperiences +type ListExperiencesPaginator struct { + options ListExperiencesPaginatorOptions + client ListExperiencesAPIClient + params *ListExperiencesInput + nextToken *string + firstPage bool +} + +// NewListExperiencesPaginator returns a new ListExperiencesPaginator +func NewListExperiencesPaginator(client ListExperiencesAPIClient, params *ListExperiencesInput, optFns ...func(*ListExperiencesPaginatorOptions)) *ListExperiencesPaginator { + if params == nil { + params = &ListExperiencesInput{} + } + + options := ListExperiencesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListExperiencesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListExperiencesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListExperiences page. +func (p *ListExperiencesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListExperiencesOutput, 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.ListExperiences(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_opListExperiences(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "ListExperiences", + } +} diff --git a/service/kendra/api_op_ListGroupsOlderThanOrderingId.go b/service/kendra/api_op_ListGroupsOlderThanOrderingId.go index 5008c1a9ec5..8b4dc96a500 100644 --- a/service/kendra/api_op_ListGroupsOlderThanOrderingId.go +++ b/service/kendra/api_op_ListGroupsOlderThanOrderingId.go @@ -12,7 +12,8 @@ import ( ) // Provides a list of groups that are mapped to users before a given ordering or -// timestamp identifier. +// timestamp identifier. ListGroupsOlderThanOrderingId is currently not supported +// in the Amazon Web Services GovCloud (US-West) region. func (c *Client) ListGroupsOlderThanOrderingId(ctx context.Context, params *ListGroupsOlderThanOrderingIdInput, optFns ...func(*Options)) (*ListGroupsOlderThanOrderingIdOutput, error) { if params == nil { params = &ListGroupsOlderThanOrderingIdInput{} diff --git a/service/kendra/api_op_ListQuerySuggestionsBlockLists.go b/service/kendra/api_op_ListQuerySuggestionsBlockLists.go index 0ce7b2b5e4c..abf98259b29 100644 --- a/service/kendra/api_op_ListQuerySuggestionsBlockLists.go +++ b/service/kendra/api_op_ListQuerySuggestionsBlockLists.go @@ -14,6 +14,8 @@ import ( // Lists the block lists used for query suggestions for an index. For information // on the current quota limits for block lists, see Quotas for Amazon Kendra // (https://docs.aws.amazon.com/kendra/latest/dg/quotas.html). +// ListQuerySuggestionsBlockLists is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) ListQuerySuggestionsBlockLists(ctx context.Context, params *ListQuerySuggestionsBlockListsInput, optFns ...func(*Options)) (*ListQuerySuggestionsBlockListsOutput, error) { if params == nil { params = &ListQuerySuggestionsBlockListsInput{} diff --git a/service/kendra/api_op_PutPrincipalMapping.go b/service/kendra/api_op_PutPrincipalMapping.go index ad1c355908c..f6df9bd59a2 100644 --- a/service/kendra/api_op_PutPrincipalMapping.go +++ b/service/kendra/api_op_PutPrincipalMapping.go @@ -23,7 +23,8 @@ import ( // see Filtering on user context // (https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html). If more // than five PUT actions for a group are currently processing, a validation -// exception is thrown. +// exception is thrown. PutPrincipalMapping is currently not supported in the +// Amazon Web Services GovCloud (US-West) region. func (c *Client) PutPrincipalMapping(ctx context.Context, params *PutPrincipalMappingInput, optFns ...func(*Options)) (*PutPrincipalMappingOutput, error) { if params == nil { params = &PutPrincipalMappingInput{} diff --git a/service/kendra/api_op_SubmitFeedback.go b/service/kendra/api_op_SubmitFeedback.go index 7857713e2db..fc60aea6ce4 100644 --- a/service/kendra/api_op_SubmitFeedback.go +++ b/service/kendra/api_op_SubmitFeedback.go @@ -12,7 +12,8 @@ import ( ) // Enables you to provide feedback to Amazon Kendra to improve the performance of -// your index. +// your index. SubmitFeedback is currently not supported in the Amazon Web Services +// GovCloud (US-West) region. func (c *Client) SubmitFeedback(ctx context.Context, params *SubmitFeedbackInput, optFns ...func(*Options)) (*SubmitFeedbackOutput, error) { if params == nil { params = &SubmitFeedbackInput{} diff --git a/service/kendra/api_op_UpdateDataSource.go b/service/kendra/api_op_UpdateDataSource.go index 00210bae312..e870e05fbd5 100644 --- a/service/kendra/api_op_UpdateDataSource.go +++ b/service/kendra/api_op_UpdateDataSource.go @@ -39,9 +39,17 @@ type UpdateDataSourceInput struct { // This member is required. IndexId *string - // Configuration information for a Amazon Kendra data source. + // Configuration information for an Amazon Kendra data source. Configuration *types.DataSourceConfiguration + // Configuration information for altering document metadata and content during the + // document ingestion process when you update a data source. For more information + // on how to create, modify and delete document metadata, or make other content + // alterations when you ingest documents into Amazon Kendra, see Customizing + // document metadata during the ingestion process + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). + CustomDocumentEnrichmentConfiguration *types.CustomDocumentEnrichmentConfiguration + // The new description for the data source. Description *string diff --git a/service/kendra/api_op_UpdateExperience.go b/service/kendra/api_op_UpdateExperience.go new file mode 100644 index 00000000000..0456a10ba9d --- /dev/null +++ b/service/kendra/api_op_UpdateExperience.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kendra + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kendra/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates your Amazon Kendra experience such as a search application. For more +// information on creating a search application experience, see Building a search +// experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +func (c *Client) UpdateExperience(ctx context.Context, params *UpdateExperienceInput, optFns ...func(*Options)) (*UpdateExperienceOutput, error) { + if params == nil { + params = &UpdateExperienceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateExperience", params, optFns, c.addOperationUpdateExperienceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateExperienceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateExperienceInput struct { + + // The identifier of your Amazon Kendra experience you want to update. + // + // This member is required. + Id *string + + // The identifier of the index for your Amazon Kendra experience you want to + // update. + // + // This member is required. + IndexId *string + + // Provides the user configuration information. This includes the Amazon Web + // Services SSO field name that contains the identifiers of your users, such as + // their emails. + Configuration *types.ExperienceConfiguration + + // The description of your Amazon Kendra experience you want to update. + Description *string + + // The name of your Amazon Kendra experience you want to update. + Name *string + + // The Amazon Resource Name (ARN) of a role with permission to access Query + // operations, QuerySuggestions operations, SubmitFeedback operations, and Amazon + // Web Services SSO that stores your user and group information. For more + // information, see IAM roles for Amazon Kendra + // (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). + RoleArn *string + + noSmithyDocumentSerde +} + +type UpdateExperienceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateExperienceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateExperience{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateExperience{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateExperienceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateExperience(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateExperience(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kendra", + OperationName: "UpdateExperience", + } +} diff --git a/service/kendra/api_op_UpdateIndex.go b/service/kendra/api_op_UpdateIndex.go index 6aab0154583..6dfb2720aea 100644 --- a/service/kendra/api_op_UpdateIndex.go +++ b/service/kendra/api_op_UpdateIndex.go @@ -56,8 +56,9 @@ type UpdateIndexInput struct { // The user context policy. UserContextPolicy types.UserContextPolicy - // Enables fetching access levels of groups and users from an AWS Single Sign-On - // identity source. To configure this, see UserGroupResolutionConfiguration + // Enables fetching access levels of groups and users from an Amazon Web Services + // Single Sign On identity source. To configure this, see + // UserGroupResolutionConfiguration // (https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html). UserGroupResolutionConfiguration *types.UserGroupResolutionConfiguration diff --git a/service/kendra/api_op_UpdateQuerySuggestionsBlockList.go b/service/kendra/api_op_UpdateQuerySuggestionsBlockList.go index 1b0ae55e0a8..2b0ac59c65c 100644 --- a/service/kendra/api_op_UpdateQuerySuggestionsBlockList.go +++ b/service/kendra/api_op_UpdateQuerySuggestionsBlockList.go @@ -17,7 +17,8 @@ import ( // related to the block list apply immediately. If a block list is updating, then // you need to wait for the first update to finish before submitting another // update. Amazon Kendra supports partial updates, so you only need to provide the -// fields you want to update. +// fields you want to update. UpdateQuerySuggestionsBlockList is currently not +// supported in the Amazon Web Services GovCloud (US-West) region. func (c *Client) UpdateQuerySuggestionsBlockList(ctx context.Context, params *UpdateQuerySuggestionsBlockListInput, optFns ...func(*Options)) (*UpdateQuerySuggestionsBlockListOutput, error) { if params == nil { params = &UpdateQuerySuggestionsBlockListInput{} diff --git a/service/kendra/api_op_UpdateQuerySuggestionsConfig.go b/service/kendra/api_op_UpdateQuerySuggestionsConfig.go index c9a3524b692..057f6d5fe6e 100644 --- a/service/kendra/api_op_UpdateQuerySuggestionsConfig.go +++ b/service/kendra/api_op_UpdateQuerySuggestionsConfig.go @@ -18,6 +18,8 @@ import ( // settings might not take effect right away. The time for your updated settings to // take effect depends on the updates made and the number of search queries in your // index. You can still enable/disable query suggestions at any time. +// UpdateQuerySuggestionsConfig is currently not supported in the Amazon Web +// Services GovCloud (US-West) region. func (c *Client) UpdateQuerySuggestionsConfig(ctx context.Context, params *UpdateQuerySuggestionsConfigInput, optFns ...func(*Options)) (*UpdateQuerySuggestionsConfigOutput, error) { if params == nil { params = &UpdateQuerySuggestionsConfigInput{} diff --git a/service/kendra/deserializers.go b/service/kendra/deserializers.go index c0628b7fa18..ae9257b0427 100644 --- a/service/kendra/deserializers.go +++ b/service/kendra/deserializers.go @@ -21,14 +21,14 @@ import ( "strings" ) -type awsAwsjson11_deserializeOpBatchDeleteDocument struct { +type awsAwsjson11_deserializeOpAssociateEntitiesToExperience struct { } -func (*awsAwsjson11_deserializeOpBatchDeleteDocument) ID() string { +func (*awsAwsjson11_deserializeOpAssociateEntitiesToExperience) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpBatchDeleteDocument) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpAssociateEntitiesToExperience) 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) @@ -42,9 +42,9 @@ func (m *awsAwsjson11_deserializeOpBatchDeleteDocument) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorBatchDeleteDocument(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorAssociateEntitiesToExperience(response, &metadata) } - output := &BatchDeleteDocumentOutput{} + output := &AssociateEntitiesToExperienceOutput{} out.Result = output var buff [1024]byte @@ -64,7 +64,7 @@ func (m *awsAwsjson11_deserializeOpBatchDeleteDocument) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentBatchDeleteDocumentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentAssociateEntitiesToExperienceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -78,7 +78,7 @@ func (m *awsAwsjson11_deserializeOpBatchDeleteDocument) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorBatchDeleteDocument(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorAssociateEntitiesToExperience(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)} @@ -122,12 +122,12 @@ func awsAwsjson11_deserializeOpErrorBatchDeleteDocument(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceAlreadyExistException", errorCode): + return awsAwsjson11_deserializeErrorResourceAlreadyExistException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -147,14 +147,14 @@ func awsAwsjson11_deserializeOpErrorBatchDeleteDocument(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpBatchGetDocumentStatus struct { +type awsAwsjson11_deserializeOpAssociatePersonasToEntities struct { } -func (*awsAwsjson11_deserializeOpBatchGetDocumentStatus) ID() string { +func (*awsAwsjson11_deserializeOpAssociatePersonasToEntities) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpBatchGetDocumentStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpAssociatePersonasToEntities) 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) @@ -168,9 +168,9 @@ func (m *awsAwsjson11_deserializeOpBatchGetDocumentStatus) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorBatchGetDocumentStatus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorAssociatePersonasToEntities(response, &metadata) } - output := &BatchGetDocumentStatusOutput{} + output := &AssociatePersonasToEntitiesOutput{} out.Result = output var buff [1024]byte @@ -190,7 +190,7 @@ func (m *awsAwsjson11_deserializeOpBatchGetDocumentStatus) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentBatchGetDocumentStatusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentAssociatePersonasToEntitiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -204,7 +204,7 @@ func (m *awsAwsjson11_deserializeOpBatchGetDocumentStatus) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorBatchGetDocumentStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorAssociatePersonasToEntities(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)} @@ -248,12 +248,12 @@ func awsAwsjson11_deserializeOpErrorBatchGetDocumentStatus(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceAlreadyExistException", errorCode): + return awsAwsjson11_deserializeErrorResourceAlreadyExistException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -273,14 +273,14 @@ func awsAwsjson11_deserializeOpErrorBatchGetDocumentStatus(response *smithyhttp. } } -type awsAwsjson11_deserializeOpBatchPutDocument struct { +type awsAwsjson11_deserializeOpBatchDeleteDocument struct { } -func (*awsAwsjson11_deserializeOpBatchPutDocument) ID() string { +func (*awsAwsjson11_deserializeOpBatchDeleteDocument) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpBatchPutDocument) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpBatchDeleteDocument) 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) @@ -294,9 +294,9 @@ func (m *awsAwsjson11_deserializeOpBatchPutDocument) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorBatchPutDocument(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorBatchDeleteDocument(response, &metadata) } - output := &BatchPutDocumentOutput{} + output := &BatchDeleteDocumentOutput{} out.Result = output var buff [1024]byte @@ -316,7 +316,7 @@ func (m *awsAwsjson11_deserializeOpBatchPutDocument) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentBatchPutDocumentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentBatchDeleteDocumentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -330,7 +330,7 @@ func (m *awsAwsjson11_deserializeOpBatchPutDocument) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorBatchPutDocument(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorBatchDeleteDocument(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)} @@ -383,9 +383,6 @@ func awsAwsjson11_deserializeOpErrorBatchPutDocument(response *smithyhttp.Respon case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -402,14 +399,14 @@ func awsAwsjson11_deserializeOpErrorBatchPutDocument(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpClearQuerySuggestions struct { +type awsAwsjson11_deserializeOpBatchGetDocumentStatus struct { } -func (*awsAwsjson11_deserializeOpClearQuerySuggestions) ID() string { +func (*awsAwsjson11_deserializeOpBatchGetDocumentStatus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpClearQuerySuggestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpBatchGetDocumentStatus) 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) @@ -423,21 +420,43 @@ func (m *awsAwsjson11_deserializeOpClearQuerySuggestions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorClearQuerySuggestions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorBatchGetDocumentStatus(response, &metadata) } - output := &ClearQuerySuggestionsOutput{} + output := &BatchGetDocumentStatusOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentBatchGetDocumentStatusOutput(&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_deserializeOpErrorClearQuerySuggestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorBatchGetDocumentStatus(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)} @@ -506,14 +525,14 @@ func awsAwsjson11_deserializeOpErrorClearQuerySuggestions(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpCreateDataSource struct { +type awsAwsjson11_deserializeOpBatchPutDocument struct { } -func (*awsAwsjson11_deserializeOpCreateDataSource) ID() string { +func (*awsAwsjson11_deserializeOpBatchPutDocument) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpBatchPutDocument) 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) @@ -527,9 +546,9 @@ func (m *awsAwsjson11_deserializeOpCreateDataSource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataSource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorBatchPutDocument(response, &metadata) } - output := &CreateDataSourceOutput{} + output := &BatchPutDocumentOutput{} out.Result = output var buff [1024]byte @@ -549,7 +568,7 @@ func (m *awsAwsjson11_deserializeOpCreateDataSource) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateDataSourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentBatchPutDocumentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -563,7 +582,7 @@ func (m *awsAwsjson11_deserializeOpCreateDataSource) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorBatchPutDocument(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)} @@ -613,9 +632,6 @@ func awsAwsjson11_deserializeOpErrorCreateDataSource(response *smithyhttp.Respon case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceAlreadyExistException", errorCode): - return awsAwsjson11_deserializeErrorResourceAlreadyExistException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -638,14 +654,14 @@ func awsAwsjson11_deserializeOpErrorCreateDataSource(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpCreateFaq struct { +type awsAwsjson11_deserializeOpClearQuerySuggestions struct { } -func (*awsAwsjson11_deserializeOpCreateFaq) ID() string { +func (*awsAwsjson11_deserializeOpClearQuerySuggestions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateFaq) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpClearQuerySuggestions) 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) @@ -659,43 +675,21 @@ func (m *awsAwsjson11_deserializeOpCreateFaq) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateFaq(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorClearQuerySuggestions(response, &metadata) } - output := &CreateFaqOutput{} + output := &ClearQuerySuggestionsOutput{} 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_deserializeOpDocumentCreateFaqOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateFaq(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorClearQuerySuggestions(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)} @@ -748,9 +742,6 @@ func awsAwsjson11_deserializeOpErrorCreateFaq(response *smithyhttp.Response, met case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -767,14 +758,14 @@ func awsAwsjson11_deserializeOpErrorCreateFaq(response *smithyhttp.Response, met } } -type awsAwsjson11_deserializeOpCreateIndex struct { +type awsAwsjson11_deserializeOpCreateDataSource struct { } -func (*awsAwsjson11_deserializeOpCreateIndex) ID() string { +func (*awsAwsjson11_deserializeOpCreateDataSource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateIndex) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateDataSource) 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) @@ -788,9 +779,9 @@ func (m *awsAwsjson11_deserializeOpCreateIndex) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateIndex(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateDataSource(response, &metadata) } - output := &CreateIndexOutput{} + output := &CreateDataSourceOutput{} out.Result = output var buff [1024]byte @@ -810,7 +801,7 @@ func (m *awsAwsjson11_deserializeOpCreateIndex) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateIndexOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -824,7 +815,7 @@ func (m *awsAwsjson11_deserializeOpCreateIndex) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateIndex(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateDataSource(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)} @@ -877,6 +868,9 @@ func awsAwsjson11_deserializeOpErrorCreateIndex(response *smithyhttp.Response, m case strings.EqualFold("ResourceAlreadyExistException", errorCode): return awsAwsjson11_deserializeErrorResourceAlreadyExistException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) @@ -896,14 +890,14 @@ func awsAwsjson11_deserializeOpErrorCreateIndex(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList struct { +type awsAwsjson11_deserializeOpCreateExperience struct { } -func (*awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) ID() string { +func (*awsAwsjson11_deserializeOpCreateExperience) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateExperience) 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) @@ -917,9 +911,9 @@ func (m *awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateQuerySuggestionsBlockList(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateExperience(response, &metadata) } - output := &CreateQuerySuggestionsBlockListOutput{} + output := &CreateExperienceOutput{} out.Result = output var buff [1024]byte @@ -939,7 +933,7 @@ func (m *awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) HandleDeseri return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateQuerySuggestionsBlockListOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateExperienceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -953,7 +947,7 @@ func (m *awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) HandleDeseri return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateQuerySuggestionsBlockList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateExperience(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)} @@ -1025,14 +1019,14 @@ func awsAwsjson11_deserializeOpErrorCreateQuerySuggestionsBlockList(response *sm } } -type awsAwsjson11_deserializeOpCreateThesaurus struct { +type awsAwsjson11_deserializeOpCreateFaq struct { } -func (*awsAwsjson11_deserializeOpCreateThesaurus) ID() string { +func (*awsAwsjson11_deserializeOpCreateFaq) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateThesaurus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateFaq) 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) @@ -1046,9 +1040,9 @@ func (m *awsAwsjson11_deserializeOpCreateThesaurus) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateThesaurus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateFaq(response, &metadata) } - output := &CreateThesaurusOutput{} + output := &CreateFaqOutput{} out.Result = output var buff [1024]byte @@ -1068,7 +1062,7 @@ func (m *awsAwsjson11_deserializeOpCreateThesaurus) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateThesaurusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateFaqOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1082,7 +1076,7 @@ func (m *awsAwsjson11_deserializeOpCreateThesaurus) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateThesaurus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateFaq(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)} @@ -1154,14 +1148,14 @@ func awsAwsjson11_deserializeOpErrorCreateThesaurus(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDeleteDataSource struct { +type awsAwsjson11_deserializeOpCreateIndex struct { } -func (*awsAwsjson11_deserializeOpDeleteDataSource) ID() string { +func (*awsAwsjson11_deserializeOpCreateIndex) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateIndex) 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) @@ -1175,21 +1169,43 @@ func (m *awsAwsjson11_deserializeOpDeleteDataSource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteDataSource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateIndex(response, &metadata) } - output := &DeleteDataSourceOutput{} + output := &CreateIndexOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentCreateIndexOutput(&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_deserializeOpErrorDeleteDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateIndex(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)} @@ -1239,8 +1255,11 @@ func awsAwsjson11_deserializeOpErrorDeleteDataSource(response *smithyhttp.Respon case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceAlreadyExistException", errorCode): + return awsAwsjson11_deserializeErrorResourceAlreadyExistException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -1258,14 +1277,14 @@ func awsAwsjson11_deserializeOpErrorDeleteDataSource(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDeleteFaq struct { +type awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList struct { } -func (*awsAwsjson11_deserializeOpDeleteFaq) ID() string { +func (*awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteFaq) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateQuerySuggestionsBlockList) 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) @@ -1279,21 +1298,43 @@ func (m *awsAwsjson11_deserializeOpDeleteFaq) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteFaq(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateQuerySuggestionsBlockList(response, &metadata) } - output := &DeleteFaqOutput{} + output := &CreateQuerySuggestionsBlockListOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 } - return out, metadata, err + err = awsAwsjson11_deserializeOpDocumentCreateQuerySuggestionsBlockListOutput(&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_deserializeOpErrorDeleteFaq(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateQuerySuggestionsBlockList(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)} @@ -1346,6 +1387,9 @@ func awsAwsjson11_deserializeOpErrorDeleteFaq(response *smithyhttp.Response, met case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -1362,14 +1406,14 @@ func awsAwsjson11_deserializeOpErrorDeleteFaq(response *smithyhttp.Response, met } } -type awsAwsjson11_deserializeOpDeleteIndex struct { +type awsAwsjson11_deserializeOpCreateThesaurus struct { } -func (*awsAwsjson11_deserializeOpDeleteIndex) ID() string { +func (*awsAwsjson11_deserializeOpCreateThesaurus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteIndex) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateThesaurus) 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) @@ -1383,21 +1427,43 @@ func (m *awsAwsjson11_deserializeOpDeleteIndex) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteIndex(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateThesaurus(response, &metadata) } - output := &DeleteIndexOutput{} + output := &CreateThesaurusOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentCreateThesaurusOutput(&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_deserializeOpErrorDeleteIndex(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateThesaurus(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)} @@ -1450,6 +1516,9 @@ func awsAwsjson11_deserializeOpErrorDeleteIndex(response *smithyhttp.Response, m case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -1466,14 +1535,14 @@ func awsAwsjson11_deserializeOpErrorDeleteIndex(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpDeletePrincipalMapping struct { +type awsAwsjson11_deserializeOpDeleteDataSource struct { } -func (*awsAwsjson11_deserializeOpDeletePrincipalMapping) ID() string { +func (*awsAwsjson11_deserializeOpDeleteDataSource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeletePrincipalMapping) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteDataSource) 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) @@ -1487,9 +1556,9 @@ func (m *awsAwsjson11_deserializeOpDeletePrincipalMapping) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeletePrincipalMapping(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteDataSource(response, &metadata) } - output := &DeletePrincipalMappingOutput{} + output := &DeleteDataSourceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -1501,7 +1570,7 @@ func (m *awsAwsjson11_deserializeOpDeletePrincipalMapping) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeletePrincipalMapping(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteDataSource(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)} @@ -1570,14 +1639,14 @@ func awsAwsjson11_deserializeOpErrorDeletePrincipalMapping(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList struct { +type awsAwsjson11_deserializeOpDeleteExperience struct { } -func (*awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList) ID() string { +func (*awsAwsjson11_deserializeOpDeleteExperience) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteExperience) 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) @@ -1591,21 +1660,43 @@ func (m *awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteQuerySuggestionsBlockList(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteExperience(response, &metadata) } - output := &DeleteQuerySuggestionsBlockListOutput{} + output := &DeleteExperienceOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentDeleteExperienceOutput(&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_deserializeOpErrorDeleteQuerySuggestionsBlockList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteExperience(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)} @@ -1674,14 +1765,14 @@ func awsAwsjson11_deserializeOpErrorDeleteQuerySuggestionsBlockList(response *sm } } -type awsAwsjson11_deserializeOpDeleteThesaurus struct { +type awsAwsjson11_deserializeOpDeleteFaq struct { } -func (*awsAwsjson11_deserializeOpDeleteThesaurus) ID() string { +func (*awsAwsjson11_deserializeOpDeleteFaq) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteThesaurus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteFaq) 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) @@ -1695,9 +1786,9 @@ func (m *awsAwsjson11_deserializeOpDeleteThesaurus) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteThesaurus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteFaq(response, &metadata) } - output := &DeleteThesaurusOutput{} + output := &DeleteFaqOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -1709,7 +1800,7 @@ func (m *awsAwsjson11_deserializeOpDeleteThesaurus) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteThesaurus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteFaq(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)} @@ -1778,14 +1869,14 @@ func awsAwsjson11_deserializeOpErrorDeleteThesaurus(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDescribeDataSource struct { +type awsAwsjson11_deserializeOpDeleteIndex struct { } -func (*awsAwsjson11_deserializeOpDescribeDataSource) ID() string { +func (*awsAwsjson11_deserializeOpDeleteIndex) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteIndex) 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) @@ -1799,43 +1890,21 @@ func (m *awsAwsjson11_deserializeOpDescribeDataSource) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataSource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteIndex(response, &metadata) } - output := &DescribeDataSourceOutput{} + output := &DeleteIndexOutput{} 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_deserializeOpDocumentDescribeDataSourceOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteIndex(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)} @@ -1879,6 +1948,9 @@ func awsAwsjson11_deserializeOpErrorDescribeDataSource(response *smithyhttp.Resp case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1901,14 +1973,14 @@ func awsAwsjson11_deserializeOpErrorDescribeDataSource(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpDescribeFaq struct { +type awsAwsjson11_deserializeOpDeletePrincipalMapping struct { } -func (*awsAwsjson11_deserializeOpDescribeFaq) ID() string { +func (*awsAwsjson11_deserializeOpDeletePrincipalMapping) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeFaq) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeletePrincipalMapping) 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) @@ -1922,43 +1994,21 @@ func (m *awsAwsjson11_deserializeOpDescribeFaq) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFaq(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeletePrincipalMapping(response, &metadata) } - output := &DescribeFaqOutput{} + output := &DeletePrincipalMappingOutput{} 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_deserializeOpDocumentDescribeFaqOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeFaq(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeletePrincipalMapping(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)} @@ -2002,6 +2052,9 @@ func awsAwsjson11_deserializeOpErrorDescribeFaq(response *smithyhttp.Response, m case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -2024,14 +2077,14 @@ func awsAwsjson11_deserializeOpErrorDescribeFaq(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpDescribeIndex struct { +type awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList struct { } -func (*awsAwsjson11_deserializeOpDescribeIndex) ID() string { +func (*awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeIndex) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteQuerySuggestionsBlockList) 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) @@ -2045,43 +2098,21 @@ func (m *awsAwsjson11_deserializeOpDescribeIndex) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeIndex(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteQuerySuggestionsBlockList(response, &metadata) } - output := &DescribeIndexOutput{} + output := &DeleteQuerySuggestionsBlockListOutput{} 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_deserializeOpDocumentDescribeIndexOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeIndex(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteQuerySuggestionsBlockList(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)} @@ -2125,6 +2156,9 @@ func awsAwsjson11_deserializeOpErrorDescribeIndex(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -2147,14 +2181,14 @@ func awsAwsjson11_deserializeOpErrorDescribeIndex(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribePrincipalMapping struct { +type awsAwsjson11_deserializeOpDeleteThesaurus struct { } -func (*awsAwsjson11_deserializeOpDescribePrincipalMapping) ID() string { +func (*awsAwsjson11_deserializeOpDeleteThesaurus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePrincipalMapping) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteThesaurus) 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) @@ -2168,43 +2202,21 @@ func (m *awsAwsjson11_deserializeOpDescribePrincipalMapping) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePrincipalMapping(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteThesaurus(response, &metadata) } - output := &DescribePrincipalMappingOutput{} + output := &DeleteThesaurusOutput{} 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_deserializeOpDocumentDescribePrincipalMappingOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePrincipalMapping(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteThesaurus(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)} @@ -2248,6 +2260,9 @@ func awsAwsjson11_deserializeOpErrorDescribePrincipalMapping(response *smithyhtt case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -2270,14 +2285,14 @@ func awsAwsjson11_deserializeOpErrorDescribePrincipalMapping(response *smithyhtt } } -type awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList struct { +type awsAwsjson11_deserializeOpDescribeDataSource struct { } -func (*awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) ID() string { +func (*awsAwsjson11_deserializeOpDescribeDataSource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeDataSource) 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) @@ -2291,9 +2306,9 @@ func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsBlockList(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeDataSource(response, &metadata) } - output := &DescribeQuerySuggestionsBlockListOutput{} + output := &DescribeDataSourceOutput{} out.Result = output var buff [1024]byte @@ -2313,7 +2328,7 @@ func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeQuerySuggestionsBlockListOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2327,7 +2342,7 @@ func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsBlockList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeDataSource(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)} @@ -2393,14 +2408,14 @@ func awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsBlockList(response * } } -type awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig struct { +type awsAwsjson11_deserializeOpDescribeExperience struct { } -func (*awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) ID() string { +func (*awsAwsjson11_deserializeOpDescribeExperience) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeExperience) 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) @@ -2414,9 +2429,9 @@ func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeExperience(response, &metadata) } - output := &DescribeQuerySuggestionsConfigOutput{} + output := &DescribeExperienceOutput{} out.Result = output var buff [1024]byte @@ -2436,7 +2451,7 @@ func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeQuerySuggestionsConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeExperienceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2450,7 +2465,7 @@ func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeExperience(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)} @@ -2516,14 +2531,14 @@ func awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsConfig(response *smi } } -type awsAwsjson11_deserializeOpDescribeThesaurus struct { +type awsAwsjson11_deserializeOpDescribeFaq struct { } -func (*awsAwsjson11_deserializeOpDescribeThesaurus) ID() string { +func (*awsAwsjson11_deserializeOpDescribeFaq) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeThesaurus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeFaq) 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) @@ -2537,9 +2552,9 @@ func (m *awsAwsjson11_deserializeOpDescribeThesaurus) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeThesaurus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeFaq(response, &metadata) } - output := &DescribeThesaurusOutput{} + output := &DescribeFaqOutput{} out.Result = output var buff [1024]byte @@ -2559,7 +2574,7 @@ func (m *awsAwsjson11_deserializeOpDescribeThesaurus) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeThesaurusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeFaqOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2573,7 +2588,7 @@ func (m *awsAwsjson11_deserializeOpDescribeThesaurus) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeThesaurus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeFaq(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)} @@ -2639,14 +2654,14 @@ func awsAwsjson11_deserializeOpErrorDescribeThesaurus(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpGetQuerySuggestions struct { +type awsAwsjson11_deserializeOpDescribeIndex struct { } -func (*awsAwsjson11_deserializeOpGetQuerySuggestions) ID() string { +func (*awsAwsjson11_deserializeOpDescribeIndex) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetQuerySuggestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeIndex) 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) @@ -2660,9 +2675,9 @@ func (m *awsAwsjson11_deserializeOpGetQuerySuggestions) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetQuerySuggestions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeIndex(response, &metadata) } - output := &GetQuerySuggestionsOutput{} + output := &DescribeIndexOutput{} out.Result = output var buff [1024]byte @@ -2682,7 +2697,7 @@ func (m *awsAwsjson11_deserializeOpGetQuerySuggestions) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetQuerySuggestionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeIndexOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2696,7 +2711,7 @@ func (m *awsAwsjson11_deserializeOpGetQuerySuggestions) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetQuerySuggestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeIndex(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)} @@ -2740,18 +2755,12 @@ func awsAwsjson11_deserializeOpErrorGetQuerySuggestions(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -2768,14 +2777,14 @@ func awsAwsjson11_deserializeOpErrorGetQuerySuggestions(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListDataSources struct { +type awsAwsjson11_deserializeOpDescribePrincipalMapping struct { } -func (*awsAwsjson11_deserializeOpListDataSources) ID() string { +func (*awsAwsjson11_deserializeOpDescribePrincipalMapping) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDataSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePrincipalMapping) 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) @@ -2789,9 +2798,9 @@ func (m *awsAwsjson11_deserializeOpListDataSources) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDataSources(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePrincipalMapping(response, &metadata) } - output := &ListDataSourcesOutput{} + output := &DescribePrincipalMappingOutput{} out.Result = output var buff [1024]byte @@ -2811,7 +2820,7 @@ func (m *awsAwsjson11_deserializeOpListDataSources) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDataSourcesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePrincipalMappingOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2825,7 +2834,7 @@ func (m *awsAwsjson11_deserializeOpListDataSources) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDataSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePrincipalMapping(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)} @@ -2891,14 +2900,14 @@ func awsAwsjson11_deserializeOpErrorListDataSources(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpListDataSourceSyncJobs struct { +type awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList struct { } -func (*awsAwsjson11_deserializeOpListDataSourceSyncJobs) ID() string { +func (*awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDataSourceSyncJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsBlockList) 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) @@ -2912,9 +2921,9 @@ func (m *awsAwsjson11_deserializeOpListDataSourceSyncJobs) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDataSourceSyncJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsBlockList(response, &metadata) } - output := &ListDataSourceSyncJobsOutput{} + output := &DescribeQuerySuggestionsBlockListOutput{} out.Result = output var buff [1024]byte @@ -2934,7 +2943,7 @@ func (m *awsAwsjson11_deserializeOpListDataSourceSyncJobs) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDataSourceSyncJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeQuerySuggestionsBlockListOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2948,7 +2957,7 @@ func (m *awsAwsjson11_deserializeOpListDataSourceSyncJobs) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDataSourceSyncJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsBlockList(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)} @@ -2992,9 +3001,6 @@ func awsAwsjson11_deserializeOpErrorListDataSourceSyncJobs(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -3017,14 +3023,14 @@ func awsAwsjson11_deserializeOpErrorListDataSourceSyncJobs(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListFaqs struct { +type awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig struct { } -func (*awsAwsjson11_deserializeOpListFaqs) ID() string { +func (*awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListFaqs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeQuerySuggestionsConfig) 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) @@ -3038,9 +3044,9 @@ func (m *awsAwsjson11_deserializeOpListFaqs) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListFaqs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsConfig(response, &metadata) } - output := &ListFaqsOutput{} + output := &DescribeQuerySuggestionsConfigOutput{} out.Result = output var buff [1024]byte @@ -3060,7 +3066,7 @@ func (m *awsAwsjson11_deserializeOpListFaqs) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListFaqsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeQuerySuggestionsConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3074,7 +3080,7 @@ func (m *awsAwsjson11_deserializeOpListFaqs) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListFaqs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeQuerySuggestionsConfig(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)} @@ -3140,14 +3146,14 @@ func awsAwsjson11_deserializeOpErrorListFaqs(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId struct { +type awsAwsjson11_deserializeOpDescribeThesaurus struct { } -func (*awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) ID() string { +func (*awsAwsjson11_deserializeOpDescribeThesaurus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeThesaurus) 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) @@ -3161,9 +3167,9 @@ func (m *awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListGroupsOlderThanOrderingId(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeThesaurus(response, &metadata) } - output := &ListGroupsOlderThanOrderingIdOutput{} + output := &DescribeThesaurusOutput{} out.Result = output var buff [1024]byte @@ -3183,7 +3189,7 @@ func (m *awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListGroupsOlderThanOrderingIdOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeThesaurusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3197,7 +3203,7 @@ func (m *awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListGroupsOlderThanOrderingId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeThesaurus(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)} @@ -3241,9 +3247,6 @@ func awsAwsjson11_deserializeOpErrorListGroupsOlderThanOrderingId(response *smit case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -3266,14 +3269,14 @@ func awsAwsjson11_deserializeOpErrorListGroupsOlderThanOrderingId(response *smit } } -type awsAwsjson11_deserializeOpListIndices struct { +type awsAwsjson11_deserializeOpDisassociateEntitiesFromExperience struct { } -func (*awsAwsjson11_deserializeOpListIndices) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateEntitiesFromExperience) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListIndices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateEntitiesFromExperience) 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) @@ -3287,9 +3290,9 @@ func (m *awsAwsjson11_deserializeOpListIndices) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListIndices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateEntitiesFromExperience(response, &metadata) } - output := &ListIndicesOutput{} + output := &DisassociateEntitiesFromExperienceOutput{} out.Result = output var buff [1024]byte @@ -3309,7 +3312,7 @@ func (m *awsAwsjson11_deserializeOpListIndices) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListIndicesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateEntitiesFromExperienceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3323,7 +3326,7 @@ func (m *awsAwsjson11_deserializeOpListIndices) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListIndices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateEntitiesFromExperience(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)} @@ -3370,6 +3373,9 @@ func awsAwsjson11_deserializeOpErrorListIndices(response *smithyhttp.Response, m case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -3386,14 +3392,14 @@ func awsAwsjson11_deserializeOpErrorListIndices(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists struct { +type awsAwsjson11_deserializeOpDisassociatePersonasFromEntities struct { } -func (*awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) ID() string { +func (*awsAwsjson11_deserializeOpDisassociatePersonasFromEntities) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociatePersonasFromEntities) 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) @@ -3407,9 +3413,9 @@ func (m *awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListQuerySuggestionsBlockLists(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociatePersonasFromEntities(response, &metadata) } - output := &ListQuerySuggestionsBlockListsOutput{} + output := &DisassociatePersonasFromEntitiesOutput{} out.Result = output var buff [1024]byte @@ -3429,7 +3435,7 @@ func (m *awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListQuerySuggestionsBlockListsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociatePersonasFromEntitiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3443,7 +3449,7 @@ func (m *awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListQuerySuggestionsBlockLists(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociatePersonasFromEntities(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)} @@ -3509,14 +3515,14 @@ func awsAwsjson11_deserializeOpErrorListQuerySuggestionsBlockLists(response *smi } } -type awsAwsjson11_deserializeOpListTagsForResource struct { +type awsAwsjson11_deserializeOpGetQuerySuggestions struct { } -func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string { +func (*awsAwsjson11_deserializeOpGetQuerySuggestions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetQuerySuggestions) 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) @@ -3530,9 +3536,9 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetQuerySuggestions(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &GetQuerySuggestionsOutput{} out.Result = output var buff [1024]byte @@ -3552,7 +3558,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetQuerySuggestionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3566,7 +3572,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetQuerySuggestions(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)} @@ -3610,11 +3616,17 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -3632,14 +3644,14 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListThesauri struct { +type awsAwsjson11_deserializeOpGetSnapshots struct { } -func (*awsAwsjson11_deserializeOpListThesauri) ID() string { +func (*awsAwsjson11_deserializeOpGetSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListThesauri) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetSnapshots) 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) @@ -3653,9 +3665,9 @@ func (m *awsAwsjson11_deserializeOpListThesauri) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListThesauri(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetSnapshots(response, &metadata) } - output := &ListThesauriOutput{} + output := &GetSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -3675,7 +3687,7 @@ func (m *awsAwsjson11_deserializeOpListThesauri) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListThesauriOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetSnapshotsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3689,7 +3701,7 @@ func (m *awsAwsjson11_deserializeOpListThesauri) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListThesauri(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetSnapshots(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)} @@ -3736,15 +3748,12 @@ func awsAwsjson11_deserializeOpErrorListThesauri(response *smithyhttp.Response, case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("InvalidRequestException", errorCode): + return awsAwsjson11_deserializeErrorInvalidRequestException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("ValidationException", errorCode): - return awsAwsjson11_deserializeErrorValidationException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3755,14 +3764,14 @@ func awsAwsjson11_deserializeOpErrorListThesauri(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpPutPrincipalMapping struct { +type awsAwsjson11_deserializeOpListDataSources struct { } -func (*awsAwsjson11_deserializeOpPutPrincipalMapping) ID() string { +func (*awsAwsjson11_deserializeOpListDataSources) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpPutPrincipalMapping) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDataSources) 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) @@ -3776,21 +3785,43 @@ func (m *awsAwsjson11_deserializeOpPutPrincipalMapping) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutPrincipalMapping(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDataSources(response, &metadata) } - output := &PutPrincipalMappingOutput{} + output := &ListDataSourcesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListDataSourcesOutput(&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_deserializeOpErrorPutPrincipalMapping(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDataSources(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)} @@ -3834,18 +3865,12 @@ func awsAwsjson11_deserializeOpErrorPutPrincipalMapping(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -3862,14 +3887,14 @@ func awsAwsjson11_deserializeOpErrorPutPrincipalMapping(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpQuery struct { +type awsAwsjson11_deserializeOpListDataSourceSyncJobs struct { } -func (*awsAwsjson11_deserializeOpQuery) ID() string { +func (*awsAwsjson11_deserializeOpListDataSourceSyncJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpQuery) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDataSourceSyncJobs) 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) @@ -3883,9 +3908,9 @@ func (m *awsAwsjson11_deserializeOpQuery) HandleDeserialize(ctx context.Context, } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorQuery(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDataSourceSyncJobs(response, &metadata) } - output := &QueryOutput{} + output := &ListDataSourceSyncJobsOutput{} out.Result = output var buff [1024]byte @@ -3905,7 +3930,7 @@ func (m *awsAwsjson11_deserializeOpQuery) HandleDeserialize(ctx context.Context, return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentQueryOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDataSourceSyncJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3919,7 +3944,7 @@ func (m *awsAwsjson11_deserializeOpQuery) HandleDeserialize(ctx context.Context, return out, metadata, err } -func awsAwsjson11_deserializeOpErrorQuery(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDataSourceSyncJobs(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)} @@ -3972,9 +3997,6 @@ func awsAwsjson11_deserializeOpErrorQuery(response *smithyhttp.Response, metadat case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -3991,14 +4013,14 @@ func awsAwsjson11_deserializeOpErrorQuery(response *smithyhttp.Response, metadat } } -type awsAwsjson11_deserializeOpStartDataSourceSyncJob struct { +type awsAwsjson11_deserializeOpListEntityPersonas struct { } -func (*awsAwsjson11_deserializeOpStartDataSourceSyncJob) ID() string { +func (*awsAwsjson11_deserializeOpListEntityPersonas) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartDataSourceSyncJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEntityPersonas) 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) @@ -4012,9 +4034,9 @@ func (m *awsAwsjson11_deserializeOpStartDataSourceSyncJob) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartDataSourceSyncJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEntityPersonas(response, &metadata) } - output := &StartDataSourceSyncJobOutput{} + output := &ListEntityPersonasOutput{} out.Result = output var buff [1024]byte @@ -4034,7 +4056,7 @@ func (m *awsAwsjson11_deserializeOpStartDataSourceSyncJob) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStartDataSourceSyncJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEntityPersonasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4048,7 +4070,7 @@ func (m *awsAwsjson11_deserializeOpStartDataSourceSyncJob) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartDataSourceSyncJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEntityPersonas(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)} @@ -4092,15 +4114,9 @@ func awsAwsjson11_deserializeOpErrorStartDataSourceSyncJob(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceInUseException", errorCode): - return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -4120,14 +4136,14 @@ func awsAwsjson11_deserializeOpErrorStartDataSourceSyncJob(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopDataSourceSyncJob struct { +type awsAwsjson11_deserializeOpListExperienceEntities struct { } -func (*awsAwsjson11_deserializeOpStopDataSourceSyncJob) ID() string { +func (*awsAwsjson11_deserializeOpListExperienceEntities) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopDataSourceSyncJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListExperienceEntities) 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) @@ -4141,21 +4157,43 @@ func (m *awsAwsjson11_deserializeOpStopDataSourceSyncJob) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopDataSourceSyncJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListExperienceEntities(response, &metadata) } - output := &StopDataSourceSyncJobOutput{} + output := &ListExperienceEntitiesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListExperienceEntitiesOutput(&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_deserializeOpErrorStopDataSourceSyncJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListExperienceEntities(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)} @@ -4221,14 +4259,14 @@ func awsAwsjson11_deserializeOpErrorStopDataSourceSyncJob(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpSubmitFeedback struct { +type awsAwsjson11_deserializeOpListExperiences struct { } -func (*awsAwsjson11_deserializeOpSubmitFeedback) ID() string { +func (*awsAwsjson11_deserializeOpListExperiences) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSubmitFeedback) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListExperiences) 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) @@ -4242,21 +4280,43 @@ func (m *awsAwsjson11_deserializeOpSubmitFeedback) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSubmitFeedback(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListExperiences(response, &metadata) } - output := &SubmitFeedbackOutput{} + output := &ListExperiencesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListExperiencesOutput(&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_deserializeOpErrorSubmitFeedback(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListExperiences(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)} @@ -4306,9 +4366,6 @@ func awsAwsjson11_deserializeOpErrorSubmitFeedback(response *smithyhttp.Response case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -4325,14 +4382,14 @@ func awsAwsjson11_deserializeOpErrorSubmitFeedback(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpTagResource struct { +type awsAwsjson11_deserializeOpListFaqs struct { } -func (*awsAwsjson11_deserializeOpTagResource) ID() string { +func (*awsAwsjson11_deserializeOpListFaqs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListFaqs) 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) @@ -4346,9 +4403,9 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListFaqs(response, &metadata) } - output := &TagResourceOutput{} + output := &ListFaqsOutput{} out.Result = output var buff [1024]byte @@ -4368,7 +4425,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListFaqsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4382,7 +4439,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListFaqs(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)} @@ -4429,8 +4486,8 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -4448,14 +4505,14 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUntagResource struct { +type awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId struct { } -func (*awsAwsjson11_deserializeOpUntagResource) ID() string { +func (*awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListGroupsOlderThanOrderingId) 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) @@ -4469,9 +4526,9 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListGroupsOlderThanOrderingId(response, &metadata) } - output := &UntagResourceOutput{} + output := &ListGroupsOlderThanOrderingIdOutput{} out.Result = output var buff [1024]byte @@ -4491,7 +4548,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListGroupsOlderThanOrderingIdOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4505,7 +4562,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListGroupsOlderThanOrderingId(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)} @@ -4549,11 +4606,14 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -4571,14 +4631,14 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateDataSource struct { +type awsAwsjson11_deserializeOpListIndices struct { } -func (*awsAwsjson11_deserializeOpUpdateDataSource) ID() string { +func (*awsAwsjson11_deserializeOpListIndices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListIndices) 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) @@ -4592,21 +4652,43 @@ func (m *awsAwsjson11_deserializeOpUpdateDataSource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDataSource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListIndices(response, &metadata) } - output := &UpdateDataSourceOutput{} + output := &ListIndicesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListIndicesOutput(&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_deserializeOpErrorUpdateDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListIndices(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)} @@ -4650,15 +4732,9 @@ func awsAwsjson11_deserializeOpErrorUpdateDataSource(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -4675,14 +4751,14 @@ func awsAwsjson11_deserializeOpErrorUpdateDataSource(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateIndex struct { +type awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists struct { } -func (*awsAwsjson11_deserializeOpUpdateIndex) ID() string { +func (*awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateIndex) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListQuerySuggestionsBlockLists) 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) @@ -4696,21 +4772,43 @@ func (m *awsAwsjson11_deserializeOpUpdateIndex) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateIndex(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListQuerySuggestionsBlockLists(response, &metadata) } - output := &UpdateIndexOutput{} + output := &ListQuerySuggestionsBlockListsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListQuerySuggestionsBlockListsOutput(&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_deserializeOpErrorUpdateIndex(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListQuerySuggestionsBlockLists(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)} @@ -4754,18 +4852,12 @@ func awsAwsjson11_deserializeOpErrorUpdateIndex(response *smithyhttp.Response, m case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -4782,14 +4874,14 @@ func awsAwsjson11_deserializeOpErrorUpdateIndex(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList struct { +type awsAwsjson11_deserializeOpListTagsForResource struct { } -func (*awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList) ID() string { +func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4803,21 +4895,43 @@ func (m *awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsBlockList(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &UpdateQuerySuggestionsBlockListOutput{} + output := &ListTagsForResourceOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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 } - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsBlockList(response *smithyhttp.Response, metadata *middleware.Metadata) error { + err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&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_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4861,14 +4975,11 @@ func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsBlockList(response *sm case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(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("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -4886,14 +4997,14 @@ func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsBlockList(response *sm } } -type awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig struct { +type awsAwsjson11_deserializeOpListThesauri struct { } -func (*awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig) ID() string { +func (*awsAwsjson11_deserializeOpListThesauri) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListThesauri) 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) @@ -4907,21 +5018,43 @@ func (m *awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListThesauri(response, &metadata) } - output := &UpdateQuerySuggestionsConfigOutput{} + output := &ListThesauriOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListThesauriOutput(&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_deserializeOpErrorUpdateQuerySuggestionsConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListThesauri(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)} @@ -4965,9 +5098,6 @@ func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsConfig(response *smith case strings.EqualFold("AccessDeniedException", errorCode): return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -4990,14 +5120,14 @@ func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsConfig(response *smith } } -type awsAwsjson11_deserializeOpUpdateThesaurus struct { +type awsAwsjson11_deserializeOpPutPrincipalMapping struct { } -func (*awsAwsjson11_deserializeOpUpdateThesaurus) ID() string { +func (*awsAwsjson11_deserializeOpPutPrincipalMapping) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateThesaurus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpPutPrincipalMapping) 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) @@ -5011,9 +5141,9 @@ func (m *awsAwsjson11_deserializeOpUpdateThesaurus) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateThesaurus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorPutPrincipalMapping(response, &metadata) } - output := &UpdateThesaurusOutput{} + output := &PutPrincipalMappingOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -5025,7 +5155,7 @@ func (m *awsAwsjson11_deserializeOpUpdateThesaurus) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateThesaurus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorPutPrincipalMapping(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)} @@ -5078,6 +5208,9 @@ func awsAwsjson11_deserializeOpErrorUpdateThesaurus(response *smithyhttp.Respons case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) @@ -5094,11 +5227,36 @@ func awsAwsjson11_deserializeOpErrorUpdateThesaurus(response *smithyhttp.Respons } } -func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +type awsAwsjson11_deserializeOpQuery struct { +} + +func (*awsAwsjson11_deserializeOpQuery) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpQuery) 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_deserializeOpErrorQuery(response, &metadata) + } + output := &QueryOutput{} + 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{} @@ -5109,12 +5267,10 @@ func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Res Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.AccessDeniedException{} - err := awsAwsjson11_deserializeDocumentAccessDeniedException(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentQueryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5122,22 +5278,35 @@ func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Res 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_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorQuery(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -5147,28 +5316,76 @@ func awsAwsjson11_deserializeErrorConflictException(response *smithyhttp.Respons return err } - output := &types.ConflictException{} - err := awsAwsjson11_deserializeDocumentConflictException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpStartDataSourceSyncJob struct { } -func awsAwsjson11_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func (*awsAwsjson11_deserializeOpStartDataSourceSyncJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpStartDataSourceSyncJob) 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_deserializeOpErrorStartDataSourceSyncJob(response, &metadata) + } + output := &StartDataSourceSyncJobOutput{} + 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{} @@ -5179,12 +5396,10 @@ func awsAwsjson11_deserializeErrorInternalServerException(response *smithyhttp.R Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.InternalServerException{} - err := awsAwsjson11_deserializeDocumentInternalServerException(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentStartDataSourceSyncJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5192,34 +5407,34 @@ func awsAwsjson11_deserializeErrorInternalServerException(response *smithyhttp.R 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_deserializeErrorResourceAlreadyExistException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorStartDataSourceSyncJob(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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.ResourceAlreadyExistException{} - err := awsAwsjson11_deserializeDocumentResourceAlreadyExistException(&output, shape) - + code, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5231,88 +5446,103 @@ func awsAwsjson11_deserializeErrorResourceAlreadyExistException(response *smithy } errorBody.Seek(0, io.SeekStart) - return output -} + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } -func awsAwsjson11_deserializeErrorResourceInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - 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 strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - output := &types.ResourceInUseException{} - err := awsAwsjson11_deserializeDocumentResourceInUseException(&output, shape) + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - 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(), + case strings.EqualFold("ResourceInUseException", errorCode): + return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpStopDataSourceSyncJob struct { } -func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func (*awsAwsjson11_deserializeOpStopDataSourceSyncJob) ID() string { + return "OperationDeserializer" +} - 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 +func (m *awsAwsjson11_deserializeOpStopDataSourceSyncJob) 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 } - output := &types.ResourceNotFoundException{} - err := awsAwsjson11_deserializeDocumentResourceNotFoundException(&output, shape) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - 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(), + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorStopDataSourceSyncJob(response, &metadata) + } + output := &StopDataSourceSyncJobOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson11_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorStopDataSourceSyncJob(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -5322,79 +5552,97 @@ func awsAwsjson11_deserializeErrorResourceUnavailableException(response *smithyh return err } - output := &types.ResourceUnavailableException{} - err := awsAwsjson11_deserializeDocumentResourceUnavailableException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) - return output +type awsAwsjson11_deserializeOpSubmitFeedback struct { } -func awsAwsjson11_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func (*awsAwsjson11_deserializeOpSubmitFeedback) ID() string { + return "OperationDeserializer" +} - 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 +func (m *awsAwsjson11_deserializeOpSubmitFeedback) 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 } - output := &types.ServiceQuotaExceededException{} - err := awsAwsjson11_deserializeDocumentServiceQuotaExceededException(&output, shape) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - 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(), + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorSubmitFeedback(response, &metadata) + } + output := &SubmitFeedbackOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson11_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorSubmitFeedback(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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.ThrottlingException{} - err := awsAwsjson11_deserializeDocumentThrottlingException(&output, shape) - + code, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5406,45 +5654,1711 @@ func awsAwsjson11_deserializeErrorThrottlingException(response *smithyhttp.Respo } errorBody.Seek(0, io.SeekStart) - return output -} - -func awsAwsjson11_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(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("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpTagResource struct { +} + +func (*awsAwsjson11_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpTagResource) 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_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + 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_deserializeOpDocumentTagResourceOutput(&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_deserializeOpErrorTagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUntagResource struct { +} + +func (*awsAwsjson11_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUntagResource) 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_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + 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_deserializeOpDocumentUntagResourceOutput(&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_deserializeOpErrorUntagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + 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 + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson11_deserializeErrorResourceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateDataSource struct { +} + +func (*awsAwsjson11_deserializeOpUpdateDataSource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateDataSource) 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_deserializeOpErrorUpdateDataSource(response, &metadata) + } + output := &UpdateDataSourceOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateDataSource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateExperience struct { +} + +func (*awsAwsjson11_deserializeOpUpdateExperience) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateExperience) 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_deserializeOpErrorUpdateExperience(response, &metadata) + } + output := &UpdateExperienceOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateExperience(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateIndex struct { +} + +func (*awsAwsjson11_deserializeOpUpdateIndex) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateIndex) 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_deserializeOpErrorUpdateIndex(response, &metadata) + } + output := &UpdateIndexOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateIndex(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList struct { +} + +func (*awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateQuerySuggestionsBlockList) 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_deserializeOpErrorUpdateQuerySuggestionsBlockList(response, &metadata) + } + output := &UpdateQuerySuggestionsBlockListOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsBlockList(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig struct { +} + +func (*awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateQuerySuggestionsConfig) 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_deserializeOpErrorUpdateQuerySuggestionsConfig(response, &metadata) + } + output := &UpdateQuerySuggestionsConfigOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateQuerySuggestionsConfig(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateThesaurus struct { +} + +func (*awsAwsjson11_deserializeOpUpdateThesaurus) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateThesaurus) 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_deserializeOpErrorUpdateThesaurus(response, &metadata) + } + output := &UpdateThesaurusOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateThesaurus(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(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_deserializeErrorConflictException(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.ConflictException{} + err := awsAwsjson11_deserializeDocumentConflictException(&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_deserializeErrorInternalServerException(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.InternalServerException{} + err := awsAwsjson11_deserializeDocumentInternalServerException(&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_deserializeErrorInvalidRequestException(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.InvalidRequestException{} + err := awsAwsjson11_deserializeDocumentInvalidRequestException(&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_deserializeErrorResourceAlreadyExistException(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.ResourceAlreadyExistException{} + err := awsAwsjson11_deserializeDocumentResourceAlreadyExistException(&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_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(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorResourceUnavailableException(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.ResourceUnavailableException{} + err := awsAwsjson11_deserializeDocumentResourceUnavailableException(&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_deserializeErrorServiceQuotaExceededException(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.ServiceQuotaExceededException{} + err := awsAwsjson11_deserializeDocumentServiceQuotaExceededException(&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_deserializeErrorThrottlingException(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.ThrottlingException{} + err := awsAwsjson11_deserializeDocumentThrottlingException(&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_deserializeErrorValidationException(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.ValidationException{} + err := awsAwsjson11_deserializeDocumentValidationException(&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_deserializeDocumentAccessControlListConfiguration(v **types.AccessControlListConfiguration, 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.AccessControlListConfiguration + if *v == nil { + sv = &types.AccessControlListConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "KeyPath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) + } + sv.KeyPath = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAclConfiguration(v **types.AclConfiguration, 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.AclConfiguration + if *v == nil { + sv = &types.AclConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AllowedGroupsColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.AllowedGroupsColumnName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAdditionalResultAttribute(v **types.AdditionalResultAttribute, 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.AdditionalResultAttribute + if *v == nil { + sv = &types.AdditionalResultAttribute{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Key": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Key = ptr.String(jtv) + } + + case "Value": + if err := awsAwsjson11_deserializeDocumentAdditionalResultAttributeValue(&sv.Value, value); err != nil { + return err + } + + case "ValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AdditionalResultAttributeValueType to be of type string, got %T instead", value) + } + sv.ValueType = types.AdditionalResultAttributeValueType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]types.AdditionalResultAttribute, 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.AdditionalResultAttribute + if *v == nil { + cv = []types.AdditionalResultAttribute{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AdditionalResultAttribute + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAdditionalResultAttribute(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentAdditionalResultAttributeValue(v **types.AdditionalResultAttributeValue, 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.AdditionalResultAttributeValue + if *v == nil { + sv = &types.AdditionalResultAttributeValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TextWithHighlightsValue": + if err := awsAwsjson11_deserializeDocumentTextWithHighlights(&sv.TextWithHighlightsValue, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAssociateEntitiesToExperienceFailedEntityList(v *[]types.FailedEntity, 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.FailedEntity + if *v == nil { + cv = []types.FailedEntity{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FailedEntity + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFailedEntity(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentAuthenticationConfiguration(v **types.AuthenticationConfiguration, 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.AuthenticationConfiguration + if *v == nil { + sv = &types.AuthenticationConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BasicAuthentication": + if err := awsAwsjson11_deserializeDocumentBasicAuthenticationConfigurationList(&sv.BasicAuthentication, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBasicAuthenticationConfiguration(v **types.BasicAuthenticationConfiguration, 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.BasicAuthenticationConfiguration + if *v == nil { + sv = &types.BasicAuthenticationConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Credentials": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) + } + sv.Credentials = ptr.String(jtv) + } + + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentBasicAuthenticationConfigurationList(v *[]types.BasicAuthenticationConfiguration, 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) } - output := &types.ValidationException{} - err := awsAwsjson11_deserializeDocumentValidationException(&output, shape) + var cv []types.BasicAuthenticationConfiguration + if *v == nil { + cv = []types.BasicAuthenticationConfiguration{} + } 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.BasicAuthenticationConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBasicAuthenticationConfiguration(&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_deserializeDocumentAccessControlListConfiguration(v **types.AccessControlListConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v **types.BatchDeleteDocumentResponseFailedDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5457,22 +7371,40 @@ func awsAwsjson11_deserializeDocumentAccessControlListConfiguration(v **types.Ac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessControlListConfiguration + var sv *types.BatchDeleteDocumentResponseFailedDocument if *v == nil { - sv = &types.AccessControlListConfiguration{} + sv = &types.BatchDeleteDocumentResponseFailedDocument{} } else { sv = *v } for key, value := range shape { switch key { - case "KeyPath": + case "ErrorCode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.KeyPath = ptr.String(jtv) + sv.ErrorCode = types.ErrorCode(jtv) + } + + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) } default: @@ -5484,7 +7416,41 @@ func awsAwsjson11_deserializeDocumentAccessControlListConfiguration(v **types.Ac return nil } -func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments(v *[]types.BatchDeleteDocumentResponseFailedDocument, 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.BatchDeleteDocumentResponseFailedDocument + if *v == nil { + cv = []types.BatchDeleteDocumentResponseFailedDocument{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchDeleteDocumentResponseFailedDocument + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseError(v **types.BatchGetDocumentStatusResponseError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5497,22 +7463,40 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *types.BatchGetDocumentStatusResponseError if *v == nil { - sv = &types.AccessDeniedException{} + sv = &types.BatchGetDocumentStatusResponseError{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DocumentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) + } + sv.DocumentId = ptr.String(jtv) + } + + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) + } + sv.ErrorCode = types.ErrorCode(jtv) + } + + case "ErrorMessage": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.ErrorMessage = ptr.String(jtv) } default: @@ -5524,7 +7508,41 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsAwsjson11_deserializeDocumentAclConfiguration(v **types.AclConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseErrors(v *[]types.BatchGetDocumentStatusResponseError, 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.BatchGetDocumentStatusResponseError + if *v == nil { + cv = []types.BatchGetDocumentStatusResponseError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchGetDocumentStatusResponseError + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v **types.BatchPutDocumentResponseFailedDocument, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5537,22 +7555,40 @@ func awsAwsjson11_deserializeDocumentAclConfiguration(v **types.AclConfiguration return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AclConfiguration + var sv *types.BatchPutDocumentResponseFailedDocument if *v == nil { - sv = &types.AclConfiguration{} + sv = &types.BatchPutDocumentResponseFailedDocument{} } else { sv = *v } for key, value := range shape { switch key { - case "AllowedGroupsColumnName": + case "ErrorCode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.AllowedGroupsColumnName = ptr.String(jtv) + sv.ErrorCode = types.ErrorCode(jtv) + } + + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) } default: @@ -5564,7 +7600,41 @@ func awsAwsjson11_deserializeDocumentAclConfiguration(v **types.AclConfiguration return nil } -func awsAwsjson11_deserializeDocumentAdditionalResultAttribute(v **types.AdditionalResultAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocuments(v *[]types.BatchPutDocumentResponseFailedDocument, 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.BatchPutDocumentResponseFailedDocument + if *v == nil { + cv = []types.BatchPutDocumentResponseFailedDocument{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchPutDocumentResponseFailedDocument + destAddr := &col + if err := awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCapacityUnitsConfiguration(v **types.CapacityUnitsConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5577,36 +7647,39 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttribute(v **types.Additio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AdditionalResultAttribute + var sv *types.CapacityUnitsConfiguration if *v == nil { - sv = &types.AdditionalResultAttribute{} + sv = &types.CapacityUnitsConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Key": + case "QueryCapacityUnits": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected QueryCapacityUnit to be json.Number, got %T instead", value) } - sv.Key = ptr.String(jtv) - } - - case "Value": - if err := awsAwsjson11_deserializeDocumentAdditionalResultAttributeValue(&sv.Value, value); err != nil { - return err + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.QueryCapacityUnits = ptr.Int32(int32(i64)) } - case "ValueType": + case "StorageCapacityUnits": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected AdditionalResultAttributeValueType to be of type string, got %T instead", value) + return fmt.Errorf("expected StorageCapacityUnit to be json.Number, got %T instead", value) } - sv.ValueType = types.AdditionalResultAttributeValueType(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.StorageCapacityUnits = ptr.Int32(int32(i64)) } default: @@ -5618,7 +7691,7 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttribute(v **types.Additio return nil } -func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]types.AdditionalResultAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5631,20 +7704,22 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]types.Ad return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AdditionalResultAttribute + var cv []string if *v == nil { - cv = []types.AdditionalResultAttribute{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.AdditionalResultAttribute - destAddr := &col - if err := awsAwsjson11_deserializeDocumentAdditionalResultAttribute(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -5652,7 +7727,7 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttributeList(v *[]types.Ad return nil } -func awsAwsjson11_deserializeDocumentAdditionalResultAttributeValue(v **types.AdditionalResultAttributeValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5665,17 +7740,49 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttributeValue(v **types.Ad return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AdditionalResultAttributeValue + var sv *types.ColumnConfiguration if *v == nil { - sv = &types.AdditionalResultAttributeValue{} + sv = &types.ColumnConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "TextWithHighlightsValue": - if err := awsAwsjson11_deserializeDocumentTextWithHighlights(&sv.TextWithHighlightsValue, value); err != nil { + case "ChangeDetectingColumns": + if err := awsAwsjson11_deserializeDocumentChangeDetectingColumns(&sv.ChangeDetectingColumns, value); err != nil { + return err + } + + case "DocumentDataColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.DocumentDataColumnName = ptr.String(jtv) + } + + case "DocumentIdColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.DocumentIdColumnName = ptr.String(jtv) + } + + case "DocumentTitleColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.DocumentTitleColumnName = ptr.String(jtv) + } + + case "FieldMappings": + if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(&sv.FieldMappings, value); err != nil { return err } @@ -5688,7 +7795,7 @@ func awsAwsjson11_deserializeDocumentAdditionalResultAttributeValue(v **types.Ad return nil } -func awsAwsjson11_deserializeDocumentAuthenticationConfiguration(v **types.AuthenticationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5701,18 +7808,22 @@ func awsAwsjson11_deserializeDocumentAuthenticationConfiguration(v **types.Authe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AuthenticationConfiguration + var sv *types.ConflictException if *v == nil { - sv = &types.AuthenticationConfiguration{} + sv = &types.ConflictException{} } else { sv = *v } for key, value := range shape { switch key { - case "BasicAuthentication": - if err := awsAwsjson11_deserializeDocumentBasicAuthenticationConfigurationList(&sv.BasicAuthentication, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -5724,7 +7835,7 @@ func awsAwsjson11_deserializeDocumentAuthenticationConfiguration(v **types.Authe return nil } -func awsAwsjson11_deserializeDocumentBasicAuthenticationConfiguration(v **types.BasicAuthenticationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(v **types.ConfluenceAttachmentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5737,44 +7848,27 @@ func awsAwsjson11_deserializeDocumentBasicAuthenticationConfiguration(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BasicAuthenticationConfiguration + var sv *types.ConfluenceAttachmentConfiguration if *v == nil { - sv = &types.BasicAuthenticationConfiguration{} + sv = &types.ConfluenceAttachmentConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Credentials": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) - } - sv.Credentials = ptr.String(jtv) - } - - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) + case "AttachmentFieldMappings": + if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(&sv.AttachmentFieldMappings, value); err != nil { + return err } - case "Port": + case "CrawlAttachments": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Port = ptr.Int32(int32(i64)) + sv.CrawlAttachments = jtv } default: @@ -5786,7 +7880,7 @@ func awsAwsjson11_deserializeDocumentBasicAuthenticationConfiguration(v **types. return nil } -func awsAwsjson11_deserializeDocumentBasicAuthenticationConfigurationList(v *[]types.BasicAuthenticationConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[]types.ConfluenceAttachmentToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5799,17 +7893,17 @@ func awsAwsjson11_deserializeDocumentBasicAuthenticationConfigurationList(v *[]t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.BasicAuthenticationConfiguration + var cv []types.ConfluenceAttachmentToIndexFieldMapping if *v == nil { - cv = []types.BasicAuthenticationConfiguration{} + cv = []types.ConfluenceAttachmentToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col types.BasicAuthenticationConfiguration + var col types.ConfluenceAttachmentToIndexFieldMapping destAddr := &col - if err := awsAwsjson11_deserializeDocumentBasicAuthenticationConfiguration(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(&destAddr, value); err != nil { return err } col = *destAddr @@ -5820,7 +7914,7 @@ func awsAwsjson11_deserializeDocumentBasicAuthenticationConfigurationList(v *[]t return nil } -func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v **types.BatchDeleteDocumentResponseFailedDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v **types.ConfluenceAttachmentToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5833,40 +7927,40 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BatchDeleteDocumentResponseFailedDocument + var sv *types.ConfluenceAttachmentToIndexFieldMapping if *v == nil { - sv = &types.BatchDeleteDocumentResponseFailedDocument{} + sv = &types.ConfluenceAttachmentToIndexFieldMapping{} } else { sv = *v } for key, value := range shape { switch key { - case "ErrorCode": + case "DataSourceFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfluenceAttachmentFieldName to be of type string, got %T instead", value) } - sv.ErrorCode = types.ErrorCode(jtv) + sv.DataSourceFieldName = types.ConfluenceAttachmentFieldName(jtv) } - case "ErrorMessage": + case "DateFieldFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.ErrorMessage = ptr.String(jtv) + sv.DateFieldFormat = ptr.String(jtv) } - case "Id": + case "IndexFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) + return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.IndexFieldName = ptr.String(jtv) } default: @@ -5878,7 +7972,43 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(v return nil } -func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments(v *[]types.BatchDeleteDocumentResponseFailedDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(v **types.ConfluenceBlogConfiguration, 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.ConfluenceBlogConfiguration + if *v == nil { + sv = &types.ConfluenceBlogConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BlogFieldMappings": + if err := awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(&sv.BlogFieldMappings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(v *[]types.ConfluenceBlogToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5891,17 +8021,17 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments( return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.BatchDeleteDocumentResponseFailedDocument + var cv []types.ConfluenceBlogToIndexFieldMapping if *v == nil { - cv = []types.BatchDeleteDocumentResponseFailedDocument{} + cv = []types.ConfluenceBlogToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col types.BatchDeleteDocumentResponseFailedDocument + var col types.ConfluenceBlogToIndexFieldMapping destAddr := &col - if err := awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocument(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(&destAddr, value); err != nil { return err } col = *destAddr @@ -5912,7 +8042,7 @@ func awsAwsjson11_deserializeDocumentBatchDeleteDocumentResponseFailedDocuments( return nil } -func awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseError(v **types.BatchGetDocumentStatusResponseError, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(v **types.ConfluenceBlogToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5925,86 +8055,52 @@ func awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseError(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BatchGetDocumentStatusResponseError + var sv *types.ConfluenceBlogToIndexFieldMapping if *v == nil { - sv = &types.BatchGetDocumentStatusResponseError{} + sv = &types.ConfluenceBlogToIndexFieldMapping{} } else { sv = *v } for key, value := range shape { switch key { - case "DocumentId": + case "DataSourceFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfluenceBlogFieldName to be of type string, got %T instead", value) } - sv.DocumentId = ptr.String(jtv) + sv.DataSourceFieldName = types.ConfluenceBlogFieldName(jtv) } - case "ErrorCode": + case "DateFieldFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.ErrorCode = types.ErrorCode(jtv) + sv.DateFieldFormat = ptr.String(jtv) } - case "ErrorMessage": + case "IndexFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.ErrorMessage = ptr.String(jtv) + sv.IndexFieldName = ptr.String(jtv) } default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseErrors(v *[]types.BatchGetDocumentStatusResponseError, 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.BatchGetDocumentStatusResponseError - if *v == nil { - cv = []types.BatchGetDocumentStatusResponseError{} - } else { - cv = *v - } + _, _ = key, value - for _, value := range shape { - var col types.BatchGetDocumentStatusResponseError - destAddr := &col - if err := awsAwsjson11_deserializeDocumentBatchGetDocumentStatusResponseError(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v **types.BatchPutDocumentResponseFailedDocument, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceConfiguration(v **types.ConfluenceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6017,40 +8113,75 @@ func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BatchPutDocumentResponseFailedDocument + var sv *types.ConfluenceConfiguration if *v == nil { - sv = &types.BatchPutDocumentResponseFailedDocument{} + sv = &types.ConfluenceConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ErrorCode": + case "AttachmentConfiguration": + if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(&sv.AttachmentConfiguration, value); err != nil { + return err + } + + case "BlogConfiguration": + if err := awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(&sv.BlogConfiguration, value); err != nil { + return err + } + + case "ExclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.ExclusionPatterns, value); err != nil { + return err + } + + case "InclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.InclusionPatterns, value); err != nil { + return err + } + + case "PageConfiguration": + if err := awsAwsjson11_deserializeDocumentConfluencePageConfiguration(&sv.PageConfiguration, value); err != nil { + return err + } + + case "SecretArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) + return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) } - sv.ErrorCode = types.ErrorCode(jtv) + sv.SecretArn = ptr.String(jtv) } - case "ErrorMessage": + case "ServerUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected Url to be of type string, got %T instead", value) } - sv.ErrorMessage = ptr.String(jtv) + sv.ServerUrl = ptr.String(jtv) } - case "Id": + case "SpaceConfiguration": + if err := awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(&sv.SpaceConfiguration, value); err != nil { + return err + } + + case "Version": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentId to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfluenceVersion to be of type string, got %T instead", value) } - sv.Id = ptr.String(jtv) + sv.Version = types.ConfluenceVersion(jtv) + } + + case "VpcConfiguration": + if err := awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(&sv.VpcConfiguration, value); err != nil { + return err } default: @@ -6062,41 +8193,7 @@ func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(v ** return nil } -func awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocuments(v *[]types.BatchPutDocumentResponseFailedDocument, 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.BatchPutDocumentResponseFailedDocument - if *v == nil { - cv = []types.BatchPutDocumentResponseFailedDocument{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.BatchPutDocumentResponseFailedDocument - destAddr := &col - if err := awsAwsjson11_deserializeDocumentBatchPutDocumentResponseFailedDocument(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentCapacityUnitsConfiguration(v **types.CapacityUnitsConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluencePageConfiguration(v **types.ConfluencePageConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6109,39 +8206,18 @@ func awsAwsjson11_deserializeDocumentCapacityUnitsConfiguration(v **types.Capaci return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CapacityUnitsConfiguration + var sv *types.ConfluencePageConfiguration if *v == nil { - sv = &types.CapacityUnitsConfiguration{} + sv = &types.ConfluencePageConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "QueryCapacityUnits": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected QueryCapacityUnit to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.QueryCapacityUnits = ptr.Int32(int32(i64)) - } - - case "StorageCapacityUnits": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected StorageCapacityUnit to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.StorageCapacityUnits = ptr.Int32(int32(i64)) + case "PageFieldMappings": + if err := awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(&sv.PageFieldMappings, value); err != nil { + return err } default: @@ -6153,7 +8229,7 @@ func awsAwsjson11_deserializeDocumentCapacityUnitsConfiguration(v **types.Capaci return nil } -func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]types.ConfluencePageToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6166,22 +8242,20 @@ func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.ConfluencePageToIndexFieldMapping if *v == nil { - cv = []string{} + cv = []types.ConfluencePageToIndexFieldMapping{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - col = jtv + var col types.ConfluencePageToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -6189,7 +8263,7 @@ func awsAwsjson11_deserializeDocumentChangeDetectingColumns(v *[]string, value i return nil } -func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(v **types.ConfluencePageToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6202,50 +8276,40 @@ func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnConfiguration + var sv *types.ConfluencePageToIndexFieldMapping if *v == nil { - sv = &types.ColumnConfiguration{} + sv = &types.ConfluencePageToIndexFieldMapping{} } else { sv = *v } for key, value := range shape { switch key { - case "ChangeDetectingColumns": - if err := awsAwsjson11_deserializeDocumentChangeDetectingColumns(&sv.ChangeDetectingColumns, value); err != nil { - return err - } - - case "DocumentDataColumnName": + case "DataSourceFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfluencePageFieldName to be of type string, got %T instead", value) } - sv.DocumentDataColumnName = ptr.String(jtv) + sv.DataSourceFieldName = types.ConfluencePageFieldName(jtv) } - case "DocumentIdColumnName": + case "DateFieldFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.DocumentIdColumnName = ptr.String(jtv) + sv.DateFieldFormat = ptr.String(jtv) } - case "DocumentTitleColumnName": + case "IndexFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.DocumentTitleColumnName = ptr.String(jtv) - } - - case "FieldMappings": - if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(&sv.FieldMappings, value); err != nil { - return err + sv.IndexFieldName = ptr.String(jtv) } default: @@ -6257,7 +8321,7 @@ func awsAwsjson11_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu return nil } -func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.ConfluenceSpaceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6270,22 +8334,46 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConflictException + var sv *types.ConfluenceSpaceConfiguration if *v == nil { - sv = &types.ConflictException{} + sv = &types.ConfluenceSpaceConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "CrawlArchivedSpaces": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.CrawlArchivedSpaces = jtv + } + + case "CrawlPersonalSpaces": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.CrawlPersonalSpaces = jtv + } + + case "ExcludeSpaces": + if err := awsAwsjson11_deserializeDocumentConfluenceSpaceList(&sv.ExcludeSpaces, value); err != nil { + return err + } + + case "IncludeSpaces": + if err := awsAwsjson11_deserializeDocumentConfluenceSpaceList(&sv.IncludeSpaces, value); err != nil { + return err + } + + case "SpaceFieldMappings": + if err := awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(&sv.SpaceFieldMappings, value); err != nil { + return err } default: @@ -6297,7 +8385,7 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(v **types.ConfluenceAttachmentConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]types.ConfluenceSpaceToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6305,44 +8393,33 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(v **types 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.ConfluenceAttachmentConfiguration - if *v == nil { - sv = &types.ConfluenceAttachmentConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AttachmentFieldMappings": - if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(&sv.AttachmentFieldMappings, value); err != nil { - return err - } - - case "CrawlAttachments": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.CrawlAttachments = jtv - } - - default: - _, _ = key, value + var cv []types.ConfluenceSpaceToIndexFieldMapping + if *v == nil { + cv = []types.ConfluenceSpaceToIndexFieldMapping{} + } else { + cv = *v + } + for _, value := range shape { + var col types.ConfluenceSpaceToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[]types.ConfluenceAttachmentToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceSpaceList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6355,20 +8432,22 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[] return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ConfluenceAttachmentToIndexFieldMapping + var cv []string if *v == nil { - cv = []types.ConfluenceAttachmentToIndexFieldMapping{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ConfluenceAttachmentToIndexFieldMapping - destAddr := &col - if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConfluenceSpaceIdentifier to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -6376,7 +8455,7 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentFieldMappingsList(v *[] return nil } -func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v **types.ConfluenceAttachmentToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(v **types.ConfluenceSpaceToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6389,9 +8468,9 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v * return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluenceAttachmentToIndexFieldMapping + var sv *types.ConfluenceSpaceToIndexFieldMapping if *v == nil { - sv = &types.ConfluenceAttachmentToIndexFieldMapping{} + sv = &types.ConfluenceSpaceToIndexFieldMapping{} } else { sv = *v } @@ -6402,9 +8481,9 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v * if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfluenceAttachmentFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected ConfluenceSpaceFieldName to be of type string, got %T instead", value) } - sv.DataSourceFieldName = types.ConfluenceAttachmentFieldName(jtv) + sv.DataSourceFieldName = types.ConfluenceSpaceFieldName(jtv) } case "DateFieldFormat": @@ -6434,7 +8513,7 @@ func awsAwsjson11_deserializeDocumentConfluenceAttachmentToIndexFieldMapping(v * return nil } -func awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(v **types.ConfluenceBlogConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.ConnectionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6447,18 +8526,62 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(v **types.Confl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluenceBlogConfiguration + var sv *types.ConnectionConfiguration if *v == nil { - sv = &types.ConfluenceBlogConfiguration{} + sv = &types.ConnectionConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "BlogFieldMappings": - if err := awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(&sv.BlogFieldMappings, value); err != nil { - return err + case "DatabaseHost": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatabaseHost to be of type string, got %T instead", value) + } + sv.DatabaseHost = ptr.String(jtv) + } + + case "DatabaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatabaseName to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "DatabasePort": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DatabasePort to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DatabasePort = ptr.Int32(int32(i64)) + } + + case "SecretArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) + } + sv.SecretArn = ptr.String(jtv) + } + + case "TableName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableName to be of type string, got %T instead", value) + } + sv.TableName = ptr.String(jtv) } default: @@ -6470,7 +8593,7 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(v **types.Confl return nil } -func awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(v *[]types.ConfluenceBlogToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentContentSourceConfiguration(v **types.ContentSourceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6478,33 +8601,49 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogFieldMappingsList(v *[]types. 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.ConfluenceBlogToIndexFieldMapping + var sv *types.ContentSourceConfiguration if *v == nil { - cv = []types.ConfluenceBlogToIndexFieldMapping{} + sv = &types.ContentSourceConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ConfluenceBlogToIndexFieldMapping - destAddr := &col - if err := awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "DataSourceIds": + if err := awsAwsjson11_deserializeDocumentDataSourceIdList(&sv.DataSourceIds, value); err != nil { + return err + } + + case "DirectPutContent": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.DirectPutContent = jtv + } + + case "FaqIds": + if err := awsAwsjson11_deserializeDocumentFaqIdsList(&sv.FaqIds, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(v **types.ConfluenceBlogToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentCustomDocumentEnrichmentConfiguration(v **types.CustomDocumentEnrichmentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6517,40 +8656,102 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluenceBlogToIndexFieldMapping + var sv *types.CustomDocumentEnrichmentConfiguration if *v == nil { - sv = &types.ConfluenceBlogToIndexFieldMapping{} + sv = &types.CustomDocumentEnrichmentConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceFieldName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConfluenceBlogFieldName to be of type string, got %T instead", value) - } - sv.DataSourceFieldName = types.ConfluenceBlogFieldName(jtv) + case "InlineConfigurations": + if err := awsAwsjson11_deserializeDocumentInlineCustomDocumentEnrichmentConfigurationList(&sv.InlineConfigurations, value); err != nil { + return err } - case "DateFieldFormat": + case "PostExtractionHookConfiguration": + if err := awsAwsjson11_deserializeDocumentHookConfiguration(&sv.PostExtractionHookConfiguration, value); err != nil { + return err + } + + case "PreExtractionHookConfiguration": + if err := awsAwsjson11_deserializeDocumentHookConfiguration(&sv.PreExtractionHookConfiguration, value); err != nil { + return err + } + + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.DateFieldFormat = ptr.String(jtv) + sv.RoleArn = ptr.String(jtv) } - case "IndexFieldName": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDatabaseConfiguration(v **types.DatabaseConfiguration, 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.DatabaseConfiguration + if *v == nil { + sv = &types.DatabaseConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AclConfiguration": + if err := awsAwsjson11_deserializeDocumentAclConfiguration(&sv.AclConfiguration, value); err != nil { + return err + } + + case "ColumnConfiguration": + if err := awsAwsjson11_deserializeDocumentColumnConfiguration(&sv.ColumnConfiguration, value); err != nil { + return err + } + + case "ConnectionConfiguration": + if err := awsAwsjson11_deserializeDocumentConnectionConfiguration(&sv.ConnectionConfiguration, value); err != nil { + return err + } + + case "DatabaseEngineType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected DatabaseEngineType to be of type string, got %T instead", value) } - sv.IndexFieldName = ptr.String(jtv) + sv.DatabaseEngineType = types.DatabaseEngineType(jtv) + } + + case "SqlConfiguration": + if err := awsAwsjson11_deserializeDocumentSqlConfiguration(&sv.SqlConfiguration, value); err != nil { + return err + } + + case "VpcConfiguration": + if err := awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(&sv.VpcConfiguration, value); err != nil { + return err } default: @@ -6562,7 +8763,7 @@ func awsAwsjson11_deserializeDocumentConfluenceBlogToIndexFieldMapping(v **types return nil } -func awsAwsjson11_deserializeDocumentConfluenceConfiguration(v **types.ConfluenceConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6575,74 +8776,62 @@ func awsAwsjson11_deserializeDocumentConfluenceConfiguration(v **types.Confluenc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluenceConfiguration + var sv *types.DataSourceConfiguration if *v == nil { - sv = &types.ConfluenceConfiguration{} + sv = &types.DataSourceConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AttachmentConfiguration": - if err := awsAwsjson11_deserializeDocumentConfluenceAttachmentConfiguration(&sv.AttachmentConfiguration, value); err != nil { + case "ConfluenceConfiguration": + if err := awsAwsjson11_deserializeDocumentConfluenceConfiguration(&sv.ConfluenceConfiguration, value); err != nil { return err } - case "BlogConfiguration": - if err := awsAwsjson11_deserializeDocumentConfluenceBlogConfiguration(&sv.BlogConfiguration, value); err != nil { + case "DatabaseConfiguration": + if err := awsAwsjson11_deserializeDocumentDatabaseConfiguration(&sv.DatabaseConfiguration, value); err != nil { return err } - case "ExclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.ExclusionPatterns, value); err != nil { + case "GoogleDriveConfiguration": + if err := awsAwsjson11_deserializeDocumentGoogleDriveConfiguration(&sv.GoogleDriveConfiguration, value); err != nil { return err } - case "InclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.InclusionPatterns, value); err != nil { + case "OneDriveConfiguration": + if err := awsAwsjson11_deserializeDocumentOneDriveConfiguration(&sv.OneDriveConfiguration, value); err != nil { return err } - case "PageConfiguration": - if err := awsAwsjson11_deserializeDocumentConfluencePageConfiguration(&sv.PageConfiguration, value); err != nil { + case "S3Configuration": + if err := awsAwsjson11_deserializeDocumentS3DataSourceConfiguration(&sv.S3Configuration, value); err != nil { return err } - case "SecretArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) - } - sv.SecretArn = ptr.String(jtv) + case "SalesforceConfiguration": + if err := awsAwsjson11_deserializeDocumentSalesforceConfiguration(&sv.SalesforceConfiguration, value); err != nil { + return err } - case "ServerUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) - } - sv.ServerUrl = ptr.String(jtv) + case "ServiceNowConfiguration": + if err := awsAwsjson11_deserializeDocumentServiceNowConfiguration(&sv.ServiceNowConfiguration, value); err != nil { + return err } - case "SpaceConfiguration": - if err := awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(&sv.SpaceConfiguration, value); err != nil { + case "SharePointConfiguration": + if err := awsAwsjson11_deserializeDocumentSharePointConfiguration(&sv.SharePointConfiguration, value); err != nil { return err } - case "Version": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConfluenceVersion to be of type string, got %T instead", value) - } - sv.Version = types.ConfluenceVersion(jtv) + case "WebCrawlerConfiguration": + if err := awsAwsjson11_deserializeDocumentWebCrawlerConfiguration(&sv.WebCrawlerConfiguration, value); err != nil { + return err } - case "VpcConfiguration": - if err := awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(&sv.VpcConfiguration, value); err != nil { + case "WorkDocsConfiguration": + if err := awsAwsjson11_deserializeDocumentWorkDocsConfiguration(&sv.WorkDocsConfiguration, value); err != nil { return err } @@ -6655,7 +8844,7 @@ func awsAwsjson11_deserializeDocumentConfluenceConfiguration(v **types.Confluenc return nil } -func awsAwsjson11_deserializeDocumentConfluencePageConfiguration(v **types.ConfluencePageConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6663,35 +8852,35 @@ func awsAwsjson11_deserializeDocumentConfluencePageConfiguration(v **types.Confl 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.ConfluencePageConfiguration + var cv []string if *v == nil { - sv = &types.ConfluencePageConfiguration{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "PageFieldMappings": - if err := awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(&sv.PageFieldMappings, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceId to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]types.ConfluencePageToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6704,20 +8893,22 @@ func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]types. return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ConfluencePageToIndexFieldMapping + var cv []string if *v == nil { - cv = []types.ConfluencePageToIndexFieldMapping{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ConfluencePageToIndexFieldMapping - destAddr := &col - if err := awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceInclusionsExclusionsStringsMember to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -6725,7 +8916,7 @@ func awsAwsjson11_deserializeDocumentConfluencePageFieldMappingsList(v *[]types. return nil } -func awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(v **types.ConfluencePageToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6738,40 +8929,90 @@ func awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluencePageToIndexFieldMapping + var sv *types.DataSourceSummary if *v == nil { - sv = &types.ConfluencePageToIndexFieldMapping{} + sv = &types.DataSourceSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceFieldName": + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfluencePageFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceId to be of type string, got %T instead", value) } - sv.DataSourceFieldName = types.ConfluencePageFieldName(jtv) + sv.Id = ptr.String(jtv) } - case "DateFieldFormat": + case "LanguageCode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected LanguageCode to be of type string, got %T instead", value) } - sv.DateFieldFormat = ptr.String(jtv) + sv.LanguageCode = ptr.String(jtv) } - case "IndexFieldName": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.DataSourceStatus(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) + } + sv.Type = types.DataSourceType(jtv) + } + + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.IndexFieldName = ptr.String(jtv) } default: @@ -6783,7 +9024,41 @@ func awsAwsjson11_deserializeDocumentConfluencePageToIndexFieldMapping(v **types return nil } -func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.ConfluenceSpaceConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]types.DataSourceSummary, 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.DataSourceSummary + if *v == nil { + cv = []types.DataSourceSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataSourceSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSourceSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6796,46 +9071,95 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.Conf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluenceSpaceConfiguration + var sv *types.DataSourceSyncJob if *v == nil { - sv = &types.ConfluenceSpaceConfiguration{} + sv = &types.DataSourceSyncJob{} } else { sv = *v } for key, value := range shape { switch key { - case "CrawlArchivedSpaces": + case "DataSourceErrorCode": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CrawlArchivedSpaces = jtv + sv.DataSourceErrorCode = ptr.String(jtv) } - case "CrawlPersonalSpaces": + case "EndTime": if value != nil { - jtv, ok := value.(bool) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) } - sv.CrawlPersonalSpaces = jtv + sv.ErrorCode = types.ErrorCode(jtv) } - case "ExcludeSpaces": - if err := awsAwsjson11_deserializeDocumentConfluenceSpaceList(&sv.ExcludeSpaces, value); err != nil { - return err + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) } - case "IncludeSpaces": - if err := awsAwsjson11_deserializeDocumentConfluenceSpaceList(&sv.IncludeSpaces, value); err != nil { + case "ExecutionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ExecutionId = ptr.String(jtv) + } + + case "Metrics": + if err := awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(&sv.Metrics, value); err != nil { return err } - case "SpaceFieldMappings": - if err := awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(&sv.SpaceFieldMappings, value); err != nil { - return err + 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) + + } + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceSyncJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.DataSourceSyncJobStatus(jtv) } default: @@ -6847,7 +9171,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceConfiguration(v **types.Conf return nil } -func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]types.ConfluenceSpaceToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]types.DataSourceSyncJob, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6860,17 +9184,17 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ConfluenceSpaceToIndexFieldMapping + var cv []types.DataSourceSyncJob if *v == nil { - cv = []types.ConfluenceSpaceToIndexFieldMapping{} + cv = []types.DataSourceSyncJob{} } else { cv = *v } for _, value := range shape { - var col types.ConfluenceSpaceToIndexFieldMapping + var col types.DataSourceSyncJob destAddr := &col - if err := awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentDataSourceSyncJob(&destAddr, value); err != nil { return err } col = *destAddr @@ -6881,43 +9205,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceFieldMappingsList(v *[]types return nil } -func awsAwsjson11_deserializeDocumentConfluenceSpaceList(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 ConfluenceSpaceIdentifier to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(v **types.ConfluenceSpaceToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSourceSyncJobMetrics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6930,40 +9218,58 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConfluenceSpaceToIndexFieldMapping + var sv *types.DataSourceSyncJobMetrics if *v == nil { - sv = &types.ConfluenceSpaceToIndexFieldMapping{} + sv = &types.DataSourceSyncJobMetrics{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceFieldName": + case "DocumentsAdded": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConfluenceSpaceFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DataSourceFieldName = types.ConfluenceSpaceFieldName(jtv) + sv.DocumentsAdded = ptr.String(jtv) } - case "DateFieldFormat": + case "DocumentsDeleted": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.DateFieldFormat = ptr.String(jtv) + sv.DocumentsDeleted = ptr.String(jtv) } - case "IndexFieldName": + case "DocumentsFailed": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) } - sv.IndexFieldName = ptr.String(jtv) + sv.DocumentsFailed = ptr.String(jtv) + } + + case "DocumentsModified": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) + } + sv.DocumentsModified = ptr.String(jtv) + } + + case "DocumentsScanned": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) + } + sv.DocumentsScanned = ptr.String(jtv) } default: @@ -6975,7 +9281,7 @@ func awsAwsjson11_deserializeDocumentConfluenceSpaceToIndexFieldMapping(v **type return nil } -func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.ConnectionConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.DataSourceToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6988,62 +9294,40 @@ func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.Connectio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConnectionConfiguration + var sv *types.DataSourceToIndexFieldMapping if *v == nil { - sv = &types.ConnectionConfiguration{} + sv = &types.DataSourceToIndexFieldMapping{} } else { sv = *v } for key, value := range shape { switch key { - case "DatabaseHost": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DatabaseHost to be of type string, got %T instead", value) - } - sv.DatabaseHost = ptr.String(jtv) - } - - case "DatabaseName": + case "DataSourceFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DatabaseName to be of type string, got %T instead", value) - } - sv.DatabaseName = ptr.String(jtv) - } - - case "DatabasePort": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected DatabasePort to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) } - sv.DatabasePort = ptr.Int32(int32(i64)) + sv.DataSourceFieldName = ptr.String(jtv) } - case "SecretArn": + case "DateFieldFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) } - sv.SecretArn = ptr.String(jtv) + sv.DateFieldFormat = ptr.String(jtv) } - case "TableName": + case "IndexFieldName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableName to be of type string, got %T instead", value) + return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) } - sv.TableName = ptr.String(jtv) + sv.IndexFieldName = ptr.String(jtv) } default: @@ -7055,7 +9339,7 @@ func awsAwsjson11_deserializeDocumentConnectionConfiguration(v **types.Connectio return nil } -func awsAwsjson11_deserializeDocumentDatabaseConfiguration(v **types.DatabaseConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]types.DataSourceToIndexFieldMapping, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7063,64 +9347,33 @@ func awsAwsjson11_deserializeDocumentDatabaseConfiguration(v **types.DatabaseCon 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.DatabaseConfiguration + var cv []types.DataSourceToIndexFieldMapping if *v == nil { - sv = &types.DatabaseConfiguration{} + cv = []types.DataSourceToIndexFieldMapping{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "AclConfiguration": - if err := awsAwsjson11_deserializeDocumentAclConfiguration(&sv.AclConfiguration, value); err != nil { - return err - } - - case "ColumnConfiguration": - if err := awsAwsjson11_deserializeDocumentColumnConfiguration(&sv.ColumnConfiguration, value); err != nil { - return err - } - - case "ConnectionConfiguration": - if err := awsAwsjson11_deserializeDocumentConnectionConfiguration(&sv.ConnectionConfiguration, value); err != nil { - return err - } - - case "DatabaseEngineType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DatabaseEngineType to be of type string, got %T instead", value) - } - sv.DatabaseEngineType = types.DatabaseEngineType(jtv) - } - - case "SqlConfiguration": - if err := awsAwsjson11_deserializeDocumentSqlConfiguration(&sv.SqlConfiguration, value); err != nil { - return err - } - - case "VpcConfiguration": - if err := awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(&sv.VpcConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DataSourceToIndexFieldMapping + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourceConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(v **types.DataSourceVpcConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7133,62 +9386,22 @@ func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceConfiguration + var sv *types.DataSourceVpcConfiguration if *v == nil { - sv = &types.DataSourceConfiguration{} + sv = &types.DataSourceVpcConfiguration{} } else { sv = *v } - for key, value := range shape { - switch key { - case "ConfluenceConfiguration": - if err := awsAwsjson11_deserializeDocumentConfluenceConfiguration(&sv.ConfluenceConfiguration, value); err != nil { - return err - } - - case "DatabaseConfiguration": - if err := awsAwsjson11_deserializeDocumentDatabaseConfiguration(&sv.DatabaseConfiguration, value); err != nil { - return err - } - - case "GoogleDriveConfiguration": - if err := awsAwsjson11_deserializeDocumentGoogleDriveConfiguration(&sv.GoogleDriveConfiguration, value); err != nil { - return err - } - - case "OneDriveConfiguration": - if err := awsAwsjson11_deserializeDocumentOneDriveConfiguration(&sv.OneDriveConfiguration, value); err != nil { - return err - } - - case "S3Configuration": - if err := awsAwsjson11_deserializeDocumentS3DataSourceConfiguration(&sv.S3Configuration, value); err != nil { - return err - } - - case "SalesforceConfiguration": - if err := awsAwsjson11_deserializeDocumentSalesforceConfiguration(&sv.SalesforceConfiguration, value); err != nil { - return err - } - - case "ServiceNowConfiguration": - if err := awsAwsjson11_deserializeDocumentServiceNowConfiguration(&sv.ServiceNowConfiguration, value); err != nil { - return err - } - - case "SharePointConfiguration": - if err := awsAwsjson11_deserializeDocumentSharePointConfiguration(&sv.SharePointConfiguration, value); err != nil { - return err - } - - case "WebCrawlerConfiguration": - if err := awsAwsjson11_deserializeDocumentWebCrawlerConfiguration(&sv.WebCrawlerConfiguration, value); err != nil { + for key, value := range shape { + switch key { + case "SecurityGroupIds": + if err := awsAwsjson11_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil { return err } - case "WorkDocsConfiguration": - if err := awsAwsjson11_deserializeDocumentWorkDocsConfiguration(&sv.WorkDocsConfiguration, value); err != nil { + case "SubnetIds": + if err := awsAwsjson11_deserializeDocumentSubnetIdList(&sv.SubnetIds, value); err != nil { return err } @@ -7201,7 +9414,7 @@ func awsAwsjson11_deserializeDocumentDataSourceConfiguration(v **types.DataSourc return nil } -func awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttribute(v **types.DocumentAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7209,35 +9422,44 @@ func awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(v *[] return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.DocumentAttribute if *v == nil { - cv = []string{} + sv = &types.DocumentAttribute{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSourceInclusionsExclusionsStringsMember to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Key": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) + } + sv.Key = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + case "Value": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValue(&sv.Value, value); err != nil { + return err + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeCondition(v **types.DocumentAttributeCondition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7250,90 +9472,36 @@ func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceSummary + var sv *types.DocumentAttributeCondition if *v == nil { - sv = &types.DataSourceSummary{} + sv = &types.DocumentAttributeCondition{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSourceId to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } - - case "LanguageCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LanguageCode to be of type string, got %T instead", value) - } - sv.LanguageCode = ptr.String(jtv) - } - - case "Name": + case "ConditionDocumentAttributeKey": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) + return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ConditionDocumentAttributeKey = ptr.String(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSourceStatus to be of type string, got %T instead", value) - } - sv.Status = types.DataSourceStatus(jtv) + case "ConditionOnValue": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValue(&sv.ConditionOnValue, value); err != nil { + return err } - case "Type": + case "Operator": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) - } - sv.Type = types.DataSourceType(jtv) - } - - case "UpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected ConditionOperator to be of type string, got %T instead", value) } + sv.Operator = types.ConditionOperator(jtv) } default: @@ -7345,7 +9513,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma return nil } -func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]types.DataSourceSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]types.DocumentAttribute, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7358,17 +9526,17 @@ func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]types.DataSource return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSourceSummary + var cv []types.DocumentAttribute if *v == nil { - cv = []types.DataSourceSummary{} + cv = []types.DocumentAttribute{} } else { cv = *v } for _, value := range shape { - var col types.DataSourceSummary + var col types.DocumentAttribute destAddr := &col - if err := awsAwsjson11_deserializeDocumentDataSourceSummary(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentDocumentAttribute(&destAddr, value); err != nil { return err } col = *destAddr @@ -7379,7 +9547,43 @@ func awsAwsjson11_deserializeDocumentDataSourceSummaryList(v *[]types.DataSource return nil } -func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(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 String to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentDocumentAttributeTarget(v **types.DocumentAttributeTarget, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7392,25 +9596,70 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceSyncJob + var sv *types.DocumentAttributeTarget if *v == nil { - sv = &types.DataSourceSyncJob{} + sv = &types.DocumentAttributeTarget{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceErrorCode": + case "TargetDocumentAttributeKey": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) } - sv.DataSourceErrorCode = ptr.String(jtv) + sv.TargetDocumentAttributeKey = ptr.String(jtv) } - case "EndTime": + case "TargetDocumentAttributeValue": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValue(&sv.TargetDocumentAttributeValue, value); err != nil { + return err + } + + case "TargetDocumentAttributeValueDeletion": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.TargetDocumentAttributeValueDeletion = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDocumentAttributeValue(v **types.DocumentAttributeValue, 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.DocumentAttributeValue + if *v == nil { + sv = &types.DocumentAttributeValue{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DateValue": if value != nil { switch jtv := value.(type) { case json.Number: @@ -7418,7 +9667,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ if err != nil { return err } - sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.DateValue = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -7426,61 +9675,80 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ } } - case "ErrorCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value) - } - sv.ErrorCode = types.ErrorCode(jtv) - } - - case "ErrorMessage": + case "LongValue": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) } - sv.ErrorMessage = ptr.String(jtv) - } - - case "ExecutionId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + i64, err := jtv.Int64() + if err != nil { + return err } - sv.ExecutionId = ptr.String(jtv) - } - - case "Metrics": - if err := awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(&sv.Metrics, value); err != nil { - return err + sv.LongValue = ptr.Int64(i64) } - 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) + case "StringListValue": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(&sv.StringListValue, value); err != nil { + return err + } + case "StringValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentAttributeStringValue to be of type string, got %T instead", value) } + sv.StringValue = ptr.String(jtv) } - case "Status": + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(v **types.DocumentAttributeValueCountPair, 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.DocumentAttributeValueCountPair + if *v == nil { + sv = &types.DocumentAttributeValueCountPair{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Count": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected DataSourceSyncJobStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.Status = types.DataSourceSyncJobStatus(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Count = ptr.Int32(int32(i64)) + } + + case "DocumentAttributeValue": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValue(&sv.DocumentAttributeValue, value); err != nil { + return err } default: @@ -7492,7 +9760,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJob(v **types.DataSourceSyncJ return nil } -func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]types.DataSourceSyncJob, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]types.DocumentAttributeValueCountPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7505,17 +9773,17 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]types.Dat return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSourceSyncJob + var cv []types.DocumentAttributeValueCountPair if *v == nil { - cv = []types.DataSourceSyncJob{} + cv = []types.DocumentAttributeValueCountPair{} } else { cv = *v } for _, value := range shape { - var col types.DataSourceSyncJob + var col types.DocumentAttributeValueCountPair destAddr := &col - if err := awsAwsjson11_deserializeDocumentDataSourceSyncJob(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(&destAddr, value); err != nil { return err } col = *destAddr @@ -7526,7 +9794,7 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobHistoryList(v *[]types.Dat return nil } -func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSourceSyncJobMetrics, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(v **types.DocumentMetadataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7539,58 +9807,41 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceSyncJobMetrics + var sv *types.DocumentMetadataConfiguration if *v == nil { - sv = &types.DataSourceSyncJobMetrics{} + sv = &types.DocumentMetadataConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DocumentsAdded": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) - } - sv.DocumentsAdded = ptr.String(jtv) - } - - case "DocumentsDeleted": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) + return fmt.Errorf("expected DocumentMetadataConfigurationName to be of type string, got %T instead", value) } - sv.DocumentsDeleted = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "DocumentsFailed": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) - } - sv.DocumentsFailed = ptr.String(jtv) + case "Relevance": + if err := awsAwsjson11_deserializeDocumentRelevance(&sv.Relevance, value); err != nil { + return err } - case "DocumentsModified": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) - } - sv.DocumentsModified = ptr.String(jtv) + case "Search": + if err := awsAwsjson11_deserializeDocumentSearch(&sv.Search, value); err != nil { + return err } - case "DocumentsScanned": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MetricValue to be of type string, got %T instead", value) + return fmt.Errorf("expected DocumentAttributeValueType to be of type string, got %T instead", value) } - sv.DocumentsScanned = ptr.String(jtv) + sv.Type = types.DocumentAttributeValueType(jtv) } default: @@ -7602,7 +9853,41 @@ func awsAwsjson11_deserializeDocumentDataSourceSyncJobMetrics(v **types.DataSour return nil } -func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.DataSourceToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]types.DocumentMetadataConfiguration, 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.DocumentMetadataConfiguration + if *v == nil { + cv = []types.DocumentMetadataConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DocumentMetadataConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentDocumentsMetadataConfiguration(v **types.DocumentsMetadataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7615,40 +9900,22 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.Dat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceToIndexFieldMapping + var sv *types.DocumentsMetadataConfiguration if *v == nil { - sv = &types.DataSourceToIndexFieldMapping{} + sv = &types.DocumentsMetadataConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceFieldName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSourceFieldName to be of type string, got %T instead", value) - } - sv.DataSourceFieldName = ptr.String(jtv) - } - - case "DateFieldFormat": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSourceDateFieldFormat to be of type string, got %T instead", value) - } - sv.DateFieldFormat = ptr.String(jtv) - } - - case "IndexFieldName": + case "S3Prefix": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IndexFieldName to be of type string, got %T instead", value) + return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) } - sv.IndexFieldName = ptr.String(jtv) + sv.S3Prefix = ptr.String(jtv) } default: @@ -7660,7 +9927,7 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(v **types.Dat return nil } -func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]types.DataSourceToIndexFieldMapping, value interface{}) error { +func awsAwsjson11_deserializeDocumentDocumentStatusList(v *[]types.Status, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7673,17 +9940,17 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSourceToIndexFieldMapping + var cv []types.Status if *v == nil { - cv = []types.DataSourceToIndexFieldMapping{} + cv = []types.Status{} } else { cv = *v } for _, value := range shape { - var col types.DataSourceToIndexFieldMapping + var col types.Status destAddr := &col - if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMapping(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentStatus(&destAddr, value); err != nil { return err } col = *destAddr @@ -7694,7 +9961,7 @@ func awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(v *[]type return nil } -func awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(v **types.DataSourceVpcConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentEntityDisplayData(v **types.EntityDisplayData, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7707,23 +9974,58 @@ func awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(v **types.DataSo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceVpcConfiguration + var sv *types.EntityDisplayData if *v == nil { - sv = &types.DataSourceVpcConfiguration{} + sv = &types.EntityDisplayData{} } else { sv = *v } for key, value := range shape { switch key { - case "SecurityGroupIds": - if err := awsAwsjson11_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil { - return err + case "FirstName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameType to be of type string, got %T instead", value) + } + sv.FirstName = ptr.String(jtv) } - case "SubnetIds": - if err := awsAwsjson11_deserializeDocumentSubnetIdList(&sv.SubnetIds, value); err != nil { - return err + case "GroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameType to be of type string, got %T instead", value) + } + sv.GroupName = ptr.String(jtv) + } + + case "IdentifiedUserName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameType to be of type string, got %T instead", value) + } + sv.IdentifiedUserName = ptr.String(jtv) + } + + case "LastName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameType to be of type string, got %T instead", value) + } + sv.LastName = ptr.String(jtv) + } + + case "UserName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameType to be of type string, got %T instead", value) + } + sv.UserName = ptr.String(jtv) } default: @@ -7735,7 +10037,7 @@ func awsAwsjson11_deserializeDocumentDataSourceVpcConfiguration(v **types.DataSo return nil } -func awsAwsjson11_deserializeDocumentDocumentAttribute(v **types.DocumentAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludeMimeTypesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7743,44 +10045,35 @@ func awsAwsjson11_deserializeDocumentDocumentAttribute(v **types.DocumentAttribu 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.DocumentAttribute + var cv []string if *v == nil { - sv = &types.DocumentAttribute{} + cv = []string{} } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Key": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) - } - sv.Key = ptr.String(jtv) - } - - case "Value": - if err := awsAwsjson11_deserializeDocumentDocumentAttributeValue(&sv.Value, value); err != nil { - return err - } - - default: - _, _ = key, value + cv = *v + } + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MimeType to be of type string, got %T instead", value) + } + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]types.DocumentAttribute, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludeSharedDrivesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7793,20 +10086,22 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]types.DocumentAt return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DocumentAttribute + var cv []string if *v == nil { - cv = []types.DocumentAttribute{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.DocumentAttribute - destAddr := &col - if err := awsAwsjson11_deserializeDocumentDocumentAttribute(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SharedDriveId to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -7814,7 +10109,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeList(v *[]types.DocumentAt return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentExcludeUserAccountsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7839,7 +10134,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(v *[]strin if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected UserAccount to be of type string, got %T instead", value) } col = jtv } @@ -7850,7 +10145,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(v *[]strin return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeValue(v **types.DocumentAttributeValue, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperienceConfiguration(v **types.ExperienceConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7863,56 +10158,23 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValue(v **types.DocumentAt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DocumentAttributeValue + var sv *types.ExperienceConfiguration if *v == nil { - sv = &types.DocumentAttributeValue{} + sv = &types.ExperienceConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DateValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DateValue = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "LongValue": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.LongValue = ptr.Int64(i64) - } - - case "StringListValue": - if err := awsAwsjson11_deserializeDocumentDocumentAttributeStringListValue(&sv.StringListValue, value); err != nil { + case "ContentSourceConfiguration": + if err := awsAwsjson11_deserializeDocumentContentSourceConfiguration(&sv.ContentSourceConfiguration, value); err != nil { return err } - case "StringValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DocumentAttributeStringValue to be of type string, got %T instead", value) - } - sv.StringValue = ptr.String(jtv) + case "UserIdentityConfiguration": + if err := awsAwsjson11_deserializeDocumentUserIdentityConfiguration(&sv.UserIdentityConfiguration, value); err != nil { + return err } default: @@ -7924,7 +10186,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValue(v **types.DocumentAt return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(v **types.DocumentAttributeValueCountPair, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperienceEndpoint(v **types.ExperienceEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7937,31 +10199,31 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(v **types.D return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DocumentAttributeValueCountPair + var sv *types.ExperienceEndpoint if *v == nil { - sv = &types.DocumentAttributeValueCountPair{} + sv = &types.ExperienceEndpoint{} } else { sv = *v } for key, value := range shape { switch key { - case "Count": + case "Endpoint": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value) } - sv.Count = ptr.Int32(int32(i64)) + sv.Endpoint = ptr.String(jtv) } - case "DocumentAttributeValue": - if err := awsAwsjson11_deserializeDocumentDocumentAttributeValue(&sv.DocumentAttributeValue, value); err != nil { - return err + case "EndpointType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EndpointType to be of type string, got %T instead", value) + } + sv.EndpointType = types.EndpointType(jtv) } default: @@ -7973,7 +10235,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(v **types.D return nil } -func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]types.DocumentAttributeValueCountPair, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperienceEndpoints(v *[]types.ExperienceEndpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7986,17 +10248,17 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]ty return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DocumentAttributeValueCountPair + var cv []types.ExperienceEndpoint if *v == nil { - cv = []types.DocumentAttributeValueCountPair{} + cv = []types.ExperienceEndpoint{} } else { cv = *v } for _, value := range shape { - var col types.DocumentAttributeValueCountPair + var col types.ExperienceEndpoint destAddr := &col - if err := awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPair(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentExperienceEndpoint(&destAddr, value); err != nil { return err } col = *destAddr @@ -8007,7 +10269,7 @@ func awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(v *[]ty return nil } -func awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(v **types.DocumentMetadataConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperienceEntitiesSummary(v **types.ExperienceEntitiesSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8020,41 +10282,36 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(v **types.Doc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DocumentMetadataConfiguration + var sv *types.ExperienceEntitiesSummary if *v == nil { - sv = &types.DocumentMetadataConfiguration{} + sv = &types.ExperienceEntitiesSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": + case "DisplayData": + if err := awsAwsjson11_deserializeDocumentEntityDisplayData(&sv.DisplayData, value); err != nil { + return err + } + + case "EntityId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentMetadataConfigurationName to be of type string, got %T instead", value) + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "Relevance": - if err := awsAwsjson11_deserializeDocumentRelevance(&sv.Relevance, value); err != nil { - return err - } - - case "Search": - if err := awsAwsjson11_deserializeDocumentSearch(&sv.Search, value); err != nil { - return err + sv.EntityId = ptr.String(jtv) } - case "Type": + case "EntityType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentAttributeValueType to be of type string, got %T instead", value) + return fmt.Errorf("expected EntityType to be of type string, got %T instead", value) } - sv.Type = types.DocumentAttributeValueType(jtv) + sv.EntityType = types.EntityType(jtv) } default: @@ -8066,7 +10323,7 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(v **types.Doc return nil } -func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]types.DocumentMetadataConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperienceEntitiesSummaryList(v *[]types.ExperienceEntitiesSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8079,17 +10336,17 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]type return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DocumentMetadataConfiguration + var cv []types.ExperienceEntitiesSummary if *v == nil { - cv = []types.DocumentMetadataConfiguration{} + cv = []types.ExperienceEntitiesSummary{} } else { cv = *v } for _, value := range shape { - var col types.DocumentMetadataConfiguration + var col types.ExperienceEntitiesSummary destAddr := &col - if err := awsAwsjson11_deserializeDocumentDocumentMetadataConfiguration(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentExperienceEntitiesSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -8100,7 +10357,7 @@ func awsAwsjson11_deserializeDocumentDocumentMetadataConfigurationList(v *[]type return nil } -func awsAwsjson11_deserializeDocumentDocumentsMetadataConfiguration(v **types.DocumentsMetadataConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperiencesSummary(v **types.ExperiencesSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8113,22 +10370,61 @@ func awsAwsjson11_deserializeDocumentDocumentsMetadataConfiguration(v **types.Do return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DocumentsMetadataConfiguration + var sv *types.ExperiencesSummary if *v == nil { - sv = &types.DocumentsMetadataConfiguration{} + sv = &types.ExperiencesSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "S3Prefix": + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Endpoints": + if err := awsAwsjson11_deserializeDocumentExperienceEndpoints(&sv.Endpoints, value); err != nil { + return err + } + + case "Id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3ObjectKey to be of type string, got %T instead", value) + return fmt.Errorf("expected ExperienceId to be of type string, got %T instead", value) } - sv.S3Prefix = ptr.String(jtv) + sv.Id = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperienceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperienceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ExperienceStatus(jtv) } default: @@ -8140,7 +10436,7 @@ func awsAwsjson11_deserializeDocumentDocumentsMetadataConfiguration(v **types.Do return nil } -func awsAwsjson11_deserializeDocumentDocumentStatusList(v *[]types.Status, value interface{}) error { +func awsAwsjson11_deserializeDocumentExperiencesSummaryList(v *[]types.ExperiencesSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8153,17 +10449,17 @@ func awsAwsjson11_deserializeDocumentDocumentStatusList(v *[]types.Status, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Status + var cv []types.ExperiencesSummary if *v == nil { - cv = []types.Status{} + cv = []types.ExperiencesSummary{} } else { cv = *v } for _, value := range shape { - var col types.Status + var col types.ExperiencesSummary destAddr := &col - if err := awsAwsjson11_deserializeDocumentStatus(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentExperiencesSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -8174,7 +10470,7 @@ func awsAwsjson11_deserializeDocumentDocumentStatusList(v *[]types.Status, value return nil } -func awsAwsjson11_deserializeDocumentExcludeMimeTypesList(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFacetResult(v **types.FacetResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8182,71 +10478,53 @@ func awsAwsjson11_deserializeDocumentExcludeMimeTypesList(v *[]string, value int return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.FacetResult if *v == nil { - cv = []string{} + sv = &types.FacetResult{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected MimeType to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "DocumentAttributeKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) + } + sv.DocumentAttributeKey = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} -func awsAwsjson11_deserializeDocumentExcludeSharedDrivesList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "DocumentAttributeValueCountPairs": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(&sv.DocumentAttributeValueCountPairs, value); err != nil { + return err + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "DocumentAttributeValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DocumentAttributeValueType to be of type string, got %T instead", value) + } + sv.DocumentAttributeValueType = types.DocumentAttributeValueType(jtv) + } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SharedDriveId to be of type string, got %T instead", value) - } - col = jtv } - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentExcludeUserAccountsList(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentFacetResultList(v *[]types.FacetResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8259,22 +10537,20 @@ func awsAwsjson11_deserializeDocumentExcludeUserAccountsList(v *[]string, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.FacetResult if *v == nil { - cv = []string{} + cv = []types.FacetResult{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UserAccount to be of type string, got %T instead", value) - } - col = jtv + var col types.FacetResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentFacetResult(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -8282,7 +10558,7 @@ func awsAwsjson11_deserializeDocumentExcludeUserAccountsList(v *[]string, value return nil } -func awsAwsjson11_deserializeDocumentFacetResult(v **types.FacetResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedEntity(v **types.FailedEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8295,36 +10571,31 @@ func awsAwsjson11_deserializeDocumentFacetResult(v **types.FacetResult, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FacetResult + var sv *types.FailedEntity if *v == nil { - sv = &types.FacetResult{} + sv = &types.FailedEntity{} } else { sv = *v } for key, value := range shape { switch key { - case "DocumentAttributeKey": + case "EntityId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentAttributeKey to be of type string, got %T instead", value) + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) } - sv.DocumentAttributeKey = ptr.String(jtv) - } - - case "DocumentAttributeValueCountPairs": - if err := awsAwsjson11_deserializeDocumentDocumentAttributeValueCountPairList(&sv.DocumentAttributeValueCountPairs, value); err != nil { - return err + sv.EntityId = ptr.String(jtv) } - case "DocumentAttributeValueType": + case "ErrorMessage": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DocumentAttributeValueType to be of type string, got %T instead", value) + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) } - sv.DocumentAttributeValueType = types.DocumentAttributeValueType(jtv) + sv.ErrorMessage = ptr.String(jtv) } default: @@ -8336,7 +10607,7 @@ func awsAwsjson11_deserializeDocumentFacetResult(v **types.FacetResult, value in return nil } -func awsAwsjson11_deserializeDocumentFacetResultList(v *[]types.FacetResult, value interface{}) error { +func awsAwsjson11_deserializeDocumentFailedEntityList(v *[]types.FailedEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8349,17 +10620,17 @@ func awsAwsjson11_deserializeDocumentFacetResultList(v *[]types.FacetResult, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FacetResult + var cv []types.FailedEntity if *v == nil { - cv = []types.FacetResult{} + cv = []types.FailedEntity{} } else { cv = *v } for _, value := range shape { - var col types.FacetResult + var col types.FailedEntity destAddr := &col - if err := awsAwsjson11_deserializeDocumentFacetResult(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentFailedEntity(&destAddr, value); err != nil { return err } col = *destAddr @@ -8370,6 +10641,42 @@ func awsAwsjson11_deserializeDocumentFacetResultList(v *[]types.FacetResult, val return nil } +func awsAwsjson11_deserializeDocumentFaqIdsList(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 FaqId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentFaqStatistics(v **types.FaqStatistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8916,6 +11223,60 @@ func awsAwsjson11_deserializeDocumentHighlightList(v *[]types.Highlight, value i return nil } +func awsAwsjson11_deserializeDocumentHookConfiguration(v **types.HookConfiguration, 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.HookConfiguration + if *v == nil { + sv = &types.HookConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "InvocationCondition": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeCondition(&sv.InvocationCondition, value); err != nil { + return err + } + + case "LambdaArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LambdaArn to be of type string, got %T instead", value) + } + sv.LambdaArn = ptr.String(jtv) + } + + case "S3Bucket": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) + } + sv.S3Bucket = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentIndexConfigurationSummary(v **types.IndexConfigurationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8954,56 +11315,181 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummary(v **types.IndexCo } } - case "Edition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IndexEdition to be of type string, got %T instead", value) - } - sv.Edition = types.IndexEdition(jtv) - } + case "Edition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IndexEdition to be of type string, got %T instead", value) + } + sv.Edition = types.IndexEdition(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IndexId 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 IndexName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IndexStatus to be of type string, got %T instead", value) + } + sv.Status = types.IndexStatus(jtv) + } + + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = 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_deserializeDocumentIndexConfigurationSummaryList(v *[]types.IndexConfigurationSummary, 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.IndexConfigurationSummary + if *v == nil { + cv = []types.IndexConfigurationSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.IndexConfigurationSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentIndexConfigurationSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentIndexStatistics(v **types.IndexStatistics, 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.IndexStatistics + if *v == nil { + sv = &types.IndexStatistics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FaqStatistics": + if err := awsAwsjson11_deserializeDocumentFaqStatistics(&sv.FaqStatistics, value); err != nil { + return err + } + + case "TextDocumentStatistics": + if err := awsAwsjson11_deserializeDocumentTextDocumentStatistics(&sv.TextDocumentStatistics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentInlineCustomDocumentEnrichmentConfiguration(v **types.InlineCustomDocumentEnrichmentConfiguration, 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) + } - case "Id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } + var sv *types.InlineCustomDocumentEnrichmentConfiguration + if *v == nil { + sv = &types.InlineCustomDocumentEnrichmentConfiguration{} + } else { + sv = *v + } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IndexName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + for key, value := range shape { + switch key { + case "Condition": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeCondition(&sv.Condition, value); err != nil { + return err } - case "Status": + case "DocumentContentDeletion": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected IndexStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Status = types.IndexStatus(jtv) + sv.DocumentContentDeletion = jtv } - case "UpdatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + case "Target": + if err := awsAwsjson11_deserializeDocumentDocumentAttributeTarget(&sv.Target, value); err != nil { + return err } default: @@ -9015,7 +11501,7 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummary(v **types.IndexCo return nil } -func awsAwsjson11_deserializeDocumentIndexConfigurationSummaryList(v *[]types.IndexConfigurationSummary, value interface{}) error { +func awsAwsjson11_deserializeDocumentInlineCustomDocumentEnrichmentConfigurationList(v *[]types.InlineCustomDocumentEnrichmentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9028,17 +11514,17 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummaryList(v *[]types.In return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.IndexConfigurationSummary + var cv []types.InlineCustomDocumentEnrichmentConfiguration if *v == nil { - cv = []types.IndexConfigurationSummary{} + cv = []types.InlineCustomDocumentEnrichmentConfiguration{} } else { cv = *v } for _, value := range shape { - var col types.IndexConfigurationSummary + var col types.InlineCustomDocumentEnrichmentConfiguration destAddr := &col - if err := awsAwsjson11_deserializeDocumentIndexConfigurationSummary(&destAddr, value); err != nil { + if err := awsAwsjson11_deserializeDocumentInlineCustomDocumentEnrichmentConfiguration(&destAddr, value); err != nil { return err } col = *destAddr @@ -9049,7 +11535,7 @@ func awsAwsjson11_deserializeDocumentIndexConfigurationSummaryList(v *[]types.In return nil } -func awsAwsjson11_deserializeDocumentIndexStatistics(v **types.IndexStatistics, value interface{}) error { +func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9062,23 +11548,22 @@ func awsAwsjson11_deserializeDocumentIndexStatistics(v **types.IndexStatistics, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IndexStatistics + var sv *types.InternalServerException if *v == nil { - sv = &types.IndexStatistics{} + sv = &types.InternalServerException{} } else { sv = *v } for key, value := range shape { switch key { - case "FaqStatistics": - if err := awsAwsjson11_deserializeDocumentFaqStatistics(&sv.FaqStatistics, value); err != nil { - return err - } - - case "TextDocumentStatistics": - if err := awsAwsjson11_deserializeDocumentTextDocumentStatistics(&sv.TextDocumentStatistics, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -9090,7 +11575,7 @@ func awsAwsjson11_deserializeDocumentIndexStatistics(v **types.IndexStatistics, return nil } -func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { +func awsAwsjson11_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9103,9 +11588,9 @@ func awsAwsjson11_deserializeDocumentInternalServerException(v **types.InternalS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InternalServerException + var sv *types.InvalidRequestException if *v == nil { - sv = &types.InternalServerException{} + sv = &types.InvalidRequestException{} } else { sv = *v } @@ -9462,6 +11947,121 @@ func awsAwsjson11_deserializeDocumentOneDriveUsers(v **types.OneDriveUsers, valu return nil } +func awsAwsjson11_deserializeDocumentPersonasSummary(v **types.PersonasSummary, 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.PersonasSummary + if *v == nil { + sv = &types.PersonasSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "EntityId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityId to be of type string, got %T instead", value) + } + sv.EntityId = ptr.String(jtv) + } + + case "Persona": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Persona to be of type string, got %T instead", value) + } + sv.Persona = types.Persona(jtv) + } + + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = 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_deserializeDocumentPersonasSummaryList(v *[]types.PersonasSummary, 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.PersonasSummary + if *v == nil { + cv = []types.PersonasSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PersonasSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPersonasSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentProxyConfiguration(v **types.ProxyConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -11355,7 +13955,79 @@ func awsAwsjson11_deserializeDocumentSharePointConfiguration(v **types.SharePoin return nil } -func awsAwsjson11_deserializeDocumentSharePointUrlList(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSharePointUrlList(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 Url to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentSiteMapsConfiguration(v **types.SiteMapsConfiguration, 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.SiteMapsConfiguration + if *v == nil { + sv = &types.SiteMapsConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "SiteMaps": + if err := awsAwsjson11_deserializeDocumentSiteMapsList(&sv.SiteMaps, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSiteMapsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11380,7 +14052,7 @@ func awsAwsjson11_deserializeDocumentSharePointUrlList(v *[]string, value interf if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) + return fmt.Errorf("expected SiteMap to be of type string, got %T instead", value) } col = jtv } @@ -11391,7 +14063,7 @@ func awsAwsjson11_deserializeDocumentSharePointUrlList(v *[]string, value interf return nil } -func awsAwsjson11_deserializeDocumentSiteMapsConfiguration(v **types.SiteMapsConfiguration, value interface{}) error { +func awsAwsjson11_deserializeDocumentSnapshotsDataHeaderFields(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11399,35 +14071,35 @@ func awsAwsjson11_deserializeDocumentSiteMapsConfiguration(v **types.SiteMapsCon 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.SiteMapsConfiguration + var cv []string if *v == nil { - sv = &types.SiteMapsConfiguration{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "SiteMaps": - if err := awsAwsjson11_deserializeDocumentSiteMapsList(&sv.SiteMaps, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeDocumentSiteMapsList(v *[]string, value interface{}) error { +func awsAwsjson11_deserializeDocumentSnapshotsDataRecord(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11452,7 +14124,7 @@ func awsAwsjson11_deserializeDocumentSiteMapsList(v *[]string, value interface{} if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SiteMap to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } col = jtv } @@ -11463,6 +14135,38 @@ func awsAwsjson11_deserializeDocumentSiteMapsList(v *[]string, value interface{} return nil } +func awsAwsjson11_deserializeDocumentSnapshotsDataRecords(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 err := awsAwsjson11_deserializeDocumentSnapshotsDataRecord(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentSqlConfiguration(v **types.SqlConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12206,6 +14910,69 @@ func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } +func awsAwsjson11_deserializeDocumentTimeRange(v **types.TimeRange, 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.TimeRange + if *v == nil { + sv = &types.TimeRange{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + 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_deserializeDocumentUrls(v **types.Urls, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12287,6 +15054,46 @@ func awsAwsjson11_deserializeDocumentUserGroupResolutionConfiguration(v **types. return nil } +func awsAwsjson11_deserializeDocumentUserIdentityConfiguration(v **types.UserIdentityConfiguration, 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.UserIdentityConfiguration + if *v == nil { + sv = &types.UserIdentityConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "IdentityAttributeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityAttributeName to be of type string, got %T instead", value) + } + sv.IdentityAttributeName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentUserTokenConfiguration(v **types.UserTokenConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12552,13 +15359,122 @@ func awsAwsjson11_deserializeDocumentWebCrawlerConfiguration(v **types.WebCrawle return err } - case "UrlInclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.UrlInclusionPatterns, value); err != nil { - return err - } + case "UrlInclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.UrlInclusionPatterns, value); err != nil { + return err + } + + case "Urls": + if err := awsAwsjson11_deserializeDocumentUrls(&sv.Urls, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentWorkDocsConfiguration(v **types.WorkDocsConfiguration, 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.WorkDocsConfiguration + if *v == nil { + sv = &types.WorkDocsConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CrawlComments": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.CrawlComments = jtv + } + + case "ExclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.ExclusionPatterns, value); err != nil { + return err + } + + case "FieldMappings": + if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(&sv.FieldMappings, value); err != nil { + return err + } + + case "InclusionPatterns": + if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.InclusionPatterns, value); err != nil { + return err + } + + case "OrganizationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) + } + sv.OrganizationId = ptr.String(jtv) + } + + case "UseChangeLog": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.UseChangeLog = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentAssociateEntitiesToExperienceOutput(v **AssociateEntitiesToExperienceOutput, 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) + } - case "Urls": - if err := awsAwsjson11_deserializeDocumentUrls(&sv.Urls, value); err != nil { + var sv *AssociateEntitiesToExperienceOutput + if *v == nil { + sv = &AssociateEntitiesToExperienceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FailedEntityList": + if err := awsAwsjson11_deserializeDocumentAssociateEntitiesToExperienceFailedEntityList(&sv.FailedEntityList, value); err != nil { return err } @@ -12571,7 +15487,7 @@ func awsAwsjson11_deserializeDocumentWebCrawlerConfiguration(v **types.WebCrawle return nil } -func awsAwsjson11_deserializeDocumentWorkDocsConfiguration(v **types.WorkDocsConfiguration, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentAssociatePersonasToEntitiesOutput(v **AssociatePersonasToEntitiesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12584,57 +15500,20 @@ func awsAwsjson11_deserializeDocumentWorkDocsConfiguration(v **types.WorkDocsCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.WorkDocsConfiguration + var sv *AssociatePersonasToEntitiesOutput if *v == nil { - sv = &types.WorkDocsConfiguration{} + sv = &AssociatePersonasToEntitiesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CrawlComments": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.CrawlComments = jtv - } - - case "ExclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.ExclusionPatterns, value); err != nil { + case "FailedEntityList": + if err := awsAwsjson11_deserializeDocumentFailedEntityList(&sv.FailedEntityList, value); err != nil { return err } - case "FieldMappings": - if err := awsAwsjson11_deserializeDocumentDataSourceToIndexFieldMappingList(&sv.FieldMappings, value); err != nil { - return err - } - - case "InclusionPatterns": - if err := awsAwsjson11_deserializeDocumentDataSourceInclusionsExclusionsStrings(&sv.InclusionPatterns, value); err != nil { - return err - } - - case "OrganizationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OrganizationId to be of type string, got %T instead", value) - } - sv.OrganizationId = ptr.String(jtv) - } - - case "UseChangeLog": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.UseChangeLog = jtv - } - default: _, _ = key, value @@ -12797,6 +15676,46 @@ func awsAwsjson11_deserializeOpDocumentCreateDataSourceOutput(v **CreateDataSour return nil } +func awsAwsjson11_deserializeOpDocumentCreateExperienceOutput(v **CreateExperienceOutput, 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 *CreateExperienceOutput + if *v == nil { + sv = &CreateExperienceOutput{} + } 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 ExperienceId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateFaqOutput(v **CreateFaqOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -12957,6 +15876,37 @@ func awsAwsjson11_deserializeOpDocumentCreateThesaurusOutput(v **CreateThesaurus return nil } +func awsAwsjson11_deserializeOpDocumentDeleteExperienceOutput(v **DeleteExperienceOutput, 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 *DeleteExperienceOutput + if *v == nil { + sv = &DeleteExperienceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeDataSourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13000,6 +15950,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData } } + case "CustomDocumentEnrichmentConfiguration": + if err := awsAwsjson11_deserializeDocumentCustomDocumentEnrichmentConfiguration(&sv.CustomDocumentEnrichmentConfiguration, value); err != nil { + return err + } + case "Description": if value != nil { jtv, ok := value.(string) @@ -13049,45 +16004,181 @@ func awsAwsjson11_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "Schedule": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ScanSchedule to be of type string, got %T instead", value) + } + sv.Schedule = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.DataSourceStatus(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) + } + sv.Type = types.DataSourceType(jtv) + } + + case "UpdatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpdatedAt = 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_deserializeOpDocumentDescribeExperienceOutput(v **DescribeExperienceOutput, 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 *DescribeExperienceOutput + if *v == nil { + sv = &DescribeExperienceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Configuration": + if err := awsAwsjson11_deserializeDocumentExperienceConfiguration(&sv.Configuration, value); err != nil { + return err + } + + case "CreatedAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedAt = 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 Description to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "Endpoints": + if err := awsAwsjson11_deserializeDocumentExperienceEndpoints(&sv.Endpoints, value); err != nil { + return err + } + + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperienceId to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "RoleArn": + case "IndexId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + return fmt.Errorf("expected IndexId to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) + sv.IndexId = ptr.String(jtv) } - case "Schedule": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ScanSchedule to be of type string, got %T instead", value) + return fmt.Errorf("expected ExperienceName to be of type string, got %T instead", value) } - sv.Schedule = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "Status": + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.Status = types.DataSourceStatus(jtv) + sv.RoleArn = ptr.String(jtv) } - case "Type": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) + return fmt.Errorf("expected ExperienceStatus to be of type string, got %T instead", value) } - sv.Type = types.DataSourceType(jtv) + sv.Status = types.ExperienceStatus(jtv) } case "UpdatedAt": @@ -13961,6 +17052,78 @@ func awsAwsjson11_deserializeOpDocumentDescribeThesaurusOutput(v **DescribeThesa return nil } +func awsAwsjson11_deserializeOpDocumentDisassociateEntitiesFromExperienceOutput(v **DisassociateEntitiesFromExperienceOutput, 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 *DisassociateEntitiesFromExperienceOutput + if *v == nil { + sv = &DisassociateEntitiesFromExperienceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FailedEntityList": + if err := awsAwsjson11_deserializeDocumentFailedEntityList(&sv.FailedEntityList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDisassociatePersonasFromEntitiesOutput(v **DisassociatePersonasFromEntitiesOutput, 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 *DisassociatePersonasFromEntitiesOutput + if *v == nil { + sv = &DisassociatePersonasFromEntitiesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FailedEntityList": + if err := awsAwsjson11_deserializeDocumentFailedEntityList(&sv.FailedEntityList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentGetQuerySuggestionsOutput(v **GetQuerySuggestionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14006,6 +17169,61 @@ func awsAwsjson11_deserializeOpDocumentGetQuerySuggestionsOutput(v **GetQuerySug return nil } +func awsAwsjson11_deserializeOpDocumentGetSnapshotsOutput(v **GetSnapshotsOutput, 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 *GetSnapshotsOutput + if *v == nil { + sv = &GetSnapshotsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "SnapshotsData": + if err := awsAwsjson11_deserializeDocumentSnapshotsDataRecords(&sv.SnapshotsData, value); err != nil { + return err + } + + case "SnapshotsDataHeader": + if err := awsAwsjson11_deserializeDocumentSnapshotsDataHeaderFields(&sv.SnapshotsDataHeader, value); err != nil { + return err + } + + case "SnapShotTimeFilter": + if err := awsAwsjson11_deserializeDocumentTimeRange(&sv.SnapShotTimeFilter, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentListDataSourcesOutput(v **ListDataSourcesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14096,6 +17314,141 @@ func awsAwsjson11_deserializeOpDocumentListDataSourceSyncJobsOutput(v **ListData return nil } +func awsAwsjson11_deserializeOpDocumentListEntityPersonasOutput(v **ListEntityPersonasOutput, 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 *ListEntityPersonasOutput + if *v == nil { + sv = &ListEntityPersonasOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "SummaryItems": + if err := awsAwsjson11_deserializeDocumentPersonasSummaryList(&sv.SummaryItems, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListExperienceEntitiesOutput(v **ListExperienceEntitiesOutput, 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 *ListExperienceEntitiesOutput + if *v == nil { + sv = &ListExperienceEntitiesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "SummaryItems": + if err := awsAwsjson11_deserializeDocumentExperienceEntitiesSummaryList(&sv.SummaryItems, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListExperiencesOutput(v **ListExperiencesOutput, 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 *ListExperiencesOutput + if *v == nil { + sv = &ListExperiencesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "SummaryItems": + if err := awsAwsjson11_deserializeDocumentExperiencesSummaryList(&sv.SummaryItems, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentListFaqsOutput(v **ListFaqsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/kendra/generated.json b/service/kendra/generated.json index c742b66cae5..9d74d5c9556 100644 --- a/service/kendra/generated.json +++ b/service/kendra/generated.json @@ -7,31 +7,42 @@ }, "files": [ "api_client.go", + "api_op_AssociateEntitiesToExperience.go", + "api_op_AssociatePersonasToEntities.go", "api_op_BatchDeleteDocument.go", "api_op_BatchGetDocumentStatus.go", "api_op_BatchPutDocument.go", "api_op_ClearQuerySuggestions.go", "api_op_CreateDataSource.go", + "api_op_CreateExperience.go", "api_op_CreateFaq.go", "api_op_CreateIndex.go", "api_op_CreateQuerySuggestionsBlockList.go", "api_op_CreateThesaurus.go", "api_op_DeleteDataSource.go", + "api_op_DeleteExperience.go", "api_op_DeleteFaq.go", "api_op_DeleteIndex.go", "api_op_DeletePrincipalMapping.go", "api_op_DeleteQuerySuggestionsBlockList.go", "api_op_DeleteThesaurus.go", "api_op_DescribeDataSource.go", + "api_op_DescribeExperience.go", "api_op_DescribeFaq.go", "api_op_DescribeIndex.go", "api_op_DescribePrincipalMapping.go", "api_op_DescribeQuerySuggestionsBlockList.go", "api_op_DescribeQuerySuggestionsConfig.go", "api_op_DescribeThesaurus.go", + "api_op_DisassociateEntitiesFromExperience.go", + "api_op_DisassociatePersonasFromEntities.go", "api_op_GetQuerySuggestions.go", + "api_op_GetSnapshots.go", "api_op_ListDataSourceSyncJobs.go", "api_op_ListDataSources.go", + "api_op_ListEntityPersonas.go", + "api_op_ListExperienceEntities.go", + "api_op_ListExperiences.go", "api_op_ListFaqs.go", "api_op_ListGroupsOlderThanOrderingId.go", "api_op_ListIndices.go", @@ -46,6 +57,7 @@ "api_op_TagResource.go", "api_op_UntagResource.go", "api_op_UpdateDataSource.go", + "api_op_UpdateExperience.go", "api_op_UpdateIndex.go", "api_op_UpdateQuerySuggestionsBlockList.go", "api_op_UpdateQuerySuggestionsConfig.go", diff --git a/service/kendra/serializers.go b/service/kendra/serializers.go index e9a0a015e63..d200a528d7e 100644 --- a/service/kendra/serializers.go +++ b/service/kendra/serializers.go @@ -17,6 +17,116 @@ import ( "path" ) +type awsAwsjson11_serializeOpAssociateEntitiesToExperience struct { +} + +func (*awsAwsjson11_serializeOpAssociateEntitiesToExperience) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpAssociateEntitiesToExperience) 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.(*AssociateEntitiesToExperienceInput) + _ = 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("AWSKendraFrontendService.AssociateEntitiesToExperience") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentAssociateEntitiesToExperienceInput(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_serializeOpAssociatePersonasToEntities struct { +} + +func (*awsAwsjson11_serializeOpAssociatePersonasToEntities) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpAssociatePersonasToEntities) 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.(*AssociatePersonasToEntitiesInput) + _ = 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("AWSKendraFrontendService.AssociatePersonasToEntities") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentAssociatePersonasToEntitiesInput(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_serializeOpBatchDeleteDocument struct { } @@ -292,6 +402,61 @@ func (m *awsAwsjson11_serializeOpCreateDataSource) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreateExperience struct { +} + +func (*awsAwsjson11_serializeOpCreateExperience) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateExperience) 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.(*CreateExperienceInput) + _ = 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("AWSKendraFrontendService.CreateExperience") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateExperienceInput(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_serializeOpCreateFaq struct { } @@ -567,6 +732,61 @@ func (m *awsAwsjson11_serializeOpDeleteDataSource) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteExperience struct { +} + +func (*awsAwsjson11_serializeOpDeleteExperience) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteExperience) 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.(*DeleteExperienceInput) + _ = 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("AWSKendraFrontendService.DeleteExperience") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteExperienceInput(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_serializeOpDeleteFaq struct { } @@ -897,6 +1117,61 @@ func (m *awsAwsjson11_serializeOpDescribeDataSource) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeExperience struct { +} + +func (*awsAwsjson11_serializeOpDescribeExperience) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeExperience) 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.(*DescribeExperienceInput) + _ = 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("AWSKendraFrontendService.DescribeExperience") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeExperienceInput(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_serializeOpDescribeFaq struct { } @@ -1227,14 +1502,14 @@ func (m *awsAwsjson11_serializeOpDescribeThesaurus) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpGetQuerySuggestions struct { +type awsAwsjson11_serializeOpDisassociateEntitiesFromExperience struct { } -func (*awsAwsjson11_serializeOpGetQuerySuggestions) ID() string { +func (*awsAwsjson11_serializeOpDisassociateEntitiesFromExperience) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpGetQuerySuggestions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDisassociateEntitiesFromExperience) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1242,7 +1517,7 @@ func (m *awsAwsjson11_serializeOpGetQuerySuggestions) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetQuerySuggestionsInput) + input, ok := in.Parameters.(*DisassociateEntitiesFromExperienceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1263,10 +1538,10 @@ func (m *awsAwsjson11_serializeOpGetQuerySuggestions) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSKendraFrontendService.GetQuerySuggestions") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSKendraFrontendService.DisassociateEntitiesFromExperience") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetQuerySuggestionsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentDisassociateEntitiesFromExperienceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1282,14 +1557,14 @@ func (m *awsAwsjson11_serializeOpGetQuerySuggestions) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListDataSources struct { +type awsAwsjson11_serializeOpDisassociatePersonasFromEntities struct { } -func (*awsAwsjson11_serializeOpListDataSources) ID() string { +func (*awsAwsjson11_serializeOpDisassociatePersonasFromEntities) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListDataSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpDisassociatePersonasFromEntities) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1297,7 +1572,7 @@ func (m *awsAwsjson11_serializeOpListDataSources) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListDataSourcesInput) + input, ok := in.Parameters.(*DisassociatePersonasFromEntitiesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1318,7 +1593,172 @@ func (m *awsAwsjson11_serializeOpListDataSources) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSKendraFrontendService.ListDataSources") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSKendraFrontendService.DisassociatePersonasFromEntities") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDisassociatePersonasFromEntitiesInput(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_serializeOpGetQuerySuggestions struct { +} + +func (*awsAwsjson11_serializeOpGetQuerySuggestions) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpGetQuerySuggestions) 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.(*GetQuerySuggestionsInput) + _ = 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("AWSKendraFrontendService.GetQuerySuggestions") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentGetQuerySuggestionsInput(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_serializeOpGetSnapshots struct { +} + +func (*awsAwsjson11_serializeOpGetSnapshots) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpGetSnapshots) 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.(*GetSnapshotsInput) + _ = 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("AWSKendraFrontendService.GetSnapshots") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentGetSnapshotsInput(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_serializeOpListDataSources struct { +} + +func (*awsAwsjson11_serializeOpListDataSources) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListDataSources) 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.(*ListDataSourcesInput) + _ = 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("AWSKendraFrontendService.ListDataSources") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListDataSourcesInput(input, jsonEncoder.Value); err != nil { @@ -1392,6 +1832,171 @@ func (m *awsAwsjson11_serializeOpListDataSourceSyncJobs) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpListEntityPersonas struct { +} + +func (*awsAwsjson11_serializeOpListEntityPersonas) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListEntityPersonas) 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.(*ListEntityPersonasInput) + _ = 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("AWSKendraFrontendService.ListEntityPersonas") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListEntityPersonasInput(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_serializeOpListExperienceEntities struct { +} + +func (*awsAwsjson11_serializeOpListExperienceEntities) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListExperienceEntities) 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.(*ListExperienceEntitiesInput) + _ = 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("AWSKendraFrontendService.ListExperienceEntities") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListExperienceEntitiesInput(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_serializeOpListExperiences struct { +} + +func (*awsAwsjson11_serializeOpListExperiences) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListExperiences) 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.(*ListExperiencesInput) + _ = 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("AWSKendraFrontendService.ListExperiences") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListExperiencesInput(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_serializeOpListFaqs struct { } @@ -2143,10 +2748,65 @@ func (m *awsAwsjson11_serializeOpUpdateDataSource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSKendraFrontendService.UpdateDataSource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSKendraFrontendService.UpdateDataSource") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateDataSourceInput(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_serializeOpUpdateExperience struct { +} + +func (*awsAwsjson11_serializeOpUpdateExperience) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateExperience) 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.(*UpdateExperienceInput) + _ = 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("AWSKendraFrontendService.UpdateExperience") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateDataSourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentUpdateExperienceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2405,6 +3065,19 @@ func awsAwsjson11_serializeDocumentAclConfiguration(v *types.AclConfiguration, v return nil } +func awsAwsjson11_serializeDocumentAssociateEntityList(v []types.EntityConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentEntityConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentAttributeFilter(v *types.AttributeFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2977,6 +3650,65 @@ func awsAwsjson11_serializeDocumentConnectionConfiguration(v *types.ConnectionCo return nil } +func awsAwsjson11_serializeDocumentContentSourceConfiguration(v *types.ContentSourceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSourceIds != nil { + ok := object.Key("DataSourceIds") + if err := awsAwsjson11_serializeDocumentDataSourceIdList(v.DataSourceIds, ok); err != nil { + return err + } + } + + if v.DirectPutContent { + ok := object.Key("DirectPutContent") + ok.Boolean(v.DirectPutContent) + } + + if v.FaqIds != nil { + ok := object.Key("FaqIds") + if err := awsAwsjson11_serializeDocumentFaqIdsList(v.FaqIds, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentCustomDocumentEnrichmentConfiguration(v *types.CustomDocumentEnrichmentConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InlineConfigurations != nil { + ok := object.Key("InlineConfigurations") + if err := awsAwsjson11_serializeDocumentInlineCustomDocumentEnrichmentConfigurationList(v.InlineConfigurations, ok); err != nil { + return err + } + } + + if v.PostExtractionHookConfiguration != nil { + ok := object.Key("PostExtractionHookConfiguration") + if err := awsAwsjson11_serializeDocumentHookConfiguration(v.PostExtractionHookConfiguration, ok); err != nil { + return err + } + } + + if v.PreExtractionHookConfiguration != nil { + ok := object.Key("PreExtractionHookConfiguration") + if err := awsAwsjson11_serializeDocumentHookConfiguration(v.PreExtractionHookConfiguration, ok); err != nil { + return err + } + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + return nil +} + func awsAwsjson11_serializeDocumentDatabaseConfiguration(v *types.DatabaseConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3131,6 +3863,17 @@ func awsAwsjson11_serializeDocumentDataSourceGroups(v []types.DataSourceGroup, v return nil } +func awsAwsjson11_serializeDocumentDataSourceIdList(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_serializeDocumentDataSourceInclusionsExclusionsStrings(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3215,6 +3958,19 @@ func awsAwsjson11_serializeDocumentDataSourceVpcConfiguration(v *types.DataSourc return nil } +func awsAwsjson11_serializeDocumentDisassociateEntityList(v []types.EntityConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentEntityConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentDocument(v *types.Document, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3289,6 +4045,30 @@ func awsAwsjson11_serializeDocumentDocumentAttribute(v *types.DocumentAttribute, return nil } +func awsAwsjson11_serializeDocumentDocumentAttributeCondition(v *types.DocumentAttributeCondition, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConditionDocumentAttributeKey != nil { + ok := object.Key("ConditionDocumentAttributeKey") + ok.String(*v.ConditionDocumentAttributeKey) + } + + if v.ConditionOnValue != nil { + ok := object.Key("ConditionOnValue") + if err := awsAwsjson11_serializeDocumentDocumentAttributeValue(v.ConditionOnValue, ok); err != nil { + return err + } + } + + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) + } + + return nil +} + func awsAwsjson11_serializeDocumentDocumentAttributeKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3324,6 +4104,30 @@ func awsAwsjson11_serializeDocumentDocumentAttributeStringListValue(v []string, return nil } +func awsAwsjson11_serializeDocumentDocumentAttributeTarget(v *types.DocumentAttributeTarget, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TargetDocumentAttributeKey != nil { + ok := object.Key("TargetDocumentAttributeKey") + ok.String(*v.TargetDocumentAttributeKey) + } + + if v.TargetDocumentAttributeValue != nil { + ok := object.Key("TargetDocumentAttributeValue") + if err := awsAwsjson11_serializeDocumentDocumentAttributeValue(v.TargetDocumentAttributeValue, ok); err != nil { + return err + } + } + + if v.TargetDocumentAttributeValueDeletion { + ok := object.Key("TargetDocumentAttributeValueDeletion") + ok.Boolean(v.TargetDocumentAttributeValueDeletion) + } + + return nil +} + func awsAwsjson11_serializeDocumentDocumentAttributeValue(v *types.DocumentAttributeValue, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3497,6 +4301,64 @@ func awsAwsjson11_serializeDocumentDocumentsMetadataConfiguration(v *types.Docum return nil } +func awsAwsjson11_serializeDocumentEntityConfiguration(v *types.EntityConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityId != nil { + ok := object.Key("EntityId") + ok.String(*v.EntityId) + } + + if len(v.EntityType) > 0 { + ok := object.Key("EntityType") + ok.String(string(v.EntityType)) + } + + return nil +} + +func awsAwsjson11_serializeDocumentEntityIdsList(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_serializeDocumentEntityPersonaConfiguration(v *types.EntityPersonaConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityId != nil { + ok := object.Key("EntityId") + ok.String(*v.EntityId) + } + + if len(v.Persona) > 0 { + ok := object.Key("Persona") + ok.String(string(v.Persona)) + } + + return nil +} + +func awsAwsjson11_serializeDocumentEntityPersonaConfigurationList(v []types.EntityPersonaConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentEntityPersonaConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentExcludeMimeTypesList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -3530,6 +4392,27 @@ func awsAwsjson11_serializeDocumentExcludeUserAccountsList(v []string, value smi return nil } +func awsAwsjson11_serializeDocumentExperienceConfiguration(v *types.ExperienceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContentSourceConfiguration != nil { + ok := object.Key("ContentSourceConfiguration") + if err := awsAwsjson11_serializeDocumentContentSourceConfiguration(v.ContentSourceConfiguration, ok); err != nil { + return err + } + } + + if v.UserIdentityConfiguration != nil { + ok := object.Key("UserIdentityConfiguration") + if err := awsAwsjson11_serializeDocumentUserIdentityConfiguration(v.UserIdentityConfiguration, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentFacet(v *types.Facet, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3555,6 +4438,17 @@ func awsAwsjson11_serializeDocumentFacetList(v []types.Facet, value smithyjson.V return nil } +func awsAwsjson11_serializeDocumentFaqIdsList(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_serializeDocumentGoogleDriveConfiguration(v *types.GoogleDriveConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3675,6 +4569,69 @@ func awsAwsjson11_serializeDocumentHierarchicalPrincipalList(v []types.Hierarchi return nil } +func awsAwsjson11_serializeDocumentHookConfiguration(v *types.HookConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InvocationCondition != nil { + ok := object.Key("InvocationCondition") + if err := awsAwsjson11_serializeDocumentDocumentAttributeCondition(v.InvocationCondition, ok); err != nil { + return err + } + } + + if v.LambdaArn != nil { + ok := object.Key("LambdaArn") + ok.String(*v.LambdaArn) + } + + if v.S3Bucket != nil { + ok := object.Key("S3Bucket") + ok.String(*v.S3Bucket) + } + + return nil +} + +func awsAwsjson11_serializeDocumentInlineCustomDocumentEnrichmentConfiguration(v *types.InlineCustomDocumentEnrichmentConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Condition != nil { + ok := object.Key("Condition") + if err := awsAwsjson11_serializeDocumentDocumentAttributeCondition(v.Condition, ok); err != nil { + return err + } + } + + if v.DocumentContentDeletion { + ok := object.Key("DocumentContentDeletion") + ok.Boolean(v.DocumentContentDeletion) + } + + if v.Target != nil { + ok := object.Key("Target") + if err := awsAwsjson11_serializeDocumentDocumentAttributeTarget(v.Target, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentInlineCustomDocumentEnrichmentConfigurationList(v []types.InlineCustomDocumentEnrichmentConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentInlineCustomDocumentEnrichmentConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentJsonTokenTypeConfiguration(v *types.JsonTokenTypeConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4822,6 +5779,18 @@ func awsAwsjson11_serializeDocumentUserGroupResolutionConfiguration(v *types.Use return nil } +func awsAwsjson11_serializeDocumentUserIdentityConfiguration(v *types.UserIdentityConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IdentityAttributeName != nil { + ok := object.Key("IdentityAttributeName") + ok.String(*v.IdentityAttributeName) + } + + return nil +} + func awsAwsjson11_serializeDocumentUserTokenConfiguration(v *types.UserTokenConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -4977,9 +5946,57 @@ func awsAwsjson11_serializeDocumentWorkDocsConfiguration(v *types.WorkDocsConfig ok.String(*v.OrganizationId) } - if v.UseChangeLog { - ok := object.Key("UseChangeLog") - ok.Boolean(v.UseChangeLog) + if v.UseChangeLog { + ok := object.Key("UseChangeLog") + ok.Boolean(v.UseChangeLog) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentAssociateEntitiesToExperienceInput(v *AssociateEntitiesToExperienceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityList != nil { + ok := object.Key("EntityList") + if err := awsAwsjson11_serializeDocumentAssociateEntityList(v.EntityList, ok); err != nil { + return err + } + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentAssociatePersonasToEntitiesInput(v *AssociatePersonasToEntitiesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + if v.Personas != nil { + ok := object.Key("Personas") + if err := awsAwsjson11_serializeDocumentEntityPersonaConfigurationList(v.Personas, ok); err != nil { + return err + } } return nil @@ -5034,6 +6051,13 @@ func awsAwsjson11_serializeOpDocumentBatchPutDocumentInput(v *BatchPutDocumentIn object := value.Object() defer object.Close() + if v.CustomDocumentEnrichmentConfiguration != nil { + ok := object.Key("CustomDocumentEnrichmentConfiguration") + if err := awsAwsjson11_serializeDocumentCustomDocumentEnrichmentConfiguration(v.CustomDocumentEnrichmentConfiguration, ok); err != nil { + return err + } + } + if v.Documents != nil { ok := object.Key("Documents") if err := awsAwsjson11_serializeDocumentDocumentList(v.Documents, ok); err != nil { @@ -5082,6 +6106,13 @@ func awsAwsjson11_serializeOpDocumentCreateDataSourceInput(v *CreateDataSourceIn } } + if v.CustomDocumentEnrichmentConfiguration != nil { + ok := object.Key("CustomDocumentEnrichmentConfiguration") + if err := awsAwsjson11_serializeDocumentCustomDocumentEnrichmentConfiguration(v.CustomDocumentEnrichmentConfiguration, ok); err != nil { + return err + } + } + if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) @@ -5127,6 +6158,45 @@ func awsAwsjson11_serializeOpDocumentCreateDataSourceInput(v *CreateDataSourceIn return nil } +func awsAwsjson11_serializeOpDocumentCreateExperienceInput(v *CreateExperienceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("ClientToken") + ok.String(*v.ClientToken) + } + + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsAwsjson11_serializeDocumentExperienceConfiguration(v.Configuration, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateFaqInput(v *CreateFaqInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5357,6 +6427,23 @@ func awsAwsjson11_serializeOpDocumentDeleteDataSourceInput(v *DeleteDataSourceIn return nil } +func awsAwsjson11_serializeOpDocumentDeleteExperienceInput(v *DeleteExperienceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteFaqInput(v *DeleteFaqInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5464,6 +6551,23 @@ func awsAwsjson11_serializeOpDocumentDescribeDataSourceInput(v *DescribeDataSour return nil } +func awsAwsjson11_serializeOpDocumentDescribeExperienceInput(v *DescribeExperienceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeFaqInput(v *DescribeFaqInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5561,6 +6665,54 @@ func awsAwsjson11_serializeOpDocumentDescribeThesaurusInput(v *DescribeThesaurus return nil } +func awsAwsjson11_serializeOpDocumentDisassociateEntitiesFromExperienceInput(v *DisassociateEntitiesFromExperienceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityList != nil { + ok := object.Key("EntityList") + if err := awsAwsjson11_serializeDocumentDisassociateEntityList(v.EntityList, ok); err != nil { + return err + } + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentDisassociatePersonasFromEntitiesInput(v *DisassociatePersonasFromEntitiesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityIds != nil { + ok := object.Key("EntityIds") + if err := awsAwsjson11_serializeDocumentEntityIdsList(v.EntityIds, ok); err != nil { + return err + } + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentGetQuerySuggestionsInput(v *GetQuerySuggestionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5583,6 +6735,38 @@ func awsAwsjson11_serializeOpDocumentGetQuerySuggestionsInput(v *GetQuerySuggest return nil } +func awsAwsjson11_serializeOpDocumentGetSnapshotsInput(v *GetSnapshotsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + if len(v.Interval) > 0 { + ok := object.Key("Interval") + ok.String(string(v.Interval)) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if len(v.MetricType) > 0 { + ok := object.Key("MetricType") + ok.String(string(v.MetricType)) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListDataSourcesInput(v *ListDataSourcesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5644,6 +6828,77 @@ func awsAwsjson11_serializeOpDocumentListDataSourceSyncJobsInput(v *ListDataSour return nil } +func awsAwsjson11_serializeOpDocumentListEntityPersonasInput(v *ListEntityPersonasInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + 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_serializeOpDocumentListExperienceEntitiesInput(v *ListExperienceEntitiesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListExperiencesInput(v *ListExperiencesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + 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_serializeOpDocumentListFaqsInput(v *ListFaqsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6003,6 +7258,13 @@ func awsAwsjson11_serializeOpDocumentUpdateDataSourceInput(v *UpdateDataSourceIn } } + if v.CustomDocumentEnrichmentConfiguration != nil { + ok := object.Key("CustomDocumentEnrichmentConfiguration") + if err := awsAwsjson11_serializeDocumentCustomDocumentEnrichmentConfiguration(v.CustomDocumentEnrichmentConfiguration, ok); err != nil { + return err + } + } + if v.Description != nil { ok := object.Key("Description") ok.String(*v.Description) @@ -6041,6 +7303,45 @@ func awsAwsjson11_serializeOpDocumentUpdateDataSourceInput(v *UpdateDataSourceIn return nil } +func awsAwsjson11_serializeOpDocumentUpdateExperienceInput(v *UpdateExperienceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsAwsjson11_serializeDocumentExperienceConfiguration(v.Configuration, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.IndexId != nil { + ok := object.Key("IndexId") + ok.String(*v.IndexId) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateIndexInput(v *UpdateIndexInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/kendra/types/enums.go b/service/kendra/types/enums.go index 5d4d801b3f9..786a675697a 100644 --- a/service/kendra/types/enums.go +++ b/service/kendra/types/enums.go @@ -19,6 +19,42 @@ func (AdditionalResultAttributeValueType) Values() []AdditionalResultAttributeVa } } +type ConditionOperator string + +// Enum values for ConditionOperator +const ( + ConditionOperatorGreaterThan ConditionOperator = "GreaterThan" + ConditionOperatorGreaterThanOrEquals ConditionOperator = "GreaterThanOrEquals" + ConditionOperatorLessThan ConditionOperator = "LessThan" + ConditionOperatorLessThanOrEquals ConditionOperator = "LessThanOrEquals" + ConditionOperatorEquals ConditionOperator = "Equals" + ConditionOperatorNotEquals ConditionOperator = "NotEquals" + ConditionOperatorContains ConditionOperator = "Contains" + ConditionOperatorNotContains ConditionOperator = "NotContains" + ConditionOperatorExists ConditionOperator = "Exists" + ConditionOperatorNotExists ConditionOperator = "NotExists" + ConditionOperatorBeginsWith ConditionOperator = "BeginsWith" +) + +// Values returns all known values for ConditionOperator. 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 (ConditionOperator) Values() []ConditionOperator { + return []ConditionOperator{ + "GreaterThan", + "GreaterThanOrEquals", + "LessThan", + "LessThanOrEquals", + "Equals", + "NotEquals", + "Contains", + "NotContains", + "Exists", + "NotExists", + "BeginsWith", + } +} + type ConfluenceAttachmentFieldName string // Enum values for ConfluenceAttachmentFieldName @@ -348,6 +384,40 @@ func (DocumentStatus) Values() []DocumentStatus { } } +type EndpointType string + +// Enum values for EndpointType +const ( + EndpointTypeHome EndpointType = "HOME" +) + +// Values returns all known values for EndpointType. 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 (EndpointType) Values() []EndpointType { + return []EndpointType{ + "HOME", + } +} + +type EntityType string + +// Enum values for EntityType +const ( + EntityTypeUser EntityType = "USER" + EntityTypeGroup EntityType = "GROUP" +) + +// Values returns all known values for EntityType. 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 (EntityType) Values() []EntityType { + return []EntityType{ + "USER", + "GROUP", + } +} + type ErrorCode string // Enum values for ErrorCode @@ -366,6 +436,28 @@ func (ErrorCode) Values() []ErrorCode { } } +type ExperienceStatus string + +// Enum values for ExperienceStatus +const ( + ExperienceStatusCreating ExperienceStatus = "CREATING" + ExperienceStatusActive ExperienceStatus = "ACTIVE" + ExperienceStatusDeleting ExperienceStatus = "DELETING" + ExperienceStatusFailed ExperienceStatus = "FAILED" +) + +// Values returns all known values for ExperienceStatus. 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 (ExperienceStatus) Values() []ExperienceStatus { + return []ExperienceStatus{ + "CREATING", + "ACTIVE", + "DELETING", + "FAILED", + } +} + type FaqFileFormat string // Enum values for FaqFileFormat @@ -472,6 +564,32 @@ func (IndexStatus) Values() []IndexStatus { } } +type Interval string + +// Enum values for Interval +const ( + IntervalThisMonth Interval = "THIS_MONTH" + IntervalThisWeek Interval = "THIS_WEEK" + IntervalOneWeekAgo Interval = "ONE_WEEK_AGO" + IntervalTwoWeeksAgo Interval = "TWO_WEEKS_AGO" + IntervalOneMonthAgo Interval = "ONE_MONTH_AGO" + IntervalTwoMonthsAgo Interval = "TWO_MONTHS_AGO" +) + +// Values returns all known values for Interval. 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 (Interval) Values() []Interval { + return []Interval{ + "THIS_MONTH", + "THIS_WEEK", + "ONE_WEEK_AGO", + "TWO_WEEKS_AGO", + "ONE_MONTH_AGO", + "TWO_MONTHS_AGO", + } +} + type KeyLocation string // Enum values for KeyLocation @@ -490,6 +608,32 @@ func (KeyLocation) Values() []KeyLocation { } } +type MetricType string + +// Enum values for MetricType +const ( + MetricTypeQueriesByCount MetricType = "QUERIES_BY_COUNT" + MetricTypeQueriesByZeroClickRate MetricType = "QUERIES_BY_ZERO_CLICK_RATE" + MetricTypeQueriesByZeroResultRate MetricType = "QUERIES_BY_ZERO_RESULT_RATE" + MetricTypeDocsByClickCount MetricType = "DOCS_BY_CLICK_COUNT" + MetricTypeAggQueryDocMetrics MetricType = "AGG_QUERY_DOC_METRICS" + MetricTypeTrendQueryDocMetrics MetricType = "TREND_QUERY_DOC_METRICS" +) + +// Values returns all known values for MetricType. 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 (MetricType) Values() []MetricType { + return []MetricType{ + "QUERIES_BY_COUNT", + "QUERIES_BY_ZERO_CLICK_RATE", + "QUERIES_BY_ZERO_RESULT_RATE", + "DOCS_BY_CLICK_COUNT", + "AGG_QUERY_DOC_METRICS", + "TREND_QUERY_DOC_METRICS", + } +} + type Mode string // Enum values for Mode @@ -526,6 +670,24 @@ func (Order) Values() []Order { } } +type Persona string + +// Enum values for Persona +const ( + PersonaOwner Persona = "OWNER" + PersonaViewer Persona = "VIEWER" +) + +// Values returns all known values for Persona. 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 (Persona) Values() []Persona { + return []Persona{ + "OWNER", + "VIEWER", + } +} + type PrincipalMappingStatus string // Enum values for PrincipalMappingStatus diff --git a/service/kendra/types/errors.go b/service/kendra/types/errors.go index 6c2ed5415a9..843f46d82fb 100644 --- a/service/kendra/types/errors.go +++ b/service/kendra/types/errors.go @@ -64,6 +64,25 @@ func (e *InternalServerException) ErrorMessage() string { func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// The input to the request is not valid. +type InvalidRequestException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidRequestException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } +func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // type ResourceAlreadyExistException struct { Message *string diff --git a/service/kendra/types/types.go b/service/kendra/types/types.go index 7f5390edefb..296a9cc78a4 100644 --- a/service/kendra/types/types.go +++ b/service/kendra/types/types.go @@ -129,7 +129,7 @@ type AuthenticationConfiguration struct { // user authentication. type BasicAuthenticationConfiguration struct { - // Your secret ARN, which you can create in AWS Secrets Manager + // Your secret ARN, which you can create in Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) You use // a secret if basic authentication credentials are required to connect to a // website. The secret stores your credentials of user name and password. @@ -352,7 +352,7 @@ type ConfluenceBlogToIndexFieldMapping struct { // Provides configuration information for data sources that connect to Confluence. type ConfluenceConfiguration struct { - // The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the + // The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the // key/value pairs required to connect to your Confluence server. The secret must // contain a JSON structure with the following keys: // @@ -537,6 +537,61 @@ type ConnectionConfiguration struct { noSmithyDocumentSerde } +// Configuration information for your content sources, such as data sources, FAQs, +// and content indexed directly via BatchPutDocument +// (https://docs.aws.amazon.com/kendra/latest/dg/API_BatchPutDocument.html). +type ContentSourceConfiguration struct { + + // The identifier of the data sources you want to use for your Amazon Kendra + // experience. + DataSourceIds []string + + // TRUE to use documents you indexed directly using the BatchPutDocument operation. + DirectPutContent bool + + // The identifier of the FAQs that you want to use for your Amazon Kendra + // experience. + FaqIds []string + + noSmithyDocumentSerde +} + +// Provides the configuration information for altering document metadata and +// content during the document ingestion process. For more information, see +// Customizing document metadata during the ingestion process +// (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). +type CustomDocumentEnrichmentConfiguration struct { + + // Configuration information to alter document attributes or metadata fields and + // content when ingesting documents into Amazon Kendra. + InlineConfigurations []InlineCustomDocumentEnrichmentConfiguration + + // Configuration information for invoking a Lambda function in Lambda on the + // structured documents with their metadata and text extracted. You can use a + // Lambda function to apply advanced logic for creating, modifying, or deleting + // document metadata and content. For more information, see Advanced data + // manipulation + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation). + PostExtractionHookConfiguration *HookConfiguration + + // Configuration information for invoking a Lambda function in Lambda on the + // original or raw documents before extracting their metadata and text. You can use + // a Lambda function to apply advanced logic for creating, modifying, or deleting + // document metadata and content. For more information, see Advanced data + // manipulation + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation). + PreExtractionHookConfiguration *HookConfiguration + + // The Amazon Resource Name (ARN) of a role with permission to run + // PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering + // document metadata and content during the document ingestion process. For more + // information, see IAM roles for Amazon Kendra + // (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). + RoleArn *string + + noSmithyDocumentSerde +} + // Provides the information necessary to connect a database to an index. type DatabaseConfiguration struct { @@ -570,7 +625,7 @@ type DatabaseConfiguration struct { noSmithyDocumentSerde } -// Configuration information for a Amazon Kendra data source. +// Configuration information for an Amazon Kendra data source. type DataSourceConfiguration struct { // Provides configuration information for connecting to a Confluence data source. @@ -600,7 +655,7 @@ type DataSourceConfiguration struct { // SharePoint site. SharePointConfiguration *SharePointConfiguration - // Provides the configuration information required for Amazon Kendra web crawler. + // Provides the configuration information required for Amazon Kendra Web Crawler. WebCrawlerConfiguration *WebCrawlerConfiguration // Provides the configuration information to connect to WorkDocs as your data @@ -842,6 +897,74 @@ type DocumentAttribute struct { noSmithyDocumentSerde } +// The condition used for the target document attribute or metadata field when +// ingesting documents into Amazon Kendra. You use this with +// DocumentAttributeTarget to apply the condition +// (https://docs.aws.amazon.com/kendra/latest/dg/API_DocumentAttributeTarget.html). +// For example, you can create the 'Department' target field and have it prefill +// department names associated with the documents based on information in the +// 'Source_URI' field. Set the condition that if the 'Source_URI' field contains +// 'financial' in its URI value, then prefill the target field 'Department' with +// the target value 'Finance' for the document. Amazon Kendra cannot create a +// target field if it has not already been created as an index field. After you +// create your index field, you can create a document metadata field using +// DocumentAttributeTarget. Amazon Kendra then will map your newly created metadata +// field to your index field. +type DocumentAttributeCondition struct { + + // The identifier of the document attribute used for the condition. For example, + // 'Source_URI' could be an identifier for the attribute or metadata field that + // contains source URIs associated with the documents. Amazon Kendra currently does + // not support _document_body as an attribute key used for the condition. + // + // This member is required. + ConditionDocumentAttributeKey *string + + // The condition operator. For example, you can use 'Contains' to partially match a + // string. + // + // This member is required. + Operator ConditionOperator + + // The value used by the operator. For example, you can specify the value + // 'financial' for strings in the 'Source_URI' field that partially match or + // contain this value. + ConditionOnValue *DocumentAttributeValue + + noSmithyDocumentSerde +} + +// The target document attribute or metadata field you want to alter when ingesting +// documents into Amazon Kendra. For example, you can delete customer +// identification numbers associated with the documents, stored in the document +// metadata field called 'Customer_ID'. You set the target key as 'Customer_ID' and +// the deletion flag to TRUE. This removes all customer ID values in the field +// 'Customer_ID'. This would scrub personally identifiable information from each +// document's metadata. Amazon Kendra cannot create a target field if it has not +// already been created as an index field. After you create your index field, you +// can create a document metadata field using DocumentAttributeTarget. Amazon +// Kendra then will map your newly created metadata field to your index field. You +// can also use this with DocumentAttributeCondition +// (https://docs.aws.amazon.com/kendra/latest/dg/API_DocumentAttributeCondition.html). +type DocumentAttributeTarget struct { + + // The identifier of the target document attribute or metadata field. For example, + // 'Department' could be an identifier for the target attribute or metadata field + // that includes the department names associated with the documents. + TargetDocumentAttributeKey *string + + // The target value you want to create for the target attribute. For example, + // 'Finance' could be the target value for the target attribute key 'Department'. + TargetDocumentAttributeValue *DocumentAttributeValue + + // TRUE to delete the existing target value for your specified target attribute + // key. You cannot create a target value and set this to TRUE. To create a target + // value (TargetDocumentAttributeValue), set this to FALSE. + TargetDocumentAttributeValueDeletion bool + + noSmithyDocumentSerde +} + // The value of a custom document attribute. You can only provide one value for a // custom attribute. type DocumentAttributeValue struct { @@ -966,6 +1089,147 @@ type DocumentsMetadataConfiguration struct { noSmithyDocumentSerde } +// Provides the configuration information of users or groups in your Amazon Web +// Services SSO identity source to grant access your Amazon Kendra experience. +type EntityConfiguration struct { + + // The identifier of a user or group in your Amazon Web Services SSO identity + // source. For example, a user ID could be an email. + // + // This member is required. + EntityId *string + + // Specifies whether you are configuring a User or a Group. + // + // This member is required. + EntityType EntityType + + noSmithyDocumentSerde +} + +// Information about the user entity. +type EntityDisplayData struct { + + // The first name of the user. + FirstName *string + + // The name of the group. + GroupName *string + + // The user name of the user. + IdentifiedUserName *string + + // The last name of the user. + LastName *string + + // The name of the user. + UserName *string + + noSmithyDocumentSerde +} + +// Provides the configuration information of users or groups in your Amazon Web +// Services SSO identity source for access to your Amazon Kendra experience. +// Specific permissions are defined for each user or group once they are granted +// access to your Amazon Kendra experience. +type EntityPersonaConfiguration struct { + + // The identifier of a user or group in your Amazon Web Services SSO identity + // source. For example, a user ID could be an email. + // + // This member is required. + EntityId *string + + // The persona that defines the specific permissions of the user or group in your + // Amazon Web Services SSO identity source. The available personas or access roles + // are Owner and Viewer. For more information on these personas, see Providing + // access to your search page + // (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html#access-search-experience). + // + // This member is required. + Persona Persona + + noSmithyDocumentSerde +} + +// Specifies the configuration information for your Amazon Kendra experience. This +// includes the data source IDs and/or FAQ IDs, and user or group information to +// grant access to your Amazon Kendra experience. +type ExperienceConfiguration struct { + + // The identifiers of your data sources and FAQs. Or, you can specify that you want + // to use documents indexed via the BatchPutDocument operation. This is the content + // you want to use for your Amazon Kendra experience. + ContentSourceConfiguration *ContentSourceConfiguration + + // The Amazon Web Services SSO field name that contains the identifiers of your + // users, such as their emails. + UserIdentityConfiguration *UserIdentityConfiguration + + noSmithyDocumentSerde +} + +// Provides the configuration information of the endpoint for your Amazon Kendra +// experience. +type ExperienceEndpoint struct { + + // The endpoint of your Amazon Kendra experience. + Endpoint *string + + // The type of endpoint for your Amazon Kendra experience. The type currently + // available is HOME, which is a unique and fully hosted URL to the home page of + // your Amazon Kendra experience. + EndpointType EndpointType + + noSmithyDocumentSerde +} + +// Summary information for users or groups in your Amazon Web Services SSO identity +// source with granted access to your Amazon Kendra experience. You can create an +// Amazon Kendra experience such as a search application. For more information on +// creating a search application experience, see Building a search experience with +// no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +type ExperienceEntitiesSummary struct { + + // Information about the user entity. + DisplayData *EntityDisplayData + + // The identifier of a user or group in your Amazon Web Services SSO identity + // source. For example, a user ID could be an email. + EntityId *string + + // Shows the type as User or Group. + EntityType EntityType + + noSmithyDocumentSerde +} + +// Summary information for your Amazon Kendra experience. You can create an Amazon +// Kendra experience such as a search application. For more information on creating +// a search application experience, see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +type ExperiencesSummary struct { + + // The date-time your Amazon Kendra experience was created. + CreatedAt *time.Time + + // The endpoint URLs for your Amazon Kendra experiences. The URLs are unique and + // fully hosted by Amazon Web Services. + Endpoints []ExperienceEndpoint + + // The identifier of your Amazon Kendra experience. + Id *string + + // The name of your Amazon Kendra experience. + Name *string + + // The processing status of your Amazon Kendra experience. + Status ExperienceStatus + + noSmithyDocumentSerde +} + // Information about a document attribute type Facet struct { @@ -993,6 +1257,21 @@ type FacetResult struct { noSmithyDocumentSerde } +// Information on the users or groups in your Amazon Web Services SSO identity +// source that failed to properly configure with your Amazon Kendra experience. +type FailedEntity struct { + + // The identifier of the user or group in your Amazon Web Services SSO identity + // source. For example, a user ID could be an email. + EntityId *string + + // The reason the user or group in your Amazon Web Services SSO identity source + // failed to properly configure with your Amazon Kendra experience. + ErrorMessage *string + + noSmithyDocumentSerde +} + // Provides statistical information about the FAQ questions and answers contained // in an index. type FaqStatistics struct { @@ -1195,6 +1474,45 @@ type Highlight struct { noSmithyDocumentSerde } +// Provides the configuration information for invoking a Lambda function in Lambda +// to alter document metadata and content when ingesting documents into Amazon +// Kendra. You can configure your Lambda function using +// PreExtractionHookConfiguration +// (https://docs.aws.amazon.com/kendra/latest/dg/API_PreExtractionHookConfiguration.html) +// if you want to apply advanced alterations on the original or raw documents. If +// you want to apply advanced alterations on the Amazon Kendra structured +// documents, you must configure your Lambda function using +// PostExtractionHookConfiguration +// (https://docs.aws.amazon.com/kendra/latest/dg/API_PostExtractionHookConfiguration.html). +// You can only invoke one Lambda function. However, this function can invoke other +// functions it requires. For more information, see Customizing document metadata +// during the ingestion process +// (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). +type HookConfiguration struct { + + // The Amazon Resource Name (ARN) of a role with permission to run a Lambda + // function during ingestion. For more information, see IAM roles for Amazon Kendra + // (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). + // + // This member is required. + LambdaArn *string + + // Stores the original, raw documents or the structured, parsed documents before + // and after altering them. For more information, see Data contracts for Lambda + // functions + // (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#cde-data-contracts-lambda). + // + // This member is required. + S3Bucket *string + + // The condition used for when a Lambda function should be invoked. For example, + // you can specify a condition that if there are empty date-time values, then + // Amazon Kendra should invoke a function that inserts the current date-time. + InvocationCondition *DocumentAttributeCondition + + noSmithyDocumentSerde +} + // A summary of information about an index. type IndexConfigurationSummary struct { @@ -1245,6 +1563,29 @@ type IndexStatistics struct { noSmithyDocumentSerde } +// Provides the configuration information for applying basic logic to alter +// document metadata and content when ingesting documents into Amazon Kendra. To +// apply advanced logic, to go beyond what you can do with basic logic, see +// HookConfiguration +// (https://docs.aws.amazon.com/kendra/latest/dg/API_HookConfiguration.html). For +// more information, see Customizing document metadata during the ingestion process +// (https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). +type InlineCustomDocumentEnrichmentConfiguration struct { + + // Configuration of the condition used for the target document attribute or + // metadata field when ingesting documents into Amazon Kendra. + Condition *DocumentAttributeCondition + + // TRUE to delete content if the condition used for the target attribute is met. + DocumentContentDeletion bool + + // Configuration of the target document attribute or metadata field when ingesting + // documents into Amazon Kendra. You can also include a value. + Target *DocumentAttributeTarget + + noSmithyDocumentSerde +} + // Configuration information for the JSON token type. type JsonTokenTypeConfiguration struct { @@ -1377,6 +1718,34 @@ type OneDriveUsers struct { noSmithyDocumentSerde } +// Summary information for users or groups in your Amazon Web Services SSO identity +// source. This applies to users and groups with specific permissions that define +// their level of access to your Amazon Kendra experience. You can create an Amazon +// Kendra experience such as a search application. For more information on creating +// a search application experience, see Building a search experience with no code +// (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html). +type PersonasSummary struct { + + // The date-time the summary information was created. + CreatedAt *time.Time + + // The identifier of a user or group in your Amazon Web Services SSO identity + // source. For example, a user ID could be an email. + EntityId *string + + // The persona that defines the specific permissions of the user or group in your + // Amazon Web Services SSO identity source. The available personas or access roles + // are Owner and Viewer. For more information on these personas, see Providing + // access to your search page + // (https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html#access-search-experience). + Persona Persona + + // The date-time the summary information was last updated. + UpdatedAt *time.Time + + noSmithyDocumentSerde +} + // Provides user and group information for document access filtering. type Principal struct { @@ -1418,7 +1787,7 @@ type ProxyConfiguration struct { // This member is required. Port *int32 - // Your secret ARN, which you can create in AWS Secrets Manager + // Your secret ARN, which you can create in Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) The // credentials are optional. You use a secret if web proxy credentials are required // to connect to a website host. Amazon Kendra currently support basic @@ -1885,7 +2254,7 @@ type Search struct { // Provides the configuration information of the seed or starting point URLs to // crawl. When selecting websites to index, you must adhere to the Amazon // Acceptable Use Policy (https://aws.amazon.com/aup/) and all other Amazon terms. -// Remember that you must only use the Amazon Kendra web crawler to index your own +// Remember that you must only use Amazon Kendra Web Crawler to index your own // webpages, or webpages that you have authorization to index. type SeedUrlConfiguration struct { @@ -1950,12 +2319,12 @@ type ServiceNowConfiguration struct { // Determines the type of authentication used to connect to the ServiceNow // instance. If you choose HTTP_BASIC, Amazon Kendra is authenticated using the - // user name and password provided in the AWS Secrets Manager secret in the - // SecretArn field. When you choose OAUTH2, Amazon Kendra is authenticated using - // the OAuth token and secret provided in the Secrets Manager secret, and the user - // name and password are used to determine which information Amazon Kendra has - // access to. When you use OAUTH2 authentication, you must generate a token and a - // client secret using the ServiceNow console. For more information, see Using a + // user name and password provided in the Secrets Manager secret in the SecretArn + // field. When you choose OAUTH2, Amazon Kendra is authenticated using the OAuth + // token and secret provided in the Secrets Manager secret, and the user name and + // password are used to determine which information Amazon Kendra has access to. + // When you use OAUTH2 authentication, you must generate a token and a client + // secret using the ServiceNow console. For more information, see Using a // ServiceNow data source // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-servicenow.html). AuthenticationType ServiceNowAuthenticationType @@ -2060,7 +2429,7 @@ type SharePointConfiguration struct { // also need to provide the sever domain name as part of the credentials. For more // information, see Using a Microsoft SharePoint Data Source // (https://docs.aws.amazon.com/kendra/latest/dg/data-source-sharepoint.html). For - // more information about Secrets Manager, see What Is Secrets Manager + // more information about Secrets Manager see What Is Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) in the // Secrets Manager user guide. // @@ -2130,8 +2499,8 @@ type SharePointConfiguration struct { // Provides the configuration information of the sitemap URLs to crawl. When // selecting websites to index, you must adhere to the Amazon Acceptable Use Policy // (https://aws.amazon.com/aup/) and all other Amazon terms. Remember that you must -// only use the Amazon Kendra web crawler to index your own webpages, or webpages -// that you have authorization to index. +// only use Amazon Kendra Web Crawler to index your own webpages, or webpages that +// you have authorization to index. type SiteMapsConfiguration struct { // The list of sitemap URLs of the websites you want to crawl. The list can include @@ -2360,9 +2729,9 @@ type TimeRange struct { // Secure (HTTPS). If you receive an error when crawling a website, it could be // that the website is blocked from crawling. When selecting websites to index, you // must adhere to the Amazon Acceptable Use Policy (https://aws.amazon.com/aup/) -// and all other Amazon terms. Remember that you must only use the Amazon Kendra -// web crawler to index your own webpages, or webpages that you have authorization -// to index. +// and all other Amazon terms. Remember that you must only use Amazon Kendra Web +// Crawler to index your own webpages, or webpages that you have authorization to +// index. type Urls struct { // Provides the configuration of the seed or starting point URLs of the websites @@ -2412,23 +2781,25 @@ type UserContext struct { } // Provides the configuration information to fetch access levels of groups and -// users from an AWS Single Sign-On identity source. This is useful for setting up -// user context filtering, where Amazon Kendra filters search results for different -// users based on their group's access to documents. You can also map your users to -// their groups for user context filtering using the PutPrincipalMapping operation -// (https://docs.aws.amazon.com/latest/dg/API_PutPrincipalMapping.html). To set up -// an AWS SSO identity source in the console to use with Amazon Kendra, see Getting -// started with an AWS SSO identity source +// users from an Amazon Web Services Single Sign On identity source. This is useful +// for setting up user context filtering, where Amazon Kendra filters search +// results for different users based on their group's access to documents. You can +// also map your users to their groups for user context filtering using the +// PutPrincipalMapping operation +// (https://docs.aws.amazon.com/kendra/latest/dg/API_PutPrincipalMapping.html). To +// set up an Amazon Web Services SSO identity source in the console to use with +// Amazon Kendra, see Getting started with an Amazon Web Services SSO identity +// source // (https://docs.aws.amazon.com/kendra/latest/dg/getting-started-aws-sso.html). You -// must also grant the required permissions to use AWS SSO with Amazon Kendra. For -// more information, see IAM roles for AWS Single Sign-On +// must also grant the required permissions to use Amazon Web Services SSO with +// Amazon Kendra. For more information, see IAM roles for Amazon Web Services SSO // (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html#iam-roles-aws-sso). type UserGroupResolutionConfiguration struct { // The identity store provider (mode) you want to use to fetch access levels of - // groups and users. AWS Single Sign-On is currently the only available mode. Your - // users and groups must exist in an AWS SSO identity source in order to use this - // mode. + // groups and users. Amazon Web Services Single Sign On is currently the only + // available mode. Your users and groups must exist in an Amazon Web Services SSO + // identity source in order to use this mode. // // This member is required. UserGroupResolutionMode UserGroupResolutionMode @@ -2436,6 +2807,22 @@ type UserGroupResolutionConfiguration struct { noSmithyDocumentSerde } +// Configuration information for the identifiers of your users. +type UserIdentityConfiguration struct { + + // The Amazon Web Services SSO field name that contains the identifiers of your + // users, such as their emails. This is used for user context filtering + // (https://docs.aws.amazon.com/kendra/latest/dg/user-context-filter.html) and for + // granting access to your Amazon Kendra experience. You must set up Amazon Web + // Services SSO with Amazon Kendra. You must include your users and groups in your + // Access Control List when you ingest documents into your index. For more + // information, see Getting started with an Amazon Web Services SSO identity source + // (https://docs.aws.amazon.com/kendra/latest/dg/getting-started-aws-sso.html). + IdentityAttributeName *string + + noSmithyDocumentSerde +} + // Provides configuration information for a token configuration. type UserTokenConfiguration struct { @@ -2448,7 +2835,7 @@ type UserTokenConfiguration struct { noSmithyDocumentSerde } -// Provides the configuration information required for Amazon Kendra web crawler. +// Provides the configuration information required for Amazon Kendra Web Crawler. type WebCrawlerConfiguration struct { // Specifies the seed or starting point URLs of the websites or the sitemap URLs of @@ -2458,9 +2845,8 @@ type WebCrawlerConfiguration struct { // (HTTPS). If you receive an error when crawling a website, it could be that the // website is blocked from crawling. When selecting websites to index, you must // adhere to the Amazon Acceptable Use Policy (https://aws.amazon.com/aup/) and all - // other Amazon terms. Remember that you must only use the Amazon Kendra web - // crawler to index your own webpages, or webpages that you have authorization to - // index. + // other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to + // index your own webpages, or webpages that you have authorization to index. // // This member is required. Urls *Urls @@ -2469,10 +2855,9 @@ type WebCrawlerConfiguration struct { // authentication. You can connect to websites using basic authentication of user // name and password. You must provide the website host name and port number. For // example, the host name of https://a.example.com/page1.html is "a.example.com" - // and the port is 443, the standard port for HTTPS. You use a secret in AWS - // Secrets Manager - // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) to - // store your authentication credentials. + // and the port is 443, the standard port for HTTPS. You use a secret in Secrets + // Manager (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html) + // to store your authentication credentials. AuthenticationConfiguration *AuthenticationConfiguration // Specifies the number of levels in a website that you want to crawl. The first @@ -2504,7 +2889,7 @@ type WebCrawlerConfiguration struct { // example, the host name of https://a.example.com/page1.html is "a.example.com" // and the port is 443, the standard port for HTTPS. Web proxy credentials are // optional and you can use them to connect to a web proxy server that requires - // basic authentication. To store web proxy credentials, you use a secret in AWS + // basic authentication. To store web proxy credentials, you use a secret in // Secrets Manager // (https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html). ProxyConfiguration *ProxyConfiguration @@ -2528,12 +2913,12 @@ type WebCrawlerConfiguration struct { type WorkDocsConfiguration struct { // The identifier of the directory corresponding to your Amazon WorkDocs site - // repository. You can find the organization ID in the AWS Directory Service + // repository. You can find the organization ID in the Directory Service // (https://console.aws.amazon.com/directoryservicev2/) by going to Active // Directory, then Directories. Your Amazon WorkDocs site directory has an ID, // which is the organization ID. You can also set up a new Amazon WorkDocs - // directory in the AWS Directory Service console and enable a Amazon WorkDocs site - // for the directory in the Amazon WorkDocs console. + // directory in the Directory Service console and enable a Amazon WorkDocs site for + // the directory in the Amazon WorkDocs console. // // This member is required. OrganizationId *string diff --git a/service/kendra/validators.go b/service/kendra/validators.go index f31e51c65f6..e0808f962cd 100644 --- a/service/kendra/validators.go +++ b/service/kendra/validators.go @@ -10,6 +10,46 @@ import ( "github.com/aws/smithy-go/middleware" ) +type validateOpAssociateEntitiesToExperience struct { +} + +func (*validateOpAssociateEntitiesToExperience) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateEntitiesToExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateEntitiesToExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateEntitiesToExperienceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpAssociatePersonasToEntities struct { +} + +func (*validateOpAssociatePersonasToEntities) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociatePersonasToEntities) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociatePersonasToEntitiesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociatePersonasToEntitiesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpBatchDeleteDocument struct { } @@ -110,6 +150,26 @@ func (m *validateOpCreateDataSource) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpCreateExperience struct { +} + +func (*validateOpCreateExperience) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateExperienceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateFaq struct { } @@ -210,6 +270,26 @@ func (m *validateOpDeleteDataSource) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpDeleteExperience struct { +} + +func (*validateOpDeleteExperience) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteExperienceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteFaq struct { } @@ -330,6 +410,26 @@ func (m *validateOpDescribeDataSource) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDescribeExperience struct { +} + +func (*validateOpDescribeExperience) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeExperienceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeFaq struct { } @@ -450,6 +550,46 @@ func (m *validateOpDescribeThesaurus) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDisassociateEntitiesFromExperience struct { +} + +func (*validateOpDisassociateEntitiesFromExperience) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateEntitiesFromExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateEntitiesFromExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateEntitiesFromExperienceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDisassociatePersonasFromEntities struct { +} + +func (*validateOpDisassociatePersonasFromEntities) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociatePersonasFromEntities) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociatePersonasFromEntitiesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociatePersonasFromEntitiesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetQuerySuggestions struct { } @@ -470,6 +610,26 @@ func (m *validateOpGetQuerySuggestions) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpGetSnapshots struct { +} + +func (*validateOpGetSnapshots) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetSnapshots) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetSnapshotsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetSnapshotsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListDataSources struct { } @@ -510,6 +670,66 @@ func (m *validateOpListDataSourceSyncJobs) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpListEntityPersonas struct { +} + +func (*validateOpListEntityPersonas) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListEntityPersonas) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListEntityPersonasInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListEntityPersonasInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListExperienceEntities struct { +} + +func (*validateOpListExperienceEntities) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListExperienceEntities) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListExperienceEntitiesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListExperienceEntitiesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListExperiences struct { +} + +func (*validateOpListExperiences) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListExperiences) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListExperiencesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListExperiencesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListFaqs struct { } @@ -770,6 +990,26 @@ func (m *validateOpUpdateDataSource) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpUpdateExperience struct { +} + +func (*validateOpUpdateExperience) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateExperience) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateExperienceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateExperienceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateIndex struct { } @@ -850,6 +1090,14 @@ func (m *validateOpUpdateThesaurus) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +func addOpAssociateEntitiesToExperienceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateEntitiesToExperience{}, middleware.After) +} + +func addOpAssociatePersonasToEntitiesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociatePersonasToEntities{}, middleware.After) +} + func addOpBatchDeleteDocumentValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpBatchDeleteDocument{}, middleware.After) } @@ -870,6 +1118,10 @@ func addOpCreateDataSourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateDataSource{}, middleware.After) } +func addOpCreateExperienceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateExperience{}, middleware.After) +} + func addOpCreateFaqValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateFaq{}, middleware.After) } @@ -890,6 +1142,10 @@ func addOpDeleteDataSourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteDataSource{}, middleware.After) } +func addOpDeleteExperienceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteExperience{}, middleware.After) +} + func addOpDeleteFaqValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteFaq{}, middleware.After) } @@ -914,6 +1170,10 @@ func addOpDescribeDataSourceValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDescribeDataSource{}, middleware.After) } +func addOpDescribeExperienceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeExperience{}, middleware.After) +} + func addOpDescribeFaqValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeFaq{}, middleware.After) } @@ -938,10 +1198,22 @@ func addOpDescribeThesaurusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeThesaurus{}, middleware.After) } +func addOpDisassociateEntitiesFromExperienceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateEntitiesFromExperience{}, middleware.After) +} + +func addOpDisassociatePersonasFromEntitiesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociatePersonasFromEntities{}, middleware.After) +} + func addOpGetQuerySuggestionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetQuerySuggestions{}, middleware.After) } +func addOpGetSnapshotsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetSnapshots{}, middleware.After) +} + func addOpListDataSourcesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListDataSources{}, middleware.After) } @@ -950,6 +1222,18 @@ func addOpListDataSourceSyncJobsValidationMiddleware(stack *middleware.Stack) er return stack.Initialize.Add(&validateOpListDataSourceSyncJobs{}, middleware.After) } +func addOpListEntityPersonasValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListEntityPersonas{}, middleware.After) +} + +func addOpListExperienceEntitiesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListExperienceEntities{}, middleware.After) +} + +func addOpListExperiencesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListExperiences{}, middleware.After) +} + func addOpListFaqsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListFaqs{}, middleware.After) } @@ -1002,6 +1286,10 @@ func addOpUpdateDataSourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateDataSource{}, middleware.After) } +func addOpUpdateExperienceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateExperience{}, middleware.After) +} + func addOpUpdateIndexValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateIndex{}, middleware.After) } @@ -1033,6 +1321,23 @@ func validateAclConfiguration(v *types.AclConfiguration) error { } } +func validateAssociateEntityList(v []types.EntityConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateEntityList"} + for i := range v { + if err := validateEntityConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAttributeFilter(v *types.AttributeFilter) error { if v == nil { return nil @@ -1299,6 +1604,33 @@ func validateConnectionConfiguration(v *types.ConnectionConfiguration) error { } } +func validateCustomDocumentEnrichmentConfiguration(v *types.CustomDocumentEnrichmentConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomDocumentEnrichmentConfiguration"} + if v.InlineConfigurations != nil { + if err := validateInlineCustomDocumentEnrichmentConfigurationList(v.InlineConfigurations); err != nil { + invalidParams.AddNested("InlineConfigurations", err.(smithy.InvalidParamsError)) + } + } + if v.PreExtractionHookConfiguration != nil { + if err := validateHookConfiguration(v.PreExtractionHookConfiguration); err != nil { + invalidParams.AddNested("PreExtractionHookConfiguration", err.(smithy.InvalidParamsError)) + } + } + if v.PostExtractionHookConfiguration != nil { + if err := validateHookConfiguration(v.PostExtractionHookConfiguration); err != nil { + invalidParams.AddNested("PostExtractionHookConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDatabaseConfiguration(v *types.DatabaseConfiguration) error { if v == nil { return nil @@ -1503,6 +1835,23 @@ func validateDataSourceVpcConfiguration(v *types.DataSourceVpcConfiguration) err } } +func validateDisassociateEntityList(v []types.EntityConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateEntityList"} + for i := range v { + if err := validateEntityConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDocument(v *types.Document) error { if v == nil { return nil @@ -1556,6 +1905,24 @@ func validateDocumentAttribute(v *types.DocumentAttribute) error { } } +func validateDocumentAttributeCondition(v *types.DocumentAttributeCondition) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DocumentAttributeCondition"} + if v.ConditionDocumentAttributeKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConditionDocumentAttributeKey")) + } + if len(v.Operator) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Operator")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDocumentAttributeList(v []types.DocumentAttribute) error { if v == nil { return nil @@ -1649,11 +2016,64 @@ func validateDocumentMetadataConfigurationList(v []types.DocumentMetadataConfigu if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "DocumentMetadataConfigurationList"} - for i := range v { - if err := validateDocumentMetadataConfiguration(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } + invalidParams := smithy.InvalidParamsError{Context: "DocumentMetadataConfigurationList"} + for i := range v { + if err := validateDocumentMetadataConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDocumentRelevanceConfiguration(v *types.DocumentRelevanceConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DocumentRelevanceConfiguration"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Relevance == nil { + invalidParams.Add(smithy.NewErrParamRequired("Relevance")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDocumentRelevanceOverrideConfigurationList(v []types.DocumentRelevanceConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DocumentRelevanceOverrideConfigurationList"} + for i := range v { + if err := validateDocumentRelevanceConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateEntityConfiguration(v *types.EntityConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EntityConfiguration"} + if v.EntityId == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityId")) + } + if len(v.EntityType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("EntityType")) } if invalidParams.Len() > 0 { return invalidParams @@ -1662,16 +2082,16 @@ func validateDocumentMetadataConfigurationList(v []types.DocumentMetadataConfigu } } -func validateDocumentRelevanceConfiguration(v *types.DocumentRelevanceConfiguration) error { +func validateEntityPersonaConfiguration(v *types.EntityPersonaConfiguration) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "DocumentRelevanceConfiguration"} - if v.Name == nil { - invalidParams.Add(smithy.NewErrParamRequired("Name")) + invalidParams := smithy.InvalidParamsError{Context: "EntityPersonaConfiguration"} + if v.EntityId == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityId")) } - if v.Relevance == nil { - invalidParams.Add(smithy.NewErrParamRequired("Relevance")) + if len(v.Persona) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Persona")) } if invalidParams.Len() > 0 { return invalidParams @@ -1680,13 +2100,13 @@ func validateDocumentRelevanceConfiguration(v *types.DocumentRelevanceConfigurat } } -func validateDocumentRelevanceOverrideConfigurationList(v []types.DocumentRelevanceConfiguration) error { +func validateEntityPersonaConfigurationList(v []types.EntityPersonaConfiguration) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "DocumentRelevanceOverrideConfigurationList"} + invalidParams := smithy.InvalidParamsError{Context: "EntityPersonaConfigurationList"} for i := range v { - if err := validateDocumentRelevanceConfiguration(&v[i]); err != nil { + if err := validateEntityPersonaConfiguration(&v[i]); err != nil { invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) } } @@ -1780,6 +2200,63 @@ func validateHierarchicalPrincipalList(v []types.HierarchicalPrincipal) error { } } +func validateHookConfiguration(v *types.HookConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "HookConfiguration"} + if v.InvocationCondition != nil { + if err := validateDocumentAttributeCondition(v.InvocationCondition); err != nil { + invalidParams.AddNested("InvocationCondition", err.(smithy.InvalidParamsError)) + } + } + if v.LambdaArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("LambdaArn")) + } + if v.S3Bucket == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3Bucket")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInlineCustomDocumentEnrichmentConfiguration(v *types.InlineCustomDocumentEnrichmentConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InlineCustomDocumentEnrichmentConfiguration"} + if v.Condition != nil { + if err := validateDocumentAttributeCondition(v.Condition); err != nil { + invalidParams.AddNested("Condition", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateInlineCustomDocumentEnrichmentConfigurationList(v []types.InlineCustomDocumentEnrichmentConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "InlineCustomDocumentEnrichmentConfigurationList"} + for i := range v { + if err := validateInlineCustomDocumentEnrichmentConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateJsonTokenTypeConfiguration(v *types.JsonTokenTypeConfiguration) error { if v == nil { return nil @@ -2580,6 +3057,56 @@ func validateWorkDocsConfiguration(v *types.WorkDocsConfiguration) error { } } +func validateOpAssociateEntitiesToExperienceInput(v *AssociateEntitiesToExperienceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateEntitiesToExperienceInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if v.EntityList == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityList")) + } else if v.EntityList != nil { + if err := validateAssociateEntityList(v.EntityList); err != nil { + invalidParams.AddNested("EntityList", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpAssociatePersonasToEntitiesInput(v *AssociatePersonasToEntitiesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociatePersonasToEntitiesInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if v.Personas == nil { + invalidParams.Add(smithy.NewErrParamRequired("Personas")) + } else if v.Personas != nil { + if err := validateEntityPersonaConfigurationList(v.Personas); err != nil { + invalidParams.AddNested("Personas", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpBatchDeleteDocumentInput(v *BatchDeleteDocumentInput) error { if v == nil { return nil @@ -2640,6 +3167,11 @@ func validateOpBatchPutDocumentInput(v *BatchPutDocumentInput) error { invalidParams.AddNested("Documents", err.(smithy.InvalidParamsError)) } } + if v.CustomDocumentEnrichmentConfiguration != nil { + if err := validateCustomDocumentEnrichmentConfiguration(v.CustomDocumentEnrichmentConfiguration); err != nil { + invalidParams.AddNested("CustomDocumentEnrichmentConfiguration", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2686,6 +3218,29 @@ func validateOpCreateDataSourceInput(v *CreateDataSourceInput) error { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } + if v.CustomDocumentEnrichmentConfiguration != nil { + if err := validateCustomDocumentEnrichmentConfiguration(v.CustomDocumentEnrichmentConfiguration); err != nil { + invalidParams.AddNested("CustomDocumentEnrichmentConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateExperienceInput(v *CreateExperienceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateExperienceInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2843,6 +3398,24 @@ func validateOpDeleteDataSourceInput(v *DeleteDataSourceInput) error { } } +func validateOpDeleteExperienceInput(v *DeleteExperienceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteExperienceInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteFaqInput(v *DeleteFaqInput) error { if v == nil { return nil @@ -2948,6 +3521,24 @@ func validateOpDescribeDataSourceInput(v *DescribeDataSourceInput) error { } } +func validateOpDescribeExperienceInput(v *DescribeExperienceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeExperienceInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeFaqInput(v *DescribeFaqInput) error { if v == nil { return nil @@ -3050,6 +3641,52 @@ func validateOpDescribeThesaurusInput(v *DescribeThesaurusInput) error { } } +func validateOpDisassociateEntitiesFromExperienceInput(v *DisassociateEntitiesFromExperienceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateEntitiesFromExperienceInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if v.EntityList == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityList")) + } else if v.EntityList != nil { + if err := validateDisassociateEntityList(v.EntityList); err != nil { + invalidParams.AddNested("EntityList", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDisassociatePersonasFromEntitiesInput(v *DisassociatePersonasFromEntitiesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociatePersonasFromEntitiesInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if v.EntityIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityIds")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetQuerySuggestionsInput(v *GetQuerySuggestionsInput) error { if v == nil { return nil @@ -3068,6 +3705,27 @@ func validateOpGetQuerySuggestionsInput(v *GetQuerySuggestionsInput) error { } } +func validateOpGetSnapshotsInput(v *GetSnapshotsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetSnapshotsInput"} + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if len(v.Interval) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Interval")) + } + if len(v.MetricType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("MetricType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListDataSourcesInput(v *ListDataSourcesInput) error { if v == nil { return nil @@ -3101,6 +3759,57 @@ func validateOpListDataSourceSyncJobsInput(v *ListDataSourceSyncJobsInput) error } } +func validateOpListEntityPersonasInput(v *ListEntityPersonasInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListEntityPersonasInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListExperienceEntitiesInput(v *ListExperienceEntitiesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListExperienceEntitiesInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListExperiencesInput(v *ListExperiencesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListExperiencesInput"} + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListFaqsInput(v *ListFaqsInput) error { if v == nil { return nil @@ -3362,6 +4071,29 @@ func validateOpUpdateDataSourceInput(v *UpdateDataSourceInput) error { invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) } } + if v.CustomDocumentEnrichmentConfiguration != nil { + if err := validateCustomDocumentEnrichmentConfiguration(v.CustomDocumentEnrichmentConfiguration); err != nil { + invalidParams.AddNested("CustomDocumentEnrichmentConfiguration", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateExperienceInput(v *UpdateExperienceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateExperienceInput"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.IndexId == nil { + invalidParams.Add(smithy.NewErrParamRequired("IndexId")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/kinesis/api_op_AddTagsToStream.go b/service/kinesis/api_op_AddTagsToStream.go index 520806c5c63..a45e7f430af 100644 --- a/service/kinesis/api_op_AddTagsToStream.go +++ b/service/kinesis/api_op_AddTagsToStream.go @@ -10,13 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Adds or updates tags for the specified Kinesis data stream. Each time you invoke -// this operation, you can specify up to 10 tags. If you want to add more than 10 -// tags to your stream, you can invoke this operation multiple times. In total, -// each stream can have up to 50 tags. If tags have already been assigned to the -// stream, AddTagsToStream overwrites any existing tags that correspond to the -// specified tag keys. AddTagsToStream has a limit of five transactions per second -// per account. +// Adds or updates tags for the specified Kinesis data stream. You can assign up to +// 50 tags to a data stream. If tags have already been assigned to the stream, +// AddTagsToStream overwrites any existing tags that correspond to the specified +// tag keys. AddTagsToStream has a limit of five transactions per second per +// account. func (c *Client) AddTagsToStream(ctx context.Context, params *AddTagsToStreamInput, optFns ...func(*Options)) (*AddTagsToStreamOutput, error) { if params == nil { params = &AddTagsToStreamInput{} diff --git a/service/kinesis/api_op_CreateStream.go b/service/kinesis/api_op_CreateStream.go index 815fd58954c..4da631c72fd 100644 --- a/service/kinesis/api_op_CreateStream.go +++ b/service/kinesis/api_op_CreateStream.go @@ -6,6 +6,7 @@ import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kinesis/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) @@ -19,29 +20,30 @@ import ( // second. Each shard can support writes up to 1,000 records per second, up to a // maximum data write total of 1 MiB per second. If the amount of data input // increases or decreases, you can add or remove shards. The stream name identifies -// the stream. The name is scoped to the AWS account used by the application. It is -// also scoped by AWS Region. That is, two streams in two different accounts can -// have the same name, and two streams in the same account, but in two different -// Regions, can have the same name. CreateStream is an asynchronous operation. Upon -// receiving a CreateStream request, Kinesis Data Streams immediately returns and -// sets the stream status to CREATING. After the stream is created, Kinesis Data -// Streams sets the stream status to ACTIVE. You should perform read and write -// operations only on an ACTIVE stream. You receive a LimitExceededException when -// making a CreateStream request when you try to do one of the following: +// the stream. The name is scoped to the Amazon Web Services account used by the +// application. It is also scoped by Amazon Web Services Region. That is, two +// streams in two different accounts can have the same name, and two streams in the +// same account, but in two different Regions, can have the same name. CreateStream +// is an asynchronous operation. Upon receiving a CreateStream request, Kinesis +// Data Streams immediately returns and sets the stream status to CREATING. After +// the stream is created, Kinesis Data Streams sets the stream status to ACTIVE. +// You should perform read and write operations only on an ACTIVE stream. You +// receive a LimitExceededException when making a CreateStream request when you try +// to do one of the following: // -// * Have -// more than five streams in the CREATING state at any point in time. +// * Have more than five streams in the CREATING state +// at any point in time. // -// * Create -// more shards than are authorized for your account. +// * Create more shards than are authorized for your +// account. // -// For the default shard limit -// for an AWS account, see Amazon Kinesis Data Streams Limits +// For the default shard limit for an Amazon Web Services account, see +// Amazon Kinesis Data Streams Limits // (https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Data Streams Developer Guide. To increase this limit, -// contact AWS Support +// contact Amazon Web Services Support // (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). You can -// use DescribeStream to check the stream status, which is returned in +// use DescribeStreamSummary to check the stream status, which is returned in // StreamStatus. CreateStream has a limit of five transactions per second per // account. func (c *Client) CreateStream(ctx context.Context, params *CreateStreamInput, optFns ...func(*Options)) (*CreateStreamOutput, error) { @@ -62,21 +64,25 @@ func (c *Client) CreateStream(ctx context.Context, params *CreateStreamInput, op // Represents the input for CreateStream. type CreateStreamInput struct { + // A name to identify the stream. The stream name is scoped to the Amazon Web + // Services account used by the application that creates the stream. It is also + // scoped by Amazon Web Services Region. That is, two streams in two different + // Amazon Web Services accounts can have the same name. Two streams in the same + // Amazon Web Services account but in two different Regions can also have the same + // name. + // + // This member is required. + StreamName *string + // The number of shards that the stream will use. The throughput of the stream is a // function of the number of shards; more shards are required for greater // provisioned throughput. - // - // This member is required. ShardCount *int32 - // A name to identify the stream. The stream name is scoped to the AWS account used - // by the application that creates the stream. It is also scoped by AWS Region. - // That is, two streams in two different AWS accounts can have the same name. Two - // streams in the same AWS account but in two different Regions can also have the - // same name. - // - // This member is required. - StreamName *string + // Indicates the capacity mode of the data stream. Currently, in Kinesis Data + // Streams, you can choose between an on-demand capacity mode and a provisioned + // capacity mode for your data streams. + StreamModeDetails *types.StreamModeDetails noSmithyDocumentSerde } diff --git a/service/kinesis/api_op_DeleteStream.go b/service/kinesis/api_op_DeleteStream.go index 10ef023b307..8f5656517db 100644 --- a/service/kinesis/api_op_DeleteStream.go +++ b/service/kinesis/api_op_DeleteStream.go @@ -20,8 +20,8 @@ import ( // PutRecord, PutRecords, and GetRecords, on a stream in the DELETING state until // the stream deletion is complete. When you delete a stream, any shards in that // stream are also deleted, and any tags are dissociated from the stream. You can -// use the DescribeStream operation to check the state of the stream, which is -// returned in StreamStatus. DeleteStream has a limit of five transactions per +// use the DescribeStreamSummary operation to check the state of the stream, which +// is returned in StreamStatus. DeleteStream has a limit of five transactions per // second per account. func (c *Client) DeleteStream(ctx context.Context, params *DeleteStreamInput, optFns ...func(*Options)) (*DeleteStreamOutput, error) { if params == nil { diff --git a/service/kinesis/api_op_DeregisterStreamConsumer.go b/service/kinesis/api_op_DeregisterStreamConsumer.go index b890f29faa6..022437e35f4 100644 --- a/service/kinesis/api_op_DeregisterStreamConsumer.go +++ b/service/kinesis/api_op_DeregisterStreamConsumer.go @@ -46,7 +46,8 @@ type DeregisterStreamConsumerInput struct { ConsumerName *string // The ARN of the Kinesis data stream that the consumer is registered with. For - // more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces + // more information, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). StreamARN *string diff --git a/service/kinesis/api_op_DescribeLimits.go b/service/kinesis/api_op_DescribeLimits.go index 664dfe29b16..9a1b45d75b7 100644 --- a/service/kinesis/api_op_DescribeLimits.go +++ b/service/kinesis/api_op_DescribeLimits.go @@ -34,6 +34,16 @@ type DescribeLimitsInput struct { type DescribeLimitsOutput struct { + // Indicates the number of data streams with the on-demand capacity mode. + // + // This member is required. + OnDemandStreamCount *int32 + + // The maximum number of data streams with the on-demand capacity mode. + // + // This member is required. + OnDemandStreamCountLimit *int32 + // The number of open shards. // // This member is required. diff --git a/service/kinesis/api_op_DescribeStream.go b/service/kinesis/api_op_DescribeStream.go index d2f0b8207d4..6c0d59ea7d9 100644 --- a/service/kinesis/api_op_DescribeStream.go +++ b/service/kinesis/api_op_DescribeStream.go @@ -17,15 +17,18 @@ import ( "time" ) -// Describes the specified Kinesis data stream. The information returned includes -// the stream name, Amazon Resource Name (ARN), creation time, enhanced metric -// configuration, and shard map. The shard map is an array of shard objects. For -// each shard object, there is the hash key and sequence number ranges that the -// shard spans, and the IDs of any earlier shards that played in a role in creating -// the shard. Every record ingested in the stream is identified by a sequence -// number, which is assigned when the record is put into the stream. You can limit -// the number of shards returned by each call. For more information, see Retrieving -// Shards from a Stream +// Describes the specified Kinesis data stream. This API has been revised. It's +// highly recommended that you use the DescribeStreamSummary API to get a +// summarized description of the specified Kinesis data stream and the ListShards +// API to list the shards in a specified data stream and obtain information about +// each shard. The information returned includes the stream name, Amazon Resource +// Name (ARN), creation time, enhanced metric configuration, and shard map. The +// shard map is an array of shard objects. For each shard object, there is the hash +// key and sequence number ranges that the shard spans, and the IDs of any earlier +// shards that played in a role in creating the shard. Every record ingested in the +// stream is identified by a sequence number, which is assigned when the record is +// put into the stream. You can limit the number of shards returned by each call. +// For more information, see Retrieving Shards from a Stream // (https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html) // in the Amazon Kinesis Data Streams Developer Guide. There are no guarantees // about the chronological order shards returned. To process shards in @@ -55,11 +58,15 @@ type DescribeStreamInput struct { // This member is required. StreamName *string - // The shard ID of the shard to start with. + // The shard ID of the shard to start with. Specify this parameter to indicate that + // you want to describe the stream starting with the shard whose ID immediately + // follows ExclusiveStartShardId. If you don't specify this parameter, the default + // behavior for DescribeStream is to describe the stream starting with the first + // shard in the stream. ExclusiveStartShardId *string // The maximum number of shards to return in a single call. The default value is - // 100. If you specify a value greater than 100, at most 100 shards are returned. + // 100. If you specify a value greater than 100, at most 100 results are returned. Limit *int32 noSmithyDocumentSerde diff --git a/service/kinesis/api_op_DescribeStreamConsumer.go b/service/kinesis/api_op_DescribeStreamConsumer.go index e0651331915..ec83237c152 100644 --- a/service/kinesis/api_op_DescribeStreamConsumer.go +++ b/service/kinesis/api_op_DescribeStreamConsumer.go @@ -43,7 +43,8 @@ type DescribeStreamConsumerInput struct { ConsumerName *string // The ARN of the Kinesis data stream that the consumer is registered with. For - // more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces + // more information, see Amazon Resource Names (ARNs) and Amazon Web Services + // Service Namespaces // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). StreamARN *string diff --git a/service/kinesis/api_op_GetRecords.go b/service/kinesis/api_op_GetRecords.go index 3e53f2e45b0..2216cf777f9 100644 --- a/service/kinesis/api_op_GetRecords.go +++ b/service/kinesis/api_op_GetRecords.go @@ -38,17 +38,20 @@ import ( // GetRecords can return. Consider your average record size when determining this // limit. The maximum number of records that can be returned per call is 10,000. // The size of the data returned by GetRecords varies depending on the utilization -// of the shard. The maximum size of data that GetRecords can return is 10 MiB. If -// a call returns this amount of data, subsequent calls made within the next 5 -// seconds throw ProvisionedThroughputExceededException. If there is insufficient -// provisioned throughput on the stream, subsequent calls made within the next 1 -// second throw ProvisionedThroughputExceededException. GetRecords doesn't return -// any data when it throws an exception. For this reason, we recommend that you -// wait 1 second between calls to GetRecords. However, it's possible that the -// application will get exceptions for longer than 1 second. To detect whether the -// application is falling behind in processing, you can use the MillisBehindLatest -// response attribute. You can also monitor the stream using CloudWatch metrics and -// other mechanisms (see Monitoring +// of the shard. It is recommended that consumer applications retrieve records via +// the GetRecords command using the 5 TPS limit to remain caught up. Retrieving +// records less frequently can lead to consumer applications falling behind. The +// maximum size of data that GetRecords can return is 10 MiB. If a call returns +// this amount of data, subsequent calls made within the next 5 seconds throw +// ProvisionedThroughputExceededException. If there is insufficient provisioned +// throughput on the stream, subsequent calls made within the next 1 second throw +// ProvisionedThroughputExceededException. GetRecords doesn't return any data when +// it throws an exception. For this reason, we recommend that you wait 1 second +// between calls to GetRecords. However, it's possible that the application will +// get exceptions for longer than 1 second. To detect whether the application is +// falling behind in processing, you can use the MillisBehindLatest response +// attribute. You can also monitor the stream using CloudWatch metrics and other +// mechanisms (see Monitoring // (https://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html) in the Amazon // Kinesis Data Streams Developer Guide). Each Amazon Kinesis record includes a // value, ApproximateArrivalTimestamp, that is set when a stream successfully @@ -101,6 +104,8 @@ type GetRecordsOutput struct { // This member is required. Records []types.Record + // The list of the current shard's child shards, returned in the GetRecords API's + // response only when the end of the current shard is reached. ChildShards []types.ChildShard // The number of milliseconds the GetRecords response is from the tip of the diff --git a/service/kinesis/api_op_IncreaseStreamRetentionPeriod.go b/service/kinesis/api_op_IncreaseStreamRetentionPeriod.go index bfcead4b764..93200bed0a8 100644 --- a/service/kinesis/api_op_IncreaseStreamRetentionPeriod.go +++ b/service/kinesis/api_op_IncreaseStreamRetentionPeriod.go @@ -12,7 +12,7 @@ import ( // Increases the Kinesis data stream's retention period, which is the length of // time data records are accessible after they are added to the stream. The maximum -// value of a stream's retention period is 168 hours (7 days). If you choose a +// value of a stream's retention period is 8760 hours (365 days). If you choose a // longer stream retention period, this operation increases the time period during // which records that have not yet expired are accessible. However, it does not // make previous, expired data (older than the stream's previous retention period) diff --git a/service/kinesis/api_op_ListShards.go b/service/kinesis/api_op_ListShards.go index 0734b532983..4f1ee33c7f7 100644 --- a/service/kinesis/api_op_ListShards.go +++ b/service/kinesis/api_op_ListShards.go @@ -13,11 +13,15 @@ import ( ) // Lists the shards in a stream and provides information about each shard. This -// operation has a limit of 100 transactions per second per data stream. This API -// is a new operation that is used by the Amazon Kinesis Client Library (KCL). If -// you have a fine-grained IAM policy that only allows specific operations, you -// must update your policy to allow calls to this API. For more information, see -// Controlling Access to Amazon Kinesis Data Streams Resources Using IAM +// operation has a limit of 1000 transactions per second per data stream. This +// action does not list expired shards. For information about expired shards, see +// Data Routing, Data Persistence, and Shard State after a Reshard +// (https://docs.aws.amazon.com/streams/latest/dev/kinesis-using-sdk-java-after-resharding.html#kinesis-using-sdk-java-resharding-data-routing). +// This API is a new operation that is used by the Amazon Kinesis Client Library +// (KCL). If you have a fine-grained IAM policy that only allows specific +// operations, you must update your policy to allow calls to this API. For more +// information, see Controlling Access to Amazon Kinesis Data Streams Resources +// Using IAM // (https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html). func (c *Client) ListShards(ctx context.Context, params *ListShardsInput, optFns ...func(*Options)) (*ListShardsOutput, error) { if params == nil { @@ -44,11 +48,11 @@ type ListShardsInput struct { ExclusiveStartShardId *string // The maximum number of shards to return in a single call to ListShards. The - // minimum value you can specify for this parameter is 1, and the maximum is - // 10,000, which is also the default. When the number of shards to be listed is - // greater than the value of MaxResults, the response contains a NextToken value - // that you can use in a subsequent call to ListShards to list the next set of - // shards. + // maximum number of shards to return in a single call. The default value is 1000. + // If you specify a value greater than 1000, at most 1000 results are returned. + // When the number of shards to be listed is greater than the value of MaxResults, + // the response contains a NextToken value that you can use in a subsequent call to + // ListShards to list the next set of shards. MaxResults *int32 // When the number of shards in the data stream is greater than the default value @@ -68,6 +72,21 @@ type ListShardsInput struct { // call to ListShards, you get ExpiredNextTokenException. NextToken *string + // Enables you to filter out the response of the ListShards API. You can only + // specify one filter at a time. If you use the ShardFilter parameter when invoking + // the ListShards API, the Type is the required property and must be specified. If + // you specify the AT_TRIM_HORIZON, FROM_TRIM_HORIZON, or AT_LATEST types, you do + // not need to specify either the ShardId or the Timestamp optional properties. If + // you specify the AFTER_SHARD_ID type, you must also provide the value for the + // optional ShardId property. The ShardId property is identical in fuctionality to + // the ExclusiveStartShardId parameter of the ListShards API. When ShardId property + // is specified, the response includes the shards starting with the shard whose ID + // immediately follows the ShardId that you provided. If you specify the + // AT_TIMESTAMP or FROM_TIMESTAMP_ID type, you must also provide the value for the + // optional Timestamp property. If you specify the AT_TIMESTAMP type, then all + // shards that were open at the provided timestamp are returned. If you specify the + // FROM_TIMESTAMP type, then all shards starting from the provided timestamp to TIP + // are returned. ShardFilter *types.ShardFilter // Specify this input parameter to distinguish data streams that have the same diff --git a/service/kinesis/api_op_ListStreamConsumers.go b/service/kinesis/api_op_ListStreamConsumers.go index 42bf3cb893b..29649b9a5b8 100644 --- a/service/kinesis/api_op_ListStreamConsumers.go +++ b/service/kinesis/api_op_ListStreamConsumers.go @@ -34,15 +34,16 @@ func (c *Client) ListStreamConsumers(ctx context.Context, params *ListStreamCons type ListStreamConsumersInput struct { // The ARN of the Kinesis data stream for which you want to list the registered - // consumers. For more information, see Amazon Resource Names (ARNs) and AWS - // Service Namespaces + // consumers. For more information, see Amazon Resource Names (ARNs) and Amazon Web + // Services Service Namespaces // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). // // This member is required. StreamARN *string // The maximum number of consumers that you want a single call of - // ListStreamConsumers to return. + // ListStreamConsumers to return. The default value is 100. If you specify a value + // greater than 100, at most 100 results are returned. MaxResults *int32 // When the number of consumers that are registered with the data stream is greater @@ -173,7 +174,8 @@ var _ ListStreamConsumersAPIClient = (*Client)(nil) // ListStreamConsumers type ListStreamConsumersPaginatorOptions struct { // The maximum number of consumers that you want a single call of - // ListStreamConsumers to return. + // ListStreamConsumers to return. The default value is 100. If you specify a value + // greater than 100, at most 100 results are returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/kinesis/api_op_ListStreams.go b/service/kinesis/api_op_ListStreams.go index fa123a3d8ee..4734dc641d7 100644 --- a/service/kinesis/api_op_ListStreams.go +++ b/service/kinesis/api_op_ListStreams.go @@ -13,7 +13,7 @@ import ( // Lists your Kinesis data streams. The number of streams may be too large to // return from a single call to ListStreams. You can limit the number of returned // streams using the Limit parameter. If you do not specify a value for the Limit -// parameter, Kinesis Data Streams uses the default limit, which is currently 10. +// parameter, Kinesis Data Streams uses the default limit, which is currently 100. // You can detect if there are more streams available to list by using the // HasMoreStreams flag from the returned output. If there are more streams // available, you can request more streams by using the name of the last stream @@ -43,7 +43,8 @@ type ListStreamsInput struct { // The name of the stream to start the list with. ExclusiveStartStreamName *string - // The maximum number of streams to list. + // The maximum number of streams to list. The default value is 100. If you specify + // a value greater than 100, at most 100 results are returned. Limit *int32 noSmithyDocumentSerde @@ -57,8 +58,8 @@ type ListStreamsOutput struct { // This member is required. HasMoreStreams *bool - // The names of the streams that are associated with the AWS account making the - // ListStreams request. + // The names of the streams that are associated with the Amazon Web Services + // account making the ListStreams request. // // This member is required. StreamNames []string diff --git a/service/kinesis/api_op_MergeShards.go b/service/kinesis/api_op_MergeShards.go index 816728eb8aa..2196e6fdada 100644 --- a/service/kinesis/api_op_MergeShards.go +++ b/service/kinesis/api_op_MergeShards.go @@ -27,17 +27,17 @@ import ( // ACTIVE state, you can call MergeShards. If a stream is in the CREATING, // UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. If // the specified stream does not exist, MergeShards returns a -// ResourceNotFoundException. You can use DescribeStream to check the state of the -// stream, which is returned in StreamStatus. MergeShards is an asynchronous +// ResourceNotFoundException. You can use DescribeStreamSummary to check the state +// of the stream, which is returned in StreamStatus. MergeShards is an asynchronous // operation. Upon receiving a MergeShards request, Amazon Kinesis Data Streams // immediately returns a response and sets the StreamStatus to UPDATING. After the // operation is completed, Kinesis Data Streams sets the StreamStatus to ACTIVE. // Read and write operations continue to work while the stream is in the UPDATING -// state. You use DescribeStream to determine the shard IDs that are specified in -// the MergeShards request. If you try to operate on too many streams in parallel -// using CreateStream, DeleteStream, MergeShards, or SplitShard, you receive a -// LimitExceededException. MergeShards has a limit of five transactions per second -// per account. +// state. You use DescribeStreamSummary and the ListShards APIs to determine the +// shard IDs that are specified in the MergeShards request. If you try to operate +// on too many streams in parallel using CreateStream, DeleteStream, MergeShards, +// or SplitShard, you receive a LimitExceededException. MergeShards has a limit of +// five transactions per second per account. func (c *Client) MergeShards(ctx context.Context, params *MergeShardsInput, optFns ...func(*Options)) (*MergeShardsOutput, error) { if params == nil { params = &MergeShardsInput{} diff --git a/service/kinesis/api_op_PutRecord.go b/service/kinesis/api_op_PutRecord.go index 1aac312dc89..b638b799c7c 100644 --- a/service/kinesis/api_op_PutRecord.go +++ b/service/kinesis/api_op_PutRecord.go @@ -124,8 +124,8 @@ type PutRecordOutput struct { // * NONE: Do not encrypt the records in the stream. // // * KMS: Use - // server-side encryption on the records in the stream using a customer-managed AWS - // KMS key. + // server-side encryption on the records in the stream using a customer-managed + // Amazon Web Services KMS key. EncryptionType types.EncryptionType // Metadata pertaining to the operation's result. diff --git a/service/kinesis/api_op_PutRecords.go b/service/kinesis/api_op_PutRecords.go index d91d1887843..ff8c8b64b98 100644 --- a/service/kinesis/api_op_PutRecords.go +++ b/service/kinesis/api_op_PutRecords.go @@ -98,10 +98,10 @@ type PutRecordsInput struct { // PutRecords results. type PutRecordsOutput struct { - // An array of successfully and unsuccessfully processed record results, correlated - // with the request by natural ordering. A record that is successfully added to a - // stream includes SequenceNumber and ShardId in the result. A record that fails to - // be added to a stream includes ErrorCode and ErrorMessage in the result. + // An array of successfully and unsuccessfully processed record results. A record + // that is successfully added to a stream includes SequenceNumber and ShardId in + // the result. A record that fails to be added to a stream includes ErrorCode and + // ErrorMessage in the result. // // This member is required. Records []types.PutRecordsResultEntry @@ -112,7 +112,7 @@ type PutRecordsOutput struct { // * NONE: Do not encrypt the records. // // * KMS: Use server-side - // encryption on the records using a customer-managed AWS KMS key. + // encryption on the records using a customer-managed Amazon Web Services KMS key. EncryptionType types.EncryptionType // The number of unsuccessfully processed records in a PutRecords request. diff --git a/service/kinesis/api_op_RegisterStreamConsumer.go b/service/kinesis/api_op_RegisterStreamConsumer.go index 6c4fc3f56f3..853dd5b394b 100644 --- a/service/kinesis/api_op_RegisterStreamConsumer.go +++ b/service/kinesis/api_op_RegisterStreamConsumer.go @@ -47,7 +47,8 @@ type RegisterStreamConsumerInput struct { ConsumerName *string // The ARN of the Kinesis data stream that you want to register the consumer with. - // For more info, see Amazon Resource Names (ARNs) and AWS Service Namespaces + // For more info, see Amazon Resource Names (ARNs) and Amazon Web Services Service + // Namespaces // (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kinesis-streams). // // This member is required. diff --git a/service/kinesis/api_op_SplitShard.go b/service/kinesis/api_op_SplitShard.go index 9b682e216a4..eab196b6899 100644 --- a/service/kinesis/api_op_SplitShard.go +++ b/service/kinesis/api_op_SplitShard.go @@ -25,24 +25,23 @@ import ( // value in the range being mapped into the shard. For more information, see Split // a Shard // (https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html) -// in the Amazon Kinesis Data Streams Developer Guide. You can use DescribeStream -// to determine the shard ID and hash key values for the ShardToSplit and -// NewStartingHashKey parameters that are specified in the SplitShard request. -// SplitShard is an asynchronous operation. Upon receiving a SplitShard request, -// Kinesis Data Streams immediately returns a response and sets the stream status -// to UPDATING. After the operation is completed, Kinesis Data Streams sets the -// stream status to ACTIVE. Read and write operations continue to work while the -// stream is in the UPDATING state. You can use DescribeStream to check the status -// of the stream, which is returned in StreamStatus. If the stream is in the ACTIVE -// state, you can call SplitShard. If a stream is in CREATING or UPDATING or -// DELETING states, DescribeStream returns a ResourceInUseException. If the -// specified stream does not exist, DescribeStream returns a +// in the Amazon Kinesis Data Streams Developer Guide. You can use +// DescribeStreamSummary and the ListShards APIs to determine the shard ID and hash +// key values for the ShardToSplit and NewStartingHashKey parameters that are +// specified in the SplitShard request. SplitShard is an asynchronous operation. +// Upon receiving a SplitShard request, Kinesis Data Streams immediately returns a +// response and sets the stream status to UPDATING. After the operation is +// completed, Kinesis Data Streams sets the stream status to ACTIVE. Read and write +// operations continue to work while the stream is in the UPDATING state. You can +// use DescribeStreamSummary to check the status of the stream, which is returned +// in StreamStatus. If the stream is in the ACTIVE state, you can call SplitShard. +// If the specified stream does not exist, DescribeStreamSummary returns a // ResourceNotFoundException. If you try to create more shards than are authorized // for your account, you receive a LimitExceededException. For the default shard -// limit for an AWS account, see Kinesis Data Streams Limits +// limit for an Amazon Web Services account, see Kinesis Data Streams Limits // (https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Data Streams Developer Guide. To increase this limit, -// contact AWS Support +// contact Amazon Web Services Support // (https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html). If you // try to operate on too many streams simultaneously using CreateStream, // DeleteStream, MergeShards, and/or SplitShard, you receive a diff --git a/service/kinesis/api_op_StartStreamEncryption.go b/service/kinesis/api_op_StartStreamEncryption.go index 1a668a8880e..365a79b1676 100644 --- a/service/kinesis/api_op_StartStreamEncryption.go +++ b/service/kinesis/api_op_StartStreamEncryption.go @@ -11,20 +11,20 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables or updates server-side encryption using an AWS KMS key for a specified -// stream. Starting encryption is an asynchronous operation. Upon receiving the -// request, Kinesis Data Streams returns immediately and sets the status of the -// stream to UPDATING. After the update is complete, Kinesis Data Streams sets the -// status of the stream back to ACTIVE. Updating or applying encryption normally -// takes a few seconds to complete, but it can take minutes. You can continue to -// read and write data to your stream while its status is UPDATING. Once the status -// of the stream is ACTIVE, encryption begins for records written to the stream. -// API Limits: You can successfully apply a new AWS KMS key for server-side -// encryption 25 times in a rolling 24-hour period. Note: It can take up to 5 -// seconds after the stream is in an ACTIVE status before all records written to -// the stream are encrypted. After you enable encryption, you can verify that -// encryption is applied by inspecting the API response from PutRecord or -// PutRecords. +// Enables or updates server-side encryption using an Amazon Web Services KMS key +// for a specified stream. Starting encryption is an asynchronous operation. Upon +// receiving the request, Kinesis Data Streams returns immediately and sets the +// status of the stream to UPDATING. After the update is complete, Kinesis Data +// Streams sets the status of the stream back to ACTIVE. Updating or applying +// encryption normally takes a few seconds to complete, but it can take minutes. +// You can continue to read and write data to your stream while its status is +// UPDATING. Once the status of the stream is ACTIVE, encryption begins for records +// written to the stream. API Limits: You can successfully apply a new Amazon Web +// Services KMS key for server-side encryption 25 times in a rolling 24-hour +// period. Note: It can take up to 5 seconds after the stream is in an ACTIVE +// status before all records written to the stream are encrypted. After you enable +// encryption, you can verify that encryption is applied by inspecting the API +// response from PutRecord or PutRecords. func (c *Client) StartStreamEncryption(ctx context.Context, params *StartStreamEncryptionInput, optFns ...func(*Options)) (*StartStreamEncryptionOutput, error) { if params == nil { params = &StartStreamEncryptionInput{} @@ -47,11 +47,11 @@ type StartStreamEncryptionInput struct { // This member is required. EncryptionType types.EncryptionType - // The GUID for the customer-managed AWS KMS key to use for encryption. This value - // can be a globally unique identifier, a fully specified Amazon Resource Name - // (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can - // also use a master key owned by Kinesis Data Streams by specifying the alias - // aws/kinesis. + // The GUID for the customer-managed Amazon Web Services KMS key to use for + // encryption. This value can be a globally unique identifier, a fully specified + // Amazon Resource Name (ARN) to either an alias or a key, or an alias name + // prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams + // by specifying the alias aws/kinesis. // // * Key ARN example: // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 diff --git a/service/kinesis/api_op_StopStreamEncryption.go b/service/kinesis/api_op_StopStreamEncryption.go index d77d06a73ae..c87b9913a0b 100644 --- a/service/kinesis/api_op_StopStreamEncryption.go +++ b/service/kinesis/api_op_StopStreamEncryption.go @@ -46,11 +46,11 @@ type StopStreamEncryptionInput struct { // This member is required. EncryptionType types.EncryptionType - // The GUID for the customer-managed AWS KMS key to use for encryption. This value - // can be a globally unique identifier, a fully specified Amazon Resource Name - // (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can - // also use a master key owned by Kinesis Data Streams by specifying the alias - // aws/kinesis. + // The GUID for the customer-managed Amazon Web Services KMS key to use for + // encryption. This value can be a globally unique identifier, a fully specified + // Amazon Resource Name (ARN) to either an alias or a key, or an alias name + // prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams + // by specifying the alias aws/kinesis. // // * Key ARN example: // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 diff --git a/service/kinesis/api_op_SubscribeToShard.go b/service/kinesis/api_op_SubscribeToShard.go index afae5b28cd7..ba0b5ecfe3f 100644 --- a/service/kinesis/api_op_SubscribeToShard.go +++ b/service/kinesis/api_op_SubscribeToShard.go @@ -29,9 +29,9 @@ import ( // 4000 shards in one second. If you call SubscribeToShard again with the same // ConsumerARN and ShardId within 5 seconds of a successful call, you'll get a // ResourceInUseException. If you call SubscribeToShard 5 seconds or more after a -// successful call, the first connection will expire and the second call will take -// over the subscription. For an example of how to use this operations, see -// Enhanced Fan-Out Using the Kinesis Data Streams API. +// successful call, the second call takes over the subscription and the previous +// connection expires or fails with a ResourceInUseException. For an example of how +// to use this operations, see Enhanced Fan-Out Using the Kinesis Data Streams API. func (c *Client) SubscribeToShard(ctx context.Context, params *SubscribeToShardInput, optFns ...func(*Options)) (*SubscribeToShardOutput, error) { if params == nil { params = &SubscribeToShardInput{} @@ -61,7 +61,7 @@ type SubscribeToShardInput struct { // This member is required. ShardId *string - // + // The starting position in the data stream from which to start streaming. // // This member is required. StartingPosition *types.StartingPosition diff --git a/service/kinesis/api_op_UpdateShardCount.go b/service/kinesis/api_op_UpdateShardCount.go index c606bc24a40..5d332463d87 100644 --- a/service/kinesis/api_op_UpdateShardCount.go +++ b/service/kinesis/api_op_UpdateShardCount.go @@ -36,16 +36,17 @@ import ( // * Scale down // below half your current shard count for a stream // -// * Scale up to more than 500 +// * Scale up to more than 10000 // shards in a stream // -// * Scale a stream with more than 500 shards down unless the -// result is less than 500 shards +// * Scale a stream with more than 10000 shards down unless the +// result is less than 10000 shards // -// * Scale up to more than the shard limit for your -// account +// * Scale up to more than the shard limit for +// your account // -// For the default limits for an AWS account, see Streams Limits +// For the default limits for an Amazon Web Services account, see +// Streams Limits // (https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Data Streams Developer Guide. To request an increase in // the call rate limit, the shard limit for this API, or your overall shard limit, @@ -87,12 +88,12 @@ type UpdateShardCountInput struct { // * Set this value below half your current // shard count for a stream. // - // * Set this value to more than 500 shards in a stream - // (the default limit for shard count per stream is 500 per account per region), - // unless you request a limit increase. + // * Set this value to more than 10000 shards in a + // stream (the default limit for shard count per stream is 10000 per account per + // region), unless you request a limit increase. // - // * Scale a stream with more than 500 shards - // down unless you set this value to less than 500 shards. + // * Scale a stream with more than + // 10000 shards down unless you set this value to less than 10000 shards. // // This member is required. TargetShardCount *int32 diff --git a/service/kinesis/api_op_UpdateStreamMode.go b/service/kinesis/api_op_UpdateStreamMode.go new file mode 100644 index 00000000000..0d1a7243f6a --- /dev/null +++ b/service/kinesis/api_op_UpdateStreamMode.go @@ -0,0 +1,126 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package kinesis + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/kinesis/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the capacity mode of the data stream. Currently, in Kinesis Data +// Streams, you can choose between an on-demand capacity mode and a provisioned +// capacity mode for your data stream. +func (c *Client) UpdateStreamMode(ctx context.Context, params *UpdateStreamModeInput, optFns ...func(*Options)) (*UpdateStreamModeOutput, error) { + if params == nil { + params = &UpdateStreamModeInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateStreamMode", params, optFns, c.addOperationUpdateStreamModeMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateStreamModeOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateStreamModeInput struct { + + // Specifies the ARN of the data stream whose capacity mode you want to update. + // + // This member is required. + StreamARN *string + + // Specifies the capacity mode to which you want to set your data stream. + // Currently, in Kinesis Data Streams, you can choose between an on-demand capacity + // mode and a provisioned capacity mode for your data streams. + // + // This member is required. + StreamModeDetails *types.StreamModeDetails + + noSmithyDocumentSerde +} + +type UpdateStreamModeOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateStreamModeMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateStreamMode{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateStreamMode{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateStreamModeValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateStreamMode(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateStreamMode(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "kinesis", + OperationName: "UpdateStreamMode", + } +} diff --git a/service/kinesis/deserializers.go b/service/kinesis/deserializers.go index 6491e4f44eb..bccc8ecf34d 100644 --- a/service/kinesis/deserializers.go +++ b/service/kinesis/deserializers.go @@ -2115,6 +2115,9 @@ func awsAwsjson11_deserializeOpErrorMergeShards(response *smithyhttp.Response, m case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -2701,6 +2704,9 @@ func awsAwsjson11_deserializeOpErrorSplitShard(response *smithyhttp.Response, me case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -3114,6 +3120,107 @@ func awsAwsjson11_deserializeOpErrorUpdateShardCount(response *smithyhttp.Respon errorMessage = message } + switch { + case strings.EqualFold("InvalidArgumentException", errorCode): + return awsAwsjson11_deserializeErrorInvalidArgumentException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsAwsjson11_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceInUseException", errorCode): + return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateStreamMode struct { +} + +func (*awsAwsjson11_deserializeOpUpdateStreamMode) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateStreamMode) 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_deserializeOpErrorUpdateStreamMode(response, &metadata) + } + output := &UpdateStreamModeOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateStreamMode(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + switch { case strings.EqualFold("InvalidArgumentException", errorCode): return awsAwsjson11_deserializeErrorInvalidArgumentException(response, errorBody) @@ -4820,6 +4927,41 @@ func awsAwsjson11_deserializeErrorResourceNotFoundException(response *smithyhttp return output } +func awsAwsjson11_deserializeErrorValidationException(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.ValidationException{} + err := awsAwsjson11_deserializeDocumentValidationException(&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_deserializeDocumentConsumer(v **types.Consumer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5666,6 +5808,11 @@ func awsAwsjson11_deserializeDocumentStreamDescription(v **types.StreamDescripti } } + case "StreamModeDetails": + if err := awsAwsjson11_deserializeDocumentStreamModeDetails(&sv.StreamModeDetails, value); err != nil { + return err + } + case "StreamName": if value != nil { jtv, ok := value.(string) @@ -5802,6 +5949,11 @@ func awsAwsjson11_deserializeDocumentStreamDescriptionSummary(v **types.StreamDe } } + case "StreamModeDetails": + if err := awsAwsjson11_deserializeDocumentStreamModeDetails(&sv.StreamModeDetails, value); err != nil { + return err + } + case "StreamName": if value != nil { jtv, ok := value.(string) @@ -5829,6 +5981,46 @@ func awsAwsjson11_deserializeDocumentStreamDescriptionSummary(v **types.StreamDe return nil } +func awsAwsjson11_deserializeDocumentStreamModeDetails(v **types.StreamModeDetails, 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.StreamModeDetails + if *v == nil { + sv = &types.StreamModeDetails{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "StreamMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StreamMode to be of type string, got %T instead", value) + } + sv.StreamMode = types.StreamMode(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentStreamNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5948,6 +6140,46 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) return nil } +func awsAwsjson11_deserializeDocumentValidationException(v **types.ValidationException, 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.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeLimitsOutput(v **DescribeLimitsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5970,6 +6202,32 @@ func awsAwsjson11_deserializeOpDocumentDescribeLimitsOutput(v **DescribeLimitsOu for key, value := range shape { switch key { + case "OnDemandStreamCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected OnDemandStreamCountObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.OnDemandStreamCount = ptr.Int32(int32(i64)) + } + + case "OnDemandStreamCountLimit": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected OnDemandStreamCountLimitObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.OnDemandStreamCountLimit = ptr.Int32(int32(i64)) + } + case "OpenShardCount": if value != nil { jtv, ok := value.(json.Number) diff --git a/service/kinesis/generated.json b/service/kinesis/generated.json index f20665f9026..d2338e393df 100644 --- a/service/kinesis/generated.json +++ b/service/kinesis/generated.json @@ -37,6 +37,7 @@ "api_op_StopStreamEncryption.go", "api_op_SubscribeToShard.go", "api_op_UpdateShardCount.go", + "api_op_UpdateStreamMode.go", "deserializers.go", "doc.go", "endpoints.go", diff --git a/service/kinesis/serializers.go b/service/kinesis/serializers.go index 3864c1ac861..2688c60d6bf 100644 --- a/service/kinesis/serializers.go +++ b/service/kinesis/serializers.go @@ -1555,6 +1555,61 @@ func (m *awsAwsjson11_serializeOpUpdateShardCount) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } + +type awsAwsjson11_serializeOpUpdateStreamMode struct { +} + +func (*awsAwsjson11_serializeOpUpdateStreamMode) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateStreamMode) 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.(*UpdateStreamModeInput) + _ = 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("Kinesis_20131202.UpdateStreamMode") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateStreamModeInput(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) +} func awsAwsjson11_serializeDocumentMetricsNameList(v []types.MetricsName, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1645,6 +1700,18 @@ func awsAwsjson11_serializeDocumentStartingPosition(v *types.StartingPosition, v return nil } +func awsAwsjson11_serializeDocumentStreamModeDetails(v *types.StreamModeDetails, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.StreamMode) > 0 { + ok := object.Key("StreamMode") + ok.String(string(v.StreamMode)) + } + + return nil +} + func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1695,6 +1762,13 @@ func awsAwsjson11_serializeOpDocumentCreateStreamInput(v *CreateStreamInput, val ok.Integer(*v.ShardCount) } + if v.StreamModeDetails != nil { + ok := object.Key("StreamModeDetails") + if err := awsAwsjson11_serializeDocumentStreamModeDetails(v.StreamModeDetails, ok); err != nil { + return err + } + } + if v.StreamName != nil { ok := object.Key("StreamName") ok.String(*v.StreamName) @@ -2251,3 +2325,22 @@ func awsAwsjson11_serializeOpDocumentUpdateShardCountInput(v *UpdateShardCountIn return nil } + +func awsAwsjson11_serializeOpDocumentUpdateStreamModeInput(v *UpdateStreamModeInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.StreamARN != nil { + ok := object.Key("StreamARN") + ok.String(*v.StreamARN) + } + + if v.StreamModeDetails != nil { + ok := object.Key("StreamModeDetails") + if err := awsAwsjson11_serializeDocumentStreamModeDetails(v.StreamModeDetails, ok); err != nil { + return err + } + } + + return nil +} diff --git a/service/kinesis/types/enums.go b/service/kinesis/types/enums.go index 8ed6f8a3e75..9e36f137533 100644 --- a/service/kinesis/types/enums.go +++ b/service/kinesis/types/enums.go @@ -136,6 +136,24 @@ func (ShardIteratorType) Values() []ShardIteratorType { } } +type StreamMode string + +// Enum values for StreamMode +const ( + StreamModeProvisioned StreamMode = "PROVISIONED" + StreamModeOnDemand StreamMode = "ON_DEMAND" +) + +// Values returns all known values for StreamMode. 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 (StreamMode) Values() []StreamMode { + return []StreamMode{ + "PROVISIONED", + "ON_DEMAND", + } +} + type StreamStatus string // Enum values for StreamStatus diff --git a/service/kinesis/types/errors.go b/service/kinesis/types/errors.go index 3e0702798e4..512d1f33c0b 100644 --- a/service/kinesis/types/errors.go +++ b/service/kinesis/types/errors.go @@ -129,7 +129,7 @@ func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.Fa // for this request. For more information, see How Key State Affects Use of a // Customer Master Key // (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the -// AWS Key Management Service Developer Guide. +// Amazon Web Services Key Management Service Developer Guide. type KMSInvalidStateException struct { Message *string @@ -168,7 +168,7 @@ func (e *KMSNotFoundException) ErrorMessage() string { func (e *KMSNotFoundException) ErrorCode() string { return "KMSNotFoundException" } func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The AWS access key ID needs a subscription for the service. +// The Amazon Web Services access key ID needs a subscription for the service. type KMSOptInRequired struct { Message *string @@ -190,7 +190,7 @@ func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultC // The request was denied due to request throttling. For more information about // throttling, see Limits // (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) -// in the AWS Key Management Service Developer Guide. +// in the Amazon Web Services Key Management Service Developer Guide. type KMSThrottlingException struct { Message *string @@ -234,9 +234,9 @@ func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy. // more information, see Streams Limits // (https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) // in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and -// Exponential Backoff in AWS -// (https://docs.aws.amazon.com/general/latest/gr/api-retries.html) in the AWS -// General Reference. +// Exponential Backoff in Amazon Web Services +// (https://docs.aws.amazon.com/general/latest/gr/api-retries.html) in the Amazon +// Web Services General Reference. type ProvisionedThroughputExceededException struct { Message *string @@ -298,3 +298,22 @@ func (e *ResourceNotFoundException) ErrorMessage() string { } func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// +type ValidationException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/kinesis/types/types.go b/service/kinesis/types/types.go index 636b8a5a2a8..e293d6cf878 100644 --- a/service/kinesis/types/types.go +++ b/service/kinesis/types/types.go @@ -7,6 +7,8 @@ import ( "time" ) +// Output parameter of the GetRecords API. The existing child shard of the current +// shard. type ChildShard struct { // The range of possible hash key values for the shard, which is a set of ordered @@ -15,9 +17,13 @@ type ChildShard struct { // This member is required. HashKeyRange *HashKeyRange + // The current shard that is the parent of the existing child shard. + // // This member is required. ParentShards []string + // The shard ID of the existing child shard of the current shard. + // // This member is required. ShardId *string @@ -229,8 +235,8 @@ type Record struct { // * NONE: Do not encrypt the records in the stream. // // * KMS: Use - // server-side encryption on the records in the stream using a customer-managed AWS - // KMS key. + // server-side encryption on the records in the stream using a customer-managed + // Amazon Web Services KMS key. EncryptionType EncryptionType noSmithyDocumentSerde @@ -279,19 +285,53 @@ type Shard struct { noSmithyDocumentSerde } +// The request parameter used to filter out the response of the ListShards API. type ShardFilter struct { + // The shard type specified in the ShardFilter parameter. This is a required + // property of the ShardFilter parameter. You can specify the following valid + // values: + // + // * AFTER_SHARD_ID - the response includes all the shards, starting with + // the shard whose ID immediately follows the ShardId that you provided. + // + // * + // AT_TRIM_HORIZON - the response includes all the shards that were open at + // TRIM_HORIZON. + // + // * FROM_TRIM_HORIZON - (default), the response includes all the + // shards within the retention period of the data stream (trim to tip). + // + // * + // AT_LATEST - the response includes only the currently open shards of the data + // stream. + // + // * AT_TIMESTAMP - the response includes all shards whose start timestamp + // is less than or equal to the given timestamp and end timestamp is greater than + // or equal to the given timestamp or still open. + // + // * FROM_TIMESTAMP - the response + // incldues all closed shards whose end timestamp is greater than or equal to the + // given timestamp and also all open shards. Corrected to TRIM_HORIZON of the data + // stream if FROM_TIMESTAMP is less than the TRIM_HORIZON value. + // // This member is required. Type ShardFilterType + // The exclusive start shardID speified in the ShardFilter parameter. This property + // can only be used if the AFTER_SHARD_ID shard type is specified. ShardId *string + // The timestamps specified in the ShardFilter parameter. A timestamp is a Unix + // epoch date with precision in milliseconds. For example, + // 2016-04-04T19:58:46.480-00:00 or 1459799926.480. This property can only be used + // if FROM_TIMESTAMP or AT_TIMESTAMP shard types are specified. Timestamp *time.Time noSmithyDocumentSerde } -// +// The starting position in the data stream from which to start streaming. type StartingPosition struct { // You can set the starting position to one of the following values: @@ -391,13 +431,14 @@ type StreamDescription struct { // // * KMS: // Use server-side encryption on the records in the stream using a customer-managed - // AWS KMS key. + // Amazon Web Services KMS key. EncryptionType EncryptionType - // The GUID for the customer-managed AWS KMS key to use for encryption. This value - // can be a globally unique identifier, a fully specified ARN to either an alias or - // a key, or an alias name prefixed by "alias/".You can also use a master key owned - // by Kinesis Data Streams by specifying the alias aws/kinesis. + // The GUID for the customer-managed Amazon Web Services KMS key to use for + // encryption. This value can be a globally unique identifier, a fully specified + // ARN to either an alias or a key, or an alias name prefixed by "alias/".You can + // also use a master key owned by Kinesis Data Streams by specifying the alias + // aws/kinesis. // // * Key ARN example: // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 @@ -415,6 +456,11 @@ type StreamDescription struct { // alias/aws/kinesis KeyId *string + // Specifies the capacity mode to which you want to set your data stream. + // Currently, in Kinesis Data Streams, you can choose between an on-demand capacity + // mode and a provisioned capacity mode for your data streams. + StreamModeDetails *StreamModeDetails + noSmithyDocumentSerde } @@ -482,10 +528,11 @@ type StreamDescriptionSummary struct { // * NONE EncryptionType EncryptionType - // The GUID for the customer-managed AWS KMS key to use for encryption. This value - // can be a globally unique identifier, a fully specified ARN to either an alias or - // a key, or an alias name prefixed by "alias/".You can also use a master key owned - // by Kinesis Data Streams by specifying the alias aws/kinesis. + // The GUID for the customer-managed Amazon Web Services KMS key to use for + // encryption. This value can be a globally unique identifier, a fully specified + // ARN to either an alias or a key, or an alias name prefixed by "alias/".You can + // also use a master key owned by Kinesis Data Streams by specifying the alias + // aws/kinesis. // // * Key ARN example: // arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 @@ -503,6 +550,26 @@ type StreamDescriptionSummary struct { // alias/aws/kinesis KeyId *string + // Specifies the capacity mode to which you want to set your data stream. + // Currently, in Kinesis Data Streams, you can choose between an on-demand + // ycapacity mode and a provisioned capacity mode for your data streams. + StreamModeDetails *StreamModeDetails + + noSmithyDocumentSerde +} + +// Specifies the capacity mode to which you want to set your data stream. +// Currently, in Kinesis Data Streams, you can choose between an on-demand capacity +// mode and a provisioned capacity mode for your data streams. +type StreamModeDetails struct { + + // Specifies the capacity mode to which you want to set your data stream. + // Currently, in Kinesis Data Streams, you can choose between an on-demand capacity + // mode and a provisioned capacity mode for your data streams. + // + // This member is required. + StreamMode StreamMode + noSmithyDocumentSerde } @@ -531,6 +598,8 @@ type SubscribeToShardEvent struct { // This member is required. Records []Record + // The list of the child shards of the current shard, returned only at the end of + // the current shard. ChildShards []ChildShard noSmithyDocumentSerde diff --git a/service/kinesis/validators.go b/service/kinesis/validators.go index fadb5d4d013..f93da8fd91d 100644 --- a/service/kinesis/validators.go +++ b/service/kinesis/validators.go @@ -490,6 +490,26 @@ func (m *validateOpUpdateShardCount) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpUpdateStreamMode struct { +} + +func (*validateOpUpdateStreamMode) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateStreamMode) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateStreamModeInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateStreamModeInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + func addOpAddTagsToStreamValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAddTagsToStream{}, middleware.After) } @@ -586,6 +606,10 @@ func addOpUpdateShardCountValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateShardCount{}, middleware.After) } +func addOpUpdateStreamModeValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateStreamMode{}, middleware.After) +} + func validatePutRecordsRequestEntry(v *types.PutRecordsRequestEntry) error { if v == nil { return nil @@ -651,6 +675,21 @@ func validateStartingPosition(v *types.StartingPosition) error { } } +func validateStreamModeDetails(v *types.StreamModeDetails) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StreamModeDetails"} + if len(v.StreamMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("StreamMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAddTagsToStreamInput(v *AddTagsToStreamInput) error { if v == nil { return nil @@ -677,8 +716,10 @@ func validateOpCreateStreamInput(v *CreateStreamInput) error { if v.StreamName == nil { invalidParams.Add(smithy.NewErrParamRequired("StreamName")) } - if v.ShardCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("ShardCount")) + if v.StreamModeDetails != nil { + if err := validateStreamModeDetails(v.StreamModeDetails); err != nil { + invalidParams.AddNested("StreamModeDetails", err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams @@ -1095,3 +1136,25 @@ func validateOpUpdateShardCountInput(v *UpdateShardCountInput) error { return nil } } + +func validateOpUpdateStreamModeInput(v *UpdateStreamModeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateStreamModeInput"} + if v.StreamARN == nil { + invalidParams.Add(smithy.NewErrParamRequired("StreamARN")) + } + if v.StreamModeDetails == nil { + invalidParams.Add(smithy.NewErrParamRequired("StreamModeDetails")) + } else if v.StreamModeDetails != nil { + if err := validateStreamModeDetails(v.StreamModeDetails); err != nil { + invalidParams.AddNested("StreamModeDetails", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/lakeformation/api_op_AddLFTagsToResource.go b/service/lakeformation/api_op_AddLFTagsToResource.go index 51f6cd40692..5a5091abaaa 100644 --- a/service/lakeformation/api_op_AddLFTagsToResource.go +++ b/service/lakeformation/api_op_AddLFTagsToResource.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Attaches one or more tags to an existing resource. +// Attaches one or more LF-tags to an existing resource. func (c *Client) AddLFTagsToResource(ctx context.Context, params *AddLFTagsToResourceInput, optFns ...func(*Options)) (*AddLFTagsToResourceOutput, error) { if params == nil { params = &AddLFTagsToResourceInput{} @@ -29,20 +29,20 @@ func (c *Client) AddLFTagsToResource(ctx context.Context, params *AddLFTagsToRes type AddLFTagsToResourceInput struct { - // The tags to attach to the resource. + // The LF-tags to attach to the resource. // // This member is required. LFTags []types.LFTagPair - // The resource to which to attach a tag. + // The database, table, or column resource to which to attach an LF-tag. // // This member is required. Resource *types.Resource // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -60,11 +60,11 @@ type AddLFTagsToResourceOutput struct { } func (c *Client) addOperationAddLFTagsToResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpAddLFTagsToResource{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpAddLFTagsToResource{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpAddLFTagsToResource{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAddLFTagsToResource{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_BatchGrantPermissions.go b/service/lakeformation/api_op_BatchGrantPermissions.go index e031b58d390..3507751af91 100644 --- a/service/lakeformation/api_op_BatchGrantPermissions.go +++ b/service/lakeformation/api_op_BatchGrantPermissions.go @@ -37,8 +37,8 @@ type BatchGrantPermissionsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -56,11 +56,11 @@ type BatchGrantPermissionsOutput struct { } func (c *Client) addOperationBatchGrantPermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpBatchGrantPermissions{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchGrantPermissions{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpBatchGrantPermissions{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchGrantPermissions{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_BatchRevokePermissions.go b/service/lakeformation/api_op_BatchRevokePermissions.go index b222f0816ba..f3a9a49f1f8 100644 --- a/service/lakeformation/api_op_BatchRevokePermissions.go +++ b/service/lakeformation/api_op_BatchRevokePermissions.go @@ -37,8 +37,8 @@ type BatchRevokePermissionsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -56,11 +56,11 @@ type BatchRevokePermissionsOutput struct { } func (c *Client) addOperationBatchRevokePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpBatchRevokePermissions{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchRevokePermissions{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpBatchRevokePermissions{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchRevokePermissions{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_CancelTransaction.go b/service/lakeformation/api_op_CancelTransaction.go new file mode 100644 index 00000000000..e3a85501754 --- /dev/null +++ b/service/lakeformation/api_op_CancelTransaction.go @@ -0,0 +1,117 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Attempts to cancel the specified transaction. Returns an exception if the +// transaction was previously committed. +func (c *Client) CancelTransaction(ctx context.Context, params *CancelTransactionInput, optFns ...func(*Options)) (*CancelTransactionOutput, error) { + if params == nil { + params = &CancelTransactionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CancelTransaction", params, optFns, c.addOperationCancelTransactionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CancelTransactionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CancelTransactionInput struct { + + // The transaction to cancel. + // + // This member is required. + TransactionId *string + + noSmithyDocumentSerde +} + +type CancelTransactionOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCancelTransactionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCancelTransaction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCancelTransaction{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCancelTransactionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelTransaction(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCancelTransaction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "CancelTransaction", + } +} diff --git a/service/lakeformation/api_op_CommitTransaction.go b/service/lakeformation/api_op_CommitTransaction.go new file mode 100644 index 00000000000..74ed8fd966e --- /dev/null +++ b/service/lakeformation/api_op_CommitTransaction.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Attempts to commit the specified transaction. Returns an exception if the +// transaction was previously aborted. This API action is idempotent if called +// multiple times for the same transaction. +func (c *Client) CommitTransaction(ctx context.Context, params *CommitTransactionInput, optFns ...func(*Options)) (*CommitTransactionOutput, error) { + if params == nil { + params = &CommitTransactionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CommitTransaction", params, optFns, c.addOperationCommitTransactionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CommitTransactionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CommitTransactionInput struct { + + // The transaction to commit. + // + // This member is required. + TransactionId *string + + noSmithyDocumentSerde +} + +type CommitTransactionOutput struct { + + // The status of the transaction. + TransactionStatus types.TransactionStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCommitTransactionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCommitTransaction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCommitTransaction{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCommitTransactionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCommitTransaction(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCommitTransaction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "CommitTransaction", + } +} diff --git a/service/lakeformation/api_op_CreateDataCellsFilter.go b/service/lakeformation/api_op_CreateDataCellsFilter.go new file mode 100644 index 00000000000..97f1fc786af --- /dev/null +++ b/service/lakeformation/api_op_CreateDataCellsFilter.go @@ -0,0 +1,118 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a data cell filter to allow one to grant access to certain columns on +// certain rows. +func (c *Client) CreateDataCellsFilter(ctx context.Context, params *CreateDataCellsFilterInput, optFns ...func(*Options)) (*CreateDataCellsFilterOutput, error) { + if params == nil { + params = &CreateDataCellsFilterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateDataCellsFilter", params, optFns, c.addOperationCreateDataCellsFilterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateDataCellsFilterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateDataCellsFilterInput struct { + + // A DataCellsFilter structure containing information about the data cells filter. + // + // This member is required. + TableData *types.DataCellsFilter + + noSmithyDocumentSerde +} + +type CreateDataCellsFilterOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateDataCellsFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateDataCellsFilter{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateDataCellsFilter{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateDataCellsFilterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDataCellsFilter(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreateDataCellsFilter(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "CreateDataCellsFilter", + } +} diff --git a/service/lakeformation/api_op_CreateLFTag.go b/service/lakeformation/api_op_CreateLFTag.go index 4d6ab1e34f1..b578eeb16a4 100644 --- a/service/lakeformation/api_op_CreateLFTag.go +++ b/service/lakeformation/api_op_CreateLFTag.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a tag with the specified name and values. +// Creates an LF-tag with the specified name and values. func (c *Client) CreateLFTag(ctx context.Context, params *CreateLFTagInput, optFns ...func(*Options)) (*CreateLFTagOutput, error) { if params == nil { params = &CreateLFTagInput{} @@ -28,7 +28,7 @@ func (c *Client) CreateLFTag(ctx context.Context, params *CreateLFTagInput, optF type CreateLFTagInput struct { - // The key-name for the tag. + // The key-name for the LF-tag. // // This member is required. TagKey *string @@ -40,8 +40,8 @@ type CreateLFTagInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -55,11 +55,11 @@ type CreateLFTagOutput struct { } func (c *Client) addOperationCreateLFTagMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateLFTag{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateLFTag{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateLFTag{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateLFTag{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_DeleteDataCellsFilter.go b/service/lakeformation/api_op_DeleteDataCellsFilter.go new file mode 100644 index 00000000000..0b4adf6b045 --- /dev/null +++ b/service/lakeformation/api_op_DeleteDataCellsFilter.go @@ -0,0 +1,120 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a data cell filter. +func (c *Client) DeleteDataCellsFilter(ctx context.Context, params *DeleteDataCellsFilterInput, optFns ...func(*Options)) (*DeleteDataCellsFilterOutput, error) { + if params == nil { + params = &DeleteDataCellsFilterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteDataCellsFilter", params, optFns, c.addOperationDeleteDataCellsFilterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteDataCellsFilterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteDataCellsFilterInput struct { + + // A database in the Glue Data Catalog. + DatabaseName *string + + // The name given by the user to the data filter cell. + Name *string + + // The ID of the catalog to which the table belongs. + TableCatalogId *string + + // A table in the database. + TableName *string + + noSmithyDocumentSerde +} + +type DeleteDataCellsFilterOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteDataCellsFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteDataCellsFilter{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteDataCellsFilter{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDataCellsFilter(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteDataCellsFilter(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "DeleteDataCellsFilter", + } +} diff --git a/service/lakeformation/api_op_DeleteLFTag.go b/service/lakeformation/api_op_DeleteLFTag.go index f220014c920..88eadd19572 100644 --- a/service/lakeformation/api_op_DeleteLFTag.go +++ b/service/lakeformation/api_op_DeleteLFTag.go @@ -10,12 +10,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes the specified tag key name. If the attribute key does not exist or the -// tag does not exist, then the operation will not do anything. If the attribute -// key exists, then the operation checks if any resources are tagged with this -// attribute key, if yes, the API throws a 400 Exception with the message "Delete -// not allowed" as the tag key is still attached with resources. You can consider -// untagging resources with this tag key. +// Deletes the specified LF-tag key name. If the attribute key does not exist or +// the LF-tag does not exist, then the operation will not do anything. If the +// attribute key exists, then the operation checks if any resources are tagged with +// this attribute key, if yes, the API throws a 400 Exception with the message +// "Delete not allowed" as the LF-tag key is still attached with resources. You can +// consider untagging resources with this LF-tag key. func (c *Client) DeleteLFTag(ctx context.Context, params *DeleteLFTagInput, optFns ...func(*Options)) (*DeleteLFTagOutput, error) { if params == nil { params = &DeleteLFTagInput{} @@ -33,15 +33,15 @@ func (c *Client) DeleteLFTag(ctx context.Context, params *DeleteLFTagInput, optF type DeleteLFTagInput struct { - // The key-name for the tag to delete. + // The key-name for the LF-tag to delete. // // This member is required. TagKey *string // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -55,11 +55,11 @@ type DeleteLFTagOutput struct { } func (c *Client) addOperationDeleteLFTagMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteLFTag{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteLFTag{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteLFTag{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteLFTag{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_DeleteObjectsOnCancel.go b/service/lakeformation/api_op_DeleteObjectsOnCancel.go new file mode 100644 index 00000000000..a9f57a73eb2 --- /dev/null +++ b/service/lakeformation/api_op_DeleteObjectsOnCancel.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// For a specific governed table, provides a list of Amazon S3 objects that will be +// written during the current transaction and that can be automatically deleted if +// the transaction is canceled. Without this call, no Amazon S3 objects are +// automatically deleted when a transaction cancels. The Glue ETL library function +// write_dynamic_frame.from_catalog() includes an option to automatically call +// DeleteObjectsOnCancel before writes. For more information, see Rolling Back +// Amazon S3 Writes +// (https://docs.aws.amazon.com/lake-formation/latest/dg/transactions-data-operations.html#rolling-back-writes). +func (c *Client) DeleteObjectsOnCancel(ctx context.Context, params *DeleteObjectsOnCancelInput, optFns ...func(*Options)) (*DeleteObjectsOnCancelOutput, error) { + if params == nil { + params = &DeleteObjectsOnCancelInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteObjectsOnCancel", params, optFns, c.addOperationDeleteObjectsOnCancelMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteObjectsOnCancelOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteObjectsOnCancelInput struct { + + // The database that contains the governed table. + // + // This member is required. + DatabaseName *string + + // A list of VirtualObject structures, which indicates the Amazon S3 objects to be + // deleted if the transaction cancels. + // + // This member is required. + Objects []types.VirtualObject + + // The name of the governed table. + // + // This member is required. + TableName *string + + // ID of the transaction that the writes occur in. + // + // This member is required. + TransactionId *string + + // The Glue data catalog that contains the governed table. Defaults to the current + // account ID. + CatalogId *string + + noSmithyDocumentSerde +} + +type DeleteObjectsOnCancelOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteObjectsOnCancelMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteObjectsOnCancel{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteObjectsOnCancel{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteObjectsOnCancelValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteObjectsOnCancel(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteObjectsOnCancel(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "DeleteObjectsOnCancel", + } +} diff --git a/service/lakeformation/api_op_DeregisterResource.go b/service/lakeformation/api_op_DeregisterResource.go index 707f4ca63ff..082c9fb4a12 100644 --- a/service/lakeformation/api_op_DeregisterResource.go +++ b/service/lakeformation/api_op_DeregisterResource.go @@ -46,11 +46,11 @@ type DeregisterResourceOutput struct { } func (c *Client) addOperationDeregisterResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeregisterResource{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeregisterResource{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeregisterResource{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeregisterResource{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_DescribeResource.go b/service/lakeformation/api_op_DescribeResource.go index d1861aa970e..2ddcc4731f7 100644 --- a/service/lakeformation/api_op_DescribeResource.go +++ b/service/lakeformation/api_op_DescribeResource.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the current data access role for the given resource registered in AWS -// Lake Formation. +// Retrieves the current data access role for the given resource registered in Lake +// Formation. func (c *Client) DescribeResource(ctx context.Context, params *DescribeResourceInput, optFns ...func(*Options)) (*DescribeResourceOutput, error) { if params == nil { params = &DescribeResourceInput{} @@ -40,7 +40,7 @@ type DescribeResourceInput struct { type DescribeResourceOutput struct { - // A structure containing information about an AWS Lake Formation resource. + // A structure containing information about an Lake Formation resource. ResourceInfo *types.ResourceInfo // Metadata pertaining to the operation's result. @@ -50,11 +50,11 @@ type DescribeResourceOutput struct { } func (c *Client) addOperationDescribeResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeResource{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeResource{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeResource{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeResource{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_DescribeTransaction.go b/service/lakeformation/api_op_DescribeTransaction.go new file mode 100644 index 00000000000..587591c19a1 --- /dev/null +++ b/service/lakeformation/api_op_DescribeTransaction.go @@ -0,0 +1,122 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns the details of a single transaction. +func (c *Client) DescribeTransaction(ctx context.Context, params *DescribeTransactionInput, optFns ...func(*Options)) (*DescribeTransactionOutput, error) { + if params == nil { + params = &DescribeTransactionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeTransaction", params, optFns, c.addOperationDescribeTransactionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeTransactionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeTransactionInput struct { + + // The transaction for which to return status. + // + // This member is required. + TransactionId *string + + noSmithyDocumentSerde +} + +type DescribeTransactionOutput struct { + + // Returns a TransactionDescription object containing information about the + // transaction. + TransactionDescription *types.TransactionDescription + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeTransactionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeTransaction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeTransaction{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeTransactionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransaction(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeTransaction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "DescribeTransaction", + } +} diff --git a/service/lakeformation/api_op_ExtendTransaction.go b/service/lakeformation/api_op_ExtendTransaction.go new file mode 100644 index 00000000000..9cff5ac048c --- /dev/null +++ b/service/lakeformation/api_op_ExtendTransaction.go @@ -0,0 +1,113 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Indicates to the service that the specified transaction is still active and +// should not be treated as idle and aborted. Write transactions that remain idle +// for a long period are automatically aborted unless explicitly extended. +func (c *Client) ExtendTransaction(ctx context.Context, params *ExtendTransactionInput, optFns ...func(*Options)) (*ExtendTransactionOutput, error) { + if params == nil { + params = &ExtendTransactionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ExtendTransaction", params, optFns, c.addOperationExtendTransactionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ExtendTransactionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ExtendTransactionInput struct { + + // The transaction to extend. + TransactionId *string + + noSmithyDocumentSerde +} + +type ExtendTransactionOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationExtendTransactionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpExtendTransaction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpExtendTransaction{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExtendTransaction(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opExtendTransaction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "ExtendTransaction", + } +} diff --git a/service/lakeformation/api_op_GetDataLakeSettings.go b/service/lakeformation/api_op_GetDataLakeSettings.go index 8b9ef32381c..2b4341865ae 100644 --- a/service/lakeformation/api_op_GetDataLakeSettings.go +++ b/service/lakeformation/api_op_GetDataLakeSettings.go @@ -32,8 +32,8 @@ type GetDataLakeSettingsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -41,8 +41,8 @@ type GetDataLakeSettingsInput struct { type GetDataLakeSettingsOutput struct { - // A structure representing a list of AWS Lake Formation principals designated as - // data lake administrators. + // A structure representing a list of Lake Formation principals designated as data + // lake administrators. DataLakeSettings *types.DataLakeSettings // Metadata pertaining to the operation's result. @@ -52,11 +52,11 @@ type GetDataLakeSettingsOutput struct { } func (c *Client) addOperationGetDataLakeSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetDataLakeSettings{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetDataLakeSettings{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetDataLakeSettings{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetDataLakeSettings{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_GetEffectivePermissionsForPath.go b/service/lakeformation/api_op_GetEffectivePermissionsForPath.go index af075e29d3c..e605a20dc44 100644 --- a/service/lakeformation/api_op_GetEffectivePermissionsForPath.go +++ b/service/lakeformation/api_op_GetEffectivePermissionsForPath.go @@ -40,8 +40,8 @@ type GetEffectivePermissionsForPathInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string // The maximum number of results to return. @@ -69,11 +69,11 @@ type GetEffectivePermissionsForPathOutput struct { } func (c *Client) addOperationGetEffectivePermissionsForPathMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetEffectivePermissionsForPath{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetEffectivePermissionsForPath{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetEffectivePermissionsForPath{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetEffectivePermissionsForPath{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_GetLFTag.go b/service/lakeformation/api_op_GetLFTag.go index 9ddbd8948b2..36e20492201 100644 --- a/service/lakeformation/api_op_GetLFTag.go +++ b/service/lakeformation/api_op_GetLFTag.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a tag definition. +// Returns an LF-tag definition. func (c *Client) GetLFTag(ctx context.Context, params *GetLFTagInput, optFns ...func(*Options)) (*GetLFTagOutput, error) { if params == nil { params = &GetLFTagInput{} @@ -28,15 +28,15 @@ func (c *Client) GetLFTag(ctx context.Context, params *GetLFTagInput, optFns ... type GetLFTagInput struct { - // The key-name for the tag. + // The key-name for the LF-tag. // // This member is required. TagKey *string // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -46,11 +46,11 @@ type GetLFTagOutput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string - // The key-name for the tag. + // The key-name for the LF-tag. TagKey *string // A list of possible values an attribute can take. @@ -63,11 +63,11 @@ type GetLFTagOutput struct { } func (c *Client) addOperationGetLFTagMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetLFTag{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetLFTag{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetLFTag{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetLFTag{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_GetQueryState.go b/service/lakeformation/api_op_GetQueryState.go new file mode 100644 index 00000000000..6312a066747 --- /dev/null +++ b/service/lakeformation/api_op_GetQueryState.go @@ -0,0 +1,173 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns the state of a query previously submitted. Clients are expected to poll +// GetQueryState to monitor the current state of the planning before retrieving the +// work units. A query state is only visible to the principal that made the initial +// call to StartQueryPlanning. +func (c *Client) GetQueryState(ctx context.Context, params *GetQueryStateInput, optFns ...func(*Options)) (*GetQueryStateOutput, error) { + if params == nil { + params = &GetQueryStateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetQueryState", params, optFns, c.addOperationGetQueryStateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetQueryStateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetQueryStateInput struct { + + // The ID of the plan query operation. + // + // This member is required. + QueryId *string + + noSmithyDocumentSerde +} + +// A structure for the output. +type GetQueryStateOutput struct { + + // The state of a query previously submitted. The possible states are: + // + // * PENDING: + // the query is pending. + // + // * WORKUNITS_AVAILABLE: some work units are ready for + // retrieval and execution. + // + // * FINISHED: the query planning finished successfully, + // and all work units are ready for retrieval and execution. + // + // * ERROR: an error + // occurred with the query, such as an invalid query ID or a backend error. + // + // This member is required. + State types.QueryStateString + + // An error message when the operation fails. + Error *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetQueryStateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetQueryState{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetQueryState{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetQueryStateMiddleware(stack); err != nil { + return err + } + if err = addOpGetQueryStateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetQueryState(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetQueryStateMiddleware struct { +} + +func (*endpointPrefix_opGetQueryStateMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetQueryStateMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "query-" + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetQueryStateMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetQueryStateMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetQueryState(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "GetQueryState", + } +} diff --git a/service/lakeformation/api_op_GetQueryStatistics.go b/service/lakeformation/api_op_GetQueryStatistics.go new file mode 100644 index 00000000000..4563c2f77c6 --- /dev/null +++ b/service/lakeformation/api_op_GetQueryStatistics.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Retrieves statistics on the planning and execution of a query. +func (c *Client) GetQueryStatistics(ctx context.Context, params *GetQueryStatisticsInput, optFns ...func(*Options)) (*GetQueryStatisticsOutput, error) { + if params == nil { + params = &GetQueryStatisticsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetQueryStatistics", params, optFns, c.addOperationGetQueryStatisticsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetQueryStatisticsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetQueryStatisticsInput struct { + + // The ID of the plan query operation. + // + // This member is required. + QueryId *string + + noSmithyDocumentSerde +} + +type GetQueryStatisticsOutput struct { + + // An ExecutionStatistics structure containing execution statistics. + ExecutionStatistics *types.ExecutionStatistics + + // A PlanningStatistics structure containing query planning statistics. + PlanningStatistics *types.PlanningStatistics + + // The time that the query was submitted. + QuerySubmissionTime *time.Time + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetQueryStatisticsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetQueryStatistics{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetQueryStatistics{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetQueryStatisticsMiddleware(stack); err != nil { + return err + } + if err = addOpGetQueryStatisticsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetQueryStatistics(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetQueryStatisticsMiddleware struct { +} + +func (*endpointPrefix_opGetQueryStatisticsMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetQueryStatisticsMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "query-" + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetQueryStatisticsMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetQueryStatisticsMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetQueryStatistics(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "GetQueryStatistics", + } +} diff --git a/service/lakeformation/api_op_GetResourceLFTags.go b/service/lakeformation/api_op_GetResourceLFTags.go index 013cd4e8a4e..e48f35f2f5f 100644 --- a/service/lakeformation/api_op_GetResourceLFTags.go +++ b/service/lakeformation/api_op_GetResourceLFTags.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the tags applied to a resource. +// Returns the LF-tags applied to a resource. func (c *Client) GetResourceLFTags(ctx context.Context, params *GetResourceLFTagsInput, optFns ...func(*Options)) (*GetResourceLFTagsOutput, error) { if params == nil { params = &GetResourceLFTagsInput{} @@ -29,18 +29,18 @@ func (c *Client) GetResourceLFTags(ctx context.Context, params *GetResourceLFTag type GetResourceLFTagsInput struct { - // The resource for which you want to return tags. + // The database, table, or column resource for which you want to return LF-tags. // // This member is required. Resource *types.Resource // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string - // Indicates whether to show the assigned tags. + // Indicates whether to show the assigned LF-tags. ShowAssignedLFTags *bool noSmithyDocumentSerde @@ -48,13 +48,13 @@ type GetResourceLFTagsInput struct { type GetResourceLFTagsOutput struct { - // A list of tags applied to a database resource. + // A list of LF-tags applied to a database resource. LFTagOnDatabase []types.LFTagPair - // A list of tags applied to a column resource. + // A list of LF-tags applied to a column resource. LFTagsOnColumns []types.ColumnLFTag - // A list of tags applied to a table resource. + // A list of LF-tags applied to a table resource. LFTagsOnTable []types.LFTagPair // Metadata pertaining to the operation's result. @@ -64,11 +64,11 @@ type GetResourceLFTagsOutput struct { } func (c *Client) addOperationGetResourceLFTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetResourceLFTags{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetResourceLFTags{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetResourceLFTags{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetResourceLFTags{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_GetTableObjects.go b/service/lakeformation/api_op_GetTableObjects.go new file mode 100644 index 00000000000..52fe2e57a59 --- /dev/null +++ b/service/lakeformation/api_op_GetTableObjects.go @@ -0,0 +1,250 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns the set of Amazon S3 objects that make up the specified governed table. +// A transaction ID or timestamp can be specified for time-travel queries. +func (c *Client) GetTableObjects(ctx context.Context, params *GetTableObjectsInput, optFns ...func(*Options)) (*GetTableObjectsOutput, error) { + if params == nil { + params = &GetTableObjectsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetTableObjects", params, optFns, c.addOperationGetTableObjectsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetTableObjectsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetTableObjectsInput struct { + + // The database containing the governed table. + // + // This member is required. + DatabaseName *string + + // The governed table for which to retrieve objects. + // + // This member is required. + TableName *string + + // The catalog containing the governed table. Defaults to the caller’s account. + CatalogId *string + + // Specifies how many values to return in a page. + MaxResults *int32 + + // A continuation token if this is not the first call to retrieve these objects. + NextToken *string + + // A predicate to filter the objects returned based on the partition keys defined + // in the governed table. + // + // * The comparison operators supported are: =, >, <, >=, + // <= + // + // * The logical operators supported are: AND + // + // * The data types supported are + // integer, long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd + // HH:mm:ss"), string and decimal. + PartitionPredicate *string + + // The time as of when to read the governed table contents. If not set, the most + // recent transaction commit time is used. Cannot be specified along with + // TransactionId. + QueryAsOfTime *time.Time + + // The transaction ID at which to read the governed table contents. If this + // transaction has aborted, an error is returned. If not set, defaults to the most + // recent committed transaction. Cannot be specified along with QueryAsOfTime. + TransactionId *string + + noSmithyDocumentSerde +} + +type GetTableObjectsOutput struct { + + // A continuation token indicating whether additional data is available. + NextToken *string + + // A list of objects organized by partition keys. + Objects []types.PartitionObjects + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetTableObjectsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetTableObjects{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetTableObjects{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetTableObjectsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTableObjects(options.Region), middleware.Before); 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 + } + return nil +} + +// GetTableObjectsAPIClient is a client that implements the GetTableObjects +// operation. +type GetTableObjectsAPIClient interface { + GetTableObjects(context.Context, *GetTableObjectsInput, ...func(*Options)) (*GetTableObjectsOutput, error) +} + +var _ GetTableObjectsAPIClient = (*Client)(nil) + +// GetTableObjectsPaginatorOptions is the paginator options for GetTableObjects +type GetTableObjectsPaginatorOptions struct { + // Specifies how many values to return in a page. + 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 +} + +// GetTableObjectsPaginator is a paginator for GetTableObjects +type GetTableObjectsPaginator struct { + options GetTableObjectsPaginatorOptions + client GetTableObjectsAPIClient + params *GetTableObjectsInput + nextToken *string + firstPage bool +} + +// NewGetTableObjectsPaginator returns a new GetTableObjectsPaginator +func NewGetTableObjectsPaginator(client GetTableObjectsAPIClient, params *GetTableObjectsInput, optFns ...func(*GetTableObjectsPaginatorOptions)) *GetTableObjectsPaginator { + if params == nil { + params = &GetTableObjectsInput{} + } + + options := GetTableObjectsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetTableObjectsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetTableObjectsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetTableObjects page. +func (p *GetTableObjectsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTableObjectsOutput, 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.GetTableObjects(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_opGetTableObjects(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "GetTableObjects", + } +} diff --git a/service/lakeformation/api_op_GetWorkUnitResults.go b/service/lakeformation/api_op_GetWorkUnitResults.go new file mode 100644 index 00000000000..77ee4a114d4 --- /dev/null +++ b/service/lakeformation/api_op_GetWorkUnitResults.go @@ -0,0 +1,165 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" +) + +// Returns the work units resulting from the query. Work units can be executed in +// any order and in parallel. +func (c *Client) GetWorkUnitResults(ctx context.Context, params *GetWorkUnitResultsInput, optFns ...func(*Options)) (*GetWorkUnitResultsOutput, error) { + if params == nil { + params = &GetWorkUnitResultsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetWorkUnitResults", params, optFns, c.addOperationGetWorkUnitResultsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetWorkUnitResultsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetWorkUnitResultsInput struct { + + // The ID of the plan query operation for which to get results. + // + // This member is required. + QueryId *string + + // The work unit ID for which to get results. Value generated by enumerating + // WorkUnitIdMin to WorkUnitIdMax (inclusive) from the WorkUnitRange in the output + // of GetWorkUnits. + // + // This member is required. + WorkUnitId int64 + + // A work token used to query the execution service. Token output from + // GetWorkUnits. + // + // This member is required. + WorkUnitToken *string + + noSmithyDocumentSerde +} + +// A structure for the output. +type GetWorkUnitResultsOutput struct { + + // Rows returned from the GetWorkUnitResults operation as a stream of Apache Arrow + // v1.0 messages. + ResultStream io.ReadCloser + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetWorkUnitResultsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetWorkUnitResults{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetWorkUnitResults{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetWorkUnitResultsMiddleware(stack); err != nil { + return err + } + if err = addOpGetWorkUnitResultsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetWorkUnitResults(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetWorkUnitResultsMiddleware struct { +} + +func (*endpointPrefix_opGetWorkUnitResultsMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetWorkUnitResultsMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "data-" + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetWorkUnitResultsMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetWorkUnitResultsMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opGetWorkUnitResults(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "GetWorkUnitResults", + } +} diff --git a/service/lakeformation/api_op_GetWorkUnits.go b/service/lakeformation/api_op_GetWorkUnits.go new file mode 100644 index 00000000000..74fd2ce84f5 --- /dev/null +++ b/service/lakeformation/api_op_GetWorkUnits.go @@ -0,0 +1,264 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves the work units generated by the StartQueryPlanning operation. +func (c *Client) GetWorkUnits(ctx context.Context, params *GetWorkUnitsInput, optFns ...func(*Options)) (*GetWorkUnitsOutput, error) { + if params == nil { + params = &GetWorkUnitsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetWorkUnits", params, optFns, c.addOperationGetWorkUnitsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetWorkUnitsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetWorkUnitsInput struct { + + // The ID of the plan query operation. + // + // This member is required. + QueryId *string + + // A continuation token, if this is a continuation call. + NextToken *string + + // The size of each page to get in the Amazon Web Services service call. This does + // not affect the number of items returned in the command's output. Setting a + // smaller page size results in more calls to the Amazon Web Services service, + // retrieving fewer items in each call. This can help prevent the Amazon Web + // Services service calls from timing out. + PageSize *int32 + + noSmithyDocumentSerde +} + +// A structure for the output. +type GetWorkUnitsOutput struct { + + // The ID of the plan query operation. + // + // This member is required. + QueryId *string + + // A WorkUnitRangeList object that specifies the valid range of work unit IDs for + // querying the execution service. + // + // This member is required. + WorkUnitRanges []types.WorkUnitRange + + // A continuation token for paginating the returned list of tokens, returned if the + // current segment of the list is not the last. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetWorkUnitsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetWorkUnits{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetWorkUnits{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opGetWorkUnitsMiddleware(stack); err != nil { + return err + } + if err = addOpGetWorkUnitsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetWorkUnits(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opGetWorkUnitsMiddleware struct { +} + +func (*endpointPrefix_opGetWorkUnitsMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opGetWorkUnitsMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "query-" + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opGetWorkUnitsMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opGetWorkUnitsMiddleware{}, `OperationSerializer`, middleware.After) +} + +// GetWorkUnitsAPIClient is a client that implements the GetWorkUnits operation. +type GetWorkUnitsAPIClient interface { + GetWorkUnits(context.Context, *GetWorkUnitsInput, ...func(*Options)) (*GetWorkUnitsOutput, error) +} + +var _ GetWorkUnitsAPIClient = (*Client)(nil) + +// GetWorkUnitsPaginatorOptions is the paginator options for GetWorkUnits +type GetWorkUnitsPaginatorOptions struct { + // The size of each page to get in the Amazon Web Services service call. This does + // not affect the number of items returned in the command's output. Setting a + // smaller page size results in more calls to the Amazon Web Services service, + // retrieving fewer items in each call. This can help prevent the Amazon Web + // Services service calls from timing out. + 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 +} + +// GetWorkUnitsPaginator is a paginator for GetWorkUnits +type GetWorkUnitsPaginator struct { + options GetWorkUnitsPaginatorOptions + client GetWorkUnitsAPIClient + params *GetWorkUnitsInput + nextToken *string + firstPage bool +} + +// NewGetWorkUnitsPaginator returns a new GetWorkUnitsPaginator +func NewGetWorkUnitsPaginator(client GetWorkUnitsAPIClient, params *GetWorkUnitsInput, optFns ...func(*GetWorkUnitsPaginatorOptions)) *GetWorkUnitsPaginator { + if params == nil { + params = &GetWorkUnitsInput{} + } + + options := GetWorkUnitsPaginatorOptions{} + if params.PageSize != nil { + options.Limit = *params.PageSize + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetWorkUnitsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetWorkUnitsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next GetWorkUnits page. +func (p *GetWorkUnitsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetWorkUnitsOutput, 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.PageSize = limit + + result, err := p.client.GetWorkUnits(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_opGetWorkUnits(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "GetWorkUnits", + } +} diff --git a/service/lakeformation/api_op_GrantPermissions.go b/service/lakeformation/api_op_GrantPermissions.go index 1aecdb1df7c..df14c5fc6c3 100644 --- a/service/lakeformation/api_op_GrantPermissions.go +++ b/service/lakeformation/api_op_GrantPermissions.go @@ -32,11 +32,11 @@ func (c *Client) GrantPermissions(ctx context.Context, params *GrantPermissionsI type GrantPermissionsInput struct { - // The permissions granted to the principal on the resource. AWS Lake Formation - // defines privileges to grant and revoke access to metadata in the Data Catalog - // and data organized in underlying data storage such as Amazon S3. AWS Lake - // Formation requires that each principal be authorized to perform a specific task - // on AWS Lake Formation resources. + // The permissions granted to the principal on the resource. Lake Formation defines + // privileges to grant and revoke access to metadata in the Data Catalog and data + // organized in underlying data storage such as Amazon S3. Lake Formation requires + // that each principal be authorized to perform a specific task on Lake Formation + // resources. // // This member is required. Permissions []types.Permission @@ -50,16 +50,16 @@ type GrantPermissionsInput struct { // This member is required. Principal *types.DataLakePrincipal - // The resource to which permissions are to be granted. Resources in AWS Lake - // Formation are the Data Catalog, databases, and tables. + // The resource to which permissions are to be granted. Resources in Lake Formation + // are the Data Catalog, databases, and tables. // // This member is required. Resource *types.Resource // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string // Indicates a list of the granted permissions that the principal may pass to other @@ -78,11 +78,11 @@ type GrantPermissionsOutput struct { } func (c *Client) addOperationGrantPermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpGrantPermissions{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpGrantPermissions{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGrantPermissions{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGrantPermissions{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_ListDataCellsFilter.go b/service/lakeformation/api_op_ListDataCellsFilter.go new file mode 100644 index 00000000000..775015b1f43 --- /dev/null +++ b/service/lakeformation/api_op_ListDataCellsFilter.go @@ -0,0 +1,216 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all the data cell filters on a table. +func (c *Client) ListDataCellsFilter(ctx context.Context, params *ListDataCellsFilterInput, optFns ...func(*Options)) (*ListDataCellsFilterOutput, error) { + if params == nil { + params = &ListDataCellsFilterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListDataCellsFilter", params, optFns, c.addOperationListDataCellsFilterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListDataCellsFilterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListDataCellsFilterInput struct { + + // The maximum size of the response. + MaxResults *int32 + + // A continuation token, if this is a continuation call. + NextToken *string + + // A table in the Glue Data Catalog. + Table *types.TableResource + + noSmithyDocumentSerde +} + +type ListDataCellsFilterOutput struct { + + // A list of DataCellFilter structures. + DataCellsFilters []types.DataCellsFilter + + // A continuation token, if not all requested data cell filters have been returned. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListDataCellsFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListDataCellsFilter{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListDataCellsFilter{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListDataCellsFilterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDataCellsFilter(options.Region), middleware.Before); 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 + } + return nil +} + +// ListDataCellsFilterAPIClient is a client that implements the ListDataCellsFilter +// operation. +type ListDataCellsFilterAPIClient interface { + ListDataCellsFilter(context.Context, *ListDataCellsFilterInput, ...func(*Options)) (*ListDataCellsFilterOutput, error) +} + +var _ ListDataCellsFilterAPIClient = (*Client)(nil) + +// ListDataCellsFilterPaginatorOptions is the paginator options for +// ListDataCellsFilter +type ListDataCellsFilterPaginatorOptions struct { + // The maximum size of the response. + 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 +} + +// ListDataCellsFilterPaginator is a paginator for ListDataCellsFilter +type ListDataCellsFilterPaginator struct { + options ListDataCellsFilterPaginatorOptions + client ListDataCellsFilterAPIClient + params *ListDataCellsFilterInput + nextToken *string + firstPage bool +} + +// NewListDataCellsFilterPaginator returns a new ListDataCellsFilterPaginator +func NewListDataCellsFilterPaginator(client ListDataCellsFilterAPIClient, params *ListDataCellsFilterInput, optFns ...func(*ListDataCellsFilterPaginatorOptions)) *ListDataCellsFilterPaginator { + if params == nil { + params = &ListDataCellsFilterInput{} + } + + options := ListDataCellsFilterPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListDataCellsFilterPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListDataCellsFilterPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListDataCellsFilter page. +func (p *ListDataCellsFilterPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDataCellsFilterOutput, 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.ListDataCellsFilter(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_opListDataCellsFilter(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "ListDataCellsFilter", + } +} diff --git a/service/lakeformation/api_op_ListLFTags.go b/service/lakeformation/api_op_ListLFTags.go index c20f514b4be..a907a278554 100644 --- a/service/lakeformation/api_op_ListLFTags.go +++ b/service/lakeformation/api_op_ListLFTags.go @@ -4,6 +4,7 @@ package lakeformation import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" @@ -11,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists tags that the requester has permission to view. +// Lists LF-tags that the requester has permission to view. func (c *Client) ListLFTags(ctx context.Context, params *ListLFTagsInput, optFns ...func(*Options)) (*ListLFTagsOutput, error) { if params == nil { params = &ListLFTagsInput{} @@ -31,8 +32,8 @@ type ListLFTagsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string // The maximum number of results to return. @@ -41,10 +42,11 @@ type ListLFTagsInput struct { // A continuation token, if this is not the first call to retrieve this list. NextToken *string - // If resource share type is ALL, returns both in-account tags and shared tags that - // the requester has permission to view. If resource share type is FOREIGN, returns - // all share tags that the requester can view. If no resource share type is passed, - // lists tags in the given catalog ID that the requester has permission to view. + // If resource share type is ALL, returns both in-account LF-tags and shared + // LF-tags that the requester has permission to view. If resource share type is + // FOREIGN, returns all share LF-tags that the requester can view. If no resource + // share type is passed, lists LF-tags in the given catalog ID that the requester + // has permission to view. ResourceShareType types.ResourceShareType noSmithyDocumentSerde @@ -52,7 +54,7 @@ type ListLFTagsInput struct { type ListLFTagsOutput struct { - // A list of tags that the requested has permission to view. + // A list of LF-tags that the requested has permission to view. LFTags []types.LFTagPair // A continuation token, present if the current list segment is not the last. @@ -65,11 +67,11 @@ type ListLFTagsOutput struct { } func (c *Client) addOperationListLFTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListLFTags{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpListLFTags{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListLFTags{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListLFTags{}, middleware.After) if err != nil { return err } @@ -124,6 +126,91 @@ func (c *Client) addOperationListLFTagsMiddlewares(stack *middleware.Stack, opti return nil } +// ListLFTagsAPIClient is a client that implements the ListLFTags operation. +type ListLFTagsAPIClient interface { + ListLFTags(context.Context, *ListLFTagsInput, ...func(*Options)) (*ListLFTagsOutput, error) +} + +var _ ListLFTagsAPIClient = (*Client)(nil) + +// ListLFTagsPaginatorOptions is the paginator options for ListLFTags +type ListLFTagsPaginatorOptions struct { + // The maximum number of results 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 +} + +// ListLFTagsPaginator is a paginator for ListLFTags +type ListLFTagsPaginator struct { + options ListLFTagsPaginatorOptions + client ListLFTagsAPIClient + params *ListLFTagsInput + nextToken *string + firstPage bool +} + +// NewListLFTagsPaginator returns a new ListLFTagsPaginator +func NewListLFTagsPaginator(client ListLFTagsAPIClient, params *ListLFTagsInput, optFns ...func(*ListLFTagsPaginatorOptions)) *ListLFTagsPaginator { + if params == nil { + params = &ListLFTagsInput{} + } + + options := ListLFTagsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListLFTagsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListLFTagsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListLFTags page. +func (p *ListLFTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLFTagsOutput, 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.ListLFTags(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_opListLFTags(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lakeformation/api_op_ListPermissions.go b/service/lakeformation/api_op_ListPermissions.go index 77e5a155170..145393ce076 100644 --- a/service/lakeformation/api_op_ListPermissions.go +++ b/service/lakeformation/api_op_ListPermissions.go @@ -38,10 +38,13 @@ type ListPermissionsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string + // Indicates that related permissions should be included in the results. + IncludeRelated *string + // The maximum number of results to return. MaxResults *int32 @@ -79,11 +82,11 @@ type ListPermissionsOutput struct { } func (c *Client) addOperationListPermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListPermissions{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpListPermissions{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListPermissions{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPermissions{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_ListResources.go b/service/lakeformation/api_op_ListResources.go index 420e028280a..717a3332618 100644 --- a/service/lakeformation/api_op_ListResources.go +++ b/service/lakeformation/api_op_ListResources.go @@ -58,11 +58,11 @@ type ListResourcesOutput struct { } func (c *Client) addOperationListResourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpListResources{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpListResources{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListResources{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListResources{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_ListTableStorageOptimizers.go b/service/lakeformation/api_op_ListTableStorageOptimizers.go new file mode 100644 index 00000000000..9402faa4062 --- /dev/null +++ b/service/lakeformation/api_op_ListTableStorageOptimizers.go @@ -0,0 +1,234 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns the configuration of all storage optimizers associated with a specified +// table. +func (c *Client) ListTableStorageOptimizers(ctx context.Context, params *ListTableStorageOptimizersInput, optFns ...func(*Options)) (*ListTableStorageOptimizersOutput, error) { + if params == nil { + params = &ListTableStorageOptimizersInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTableStorageOptimizers", params, optFns, c.addOperationListTableStorageOptimizersMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTableStorageOptimizersOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTableStorageOptimizersInput struct { + + // Name of the database where the table is present. + // + // This member is required. + DatabaseName *string + + // Name of the table. + // + // This member is required. + TableName *string + + // The Catalog ID of the table. + CatalogId *string + + // The number of storage optimizers to return on each call. + MaxResults *int32 + + // A continuation token, if this is a continuation call. + NextToken *string + + // The specific type of storage optimizers to list. The supported value is + // compaction. + StorageOptimizerType types.OptimizerType + + noSmithyDocumentSerde +} + +type ListTableStorageOptimizersOutput struct { + + // A continuation token for paginating the returned list of tokens, returned if the + // current segment of the list is not the last. + NextToken *string + + // A list of the storage optimizers associated with a table. + StorageOptimizerList []types.StorageOptimizer + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTableStorageOptimizersMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTableStorageOptimizers{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTableStorageOptimizers{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTableStorageOptimizersValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTableStorageOptimizers(options.Region), middleware.Before); 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 + } + return nil +} + +// ListTableStorageOptimizersAPIClient is a client that implements the +// ListTableStorageOptimizers operation. +type ListTableStorageOptimizersAPIClient interface { + ListTableStorageOptimizers(context.Context, *ListTableStorageOptimizersInput, ...func(*Options)) (*ListTableStorageOptimizersOutput, error) +} + +var _ ListTableStorageOptimizersAPIClient = (*Client)(nil) + +// ListTableStorageOptimizersPaginatorOptions is the paginator options for +// ListTableStorageOptimizers +type ListTableStorageOptimizersPaginatorOptions struct { + // The number of storage optimizers to return on each call. + 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 +} + +// ListTableStorageOptimizersPaginator is a paginator for +// ListTableStorageOptimizers +type ListTableStorageOptimizersPaginator struct { + options ListTableStorageOptimizersPaginatorOptions + client ListTableStorageOptimizersAPIClient + params *ListTableStorageOptimizersInput + nextToken *string + firstPage bool +} + +// NewListTableStorageOptimizersPaginator returns a new +// ListTableStorageOptimizersPaginator +func NewListTableStorageOptimizersPaginator(client ListTableStorageOptimizersAPIClient, params *ListTableStorageOptimizersInput, optFns ...func(*ListTableStorageOptimizersPaginatorOptions)) *ListTableStorageOptimizersPaginator { + if params == nil { + params = &ListTableStorageOptimizersInput{} + } + + options := ListTableStorageOptimizersPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTableStorageOptimizersPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTableStorageOptimizersPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListTableStorageOptimizers page. +func (p *ListTableStorageOptimizersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTableStorageOptimizersOutput, 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.ListTableStorageOptimizers(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_opListTableStorageOptimizers(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "ListTableStorageOptimizers", + } +} diff --git a/service/lakeformation/api_op_ListTransactions.go b/service/lakeformation/api_op_ListTransactions.go new file mode 100644 index 00000000000..23de30e2dc4 --- /dev/null +++ b/service/lakeformation/api_op_ListTransactions.go @@ -0,0 +1,221 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns metadata about transactions and their status. To prevent the response +// from growing indefinitely, only uncommitted transactions and those available for +// time-travel queries are returned. This operation can help you identify +// uncommitted transactions or to get information about transactions. +func (c *Client) ListTransactions(ctx context.Context, params *ListTransactionsInput, optFns ...func(*Options)) (*ListTransactionsOutput, error) { + if params == nil { + params = &ListTransactionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTransactions", params, optFns, c.addOperationListTransactionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTransactionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTransactionsInput struct { + + // The catalog for which to list transactions. Defaults to the account ID of the + // caller. + CatalogId *string + + // The maximum number of transactions to return in a single call. + MaxResults *int32 + + // A continuation token if this is not the first call to retrieve transactions. + NextToken *string + + // A filter indicating the status of transactions to return. Options are ALL | + // COMPLETED | COMMITTED | ABORTED | ACTIVE. The default is ALL. + StatusFilter types.TransactionStatusFilter + + noSmithyDocumentSerde +} + +type ListTransactionsOutput struct { + + // A continuation token indicating whether additional data is available. + NextToken *string + + // A list of transactions. The record for each transaction is a + // TransactionDescription object. + Transactions []types.TransactionDescription + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTransactionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTransactions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTransactions{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTransactions(options.Region), middleware.Before); 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 + } + return nil +} + +// ListTransactionsAPIClient is a client that implements the ListTransactions +// operation. +type ListTransactionsAPIClient interface { + ListTransactions(context.Context, *ListTransactionsInput, ...func(*Options)) (*ListTransactionsOutput, error) +} + +var _ ListTransactionsAPIClient = (*Client)(nil) + +// ListTransactionsPaginatorOptions is the paginator options for ListTransactions +type ListTransactionsPaginatorOptions struct { + // The maximum number of transactions to return in a single call. + 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 +} + +// ListTransactionsPaginator is a paginator for ListTransactions +type ListTransactionsPaginator struct { + options ListTransactionsPaginatorOptions + client ListTransactionsAPIClient + params *ListTransactionsInput + nextToken *string + firstPage bool +} + +// NewListTransactionsPaginator returns a new ListTransactionsPaginator +func NewListTransactionsPaginator(client ListTransactionsAPIClient, params *ListTransactionsInput, optFns ...func(*ListTransactionsPaginatorOptions)) *ListTransactionsPaginator { + if params == nil { + params = &ListTransactionsInput{} + } + + options := ListTransactionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTransactionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTransactionsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListTransactions page. +func (p *ListTransactionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTransactionsOutput, 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.ListTransactions(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_opListTransactions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "ListTransactions", + } +} diff --git a/service/lakeformation/api_op_PutDataLakeSettings.go b/service/lakeformation/api_op_PutDataLakeSettings.go index 77b4073dcc6..ac233437cb6 100644 --- a/service/lakeformation/api_op_PutDataLakeSettings.go +++ b/service/lakeformation/api_op_PutDataLakeSettings.go @@ -35,16 +35,16 @@ func (c *Client) PutDataLakeSettings(ctx context.Context, params *PutDataLakeSet type PutDataLakeSettingsInput struct { - // A structure representing a list of AWS Lake Formation principals designated as - // data lake administrators. + // A structure representing a list of Lake Formation principals designated as data + // lake administrators. // // This member is required. DataLakeSettings *types.DataLakeSettings // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -58,11 +58,11 @@ type PutDataLakeSettingsOutput struct { } func (c *Client) addOperationPutDataLakeSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutDataLakeSettings{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutDataLakeSettings{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutDataLakeSettings{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutDataLakeSettings{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_RegisterResource.go b/service/lakeformation/api_op_RegisterResource.go index 4381d1075b1..ca89cdf987d 100644 --- a/service/lakeformation/api_op_RegisterResource.go +++ b/service/lakeformation/api_op_RegisterResource.go @@ -18,7 +18,7 @@ import ( // created on your behalf. Lake Formation adds the first path to the inline policy // and attaches it to the service-linked role. When you register subsequent paths, // Lake Formation adds the path to the existing policy. The following request -// registers a new location and gives AWS Lake Formation permission to use the +// registers a new location and gives Lake Formation permission to use the // service-linked role to access that location. ResourceArn = // arn:aws:s3:::my-bucket UseServiceLinkedRole = true If UseServiceLinkedRole is // not set to true, you must provide or set the RoleArn: @@ -48,7 +48,7 @@ type RegisterResourceInput struct { // The identifier for the role that registers the resource. RoleArn *string - // Designates an AWS Identity and Access Management (IAM) service-linked role by + // Designates an Identity and Access Management (IAM) service-linked role by // registering this role with the Data Catalog. A service-linked role is a unique // type of IAM role that is linked directly to Lake Formation. For more // information, see Using Service-Linked Roles for Lake Formation @@ -66,11 +66,11 @@ type RegisterResourceOutput struct { } func (c *Client) addOperationRegisterResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterResource{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpRegisterResource{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterResource{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRegisterResource{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_RemoveLFTagsFromResource.go b/service/lakeformation/api_op_RemoveLFTagsFromResource.go index 0f7a8262c1c..62275027fc4 100644 --- a/service/lakeformation/api_op_RemoveLFTagsFromResource.go +++ b/service/lakeformation/api_op_RemoveLFTagsFromResource.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Removes a tag from the resource. Only database, table, or tableWithColumns +// Removes an LF-tag from the resource. Only database, table, or tableWithColumns // resource are allowed. To tag columns, use the column inclusion list in // tableWithColumns to specify column input. func (c *Client) RemoveLFTagsFromResource(ctx context.Context, params *RemoveLFTagsFromResourceInput, optFns ...func(*Options)) (*RemoveLFTagsFromResourceOutput, error) { @@ -31,20 +31,20 @@ func (c *Client) RemoveLFTagsFromResource(ctx context.Context, params *RemoveLFT type RemoveLFTagsFromResourceInput struct { - // The tags to be removed from the resource. + // The LF-tags to be removed from the resource. // // This member is required. LFTags []types.LFTagPair - // The resource where you want to remove a tag. + // The database, table, or column resource where you want to remove an LF-tag. // // This member is required. Resource *types.Resource // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde @@ -62,11 +62,11 @@ type RemoveLFTagsFromResourceOutput struct { } func (c *Client) addOperationRemoveLFTagsFromResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpRemoveLFTagsFromResource{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpRemoveLFTagsFromResource{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRemoveLFTagsFromResource{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRemoveLFTagsFromResource{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_RevokePermissions.go b/service/lakeformation/api_op_RevokePermissions.go index 921a91300b3..9f754a8dffa 100644 --- a/service/lakeformation/api_op_RevokePermissions.go +++ b/service/lakeformation/api_op_RevokePermissions.go @@ -49,8 +49,8 @@ type RevokePermissionsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string // Indicates a list of permissions for which to revoke the grant option allowing @@ -68,11 +68,11 @@ type RevokePermissionsOutput struct { } func (c *Client) addOperationRevokePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpRevokePermissions{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpRevokePermissions{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRevokePermissions{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRevokePermissions{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_SearchDatabasesByLFTags.go b/service/lakeformation/api_op_SearchDatabasesByLFTags.go index fca015a06ae..cb181943612 100644 --- a/service/lakeformation/api_op_SearchDatabasesByLFTags.go +++ b/service/lakeformation/api_op_SearchDatabasesByLFTags.go @@ -4,6 +4,7 @@ package lakeformation import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" @@ -40,8 +41,8 @@ type SearchDatabasesByLFTagsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string // The maximum number of results to return. @@ -55,7 +56,7 @@ type SearchDatabasesByLFTagsInput struct { type SearchDatabasesByLFTagsOutput struct { - // A list of databases that meet the tag conditions. + // A list of databases that meet the LF-tag conditions. DatabaseList []types.TaggedDatabase // A continuation token, present if the current list segment is not the last. @@ -68,11 +69,11 @@ type SearchDatabasesByLFTagsOutput struct { } func (c *Client) addOperationSearchDatabasesByLFTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchDatabasesByLFTags{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpSearchDatabasesByLFTags{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchDatabasesByLFTags{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpSearchDatabasesByLFTags{}, middleware.After) if err != nil { return err } @@ -130,6 +131,94 @@ func (c *Client) addOperationSearchDatabasesByLFTagsMiddlewares(stack *middlewar return nil } +// SearchDatabasesByLFTagsAPIClient is a client that implements the +// SearchDatabasesByLFTags operation. +type SearchDatabasesByLFTagsAPIClient interface { + SearchDatabasesByLFTags(context.Context, *SearchDatabasesByLFTagsInput, ...func(*Options)) (*SearchDatabasesByLFTagsOutput, error) +} + +var _ SearchDatabasesByLFTagsAPIClient = (*Client)(nil) + +// SearchDatabasesByLFTagsPaginatorOptions is the paginator options for +// SearchDatabasesByLFTags +type SearchDatabasesByLFTagsPaginatorOptions struct { + // The maximum number of results 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 +} + +// SearchDatabasesByLFTagsPaginator is a paginator for SearchDatabasesByLFTags +type SearchDatabasesByLFTagsPaginator struct { + options SearchDatabasesByLFTagsPaginatorOptions + client SearchDatabasesByLFTagsAPIClient + params *SearchDatabasesByLFTagsInput + nextToken *string + firstPage bool +} + +// NewSearchDatabasesByLFTagsPaginator returns a new +// SearchDatabasesByLFTagsPaginator +func NewSearchDatabasesByLFTagsPaginator(client SearchDatabasesByLFTagsAPIClient, params *SearchDatabasesByLFTagsInput, optFns ...func(*SearchDatabasesByLFTagsPaginatorOptions)) *SearchDatabasesByLFTagsPaginator { + if params == nil { + params = &SearchDatabasesByLFTagsInput{} + } + + options := SearchDatabasesByLFTagsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &SearchDatabasesByLFTagsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *SearchDatabasesByLFTagsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next SearchDatabasesByLFTags page. +func (p *SearchDatabasesByLFTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchDatabasesByLFTagsOutput, 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.SearchDatabasesByLFTags(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_opSearchDatabasesByLFTags(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lakeformation/api_op_SearchTablesByLFTags.go b/service/lakeformation/api_op_SearchTablesByLFTags.go index f013aeb63d5..844663e9653 100644 --- a/service/lakeformation/api_op_SearchTablesByLFTags.go +++ b/service/lakeformation/api_op_SearchTablesByLFTags.go @@ -4,6 +4,7 @@ package lakeformation import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" @@ -12,7 +13,7 @@ import ( ) // This operation allows a search on TABLE resources by LFTags. This will be used -// by admins who want to grant user permissions on certain LFTags. Before making a +// by admins who want to grant user permissions on certain LF-tags. Before making a // grant, the admin can use SearchTablesByLFTags to find all resources where the // given LFTags are valid to verify whether the returned resources can be shared. func (c *Client) SearchTablesByLFTags(ctx context.Context, params *SearchTablesByLFTagsInput, optFns ...func(*Options)) (*SearchTablesByLFTagsOutput, error) { @@ -39,8 +40,8 @@ type SearchTablesByLFTagsInput struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string // The maximum number of results to return. @@ -57,7 +58,7 @@ type SearchTablesByLFTagsOutput struct { // A continuation token, present if the current list segment is not the last. NextToken *string - // A list of tables that meet the tag conditions. + // A list of tables that meet the LF-tag conditions. TableList []types.TaggedTable // Metadata pertaining to the operation's result. @@ -67,11 +68,11 @@ type SearchTablesByLFTagsOutput struct { } func (c *Client) addOperationSearchTablesByLFTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchTablesByLFTags{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpSearchTablesByLFTags{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchTablesByLFTags{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpSearchTablesByLFTags{}, middleware.After) if err != nil { return err } @@ -129,6 +130,93 @@ func (c *Client) addOperationSearchTablesByLFTagsMiddlewares(stack *middleware.S return nil } +// SearchTablesByLFTagsAPIClient is a client that implements the +// SearchTablesByLFTags operation. +type SearchTablesByLFTagsAPIClient interface { + SearchTablesByLFTags(context.Context, *SearchTablesByLFTagsInput, ...func(*Options)) (*SearchTablesByLFTagsOutput, error) +} + +var _ SearchTablesByLFTagsAPIClient = (*Client)(nil) + +// SearchTablesByLFTagsPaginatorOptions is the paginator options for +// SearchTablesByLFTags +type SearchTablesByLFTagsPaginatorOptions struct { + // The maximum number of results 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 +} + +// SearchTablesByLFTagsPaginator is a paginator for SearchTablesByLFTags +type SearchTablesByLFTagsPaginator struct { + options SearchTablesByLFTagsPaginatorOptions + client SearchTablesByLFTagsAPIClient + params *SearchTablesByLFTagsInput + nextToken *string + firstPage bool +} + +// NewSearchTablesByLFTagsPaginator returns a new SearchTablesByLFTagsPaginator +func NewSearchTablesByLFTagsPaginator(client SearchTablesByLFTagsAPIClient, params *SearchTablesByLFTagsInput, optFns ...func(*SearchTablesByLFTagsPaginatorOptions)) *SearchTablesByLFTagsPaginator { + if params == nil { + params = &SearchTablesByLFTagsInput{} + } + + options := SearchTablesByLFTagsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &SearchTablesByLFTagsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *SearchTablesByLFTagsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next SearchTablesByLFTags page. +func (p *SearchTablesByLFTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchTablesByLFTagsOutput, 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.SearchTablesByLFTags(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_opSearchTablesByLFTags(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/service/lakeformation/api_op_StartQueryPlanning.go b/service/lakeformation/api_op_StartQueryPlanning.go new file mode 100644 index 00000000000..ae6b89881a2 --- /dev/null +++ b/service/lakeformation/api_op_StartQueryPlanning.go @@ -0,0 +1,164 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Submits a request to process a query statement. This operation generates work +// units that can be retrieved with the GetWorkUnits operation as soon as the query +// state is WORKUNITS_AVAILABLE or FINISHED. +func (c *Client) StartQueryPlanning(ctx context.Context, params *StartQueryPlanningInput, optFns ...func(*Options)) (*StartQueryPlanningOutput, error) { + if params == nil { + params = &StartQueryPlanningInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartQueryPlanning", params, optFns, c.addOperationStartQueryPlanningMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartQueryPlanningOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartQueryPlanningInput struct { + + // A structure containing information about the query plan. + // + // This member is required. + QueryPlanningContext *types.QueryPlanningContext + + // A PartiQL query statement used as an input to the planner service. + // + // This member is required. + QueryString *string + + noSmithyDocumentSerde +} + +// A structure for the output. +type StartQueryPlanningOutput struct { + + // The ID of the plan query operation can be used to fetch the actual work unit + // descriptors that are produced as the result of the operation. The ID is also + // used to get the query state and as an input to the Execute operation. + // + // This member is required. + QueryId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartQueryPlanningMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpStartQueryPlanning{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartQueryPlanning{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addEndpointPrefix_opStartQueryPlanningMiddleware(stack); err != nil { + return err + } + if err = addOpStartQueryPlanningValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartQueryPlanning(options.Region), middleware.Before); 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 + } + return nil +} + +type endpointPrefix_opStartQueryPlanningMiddleware struct { +} + +func (*endpointPrefix_opStartQueryPlanningMiddleware) ID() string { + return "EndpointHostPrefix" +} + +func (m *endpointPrefix_opStartQueryPlanningMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(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) + } + + req.URL.Host = "query-" + req.URL.Host + + return next.HandleSerialize(ctx, in) +} +func addEndpointPrefix_opStartQueryPlanningMiddleware(stack *middleware.Stack) error { + return stack.Serialize.Insert(&endpointPrefix_opStartQueryPlanningMiddleware{}, `OperationSerializer`, middleware.After) +} + +func newServiceMetadataMiddleware_opStartQueryPlanning(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "StartQueryPlanning", + } +} diff --git a/service/lakeformation/api_op_StartTransaction.go b/service/lakeformation/api_op_StartTransaction.go new file mode 100644 index 00000000000..4e54c3f753a --- /dev/null +++ b/service/lakeformation/api_op_StartTransaction.go @@ -0,0 +1,119 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Starts a new transaction and returns its transaction ID. Transaction IDs are +// opaque objects that you can use to identify a transaction. +func (c *Client) StartTransaction(ctx context.Context, params *StartTransactionInput, optFns ...func(*Options)) (*StartTransactionOutput, error) { + if params == nil { + params = &StartTransactionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartTransaction", params, optFns, c.addOperationStartTransactionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartTransactionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartTransactionInput struct { + + // Indicates whether this transaction should be read only or read and write. Writes + // made using a read-only transaction ID will be rejected. Read-only transactions + // do not need to be committed. + TransactionType types.TransactionType + + noSmithyDocumentSerde +} + +type StartTransactionOutput struct { + + // An opaque identifier for the transaction. + TransactionId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartTransactionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpStartTransaction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartTransaction{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartTransaction(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opStartTransaction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "StartTransaction", + } +} diff --git a/service/lakeformation/api_op_UpdateLFTag.go b/service/lakeformation/api_op_UpdateLFTag.go index 574cc3f0b60..a427d2dd942 100644 --- a/service/lakeformation/api_op_UpdateLFTag.go +++ b/service/lakeformation/api_op_UpdateLFTag.go @@ -10,12 +10,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the list of possible values for the specified tag key. If the tag does -// not exist, the operation throws an EntityNotFoundException. The values in the -// delete key values will be deleted from list of possible values. If any value in -// the delete key values is attached to a resource, then API errors out with a 400 -// Exception - "Update not allowed". Untag the attribute before deleting the tag -// key's value. +// Updates the list of possible values for the specified LF-tag key. If the LF-tag +// does not exist, the operation throws an EntityNotFoundException. The values in +// the delete key values will be deleted from list of possible values. If any value +// in the delete key values is attached to a resource, then API errors out with a +// 400 Exception - "Update not allowed". Untag the attribute before deleting the +// LF-tag key's value. func (c *Client) UpdateLFTag(ctx context.Context, params *UpdateLFTagInput, optFns ...func(*Options)) (*UpdateLFTagOutput, error) { if params == nil { params = &UpdateLFTagInput{} @@ -33,21 +33,21 @@ func (c *Client) UpdateLFTag(ctx context.Context, params *UpdateLFTagInput, optF type UpdateLFTagInput struct { - // The key-name for the tag for which to add or delete values. + // The key-name for the LF-tag for which to add or delete values. // // This member is required. TagKey *string // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string - // A list of tag values to add from the tag. + // A list of LF-tag values to add from the LF-tag. TagValuesToAdd []string - // A list of tag values to delete from the tag. + // A list of LF-tag values to delete from the LF-tag. TagValuesToDelete []string noSmithyDocumentSerde @@ -61,11 +61,11 @@ type UpdateLFTagOutput struct { } func (c *Client) addOperationUpdateLFTagMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateLFTag{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateLFTag{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateLFTag{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateLFTag{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_UpdateResource.go b/service/lakeformation/api_op_UpdateResource.go index c3f08bff33d..3b4a2f43ae1 100644 --- a/service/lakeformation/api_op_UpdateResource.go +++ b/service/lakeformation/api_op_UpdateResource.go @@ -11,7 +11,7 @@ import ( ) // Updates the data access role used for vending access to the given (registered) -// resource in AWS Lake Formation. +// resource in Lake Formation. func (c *Client) UpdateResource(ctx context.Context, params *UpdateResourceInput, optFns ...func(*Options)) (*UpdateResourceOutput, error) { if params == nil { params = &UpdateResourceInput{} @@ -34,7 +34,7 @@ type UpdateResourceInput struct { // This member is required. ResourceArn *string - // The new role to use for the given resource registered in AWS Lake Formation. + // The new role to use for the given resource registered in Lake Formation. // // This member is required. RoleArn *string @@ -50,11 +50,11 @@ type UpdateResourceOutput struct { } func (c *Client) addOperationUpdateResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateResource{}, middleware.After) + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateResource{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateResource{}, middleware.After) + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateResource{}, middleware.After) if err != nil { return err } diff --git a/service/lakeformation/api_op_UpdateTableObjects.go b/service/lakeformation/api_op_UpdateTableObjects.go new file mode 100644 index 00000000000..ae3c80d18d5 --- /dev/null +++ b/service/lakeformation/api_op_UpdateTableObjects.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lakeformation/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the manifest of Amazon S3 objects that make up the specified governed +// table. +func (c *Client) UpdateTableObjects(ctx context.Context, params *UpdateTableObjectsInput, optFns ...func(*Options)) (*UpdateTableObjectsOutput, error) { + if params == nil { + params = &UpdateTableObjectsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTableObjects", params, optFns, c.addOperationUpdateTableObjectsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTableObjectsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTableObjectsInput struct { + + // The database containing the governed table to update. + // + // This member is required. + DatabaseName *string + + // The governed table to update. + // + // This member is required. + TableName *string + + // The transaction at which to do the write. + // + // This member is required. + TransactionId *string + + // A list of WriteOperation objects that define an object to add to or delete from + // the manifest for a governed table. + // + // This member is required. + WriteOperations []types.WriteOperation + + // The catalog containing the governed table to update. Defaults to the caller’s + // account ID. + CatalogId *string + + noSmithyDocumentSerde +} + +type UpdateTableObjectsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTableObjectsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTableObjects{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTableObjects{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateTableObjectsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTableObjects(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateTableObjects(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "UpdateTableObjects", + } +} diff --git a/service/lakeformation/api_op_UpdateTableStorageOptimizer.go b/service/lakeformation/api_op_UpdateTableStorageOptimizer.go new file mode 100644 index 00000000000..2458f43463b --- /dev/null +++ b/service/lakeformation/api_op_UpdateTableStorageOptimizer.go @@ -0,0 +1,133 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lakeformation + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the configuration of the storage optimizers for a table. +func (c *Client) UpdateTableStorageOptimizer(ctx context.Context, params *UpdateTableStorageOptimizerInput, optFns ...func(*Options)) (*UpdateTableStorageOptimizerOutput, error) { + if params == nil { + params = &UpdateTableStorageOptimizerInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTableStorageOptimizer", params, optFns, c.addOperationUpdateTableStorageOptimizerMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTableStorageOptimizerOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTableStorageOptimizerInput struct { + + // Name of the database where the table is present. + // + // This member is required. + DatabaseName *string + + // Name of the table for which to enable the storage optimizer. + // + // This member is required. + StorageOptimizerConfig map[string]map[string]string + + // Name of the table for which to enable the storage optimizer. + // + // This member is required. + TableName *string + + // The Catalog ID of the table. + CatalogId *string + + noSmithyDocumentSerde +} + +type UpdateTableStorageOptimizerOutput struct { + + // A response indicating the success of failure of the operation. + Result *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTableStorageOptimizerMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTableStorageOptimizer{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTableStorageOptimizer{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateTableStorageOptimizerValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTableStorageOptimizer(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateTableStorageOptimizer(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lakeformation", + OperationName: "UpdateTableStorageOptimizer", + } +} diff --git a/service/lakeformation/deserializers.go b/service/lakeformation/deserializers.go index 7eb743ccc27..d80940ba664 100644 --- a/service/lakeformation/deserializers.go +++ b/service/lakeformation/deserializers.go @@ -19,14 +19,14 @@ import ( "strings" ) -type awsAwsjson11_deserializeOpAddLFTagsToResource struct { +type awsRestjson1_deserializeOpAddLFTagsToResource struct { } -func (*awsAwsjson11_deserializeOpAddLFTagsToResource) ID() string { +func (*awsRestjson1_deserializeOpAddLFTagsToResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpAddLFTagsToResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpAddLFTagsToResource) 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) @@ -40,7 +40,7 @@ func (m *awsAwsjson11_deserializeOpAddLFTagsToResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorAddLFTagsToResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorAddLFTagsToResource(response, &metadata) } output := &AddLFTagsToResourceOutput{} out.Result = output @@ -49,6 +49,7 @@ func (m *awsAwsjson11_deserializeOpAddLFTagsToResource) HandleDeserialize(ctx co ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -62,21 +63,20 @@ func (m *awsAwsjson11_deserializeOpAddLFTagsToResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentAddLFTagsToResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentAddLFTagsToResourceOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorAddLFTagsToResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorAddLFTagsToResource(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)} @@ -118,22 +118,22 @@ func awsAwsjson11_deserializeOpErrorAddLFTagsToResource(response *smithyhttp.Res switch { case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -145,14 +145,50 @@ func awsAwsjson11_deserializeOpErrorAddLFTagsToResource(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpBatchGrantPermissions struct { +func awsRestjson1_deserializeOpDocumentAddLFTagsToResourceOutput(v **AddLFTagsToResourceOutput, 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 *AddLFTagsToResourceOutput + if *v == nil { + sv = &AddLFTagsToResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Failures": + if err := awsRestjson1_deserializeDocumentLFTagErrors(&sv.Failures, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpBatchGrantPermissions struct { } -func (*awsAwsjson11_deserializeOpBatchGrantPermissions) ID() string { +func (*awsRestjson1_deserializeOpBatchGrantPermissions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpBatchGrantPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpBatchGrantPermissions) 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) @@ -166,7 +202,7 @@ func (m *awsAwsjson11_deserializeOpBatchGrantPermissions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorBatchGrantPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorBatchGrantPermissions(response, &metadata) } output := &BatchGrantPermissionsOutput{} out.Result = output @@ -175,6 +211,7 @@ func (m *awsAwsjson11_deserializeOpBatchGrantPermissions) HandleDeserialize(ctx ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -188,21 +225,20 @@ func (m *awsAwsjson11_deserializeOpBatchGrantPermissions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentBatchGrantPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentBatchGrantPermissionsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorBatchGrantPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorBatchGrantPermissions(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)} @@ -244,10 +280,10 @@ func awsAwsjson11_deserializeOpErrorBatchGrantPermissions(response *smithyhttp.R switch { case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -259,14 +295,50 @@ func awsAwsjson11_deserializeOpErrorBatchGrantPermissions(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpBatchRevokePermissions struct { +func awsRestjson1_deserializeOpDocumentBatchGrantPermissionsOutput(v **BatchGrantPermissionsOutput, 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 *BatchGrantPermissionsOutput + if *v == nil { + sv = &BatchGrantPermissionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Failures": + if err := awsRestjson1_deserializeDocumentBatchPermissionsFailureList(&sv.Failures, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpBatchRevokePermissions struct { } -func (*awsAwsjson11_deserializeOpBatchRevokePermissions) ID() string { +func (*awsRestjson1_deserializeOpBatchRevokePermissions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpBatchRevokePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpBatchRevokePermissions) 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) @@ -280,7 +352,7 @@ func (m *awsAwsjson11_deserializeOpBatchRevokePermissions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorBatchRevokePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorBatchRevokePermissions(response, &metadata) } output := &BatchRevokePermissionsOutput{} out.Result = output @@ -289,6 +361,7 @@ func (m *awsAwsjson11_deserializeOpBatchRevokePermissions) HandleDeserialize(ctx ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -302,21 +375,20 @@ func (m *awsAwsjson11_deserializeOpBatchRevokePermissions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentBatchRevokePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentBatchRevokePermissionsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorBatchRevokePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorBatchRevokePermissions(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)} @@ -358,10 +430,10 @@ func awsAwsjson11_deserializeOpErrorBatchRevokePermissions(response *smithyhttp. switch { case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -373,14 +445,50 @@ func awsAwsjson11_deserializeOpErrorBatchRevokePermissions(response *smithyhttp. } } -type awsAwsjson11_deserializeOpCreateLFTag struct { +func awsRestjson1_deserializeOpDocumentBatchRevokePermissionsOutput(v **BatchRevokePermissionsOutput, 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 *BatchRevokePermissionsOutput + if *v == nil { + sv = &BatchRevokePermissionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Failures": + if err := awsRestjson1_deserializeDocumentBatchPermissionsFailureList(&sv.Failures, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCancelTransaction struct { } -func (*awsAwsjson11_deserializeOpCreateLFTag) ID() string { +func (*awsRestjson1_deserializeOpCancelTransaction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateLFTag) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCancelTransaction) 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) @@ -394,43 +502,15 @@ func (m *awsAwsjson11_deserializeOpCreateLFTag) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateLFTag(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCancelTransaction(response, &metadata) } - output := &CreateLFTagOutput{} + output := &CancelTransactionOutput{} 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_deserializeOpDocumentCreateLFTagOutput(&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_deserializeOpErrorCreateLFTag(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCancelTransaction(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)} @@ -471,23 +551,26 @@ func awsAwsjson11_deserializeOpErrorCreateLFTag(response *smithyhttp.Response, m } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) - case strings.EqualFold("ResourceNumberLimitExceededException", errorCode): - return awsAwsjson11_deserializeErrorResourceNumberLimitExceededException(response, errorBody) + case strings.EqualFold("TransactionCommitInProgressException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommitInProgressException(response, errorBody) + + case strings.EqualFold("TransactionCommittedException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommittedException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -499,14 +582,14 @@ func awsAwsjson11_deserializeOpErrorCreateLFTag(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpDeleteLFTag struct { +type awsRestjson1_deserializeOpCommitTransaction struct { } -func (*awsAwsjson11_deserializeOpDeleteLFTag) ID() string { +func (*awsRestjson1_deserializeOpCommitTransaction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteLFTag) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCommitTransaction) 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) @@ -520,15 +603,16 @@ func (m *awsAwsjson11_deserializeOpDeleteLFTag) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteLFTag(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCommitTransaction(response, &metadata) } - output := &DeleteLFTagOutput{} + output := &CommitTransactionOutput{} 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{} @@ -542,21 +626,20 @@ func (m *awsAwsjson11_deserializeOpDeleteLFTag) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteLFTagOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCommitTransactionOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteLFTag(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCommitTransaction(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)} @@ -597,20 +680,23 @@ func awsAwsjson11_deserializeOpErrorDeleteLFTag(response *smithyhttp.Response, m } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("TransactionCanceledException", errorCode): + return awsRestjson1_deserializeErrorTransactionCanceledException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -622,14 +708,54 @@ func awsAwsjson11_deserializeOpErrorDeleteLFTag(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpDeregisterResource struct { +func awsRestjson1_deserializeOpDocumentCommitTransactionOutput(v **CommitTransactionOutput, 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 *CommitTransactionOutput + if *v == nil { + sv = &CommitTransactionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TransactionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TransactionStatus to be of type string, got %T instead", value) + } + sv.TransactionStatus = types.TransactionStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateDataCellsFilter struct { } -func (*awsAwsjson11_deserializeOpDeregisterResource) ID() string { +func (*awsRestjson1_deserializeOpCreateDataCellsFilter) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeregisterResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateDataCellsFilter) 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) @@ -643,43 +769,15 @@ func (m *awsAwsjson11_deserializeOpDeregisterResource) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeregisterResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateDataCellsFilter(response, &metadata) } - output := &DeregisterResourceOutput{} + output := &CreateDataCellsFilterOutput{} 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_deserializeOpDocumentDeregisterResourceOutput(&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_deserializeOpErrorDeregisterResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateDataCellsFilter(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)} @@ -720,17 +818,26 @@ func awsAwsjson11_deserializeOpErrorDeregisterResource(response *smithyhttp.Resp } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("AlreadyExistsException", errorCode): + return awsRestjson1_deserializeErrorAlreadyExistsException(response, errorBody) + case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("ResourceNumberLimitExceededException", errorCode): + return awsRestjson1_deserializeErrorResourceNumberLimitExceededException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -742,14 +849,14 @@ func awsAwsjson11_deserializeOpErrorDeregisterResource(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpDescribeResource struct { +type awsRestjson1_deserializeOpCreateLFTag struct { } -func (*awsAwsjson11_deserializeOpDescribeResource) ID() string { +func (*awsRestjson1_deserializeOpCreateLFTag) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateLFTag) 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) @@ -763,43 +870,15 @@ func (m *awsAwsjson11_deserializeOpDescribeResource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateLFTag(response, &metadata) } - output := &DescribeResourceOutput{} + output := &CreateLFTagOutput{} 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_deserializeOpDocumentDescribeResourceOutput(&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_deserializeOpErrorDescribeResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateLFTag(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)} @@ -840,17 +919,23 @@ func awsAwsjson11_deserializeOpErrorDescribeResource(response *smithyhttp.Respon } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("ResourceNumberLimitExceededException", errorCode): + return awsRestjson1_deserializeErrorResourceNumberLimitExceededException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -862,14 +947,14 @@ func awsAwsjson11_deserializeOpErrorDescribeResource(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpGetDataLakeSettings struct { +type awsRestjson1_deserializeOpDeleteDataCellsFilter struct { } -func (*awsAwsjson11_deserializeOpGetDataLakeSettings) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataCellsFilter) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetDataLakeSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataCellsFilter) 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) @@ -883,43 +968,15 @@ func (m *awsAwsjson11_deserializeOpGetDataLakeSettings) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetDataLakeSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataCellsFilter(response, &metadata) } - output := &GetDataLakeSettingsOutput{} + output := &DeleteDataCellsFilterOutput{} 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_deserializeOpDocumentGetDataLakeSettingsOutput(&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_deserializeOpErrorGetDataLakeSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDataCellsFilter(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)} @@ -960,14 +1017,20 @@ func awsAwsjson11_deserializeOpErrorGetDataLakeSettings(response *smithyhttp.Res } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -979,14 +1042,14 @@ func awsAwsjson11_deserializeOpErrorGetDataLakeSettings(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpGetEffectivePermissionsForPath struct { +type awsRestjson1_deserializeOpDeleteLFTag struct { } -func (*awsAwsjson11_deserializeOpGetEffectivePermissionsForPath) ID() string { +func (*awsRestjson1_deserializeOpDeleteLFTag) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetEffectivePermissionsForPath) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteLFTag) 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) @@ -1000,43 +1063,15 @@ func (m *awsAwsjson11_deserializeOpGetEffectivePermissionsForPath) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetEffectivePermissionsForPath(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteLFTag(response, &metadata) } - output := &GetEffectivePermissionsForPathOutput{} + output := &DeleteLFTagOutput{} 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_deserializeOpDocumentGetEffectivePermissionsForPathOutput(&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_deserializeOpErrorGetEffectivePermissionsForPath(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteLFTag(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)} @@ -1077,17 +1112,20 @@ func awsAwsjson11_deserializeOpErrorGetEffectivePermissionsForPath(response *smi } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1099,14 +1137,14 @@ func awsAwsjson11_deserializeOpErrorGetEffectivePermissionsForPath(response *smi } } -type awsAwsjson11_deserializeOpGetLFTag struct { +type awsRestjson1_deserializeOpDeleteObjectsOnCancel struct { } -func (*awsAwsjson11_deserializeOpGetLFTag) ID() string { +func (*awsRestjson1_deserializeOpDeleteObjectsOnCancel) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetLFTag) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteObjectsOnCancel) 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) @@ -1120,43 +1158,15 @@ func (m *awsAwsjson11_deserializeOpGetLFTag) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetLFTag(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteObjectsOnCancel(response, &metadata) } - output := &GetLFTagOutput{} + output := &DeleteObjectsOnCancelOutput{} 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_deserializeOpDocumentGetLFTagOutput(&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_deserializeOpErrorGetLFTag(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteObjectsOnCancel(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)} @@ -1197,20 +1207,29 @@ func awsAwsjson11_deserializeOpErrorGetLFTag(response *smithyhttp.Response, meta } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsRestjson1_deserializeErrorResourceNotReadyException(response, errorBody) + + case strings.EqualFold("TransactionCanceledException", errorCode): + return awsRestjson1_deserializeErrorTransactionCanceledException(response, errorBody) + + case strings.EqualFold("TransactionCommittedException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommittedException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1222,14 +1241,14 @@ func awsAwsjson11_deserializeOpErrorGetLFTag(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpGetResourceLFTags struct { +type awsRestjson1_deserializeOpDeregisterResource struct { } -func (*awsAwsjson11_deserializeOpGetResourceLFTags) ID() string { +func (*awsRestjson1_deserializeOpDeregisterResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetResourceLFTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeregisterResource) 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) @@ -1243,43 +1262,15 @@ func (m *awsAwsjson11_deserializeOpGetResourceLFTags) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetResourceLFTags(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeregisterResource(response, &metadata) } - output := &GetResourceLFTagsOutput{} + output := &DeregisterResourceOutput{} 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_deserializeOpDocumentGetResourceLFTagsOutput(&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_deserializeOpErrorGetResourceLFTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeregisterResource(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)} @@ -1320,23 +1311,17 @@ func awsAwsjson11_deserializeOpErrorGetResourceLFTags(response *smithyhttp.Respo } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) - - case strings.EqualFold("GlueEncryptionException", errorCode): - return awsAwsjson11_deserializeErrorGlueEncryptionException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1348,14 +1333,14 @@ func awsAwsjson11_deserializeOpErrorGetResourceLFTags(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpGrantPermissions struct { +type awsRestjson1_deserializeOpDescribeResource struct { } -func (*awsAwsjson11_deserializeOpGrantPermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGrantPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeResource) 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) @@ -1369,15 +1354,16 @@ func (m *awsAwsjson11_deserializeOpGrantPermissions) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGrantPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeResource(response, &metadata) } - output := &GrantPermissionsOutput{} + output := &DescribeResourceOutput{} 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{} @@ -1391,21 +1377,20 @@ func (m *awsAwsjson11_deserializeOpGrantPermissions) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGrantPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeResourceOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGrantPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeResource(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)} @@ -1446,14 +1431,17 @@ func awsAwsjson11_deserializeOpErrorGrantPermissions(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1465,14 +1453,50 @@ func awsAwsjson11_deserializeOpErrorGrantPermissions(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListLFTags struct { +func awsRestjson1_deserializeOpDocumentDescribeResourceOutput(v **DescribeResourceOutput, 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 *DescribeResourceOutput + if *v == nil { + sv = &DescribeResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ResourceInfo": + if err := awsRestjson1_deserializeDocumentResourceInfo(&sv.ResourceInfo, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDescribeTransaction struct { } -func (*awsAwsjson11_deserializeOpListLFTags) ID() string { +func (*awsRestjson1_deserializeOpDescribeTransaction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListLFTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTransaction) 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) @@ -1486,15 +1510,16 @@ func (m *awsAwsjson11_deserializeOpListLFTags) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListLFTags(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTransaction(response, &metadata) } - output := &ListLFTagsOutput{} + output := &DescribeTransactionOutput{} 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{} @@ -1508,21 +1533,20 @@ func (m *awsAwsjson11_deserializeOpListLFTags) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListLFTagsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTransactionOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListLFTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTransaction(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)} @@ -1564,16 +1588,16 @@ func awsAwsjson11_deserializeOpErrorListLFTags(response *smithyhttp.Response, me switch { case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1585,14 +1609,50 @@ func awsAwsjson11_deserializeOpErrorListLFTags(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListPermissions struct { +func awsRestjson1_deserializeOpDocumentDescribeTransactionOutput(v **DescribeTransactionOutput, 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 *DescribeTransactionOutput + if *v == nil { + sv = &DescribeTransactionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TransactionDescription": + if err := awsRestjson1_deserializeDocumentTransactionDescription(&sv.TransactionDescription, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpExtendTransaction struct { } -func (*awsAwsjson11_deserializeOpListPermissions) ID() string { +func (*awsRestjson1_deserializeOpExtendTransaction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpExtendTransaction) 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) @@ -1606,43 +1666,15 @@ func (m *awsAwsjson11_deserializeOpListPermissions) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorExtendTransaction(response, &metadata) } - output := &ListPermissionsOutput{} + output := &ExtendTransactionOutput{} 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_deserializeOpDocumentListPermissionsOutput(&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_deserializeOpErrorListPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorExtendTransaction(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)} @@ -1683,14 +1715,26 @@ func awsAwsjson11_deserializeOpErrorListPermissions(response *smithyhttp.Respons } switch { + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("TransactionCanceledException", errorCode): + return awsRestjson1_deserializeErrorTransactionCanceledException(response, errorBody) + + case strings.EqualFold("TransactionCommitInProgressException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommitInProgressException(response, errorBody) + + case strings.EqualFold("TransactionCommittedException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommittedException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1702,14 +1746,14 @@ func awsAwsjson11_deserializeOpErrorListPermissions(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpListResources struct { +type awsRestjson1_deserializeOpGetDataLakeSettings struct { } -func (*awsAwsjson11_deserializeOpListResources) ID() string { +func (*awsRestjson1_deserializeOpGetDataLakeSettings) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListResources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetDataLakeSettings) 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) @@ -1723,15 +1767,16 @@ func (m *awsAwsjson11_deserializeOpListResources) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListResources(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetDataLakeSettings(response, &metadata) } - output := &ListResourcesOutput{} + output := &GetDataLakeSettingsOutput{} 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{} @@ -1745,21 +1790,20 @@ func (m *awsAwsjson11_deserializeOpListResources) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListResourcesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetDataLakeSettingsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListResources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetDataLakeSettings(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)} @@ -1800,14 +1844,14 @@ func awsAwsjson11_deserializeOpErrorListResources(response *smithyhttp.Response, } switch { + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1819,14 +1863,50 @@ func awsAwsjson11_deserializeOpErrorListResources(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpPutDataLakeSettings struct { -} - -func (*awsAwsjson11_deserializeOpPutDataLakeSettings) ID() string { - return "OperationDeserializer" +func awsRestjson1_deserializeOpDocumentGetDataLakeSettingsOutput(v **GetDataLakeSettingsOutput, 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 *GetDataLakeSettingsOutput + if *v == nil { + sv = &GetDataLakeSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataLakeSettings": + if err := awsRestjson1_deserializeDocumentDataLakeSettings(&sv.DataLakeSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func (m *awsAwsjson11_deserializeOpPutDataLakeSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +type awsRestjson1_deserializeOpGetEffectivePermissionsForPath struct { +} + +func (*awsRestjson1_deserializeOpGetEffectivePermissionsForPath) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetEffectivePermissionsForPath) 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) @@ -1840,15 +1920,16 @@ func (m *awsAwsjson11_deserializeOpPutDataLakeSettings) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutDataLakeSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetEffectivePermissionsForPath(response, &metadata) } - output := &PutDataLakeSettingsOutput{} + output := &GetEffectivePermissionsForPathOutput{} 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{} @@ -1862,21 +1943,20 @@ func (m *awsAwsjson11_deserializeOpPutDataLakeSettings) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentPutDataLakeSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetEffectivePermissionsForPathOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorPutDataLakeSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetEffectivePermissionsForPath(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)} @@ -1917,11 +1997,17 @@ func awsAwsjson11_deserializeOpErrorPutDataLakeSettings(response *smithyhttp.Res } switch { + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1933,14 +2019,59 @@ func awsAwsjson11_deserializeOpErrorPutDataLakeSettings(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpRegisterResource struct { +func awsRestjson1_deserializeOpDocumentGetEffectivePermissionsForPathOutput(v **GetEffectivePermissionsForPathOutput, 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 *GetEffectivePermissionsForPathOutput + if *v == nil { + sv = &GetEffectivePermissionsForPathOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentPrincipalResourcePermissionsList(&sv.Permissions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetLFTag struct { } -func (*awsAwsjson11_deserializeOpRegisterResource) ID() string { +func (*awsRestjson1_deserializeOpGetLFTag) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRegisterResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetLFTag) 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) @@ -1954,15 +2085,16 @@ func (m *awsAwsjson11_deserializeOpRegisterResource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRegisterResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetLFTag(response, &metadata) } - output := &RegisterResourceOutput{} + output := &GetLFTagOutput{} 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{} @@ -1976,21 +2108,20 @@ func (m *awsAwsjson11_deserializeOpRegisterResource) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRegisterResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetLFTagOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRegisterResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetLFTag(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)} @@ -2031,17 +2162,20 @@ func awsAwsjson11_deserializeOpErrorRegisterResource(response *smithyhttp.Respon } switch { - case strings.EqualFold("AlreadyExistsException", errorCode): - return awsAwsjson11_deserializeErrorAlreadyExistsException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2053,14 +2187,68 @@ func awsAwsjson11_deserializeOpErrorRegisterResource(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpRemoveLFTagsFromResource struct { +func awsRestjson1_deserializeOpDocumentGetLFTagOutput(v **GetLFTagOutput, 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 *GetLFTagOutput + if *v == nil { + sv = &GetLFTagOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CatalogId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) + } + sv.CatalogId = ptr.String(jtv) + } + + case "TagKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LFTagKey to be of type string, got %T instead", value) + } + sv.TagKey = ptr.String(jtv) + } + + case "TagValues": + if err := awsRestjson1_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetQueryState struct { } -func (*awsAwsjson11_deserializeOpRemoveLFTagsFromResource) ID() string { +func (*awsRestjson1_deserializeOpGetQueryState) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRemoveLFTagsFromResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetQueryState) 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) @@ -2074,15 +2262,16 @@ func (m *awsAwsjson11_deserializeOpRemoveLFTagsFromResource) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRemoveLFTagsFromResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetQueryState(response, &metadata) } - output := &RemoveLFTagsFromResourceOutput{} + output := &GetQueryStateOutput{} 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{} @@ -2096,21 +2285,20 @@ func (m *awsAwsjson11_deserializeOpRemoveLFTagsFromResource) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRemoveLFTagsFromResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetQueryStateOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRemoveLFTagsFromResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetQueryState(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)} @@ -2152,25 +2340,13 @@ func awsAwsjson11_deserializeOpErrorRemoveLFTagsFromResource(response *smithyhtt switch { case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) - - case strings.EqualFold("GlueEncryptionException", errorCode): - return awsAwsjson11_deserializeErrorGlueEncryptionException(response, errorBody) + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2182,14 +2358,63 @@ func awsAwsjson11_deserializeOpErrorRemoveLFTagsFromResource(response *smithyhtt } } -type awsAwsjson11_deserializeOpRevokePermissions struct { +func awsRestjson1_deserializeOpDocumentGetQueryStateOutput(v **GetQueryStateOutput, 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 *GetQueryStateOutput + if *v == nil { + sv = &GetQueryStateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Error": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessageString to be of type string, got %T instead", value) + } + sv.Error = ptr.String(jtv) + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected QueryStateString to be of type string, got %T instead", value) + } + sv.State = types.QueryStateString(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetQueryStatistics struct { } -func (*awsAwsjson11_deserializeOpRevokePermissions) ID() string { +func (*awsRestjson1_deserializeOpGetQueryStatistics) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRevokePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetQueryStatistics) 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) @@ -2203,15 +2428,16 @@ func (m *awsAwsjson11_deserializeOpRevokePermissions) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRevokePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetQueryStatistics(response, &metadata) } - output := &RevokePermissionsOutput{} + output := &GetQueryStatisticsOutput{} 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{} @@ -2225,21 +2451,20 @@ func (m *awsAwsjson11_deserializeOpRevokePermissions) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRevokePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetQueryStatisticsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRevokePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetQueryStatistics(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)} @@ -2280,14 +2505,23 @@ func awsAwsjson11_deserializeOpErrorRevokePermissions(response *smithyhttp.Respo } switch { - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("ExpiredException", errorCode): + return awsRestjson1_deserializeErrorExpiredException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("StatisticsNotReadyYetException", errorCode): + return awsRestjson1_deserializeErrorStatisticsNotReadyYetException(response, errorBody) + + case strings.EqualFold("ThrottledException", errorCode): + return awsRestjson1_deserializeErrorThrottledException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2299,42 +2533,97 @@ func awsAwsjson11_deserializeOpErrorRevokePermissions(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpSearchDatabasesByLFTags struct { -} - -func (*awsAwsjson11_deserializeOpSearchDatabasesByLFTags) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpSearchDatabasesByLFTags) 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 +func awsRestjson1_deserializeOpDocumentGetQueryStatisticsOutput(v **GetQueryStatisticsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - response, ok := out.RawResponse.(*smithyhttp.Response) + shape, ok := value.(map[string]interface{}) if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + return fmt.Errorf("unexpected JSON type %v", value) } - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchDatabasesByLFTags(response, &metadata) + var sv *GetQueryStatisticsOutput + if *v == nil { + sv = &GetQueryStatisticsOutput{} + } else { + sv = *v } - output := &SearchDatabasesByLFTagsOutput{} - out.Result = output - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + for key, value := range shape { + switch key { + case "ExecutionStatistics": + if err := awsRestjson1_deserializeDocumentExecutionStatistics(&sv.ExecutionStatistics, value); err != nil { + return err + } - 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) + case "PlanningStatistics": + if err := awsRestjson1_deserializeDocumentPlanningStatistics(&sv.PlanningStatistics, value); err != nil { + return err + } + + case "QuerySubmissionTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTime to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.QuerySubmissionTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetResourceLFTags struct { +} + +func (*awsRestjson1_deserializeOpGetResourceLFTags) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetResourceLFTags) 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, awsRestjson1_deserializeOpErrorGetResourceLFTags(response, &metadata) + } + output := &GetResourceLFTagsOutput{} + 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(), @@ -2342,21 +2631,20 @@ func (m *awsAwsjson11_deserializeOpSearchDatabasesByLFTags) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSearchDatabasesByLFTagsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetResourceLFTagsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSearchDatabasesByLFTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetResourceLFTags(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)} @@ -2398,22 +2686,22 @@ func awsAwsjson11_deserializeOpErrorSearchDatabasesByLFTags(response *smithyhttp switch { case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("GlueEncryptionException", errorCode): - return awsAwsjson11_deserializeErrorGlueEncryptionException(response, errorBody) + return awsRestjson1_deserializeErrorGlueEncryptionException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2425,14 +2713,60 @@ func awsAwsjson11_deserializeOpErrorSearchDatabasesByLFTags(response *smithyhttp } } -type awsAwsjson11_deserializeOpSearchTablesByLFTags struct { +func awsRestjson1_deserializeOpDocumentGetResourceLFTagsOutput(v **GetResourceLFTagsOutput, 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 *GetResourceLFTagsOutput + if *v == nil { + sv = &GetResourceLFTagsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LFTagOnDatabase": + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTagOnDatabase, value); err != nil { + return err + } + + case "LFTagsOnColumns": + if err := awsRestjson1_deserializeDocumentColumnLFTagsList(&sv.LFTagsOnColumns, value); err != nil { + return err + } + + case "LFTagsOnTable": + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTagsOnTable, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetTableObjects struct { } -func (*awsAwsjson11_deserializeOpSearchTablesByLFTags) ID() string { +func (*awsRestjson1_deserializeOpGetTableObjects) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSearchTablesByLFTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetTableObjects) 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) @@ -2446,15 +2780,16 @@ func (m *awsAwsjson11_deserializeOpSearchTablesByLFTags) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearchTablesByLFTags(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetTableObjects(response, &metadata) } - output := &SearchTablesByLFTagsOutput{} + output := &GetTableObjectsOutput{} 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{} @@ -2468,21 +2803,20 @@ func (m *awsAwsjson11_deserializeOpSearchTablesByLFTags) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSearchTablesByLFTagsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetTableObjectsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSearchTablesByLFTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetTableObjects(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)} @@ -2523,23 +2857,26 @@ func awsAwsjson11_deserializeOpErrorSearchTablesByLFTags(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) - - case strings.EqualFold("GlueEncryptionException", errorCode): - return awsAwsjson11_deserializeErrorGlueEncryptionException(response, errorBody) + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsRestjson1_deserializeErrorResourceNotReadyException(response, errorBody) + + case strings.EqualFold("TransactionCanceledException", errorCode): + return awsRestjson1_deserializeErrorTransactionCanceledException(response, errorBody) + + case strings.EqualFold("TransactionCommittedException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommittedException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2551,14 +2888,59 @@ func awsAwsjson11_deserializeOpErrorSearchTablesByLFTags(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateLFTag struct { +func awsRestjson1_deserializeOpDocumentGetTableObjectsOutput(v **GetTableObjectsOutput, 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 *GetTableObjectsOutput + if *v == nil { + sv = &GetTableObjectsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TokenString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Objects": + if err := awsRestjson1_deserializeDocumentPartitionedTableObjectsList(&sv.Objects, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetWorkUnitResults struct { } -func (*awsAwsjson11_deserializeOpUpdateLFTag) ID() string { +func (*awsRestjson1_deserializeOpGetWorkUnitResults) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateLFTag) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetWorkUnitResults) 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) @@ -2572,43 +2954,20 @@ func (m *awsAwsjson11_deserializeOpUpdateLFTag) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateLFTag(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetWorkUnitResults(response, &metadata) } - output := &UpdateLFTagOutput{} + output := &GetWorkUnitResultsOutput{} 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_deserializeOpDocumentUpdateLFTagOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetWorkUnitResultsOutput(output, response.Body) 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, &smithy.DeserializationError{Err: fmt.Errorf("failed to deserialize response payload, %w", err)} } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateLFTag(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetWorkUnitResults(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)} @@ -2650,22 +3009,19 @@ func awsAwsjson11_deserializeOpErrorUpdateLFTag(response *smithyhttp.Response, m switch { case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson11_deserializeErrorConcurrentModificationException(response, errorBody) + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("ExpiredException", errorCode): + return awsRestjson1_deserializeErrorExpiredException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) - case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("ThrottledException", errorCode): + return awsRestjson1_deserializeErrorThrottledException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2677,14 +3033,23 @@ func awsAwsjson11_deserializeOpErrorUpdateLFTag(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateResource struct { +func awsRestjson1_deserializeOpDocumentGetWorkUnitResultsOutput(v *GetWorkUnitResultsOutput, body io.ReadCloser) error { + if v == nil { + return fmt.Errorf("unsupported deserialization of nil %T", v) + } + + v.ResultStream = body + return nil +} + +type awsRestjson1_deserializeOpGetWorkUnits struct { } -func (*awsAwsjson11_deserializeOpUpdateResource) ID() string { +func (*awsRestjson1_deserializeOpGetWorkUnits) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetWorkUnits) 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) @@ -2698,15 +3063,16 @@ func (m *awsAwsjson11_deserializeOpUpdateResource) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetWorkUnits(response, &metadata) } - output := &UpdateResourceOutput{} + output := &GetWorkUnitsOutput{} 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{} @@ -2720,21 +3086,20 @@ func (m *awsAwsjson11_deserializeOpUpdateResource) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetWorkUnitsOutput(&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), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetWorkUnits(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)} @@ -2775,17 +3140,20 @@ func awsAwsjson11_deserializeOpErrorUpdateResource(response *smithyhttp.Response } switch { - case strings.EqualFold("EntityNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorEntityNotFoundException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ExpiredException", errorCode): + return awsRestjson1_deserializeErrorExpiredException(response, errorBody) case strings.EqualFold("InternalServiceException", errorCode): - return awsAwsjson11_deserializeErrorInternalServiceException(response, errorBody) + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson11_deserializeErrorInvalidInputException(response, errorBody) + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) - case strings.EqualFold("OperationTimeoutException", errorCode): - return awsAwsjson11_deserializeErrorOperationTimeoutException(response, errorBody) + case strings.EqualFold("WorkUnitsNotReadyYetException", errorCode): + return awsRestjson1_deserializeErrorWorkUnitsNotReadyYetException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -2797,43 +3165,2978 @@ func awsAwsjson11_deserializeOpErrorUpdateResource(response *smithyhttp.Response } } -func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func awsRestjson1_deserializeOpDocumentGetWorkUnitsOutput(v **GetWorkUnitsOutput, 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.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - output := &types.AccessDeniedException{} - err := awsAwsjson11_deserializeDocumentAccessDeniedException(&output, shape) + var sv *GetWorkUnitsOutput + if *v == nil { + sv = &GetWorkUnitsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "QueryId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected QueryIdString to be of type string, got %T instead", value) + } + sv.QueryId = ptr.String(jtv) + } + + case "WorkUnitRanges": + if err := awsRestjson1_deserializeDocumentWorkUnitRangeList(&sv.WorkUnitRanges, 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 } + *v = sv + return nil +} - errorBody.Seek(0, io.SeekStart) - return output +type awsRestjson1_deserializeOpGrantPermissions struct { } -func awsAwsjson11_deserializeErrorAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - var buff [1024]byte +func (*awsRestjson1_deserializeOpGrantPermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGrantPermissions) 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, awsRestjson1_deserializeOpErrorGrantPermissions(response, &metadata) + } + output := &GrantPermissionsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGrantPermissions(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpListDataCellsFilter struct { +} + +func (*awsRestjson1_deserializeOpListDataCellsFilter) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListDataCellsFilter) 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, awsRestjson1_deserializeOpErrorListDataCellsFilter(response, &metadata) + } + output := &ListDataCellsFilterOutput{} + 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 = awsRestjson1_deserializeOpDocumentListDataCellsFilterOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListDataCellsFilter(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListDataCellsFilterOutput(v **ListDataCellsFilterOutput, 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 *ListDataCellsFilterOutput + if *v == nil { + sv = &ListDataCellsFilterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataCellsFilters": + if err := awsRestjson1_deserializeDocumentDataCellsFilterList(&sv.DataCellsFilters, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListLFTags struct { +} + +func (*awsRestjson1_deserializeOpListLFTags) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListLFTags) 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, awsRestjson1_deserializeOpErrorListLFTags(response, &metadata) + } + output := &ListLFTagsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListLFTagsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListLFTags(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListLFTagsOutput(v **ListLFTagsOutput, 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 *ListLFTagsOutput + if *v == nil { + sv = &ListLFTagsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LFTags": + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTags, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListPermissions struct { +} + +func (*awsRestjson1_deserializeOpListPermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListPermissions) 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, awsRestjson1_deserializeOpErrorListPermissions(response, &metadata) + } + output := &ListPermissionsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListPermissionsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListPermissions(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListPermissionsOutput(v **ListPermissionsOutput, 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 *ListPermissionsOutput + if *v == nil { + sv = &ListPermissionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "PrincipalResourcePermissions": + if err := awsRestjson1_deserializeDocumentPrincipalResourcePermissionsList(&sv.PrincipalResourcePermissions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListResources struct { +} + +func (*awsRestjson1_deserializeOpListResources) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListResources) 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, awsRestjson1_deserializeOpErrorListResources(response, &metadata) + } + output := &ListResourcesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListResourcesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListResources(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutput, 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 *ListResourcesOutput + if *v == nil { + sv = &ListResourcesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "ResourceInfoList": + if err := awsRestjson1_deserializeDocumentResourceInfoList(&sv.ResourceInfoList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTableStorageOptimizers struct { +} + +func (*awsRestjson1_deserializeOpListTableStorageOptimizers) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTableStorageOptimizers) 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, awsRestjson1_deserializeOpErrorListTableStorageOptimizers(response, &metadata) + } + output := &ListTableStorageOptimizersOutput{} + 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 = awsRestjson1_deserializeOpDocumentListTableStorageOptimizersOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTableStorageOptimizers(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTableStorageOptimizersOutput(v **ListTableStorageOptimizersOutput, 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 *ListTableStorageOptimizersOutput + if *v == nil { + sv = &ListTableStorageOptimizersOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "StorageOptimizerList": + if err := awsRestjson1_deserializeDocumentStorageOptimizerList(&sv.StorageOptimizerList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTransactions struct { +} + +func (*awsRestjson1_deserializeOpListTransactions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTransactions) 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, awsRestjson1_deserializeOpErrorListTransactions(response, &metadata) + } + output := &ListTransactionsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListTransactionsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTransactions(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTransactionsOutput(v **ListTransactionsOutput, 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 *ListTransactionsOutput + if *v == nil { + sv = &ListTransactionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TokenString to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Transactions": + if err := awsRestjson1_deserializeDocumentTransactionDescriptionList(&sv.Transactions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutDataLakeSettings struct { +} + +func (*awsRestjson1_deserializeOpPutDataLakeSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutDataLakeSettings) 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, awsRestjson1_deserializeOpErrorPutDataLakeSettings(response, &metadata) + } + output := &PutDataLakeSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutDataLakeSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpRegisterResource struct { +} + +func (*awsRestjson1_deserializeOpRegisterResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpRegisterResource) 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, awsRestjson1_deserializeOpErrorRegisterResource(response, &metadata) + } + output := &RegisterResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorRegisterResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("AlreadyExistsException", errorCode): + return awsRestjson1_deserializeErrorAlreadyExistsException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("ResourceNumberLimitExceededException", errorCode): + return awsRestjson1_deserializeErrorResourceNumberLimitExceededException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpRemoveLFTagsFromResource struct { +} + +func (*awsRestjson1_deserializeOpRemoveLFTagsFromResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpRemoveLFTagsFromResource) 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, awsRestjson1_deserializeOpErrorRemoveLFTagsFromResource(response, &metadata) + } + output := &RemoveLFTagsFromResourceOutput{} + 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 = awsRestjson1_deserializeOpDocumentRemoveLFTagsFromResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorRemoveLFTagsFromResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("GlueEncryptionException", errorCode): + return awsRestjson1_deserializeErrorGlueEncryptionException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentRemoveLFTagsFromResourceOutput(v **RemoveLFTagsFromResourceOutput, 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 *RemoveLFTagsFromResourceOutput + if *v == nil { + sv = &RemoveLFTagsFromResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Failures": + if err := awsRestjson1_deserializeDocumentLFTagErrors(&sv.Failures, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpRevokePermissions struct { +} + +func (*awsRestjson1_deserializeOpRevokePermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpRevokePermissions) 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, awsRestjson1_deserializeOpErrorRevokePermissions(response, &metadata) + } + output := &RevokePermissionsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorRevokePermissions(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpSearchDatabasesByLFTags struct { +} + +func (*awsRestjson1_deserializeOpSearchDatabasesByLFTags) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpSearchDatabasesByLFTags) 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, awsRestjson1_deserializeOpErrorSearchDatabasesByLFTags(response, &metadata) + } + output := &SearchDatabasesByLFTagsOutput{} + 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 = awsRestjson1_deserializeOpDocumentSearchDatabasesByLFTagsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorSearchDatabasesByLFTags(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("GlueEncryptionException", errorCode): + return awsRestjson1_deserializeErrorGlueEncryptionException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentSearchDatabasesByLFTagsOutput(v **SearchDatabasesByLFTagsOutput, 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 *SearchDatabasesByLFTagsOutput + if *v == nil { + sv = &SearchDatabasesByLFTagsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DatabaseList": + if err := awsRestjson1_deserializeDocumentDatabaseLFTagsList(&sv.DatabaseList, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpSearchTablesByLFTags struct { +} + +func (*awsRestjson1_deserializeOpSearchTablesByLFTags) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpSearchTablesByLFTags) 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, awsRestjson1_deserializeOpErrorSearchTablesByLFTags(response, &metadata) + } + output := &SearchTablesByLFTagsOutput{} + 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 = awsRestjson1_deserializeOpDocumentSearchTablesByLFTagsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorSearchTablesByLFTags(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("GlueEncryptionException", errorCode): + return awsRestjson1_deserializeErrorGlueEncryptionException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentSearchTablesByLFTagsOutput(v **SearchTablesByLFTagsOutput, 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 *SearchTablesByLFTagsOutput + if *v == nil { + sv = &SearchTablesByLFTagsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "TableList": + if err := awsRestjson1_deserializeDocumentTableLFTagsList(&sv.TableList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpStartQueryPlanning struct { +} + +func (*awsRestjson1_deserializeOpStartQueryPlanning) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartQueryPlanning) 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, awsRestjson1_deserializeOpErrorStartQueryPlanning(response, &metadata) + } + output := &StartQueryPlanningOutput{} + 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 = awsRestjson1_deserializeOpDocumentStartQueryPlanningOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartQueryPlanning(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("ThrottledException", errorCode): + return awsRestjson1_deserializeErrorThrottledException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentStartQueryPlanningOutput(v **StartQueryPlanningOutput, 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 *StartQueryPlanningOutput + if *v == nil { + sv = &StartQueryPlanningOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "QueryId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected QueryIdString to be of type string, got %T instead", value) + } + sv.QueryId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpStartTransaction struct { +} + +func (*awsRestjson1_deserializeOpStartTransaction) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartTransaction) 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, awsRestjson1_deserializeOpErrorStartTransaction(response, &metadata) + } + output := &StartTransactionOutput{} + 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 = awsRestjson1_deserializeOpDocumentStartTransactionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartTransaction(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentStartTransactionOutput(v **StartTransactionOutput, 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 *StartTransactionOutput + if *v == nil { + sv = &StartTransactionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "TransactionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TransactionIdString to be of type string, got %T instead", value) + } + sv.TransactionId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateLFTag struct { +} + +func (*awsRestjson1_deserializeOpUpdateLFTag) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateLFTag) 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, awsRestjson1_deserializeOpErrorUpdateLFTag(response, &metadata) + } + output := &UpdateLFTagOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateLFTag(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateResource struct { +} + +func (*awsRestjson1_deserializeOpUpdateResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateResource) 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, awsRestjson1_deserializeOpErrorUpdateResource(response, &metadata) + } + output := &UpdateResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateTableObjects struct { +} + +func (*awsRestjson1_deserializeOpUpdateTableObjects) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTableObjects) 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, awsRestjson1_deserializeOpErrorUpdateTableObjects(response, &metadata) + } + output := &UpdateTableObjectsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTableObjects(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConcurrentModificationException", errorCode): + return awsRestjson1_deserializeErrorConcurrentModificationException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("OperationTimeoutException", errorCode): + return awsRestjson1_deserializeErrorOperationTimeoutException(response, errorBody) + + case strings.EqualFold("ResourceNotReadyException", errorCode): + return awsRestjson1_deserializeErrorResourceNotReadyException(response, errorBody) + + case strings.EqualFold("TransactionCanceledException", errorCode): + return awsRestjson1_deserializeErrorTransactionCanceledException(response, errorBody) + + case strings.EqualFold("TransactionCommitInProgressException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommitInProgressException(response, errorBody) + + case strings.EqualFold("TransactionCommittedException", errorCode): + return awsRestjson1_deserializeErrorTransactionCommittedException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateTableStorageOptimizer struct { +} + +func (*awsRestjson1_deserializeOpUpdateTableStorageOptimizer) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTableStorageOptimizer) 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, awsRestjson1_deserializeOpErrorUpdateTableStorageOptimizer(response, &metadata) + } + output := &UpdateTableStorageOptimizerOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateTableStorageOptimizerOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTableStorageOptimizer(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("EntityNotFoundException", errorCode): + return awsRestjson1_deserializeErrorEntityNotFoundException(response, errorBody) + + case strings.EqualFold("InternalServiceException", errorCode): + return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateTableStorageOptimizerOutput(v **UpdateTableStorageOptimizerOutput, 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 *UpdateTableStorageOptimizerOutput + if *v == nil { + sv = &UpdateTableStorageOptimizerOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Result": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Result to be of type string, got %T instead", value) + } + sv.Result = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_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 awsRestjson1_deserializeErrorAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AlreadyExistsException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAlreadyExistsException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConcurrentModificationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConcurrentModificationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConcurrentModificationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorEntityNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.EntityNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentEntityNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorExpiredException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ExpiredException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentExpiredException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorGlueEncryptionException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.GlueEncryptionException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentGlueEncryptionException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServiceException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServiceException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServiceException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInvalidInputException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidInputException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInvalidInputException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorOperationTimeoutException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.OperationTimeoutException{} + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) @@ -2850,8 +6153,7 @@ func awsAwsjson11_deserializeErrorAlreadyExistsException(response *smithyhttp.Re return err } - output := &types.AlreadyExistsException{} - err := awsAwsjson11_deserializeDocumentAlreadyExistsException(&output, shape) + err := awsRestjson1_deserializeDocumentOperationTimeoutException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -2864,10 +6166,12 @@ func awsAwsjson11_deserializeErrorAlreadyExistsException(response *smithyhttp.Re } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorConcurrentModificationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorResourceNotReadyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotReadyException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -2885,8 +6189,7 @@ func awsAwsjson11_deserializeErrorConcurrentModificationException(response *smit return err } - output := &types.ConcurrentModificationException{} - err := awsAwsjson11_deserializeDocumentConcurrentModificationException(&output, shape) + err := awsRestjson1_deserializeDocumentResourceNotReadyException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -2899,10 +6202,12 @@ func awsAwsjson11_deserializeErrorConcurrentModificationException(response *smit } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorEntityNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorResourceNumberLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNumberLimitExceededException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -2920,8 +6225,7 @@ func awsAwsjson11_deserializeErrorEntityNotFoundException(response *smithyhttp.R return err } - output := &types.EntityNotFoundException{} - err := awsAwsjson11_deserializeDocumentEntityNotFoundException(&output, shape) + err := awsRestjson1_deserializeDocumentResourceNumberLimitExceededException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -2934,10 +6238,12 @@ func awsAwsjson11_deserializeErrorEntityNotFoundException(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorGlueEncryptionException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorStatisticsNotReadyYetException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.StatisticsNotReadyYetException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -2955,8 +6261,7 @@ func awsAwsjson11_deserializeErrorGlueEncryptionException(response *smithyhttp.R return err } - output := &types.GlueEncryptionException{} - err := awsAwsjson11_deserializeDocumentGlueEncryptionException(&output, shape) + err := awsRestjson1_deserializeDocumentStatisticsNotReadyYetException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -2969,10 +6274,12 @@ func awsAwsjson11_deserializeErrorGlueEncryptionException(response *smithyhttp.R } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorInternalServiceException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorThrottledException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottledException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -2990,8 +6297,7 @@ func awsAwsjson11_deserializeErrorInternalServiceException(response *smithyhttp. return err } - output := &types.InternalServiceException{} - err := awsAwsjson11_deserializeDocumentInternalServiceException(&output, shape) + err := awsRestjson1_deserializeDocumentThrottledException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -3004,10 +6310,12 @@ func awsAwsjson11_deserializeErrorInternalServiceException(response *smithyhttp. } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorInvalidInputException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorTransactionCanceledException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TransactionCanceledException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -3025,8 +6333,7 @@ func awsAwsjson11_deserializeErrorInvalidInputException(response *smithyhttp.Res return err } - output := &types.InvalidInputException{} - err := awsAwsjson11_deserializeDocumentInvalidInputException(&output, shape) + err := awsRestjson1_deserializeDocumentTransactionCanceledException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -3039,10 +6346,12 @@ func awsAwsjson11_deserializeErrorInvalidInputException(response *smithyhttp.Res } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorOperationTimeoutException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorTransactionCommitInProgressException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TransactionCommitInProgressException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -3060,8 +6369,7 @@ func awsAwsjson11_deserializeErrorOperationTimeoutException(response *smithyhttp return err } - output := &types.OperationTimeoutException{} - err := awsAwsjson11_deserializeDocumentOperationTimeoutException(&output, shape) + err := awsRestjson1_deserializeDocumentTransactionCommitInProgressException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -3074,10 +6382,12 @@ func awsAwsjson11_deserializeErrorOperationTimeoutException(response *smithyhttp } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeErrorResourceNumberLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsRestjson1_deserializeErrorTransactionCommittedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TransactionCommittedException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -3095,8 +6405,43 @@ func awsAwsjson11_deserializeErrorResourceNumberLimitExceededException(response return err } - output := &types.ResourceNumberLimitExceededException{} - err := awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(&output, shape) + err := awsRestjson1_deserializeDocumentTransactionCommittedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorWorkUnitsNotReadyYetException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.WorkUnitsNotReadyYetException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentWorkUnitsNotReadyYetException(&output, shape) if err != nil { var snapshot bytes.Buffer @@ -3109,10 +6454,11 @@ func awsAwsjson11_deserializeErrorResourceNumberLimitExceededException(response } errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3152,7 +6498,38 @@ func awsAwsjson11_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExistsException, value interface{}) error { +func awsRestjson1_deserializeDocumentAllRowsWildcard(v **types.AllRowsWildcard, 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.AllRowsWildcard + if *v == nil { + sv = &types.AllRowsWildcard{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAlreadyExistsException(v **types.AlreadyExistsException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3192,7 +6569,7 @@ func awsAwsjson11_deserializeDocumentAlreadyExistsException(v **types.AlreadyExi return nil } -func awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(v **types.BatchPermissionsFailureEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPermissionsFailureEntry(v **types.BatchPermissionsFailureEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3215,12 +6592,12 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(v **types.Batc for key, value := range shape { switch key { case "Error": - if err := awsAwsjson11_deserializeDocumentErrorDetail(&sv.Error, value); err != nil { + if err := awsRestjson1_deserializeDocumentErrorDetail(&sv.Error, value); err != nil { return err } case "RequestEntry": - if err := awsAwsjson11_deserializeDocumentBatchPermissionsRequestEntry(&sv.RequestEntry, value); err != nil { + if err := awsRestjson1_deserializeDocumentBatchPermissionsRequestEntry(&sv.RequestEntry, value); err != nil { return err } @@ -3233,7 +6610,7 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(v **types.Batc return nil } -func awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(v *[]types.BatchPermissionsFailureEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPermissionsFailureList(v *[]types.BatchPermissionsFailureEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3256,7 +6633,7 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(v *[]types.Batc for _, value := range shape { var col types.BatchPermissionsFailureEntry destAddr := &col - if err := awsAwsjson11_deserializeDocumentBatchPermissionsFailureEntry(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentBatchPermissionsFailureEntry(&destAddr, value); err != nil { return err } col = *destAddr @@ -3267,7 +6644,7 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(v *[]types.Batc return nil } -func awsAwsjson11_deserializeDocumentBatchPermissionsRequestEntry(v **types.BatchPermissionsRequestEntry, value interface{}) error { +func awsRestjson1_deserializeDocumentBatchPermissionsRequestEntry(v **types.BatchPermissionsRequestEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3299,22 +6676,22 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsRequestEntry(v **types.Batc } case "Permissions": - if err := awsAwsjson11_deserializeDocumentPermissionList(&sv.Permissions, value); err != nil { + if err := awsRestjson1_deserializeDocumentPermissionList(&sv.Permissions, value); err != nil { return err } case "PermissionsWithGrantOption": - if err := awsAwsjson11_deserializeDocumentPermissionList(&sv.PermissionsWithGrantOption, value); err != nil { + if err := awsRestjson1_deserializeDocumentPermissionList(&sv.PermissionsWithGrantOption, value); err != nil { return err } case "Principal": - if err := awsAwsjson11_deserializeDocumentDataLakePrincipal(&sv.Principal, value); err != nil { + if err := awsRestjson1_deserializeDocumentDataLakePrincipal(&sv.Principal, value); err != nil { return err } case "Resource": - if err := awsAwsjson11_deserializeDocumentResource(&sv.Resource, value); err != nil { + if err := awsRestjson1_deserializeDocumentResource(&sv.Resource, value); err != nil { return err } @@ -3327,7 +6704,7 @@ func awsAwsjson11_deserializeDocumentBatchPermissionsRequestEntry(v **types.Batc return nil } -func awsAwsjson11_deserializeDocumentCatalogResource(v **types.CatalogResource, value interface{}) error { +func awsRestjson1_deserializeDocumentCatalogResource(v **types.CatalogResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3358,7 +6735,7 @@ func awsAwsjson11_deserializeDocumentCatalogResource(v **types.CatalogResource, return nil } -func awsAwsjson11_deserializeDocumentColumnLFTag(v **types.ColumnLFTag, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnLFTag(v **types.ColumnLFTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3381,7 +6758,7 @@ func awsAwsjson11_deserializeDocumentColumnLFTag(v **types.ColumnLFTag, value in for key, value := range shape { switch key { case "LFTags": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTags, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTags, value); err != nil { return err } @@ -3403,7 +6780,7 @@ func awsAwsjson11_deserializeDocumentColumnLFTag(v **types.ColumnLFTag, value in return nil } -func awsAwsjson11_deserializeDocumentColumnLFTagsList(v *[]types.ColumnLFTag, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnLFTagsList(v *[]types.ColumnLFTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3426,7 +6803,7 @@ func awsAwsjson11_deserializeDocumentColumnLFTagsList(v *[]types.ColumnLFTag, va for _, value := range shape { var col types.ColumnLFTag destAddr := &col - if err := awsAwsjson11_deserializeDocumentColumnLFTag(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentColumnLFTag(&destAddr, value); err != nil { return err } col = *destAddr @@ -3437,7 +6814,7 @@ func awsAwsjson11_deserializeDocumentColumnLFTagsList(v *[]types.ColumnLFTag, va return nil } -func awsAwsjson11_deserializeDocumentColumnNames(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnNames(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3473,7 +6850,7 @@ func awsAwsjson11_deserializeDocumentColumnNames(v *[]string, value interface{}) return nil } -func awsAwsjson11_deserializeDocumentColumnWildcard(v **types.ColumnWildcard, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnWildcard(v **types.ColumnWildcard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3496,7 +6873,7 @@ func awsAwsjson11_deserializeDocumentColumnWildcard(v **types.ColumnWildcard, va for key, value := range shape { switch key { case "ExcludedColumnNames": - if err := awsAwsjson11_deserializeDocumentColumnNames(&sv.ExcludedColumnNames, value); err != nil { + if err := awsRestjson1_deserializeDocumentColumnNames(&sv.ExcludedColumnNames, value); err != nil { return err } @@ -3509,7 +6886,7 @@ func awsAwsjson11_deserializeDocumentColumnWildcard(v **types.ColumnWildcard, va return nil } -func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.ConcurrentModificationException, value interface{}) error { +func awsRestjson1_deserializeDocumentConcurrentModificationException(v **types.ConcurrentModificationException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3549,7 +6926,7 @@ func awsAwsjson11_deserializeDocumentConcurrentModificationException(v **types.C return nil } -func awsAwsjson11_deserializeDocumentDatabaseLFTagsList(v *[]types.TaggedDatabase, value interface{}) error { +func awsRestjson1_deserializeDocumentDatabaseLFTagsList(v *[]types.TaggedDatabase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3572,7 +6949,7 @@ func awsAwsjson11_deserializeDocumentDatabaseLFTagsList(v *[]types.TaggedDatabas for _, value := range shape { var col types.TaggedDatabase destAddr := &col - if err := awsAwsjson11_deserializeDocumentTaggedDatabase(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTaggedDatabase(&destAddr, value); err != nil { return err } col = *destAddr @@ -3583,7 +6960,7 @@ func awsAwsjson11_deserializeDocumentDatabaseLFTagsList(v *[]types.TaggedDatabas return nil } -func awsAwsjson11_deserializeDocumentDatabaseResource(v **types.DatabaseResource, value interface{}) error { +func awsRestjson1_deserializeDocumentDatabaseResource(v **types.DatabaseResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3614,13 +6991,196 @@ func awsAwsjson11_deserializeDocumentDatabaseResource(v **types.DatabaseResource sv.CatalogId = ptr.String(jtv) } - case "Name": + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataCellsFilter(v **types.DataCellsFilter, 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.DataCellsFilter + if *v == nil { + sv = &types.DataCellsFilter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ColumnNames": + if err := awsRestjson1_deserializeDocumentColumnNames(&sv.ColumnNames, value); err != nil { + return err + } + + case "ColumnWildcard": + if err := awsRestjson1_deserializeDocumentColumnWildcard(&sv.ColumnWildcard, value); err != nil { + return err + } + + case "DatabaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "RowFilter": + if err := awsRestjson1_deserializeDocumentRowFilter(&sv.RowFilter, value); err != nil { + return err + } + + case "TableCatalogId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) + } + sv.TableCatalogId = ptr.String(jtv) + } + + case "TableName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.TableName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataCellsFilterList(v *[]types.DataCellsFilter, 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.DataCellsFilter + if *v == nil { + cv = []types.DataCellsFilter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataCellsFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataCellsFilter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataCellsFilterResource(v **types.DataCellsFilterResource, 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.DataCellsFilterResource + if *v == nil { + sv = &types.DataCellsFilterResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DatabaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "TableCatalogId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) + } + sv.TableCatalogId = ptr.String(jtv) + } + + case "TableName": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected NameString to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.TableName = ptr.String(jtv) } default: @@ -3632,7 +7192,7 @@ func awsAwsjson11_deserializeDocumentDatabaseResource(v **types.DatabaseResource return nil } -func awsAwsjson11_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincipal, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincipal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3672,7 +7232,7 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincip return nil } -func awsAwsjson11_deserializeDocumentDataLakePrincipalList(v *[]types.DataLakePrincipal, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLakePrincipalList(v *[]types.DataLakePrincipal, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3695,7 +7255,7 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipalList(v *[]types.DataLakePr for _, value := range shape { var col types.DataLakePrincipal destAddr := &col - if err := awsAwsjson11_deserializeDocumentDataLakePrincipal(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDataLakePrincipal(&destAddr, value); err != nil { return err } col = *destAddr @@ -3706,7 +7266,7 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipalList(v *[]types.DataLakePr return nil } -func awsAwsjson11_deserializeDocumentDataLakeSettings(v **types.DataLakeSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLakeSettings(v **types.DataLakeSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3729,22 +7289,22 @@ func awsAwsjson11_deserializeDocumentDataLakeSettings(v **types.DataLakeSettings for key, value := range shape { switch key { case "CreateDatabaseDefaultPermissions": - if err := awsAwsjson11_deserializeDocumentPrincipalPermissionsList(&sv.CreateDatabaseDefaultPermissions, value); err != nil { + if err := awsRestjson1_deserializeDocumentPrincipalPermissionsList(&sv.CreateDatabaseDefaultPermissions, value); err != nil { return err } case "CreateTableDefaultPermissions": - if err := awsAwsjson11_deserializeDocumentPrincipalPermissionsList(&sv.CreateTableDefaultPermissions, value); err != nil { + if err := awsRestjson1_deserializeDocumentPrincipalPermissionsList(&sv.CreateTableDefaultPermissions, value); err != nil { return err } case "DataLakeAdmins": - if err := awsAwsjson11_deserializeDocumentDataLakePrincipalList(&sv.DataLakeAdmins, value); err != nil { + if err := awsRestjson1_deserializeDocumentDataLakePrincipalList(&sv.DataLakeAdmins, value); err != nil { return err } case "TrustedResourceOwners": - if err := awsAwsjson11_deserializeDocumentTrustedResourceOwners(&sv.TrustedResourceOwners, value); err != nil { + if err := awsRestjson1_deserializeDocumentTrustedResourceOwners(&sv.TrustedResourceOwners, value); err != nil { return err } @@ -3757,7 +7317,7 @@ func awsAwsjson11_deserializeDocumentDataLakeSettings(v **types.DataLakeSettings return nil } -func awsAwsjson11_deserializeDocumentDataLocationResource(v **types.DataLocationResource, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLocationResource(v **types.DataLocationResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3806,7 +7366,7 @@ func awsAwsjson11_deserializeDocumentDataLocationResource(v **types.DataLocation return nil } -func awsAwsjson11_deserializeDocumentDetailsMap(v **types.DetailsMap, value interface{}) error { +func awsRestjson1_deserializeDocumentDetailsMap(v **types.DetailsMap, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3829,7 +7389,7 @@ func awsAwsjson11_deserializeDocumentDetailsMap(v **types.DetailsMap, value inte for key, value := range shape { switch key { case "ResourceShare": - if err := awsAwsjson11_deserializeDocumentResourceShareList(&sv.ResourceShare, value); err != nil { + if err := awsRestjson1_deserializeDocumentResourceShareList(&sv.ResourceShare, value); err != nil { return err } @@ -3842,7 +7402,7 @@ func awsAwsjson11_deserializeDocumentDetailsMap(v **types.DetailsMap, value inte return nil } -func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNotFoundException, value interface{}) error { +func awsRestjson1_deserializeDocumentEntityNotFoundException(v **types.EntityNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3882,7 +7442,7 @@ func awsAwsjson11_deserializeDocumentEntityNotFoundException(v **types.EntityNot return nil } -func awsAwsjson11_deserializeDocumentErrorDetail(v **types.ErrorDetail, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorDetail(v **types.ErrorDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3931,7 +7491,117 @@ func awsAwsjson11_deserializeDocumentErrorDetail(v **types.ErrorDetail, value in return nil } -func awsAwsjson11_deserializeDocumentExpression(v *[]types.LFTag, value interface{}) error { +func awsRestjson1_deserializeDocumentExecutionStatistics(v **types.ExecutionStatistics, 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.ExecutionStatistics + if *v == nil { + sv = &types.ExecutionStatistics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AverageExecutionTimeMillis": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfMilliseconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AverageExecutionTimeMillis = i64 + } + + case "DataScannedBytes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfBytes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DataScannedBytes = i64 + } + + case "WorkUnitsExecutedCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfItems to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WorkUnitsExecutedCount = i64 + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentExpiredException(v **types.ExpiredException, 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.ExpiredException + if *v == nil { + sv = &types.ExpiredException{} + } 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 MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentExpression(v *[]types.LFTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -3954,7 +7624,7 @@ func awsAwsjson11_deserializeDocumentExpression(v *[]types.LFTag, value interfac for _, value := range shape { var col types.LFTag destAddr := &col - if err := awsAwsjson11_deserializeDocumentLFTag(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTag(&destAddr, value); err != nil { return err } col = *destAddr @@ -3965,7 +7635,7 @@ func awsAwsjson11_deserializeDocumentExpression(v *[]types.LFTag, value interfac return nil } -func awsAwsjson11_deserializeDocumentGlueEncryptionException(v **types.GlueEncryptionException, value interface{}) error { +func awsRestjson1_deserializeDocumentGlueEncryptionException(v **types.GlueEncryptionException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4005,7 +7675,7 @@ func awsAwsjson11_deserializeDocumentGlueEncryptionException(v **types.GlueEncry return nil } -func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.InternalServiceException, value interface{}) error { +func awsRestjson1_deserializeDocumentInternalServiceException(v **types.InternalServiceException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4045,7 +7715,7 @@ func awsAwsjson11_deserializeDocumentInternalServiceException(v **types.Internal return nil } -func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInputException, value interface{}) error { +func awsRestjson1_deserializeDocumentInvalidInputException(v **types.InvalidInputException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4085,7 +7755,7 @@ func awsAwsjson11_deserializeDocumentInvalidInputException(v **types.InvalidInpu return nil } -func awsAwsjson11_deserializeDocumentLFTag(v **types.LFTag, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTag(v **types.LFTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4117,7 +7787,7 @@ func awsAwsjson11_deserializeDocumentLFTag(v **types.LFTag, value interface{}) e } case "TagValues": - if err := awsAwsjson11_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { + if err := awsRestjson1_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { return err } @@ -4130,7 +7800,7 @@ func awsAwsjson11_deserializeDocumentLFTag(v **types.LFTag, value interface{}) e return nil } -func awsAwsjson11_deserializeDocumentLFTagError(v **types.LFTagError, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTagError(v **types.LFTagError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4153,12 +7823,12 @@ func awsAwsjson11_deserializeDocumentLFTagError(v **types.LFTagError, value inte for key, value := range shape { switch key { case "Error": - if err := awsAwsjson11_deserializeDocumentErrorDetail(&sv.Error, value); err != nil { + if err := awsRestjson1_deserializeDocumentErrorDetail(&sv.Error, value); err != nil { return err } case "LFTag": - if err := awsAwsjson11_deserializeDocumentLFTagPair(&sv.LFTag, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTagPair(&sv.LFTag, value); err != nil { return err } @@ -4171,7 +7841,7 @@ func awsAwsjson11_deserializeDocumentLFTagError(v **types.LFTagError, value inte return nil } -func awsAwsjson11_deserializeDocumentLFTagErrors(v *[]types.LFTagError, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTagErrors(v *[]types.LFTagError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4194,7 +7864,7 @@ func awsAwsjson11_deserializeDocumentLFTagErrors(v *[]types.LFTagError, value in for _, value := range shape { var col types.LFTagError destAddr := &col - if err := awsAwsjson11_deserializeDocumentLFTagError(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTagError(&destAddr, value); err != nil { return err } col = *destAddr @@ -4205,7 +7875,7 @@ func awsAwsjson11_deserializeDocumentLFTagErrors(v *[]types.LFTagError, value in return nil } -func awsAwsjson11_deserializeDocumentLFTagKeyResource(v **types.LFTagKeyResource, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTagKeyResource(v **types.LFTagKeyResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4246,7 +7916,7 @@ func awsAwsjson11_deserializeDocumentLFTagKeyResource(v **types.LFTagKeyResource } case "TagValues": - if err := awsAwsjson11_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { + if err := awsRestjson1_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { return err } @@ -4259,7 +7929,7 @@ func awsAwsjson11_deserializeDocumentLFTagKeyResource(v **types.LFTagKeyResource return nil } -func awsAwsjson11_deserializeDocumentLFTagPair(v **types.LFTagPair, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTagPair(v **types.LFTagPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4300,7 +7970,7 @@ func awsAwsjson11_deserializeDocumentLFTagPair(v **types.LFTagPair, value interf } case "TagValues": - if err := awsAwsjson11_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { + if err := awsRestjson1_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { return err } @@ -4313,7 +7983,7 @@ func awsAwsjson11_deserializeDocumentLFTagPair(v **types.LFTagPair, value interf return nil } -func awsAwsjson11_deserializeDocumentLFTagPolicyResource(v **types.LFTagPolicyResource, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTagPolicyResource(v **types.LFTagPolicyResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4345,7 +8015,7 @@ func awsAwsjson11_deserializeDocumentLFTagPolicyResource(v **types.LFTagPolicyRe } case "Expression": - if err := awsAwsjson11_deserializeDocumentExpression(&sv.Expression, value); err != nil { + if err := awsRestjson1_deserializeDocumentExpression(&sv.Expression, value); err != nil { return err } @@ -4367,7 +8037,7 @@ func awsAwsjson11_deserializeDocumentLFTagPolicyResource(v **types.LFTagPolicyRe return nil } -func awsAwsjson11_deserializeDocumentLFTagsList(v *[]types.LFTagPair, value interface{}) error { +func awsRestjson1_deserializeDocumentLFTagsList(v *[]types.LFTagPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4390,7 +8060,7 @@ func awsAwsjson11_deserializeDocumentLFTagsList(v *[]types.LFTagPair, value inte for _, value := range shape { var col types.LFTagPair destAddr := &col - if err := awsAwsjson11_deserializeDocumentLFTagPair(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTagPair(&destAddr, value); err != nil { return err } col = *destAddr @@ -4401,7 +8071,7 @@ func awsAwsjson11_deserializeDocumentLFTagsList(v *[]types.LFTagPair, value inte return nil } -func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.OperationTimeoutException, value interface{}) error { +func awsRestjson1_deserializeDocumentOperationTimeoutException(v **types.OperationTimeoutException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4441,7 +8111,7 @@ func awsAwsjson11_deserializeDocumentOperationTimeoutException(v **types.Operati return nil } -func awsAwsjson11_deserializeDocumentPermissionList(v *[]types.Permission, value interface{}) error { +func awsRestjson1_deserializeDocumentPartitionedTableObjectsList(v *[]types.PartitionObjects, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4454,22 +8124,20 @@ func awsAwsjson11_deserializeDocumentPermissionList(v *[]types.Permission, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Permission + var cv []types.PartitionObjects if *v == nil { - cv = []types.Permission{} + cv = []types.PartitionObjects{} } else { cv = *v } for _, value := range shape { - var col types.Permission - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Permission to be of type string, got %T instead", value) - } - col = types.Permission(jtv) + var col types.PartitionObjects + destAddr := &col + if err := awsRestjson1_deserializeDocumentPartitionObjects(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -4477,7 +8145,7 @@ func awsAwsjson11_deserializeDocumentPermissionList(v *[]types.Permission, value return nil } -func awsAwsjson11_deserializeDocumentPrincipalPermissions(v **types.PrincipalPermissions, value interface{}) error { +func awsRestjson1_deserializeDocumentPartitionObjects(v **types.PartitionObjects, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4490,22 +8158,22 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissions(v **types.PrincipalPer return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PrincipalPermissions + var sv *types.PartitionObjects if *v == nil { - sv = &types.PrincipalPermissions{} + sv = &types.PartitionObjects{} } else { sv = *v } for key, value := range shape { switch key { - case "Permissions": - if err := awsAwsjson11_deserializeDocumentPermissionList(&sv.Permissions, value); err != nil { + case "Objects": + if err := awsRestjson1_deserializeDocumentTableObjectList(&sv.Objects, value); err != nil { return err } - case "Principal": - if err := awsAwsjson11_deserializeDocumentDataLakePrincipal(&sv.Principal, value); err != nil { + case "PartitionValues": + if err := awsRestjson1_deserializeDocumentPartitionValuesList(&sv.PartitionValues, value); err != nil { return err } @@ -4518,7 +8186,7 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissions(v **types.PrincipalPer return nil } -func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]types.PrincipalPermissions, value interface{}) error { +func awsRestjson1_deserializeDocumentPartitionValuesList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4531,20 +8199,22 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]types.Princip return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.PrincipalPermissions + var cv []string if *v == nil { - cv = []types.PrincipalPermissions{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.PrincipalPermissions - destAddr := &col - if err := awsAwsjson11_deserializeDocumentPrincipalPermissions(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PartitionValueString to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -4552,63 +8222,7 @@ func awsAwsjson11_deserializeDocumentPrincipalPermissionsList(v *[]types.Princip return nil } -func awsAwsjson11_deserializeDocumentPrincipalResourcePermissions(v **types.PrincipalResourcePermissions, 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.PrincipalResourcePermissions - if *v == nil { - sv = &types.PrincipalResourcePermissions{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AdditionalDetails": - if err := awsAwsjson11_deserializeDocumentDetailsMap(&sv.AdditionalDetails, value); err != nil { - return err - } - - case "Permissions": - if err := awsAwsjson11_deserializeDocumentPermissionList(&sv.Permissions, value); err != nil { - return err - } - - case "PermissionsWithGrantOption": - if err := awsAwsjson11_deserializeDocumentPermissionList(&sv.PermissionsWithGrantOption, value); err != nil { - return err - } - - case "Principal": - if err := awsAwsjson11_deserializeDocumentDataLakePrincipal(&sv.Principal, value); err != nil { - return err - } - - case "Resource": - if err := awsAwsjson11_deserializeDocumentResource(&sv.Resource, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(v *[]types.PrincipalResourcePermissions, value interface{}) error { +func awsRestjson1_deserializeDocumentPermissionList(v *[]types.Permission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4621,20 +8235,22 @@ func awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(v *[]types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.PrincipalResourcePermissions + var cv []types.Permission if *v == nil { - cv = []types.PrincipalResourcePermissions{} + cv = []types.Permission{} } else { cv = *v } for _, value := range shape { - var col types.PrincipalResourcePermissions - destAddr := &col - if err := awsAwsjson11_deserializeDocumentPrincipalResourcePermissions(&destAddr, value); err != nil { - return err + var col types.Permission + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Permission to be of type string, got %T instead", value) + } + col = types.Permission(jtv) } - col = *destAddr cv = append(cv, col) } @@ -4642,7 +8258,7 @@ func awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(v *[]types return nil } -func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interface{}) error { +func awsRestjson1_deserializeDocumentPlanningStatistics(v **types.PlanningStatistics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4655,48 +8271,65 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Resource + var sv *types.PlanningStatistics if *v == nil { - sv = &types.Resource{} + sv = &types.PlanningStatistics{} } else { sv = *v } for key, value := range shape { switch key { - case "Catalog": - if err := awsAwsjson11_deserializeDocumentCatalogResource(&sv.Catalog, value); err != nil { - return err - } - - case "Database": - if err := awsAwsjson11_deserializeDocumentDatabaseResource(&sv.Database, value); err != nil { - return err - } - - case "DataLocation": - if err := awsAwsjson11_deserializeDocumentDataLocationResource(&sv.DataLocation, value); err != nil { - return err - } - - case "LFTag": - if err := awsAwsjson11_deserializeDocumentLFTagKeyResource(&sv.LFTag, value); err != nil { - return err + case "EstimatedDataToScanBytes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfBytes to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.EstimatedDataToScanBytes = i64 } - case "LFTagPolicy": - if err := awsAwsjson11_deserializeDocumentLFTagPolicyResource(&sv.LFTagPolicy, value); err != nil { - return err + case "PlanningTimeMillis": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfMilliseconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PlanningTimeMillis = i64 } - case "Table": - if err := awsAwsjson11_deserializeDocumentTableResource(&sv.Table, value); err != nil { - return err + case "QueueTimeMillis": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfMilliseconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.QueueTimeMillis = i64 } - case "TableWithColumns": - if err := awsAwsjson11_deserializeDocumentTableWithColumnsResource(&sv.TableWithColumns, value); err != nil { - return err + case "WorkUnitsGeneratedCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NumberOfItems to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WorkUnitsGeneratedCount = i64 } default: @@ -4708,7 +8341,7 @@ func awsAwsjson11_deserializeDocumentResource(v **types.Resource, value interfac return nil } -func awsAwsjson11_deserializeDocumentResourceInfo(v **types.ResourceInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalPermissions(v **types.PrincipalPermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4721,47 +8354,23 @@ func awsAwsjson11_deserializeDocumentResourceInfo(v **types.ResourceInfo, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceInfo + var sv *types.PrincipalPermissions if *v == nil { - sv = &types.ResourceInfo{} + sv = &types.PrincipalPermissions{} } else { sv = *v } - for key, value := range shape { - switch key { - case "LastModified": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastModified = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected LastModifiedTimestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ResourceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceArnString to be of type string, got %T instead", value) - } - sv.ResourceArn = ptr.String(jtv) - } - - case "RoleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) - } - sv.RoleArn = ptr.String(jtv) + for key, value := range shape { + switch key { + case "Permissions": + if err := awsRestjson1_deserializeDocumentPermissionList(&sv.Permissions, value); err != nil { + return err + } + + case "Principal": + if err := awsRestjson1_deserializeDocumentDataLakePrincipal(&sv.Principal, value); err != nil { + return err } default: @@ -4773,7 +8382,7 @@ func awsAwsjson11_deserializeDocumentResourceInfo(v **types.ResourceInfo, value return nil } -func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]types.ResourceInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalPermissionsList(v *[]types.PrincipalPermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4786,17 +8395,17 @@ func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]types.ResourceInfo, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ResourceInfo + var cv []types.PrincipalPermissions if *v == nil { - cv = []types.ResourceInfo{} + cv = []types.PrincipalPermissions{} } else { cv = *v } for _, value := range shape { - var col types.ResourceInfo + var col types.PrincipalPermissions destAddr := &col - if err := awsAwsjson11_deserializeDocumentResourceInfo(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentPrincipalPermissions(&destAddr, value); err != nil { return err } col = *destAddr @@ -4807,7 +8416,7 @@ func awsAwsjson11_deserializeDocumentResourceInfoList(v *[]types.ResourceInfo, v return nil } -func awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(v **types.ResourceNumberLimitExceededException, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalResourcePermissions(v **types.PrincipalResourcePermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4820,70 +8429,50 @@ func awsAwsjson11_deserializeDocumentResourceNumberLimitExceededException(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceNumberLimitExceededException + var sv *types.PrincipalResourcePermissions if *v == nil { - sv = &types.ResourceNumberLimitExceededException{} + sv = &types.PrincipalResourcePermissions{} } 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 MessageString to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + case "AdditionalDetails": + if err := awsRestjson1_deserializeDocumentDetailsMap(&sv.AdditionalDetails, value); err != nil { + return err } - default: - _, _ = key, value + case "Permissions": + if err := awsRestjson1_deserializeDocumentPermissionList(&sv.Permissions, value); err != nil { + return err + } - } - } - *v = sv - return nil -} + case "PermissionsWithGrantOption": + if err := awsRestjson1_deserializeDocumentPermissionList(&sv.PermissionsWithGrantOption, value); err != nil { + return err + } -func awsAwsjson11_deserializeDocumentResourceShareList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "Principal": + if err := awsRestjson1_deserializeDocumentDataLakePrincipal(&sv.Principal, value); err != nil { + return err + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "Resource": + if err := awsRestjson1_deserializeDocumentResource(&sv.Resource, value); err != nil { + return err + } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RAMResourceShareArn to be of type string, got %T instead", value) - } - col = jtv } - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeDocumentTableLFTagsList(v *[]types.TaggedTable, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalResourcePermissionsList(v *[]types.PrincipalResourcePermissions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4896,17 +8485,17 @@ func awsAwsjson11_deserializeDocumentTableLFTagsList(v *[]types.TaggedTable, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TaggedTable + var cv []types.PrincipalResourcePermissions if *v == nil { - cv = []types.TaggedTable{} + cv = []types.PrincipalResourcePermissions{} } else { cv = *v } for _, value := range shape { - var col types.TaggedTable + var col types.PrincipalResourcePermissions destAddr := &col - if err := awsAwsjson11_deserializeDocumentTaggedTable(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentPrincipalResourcePermissions(&destAddr, value); err != nil { return err } col = *destAddr @@ -4917,7 +8506,7 @@ func awsAwsjson11_deserializeDocumentTableLFTagsList(v *[]types.TaggedTable, val return nil } -func awsAwsjson11_deserializeDocumentTableResource(v **types.TableResource, value interface{}) error { +func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4930,78 +8519,55 @@ func awsAwsjson11_deserializeDocumentTableResource(v **types.TableResource, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableResource + var sv *types.Resource if *v == nil { - sv = &types.TableResource{} + sv = &types.Resource{} } else { sv = *v } for key, value := range shape { switch key { - case "CatalogId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) - } - sv.CatalogId = ptr.String(jtv) + case "Catalog": + if err := awsRestjson1_deserializeDocumentCatalogResource(&sv.Catalog, value); err != nil { + return err } - case "DatabaseName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NameString to be of type string, got %T instead", value) - } - sv.DatabaseName = ptr.String(jtv) + case "Database": + if err := awsRestjson1_deserializeDocumentDatabaseResource(&sv.Database, value); err != nil { + return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NameString to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "DataCellsFilter": + if err := awsRestjson1_deserializeDocumentDataCellsFilterResource(&sv.DataCellsFilter, value); err != nil { + return err } - case "TableWildcard": - if err := awsAwsjson11_deserializeDocumentTableWildcard(&sv.TableWildcard, value); err != nil { + case "DataLocation": + if err := awsRestjson1_deserializeDocumentDataLocationResource(&sv.DataLocation, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "LFTag": + if err := awsRestjson1_deserializeDocumentLFTagKeyResource(&sv.LFTag, value); err != nil { + return err + } -func awsAwsjson11_deserializeDocumentTableWildcard(v **types.TableWildcard, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "LFTagPolicy": + if err := awsRestjson1_deserializeDocumentLFTagPolicyResource(&sv.LFTagPolicy, value); err != nil { + return err + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "Table": + if err := awsRestjson1_deserializeDocumentTableResource(&sv.Table, value); err != nil { + return err + } - var sv *types.TableWildcard - if *v == nil { - sv = &types.TableWildcard{} - } else { - sv = *v - } + case "TableWithColumns": + if err := awsRestjson1_deserializeDocumentTableWithColumnsResource(&sv.TableWithColumns, value); err != nil { + return err + } - for key, value := range shape { - switch key { default: _, _ = key, value @@ -5011,7 +8577,7 @@ func awsAwsjson11_deserializeDocumentTableWildcard(v **types.TableWildcard, valu return nil } -func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWithColumnsResource, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceInfo(v **types.ResourceInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5024,50 +8590,47 @@ func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWit return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableWithColumnsResource + var sv *types.ResourceInfo if *v == nil { - sv = &types.TableWithColumnsResource{} + sv = &types.ResourceInfo{} } else { sv = *v } for key, value := range shape { switch key { - case "CatalogId": + case "LastModified": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) - } - sv.CatalogId = ptr.String(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModified = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "ColumnNames": - if err := awsAwsjson11_deserializeDocumentColumnNames(&sv.ColumnNames, value); err != nil { - return err - } + default: + return fmt.Errorf("expected LastModifiedTimestamp to be a JSON Number, got %T instead", value) - case "ColumnWildcard": - if err := awsAwsjson11_deserializeDocumentColumnWildcard(&sv.ColumnWildcard, value); err != nil { - return err + } } - case "DatabaseName": + case "ResourceArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceArnString to be of type string, got %T instead", value) } - sv.DatabaseName = ptr.String(jtv) + sv.ResourceArn = ptr.String(jtv) } - case "Name": + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + return fmt.Errorf("expected IAMRoleArn to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.RoleArn = ptr.String(jtv) } default: @@ -5079,7 +8642,41 @@ func awsAwsjson11_deserializeDocumentTableWithColumnsResource(v **types.TableWit return nil } -func awsAwsjson11_deserializeDocumentTaggedDatabase(v **types.TaggedDatabase, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceInfoList(v *[]types.ResourceInfo, 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.ResourceInfo + if *v == nil { + cv = []types.ResourceInfo{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ResourceInfo + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourceInfo(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.ResourceNotReadyException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5092,23 +8689,22 @@ func awsAwsjson11_deserializeDocumentTaggedDatabase(v **types.TaggedDatabase, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TaggedDatabase + var sv *types.ResourceNotReadyException if *v == nil { - sv = &types.TaggedDatabase{} + sv = &types.ResourceNotReadyException{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": - if err := awsAwsjson11_deserializeDocumentDatabaseResource(&sv.Database, value); err != nil { - return err - } - - case "LFTags": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTags, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -5120,7 +8716,7 @@ func awsAwsjson11_deserializeDocumentTaggedDatabase(v **types.TaggedDatabase, va return nil } -func awsAwsjson11_deserializeDocumentTaggedTable(v **types.TaggedTable, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceNumberLimitExceededException(v **types.ResourceNumberLimitExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5133,33 +8729,22 @@ func awsAwsjson11_deserializeDocumentTaggedTable(v **types.TaggedTable, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TaggedTable + var sv *types.ResourceNumberLimitExceededException if *v == nil { - sv = &types.TaggedTable{} + sv = &types.ResourceNumberLimitExceededException{} } else { sv = *v } - for key, value := range shape { - switch key { - case "LFTagOnDatabase": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTagOnDatabase, value); err != nil { - return err - } - - case "LFTagsOnColumns": - if err := awsAwsjson11_deserializeDocumentColumnLFTagsList(&sv.LFTagsOnColumns, value); err != nil { - return err - } - - case "LFTagsOnTable": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTagsOnTable, value); err != nil { - return err - } - - case "Table": - if err := awsAwsjson11_deserializeDocumentTableResource(&sv.Table, value); err != nil { - return err + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -5171,7 +8756,7 @@ func awsAwsjson11_deserializeDocumentTaggedTable(v **types.TaggedTable, value in return nil } -func awsAwsjson11_deserializeDocumentTagValueList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceShareList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5196,7 +8781,7 @@ func awsAwsjson11_deserializeDocumentTagValueList(v *[]string, value interface{} if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LFTagValue to be of type string, got %T instead", value) + return fmt.Errorf("expected RAMResourceShareArn to be of type string, got %T instead", value) } col = jtv } @@ -5207,7 +8792,7 @@ func awsAwsjson11_deserializeDocumentTagValueList(v *[]string, value interface{} return nil } -func awsAwsjson11_deserializeDocumentTrustedResourceOwners(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentRowFilter(v **types.RowFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5215,35 +8800,44 @@ func awsAwsjson11_deserializeDocumentTrustedResourceOwners(v *[]string, value in return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.RowFilter if *v == nil { - cv = []string{} + sv = &types.RowFilter{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "AllRowsWildcard": + if err := awsRestjson1_deserializeDocumentAllRowsWildcard(&sv.AllRowsWildcard, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) + case "FilterExpression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PredicateString to be of type string, got %T instead", value) + } + sv.FilterExpression = ptr.String(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsAwsjson11_deserializeOpDocumentAddLFTagsToResourceOutput(v **AddLFTagsToResourceOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentStatisticsNotReadyYetException(v **types.StatisticsNotReadyYetException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5256,18 +8850,22 @@ func awsAwsjson11_deserializeOpDocumentAddLFTagsToResourceOutput(v **AddLFTagsTo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *AddLFTagsToResourceOutput + var sv *types.StatisticsNotReadyYetException if *v == nil { - sv = &AddLFTagsToResourceOutput{} + sv = &types.StatisticsNotReadyYetException{} } else { sv = *v } for key, value := range shape { switch key { - case "Failures": - if err := awsAwsjson11_deserializeDocumentLFTagErrors(&sv.Failures, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -5279,7 +8877,7 @@ func awsAwsjson11_deserializeOpDocumentAddLFTagsToResourceOutput(v **AddLFTagsTo return nil } -func awsAwsjson11_deserializeOpDocumentBatchGrantPermissionsOutput(v **BatchGrantPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentStorageOptimizer(v **types.StorageOptimizer, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5292,20 +8890,56 @@ func awsAwsjson11_deserializeOpDocumentBatchGrantPermissionsOutput(v **BatchGran return fmt.Errorf("unexpected JSON type %v", value) } - var sv *BatchGrantPermissionsOutput + var sv *types.StorageOptimizer if *v == nil { - sv = &BatchGrantPermissionsOutput{} + sv = &types.StorageOptimizer{} } else { sv = *v } for key, value := range shape { switch key { - case "Failures": - if err := awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(&sv.Failures, value); err != nil { + case "Config": + if err := awsRestjson1_deserializeDocumentStorageOptimizerConfig(&sv.Config, value); err != nil { return err } + case "ErrorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + + case "LastRunDetails": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) + } + sv.LastRunDetails = ptr.String(jtv) + } + + case "StorageOptimizerType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OptimizerType to be of type string, got %T instead", value) + } + sv.StorageOptimizerType = types.OptimizerType(jtv) + } + + case "Warnings": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) + } + sv.Warnings = ptr.String(jtv) + } + default: _, _ = key, value @@ -5315,7 +8949,7 @@ func awsAwsjson11_deserializeOpDocumentBatchGrantPermissionsOutput(v **BatchGran return nil } -func awsAwsjson11_deserializeOpDocumentBatchRevokePermissionsOutput(v **BatchRevokePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentStorageOptimizerConfig(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5328,30 +8962,64 @@ func awsAwsjson11_deserializeOpDocumentBatchRevokePermissionsOutput(v **BatchRev return fmt.Errorf("unexpected JSON type %v", value) } - var sv *BatchRevokePermissionsOutput + var mv map[string]string if *v == nil { - sv = &BatchRevokePermissionsOutput{} + mv = map[string]string{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "Failures": - if err := awsAwsjson11_deserializeDocumentBatchPermissionsFailureList(&sv.Failures, value); err != nil { - return err + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StorageOptimizerConfigValue to be of type string, got %T instead", value) } + parsedVal = jtv + } + mv[key] = parsedVal - default: - _, _ = key, value + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentStorageOptimizerList(v *[]types.StorageOptimizer, 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.StorageOptimizer + if *v == nil { + cv = []types.StorageOptimizer{} + } else { + cv = *v + } + for _, value := range shape { + var col types.StorageOptimizer + destAddr := &col + if err := awsRestjson1_deserializeDocumentStorageOptimizer(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentCreateLFTagOutput(v **CreateLFTagOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTableLFTagsList(v *[]types.TaggedTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5359,30 +9027,33 @@ func awsAwsjson11_deserializeOpDocumentCreateLFTagOutput(v **CreateLFTagOutput, return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateLFTagOutput + var cv []types.TaggedTable if *v == nil { - sv = &CreateLFTagOutput{} + cv = []types.TaggedTable{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - default: - _, _ = key, value - + for _, value := range shape { + var col types.TaggedTable + destAddr := &col + if err := awsRestjson1_deserializeDocumentTaggedTable(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentDeleteLFTagOutput(v **DeleteLFTagOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTableObject(v **types.TableObject, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5395,15 +9066,46 @@ func awsAwsjson11_deserializeOpDocumentDeleteLFTagOutput(v **DeleteLFTagOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteLFTagOutput + var sv *types.TableObject if *v == nil { - sv = &DeleteLFTagOutput{} + sv = &types.TableObject{} } else { sv = *v } for key, value := range shape { switch key { + case "ETag": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ETagString to be of type string, got %T instead", value) + } + sv.ETag = ptr.String(jtv) + } + + case "Size": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ObjectSize to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Size = i64 + } + + case "Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected URI to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + default: _, _ = key, value @@ -5413,7 +9115,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteLFTagOutput(v **DeleteLFTagOutput, return nil } -func awsAwsjson11_deserializeOpDocumentDeregisterResourceOutput(v **DeregisterResourceOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTableObjectList(v *[]types.TableObject, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5421,30 +9123,33 @@ func awsAwsjson11_deserializeOpDocumentDeregisterResourceOutput(v **DeregisterRe return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeregisterResourceOutput + var cv []types.TableObject if *v == nil { - sv = &DeregisterResourceOutput{} + cv = []types.TableObject{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - default: - _, _ = key, value - + for _, value := range shape { + var col types.TableObject + destAddr := &col + if err := awsRestjson1_deserializeDocumentTableObject(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentDescribeResourceOutput(v **DescribeResourceOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTableResource(v **types.TableResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5457,17 +9162,44 @@ func awsAwsjson11_deserializeOpDocumentDescribeResourceOutput(v **DescribeResour return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeResourceOutput + var sv *types.TableResource if *v == nil { - sv = &DescribeResourceOutput{} + sv = &types.TableResource{} } else { sv = *v } for key, value := range shape { switch key { - case "ResourceInfo": - if err := awsAwsjson11_deserializeDocumentResourceInfo(&sv.ResourceInfo, value); err != nil { + case "CatalogId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) + } + sv.CatalogId = ptr.String(jtv) + } + + case "DatabaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "TableWildcard": + if err := awsRestjson1_deserializeDocumentTableWildcard(&sv.TableWildcard, value); err != nil { return err } @@ -5480,7 +9212,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeResourceOutput(v **DescribeResour return nil } -func awsAwsjson11_deserializeOpDocumentGetDataLakeSettingsOutput(v **GetDataLakeSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTableWildcard(v **types.TableWildcard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5493,20 +9225,15 @@ func awsAwsjson11_deserializeOpDocumentGetDataLakeSettingsOutput(v **GetDataLake return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetDataLakeSettingsOutput + var sv *types.TableWildcard if *v == nil { - sv = &GetDataLakeSettingsOutput{} + sv = &types.TableWildcard{} } else { sv = *v } for key, value := range shape { switch key { - case "DataLakeSettings": - if err := awsAwsjson11_deserializeDocumentDataLakeSettings(&sv.DataLakeSettings, value); err != nil { - return err - } - default: _, _ = key, value @@ -5516,7 +9243,7 @@ func awsAwsjson11_deserializeOpDocumentGetDataLakeSettingsOutput(v **GetDataLake return nil } -func awsAwsjson11_deserializeOpDocumentGetEffectivePermissionsForPathOutput(v **GetEffectivePermissionsForPathOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTableWithColumnsResource(v **types.TableWithColumnsResource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5529,29 +9256,52 @@ func awsAwsjson11_deserializeOpDocumentGetEffectivePermissionsForPathOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetEffectivePermissionsForPathOutput + var sv *types.TableWithColumnsResource if *v == nil { - sv = &GetEffectivePermissionsForPathOutput{} + sv = &types.TableWithColumnsResource{} } else { sv = *v } for key, value := range shape { switch key { - case "NextToken": + case "CatalogId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Token to be of type string, got %T instead", value) + return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.CatalogId = ptr.String(jtv) } - case "Permissions": - if err := awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(&sv.Permissions, value); err != nil { + case "ColumnNames": + if err := awsRestjson1_deserializeDocumentColumnNames(&sv.ColumnNames, value); err != nil { + return err + } + + case "ColumnWildcard": + if err := awsRestjson1_deserializeDocumentColumnWildcard(&sv.ColumnWildcard, value); err != nil { return err } + case "DatabaseName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.DatabaseName = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + default: _, _ = key, value @@ -5561,7 +9311,7 @@ func awsAwsjson11_deserializeOpDocumentGetEffectivePermissionsForPathOutput(v ** return nil } -func awsAwsjson11_deserializeOpDocumentGetLFTagOutput(v **GetLFTagOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTaggedDatabase(v **types.TaggedDatabase, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5574,35 +9324,22 @@ func awsAwsjson11_deserializeOpDocumentGetLFTagOutput(v **GetLFTagOutput, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetLFTagOutput + var sv *types.TaggedDatabase if *v == nil { - sv = &GetLFTagOutput{} + sv = &types.TaggedDatabase{} } else { sv = *v } for key, value := range shape { switch key { - case "CatalogId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) - } - sv.CatalogId = ptr.String(jtv) - } - - case "TagKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LFTagKey to be of type string, got %T instead", value) - } - sv.TagKey = ptr.String(jtv) + case "Database": + if err := awsRestjson1_deserializeDocumentDatabaseResource(&sv.Database, value); err != nil { + return err } - case "TagValues": - if err := awsAwsjson11_deserializeDocumentTagValueList(&sv.TagValues, value); err != nil { + case "LFTags": + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTags, value); err != nil { return err } @@ -5615,7 +9352,7 @@ func awsAwsjson11_deserializeOpDocumentGetLFTagOutput(v **GetLFTagOutput, value return nil } -func awsAwsjson11_deserializeOpDocumentGetResourceLFTagsOutput(v **GetResourceLFTagsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTaggedTable(v **types.TaggedTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5628,9 +9365,9 @@ func awsAwsjson11_deserializeOpDocumentGetResourceLFTagsOutput(v **GetResourceLF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetResourceLFTagsOutput + var sv *types.TaggedTable if *v == nil { - sv = &GetResourceLFTagsOutput{} + sv = &types.TaggedTable{} } else { sv = *v } @@ -5638,17 +9375,22 @@ func awsAwsjson11_deserializeOpDocumentGetResourceLFTagsOutput(v **GetResourceLF for key, value := range shape { switch key { case "LFTagOnDatabase": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTagOnDatabase, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTagOnDatabase, value); err != nil { return err } case "LFTagsOnColumns": - if err := awsAwsjson11_deserializeDocumentColumnLFTagsList(&sv.LFTagsOnColumns, value); err != nil { + if err := awsRestjson1_deserializeDocumentColumnLFTagsList(&sv.LFTagsOnColumns, value); err != nil { return err } case "LFTagsOnTable": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTagsOnTable, value); err != nil { + if err := awsRestjson1_deserializeDocumentLFTagsList(&sv.LFTagsOnTable, value); err != nil { + return err + } + + case "Table": + if err := awsRestjson1_deserializeDocumentTableResource(&sv.Table, value); err != nil { return err } @@ -5661,7 +9403,7 @@ func awsAwsjson11_deserializeOpDocumentGetResourceLFTagsOutput(v **GetResourceLF return nil } -func awsAwsjson11_deserializeOpDocumentGrantPermissionsOutput(v **GrantPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTagValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5669,30 +9411,35 @@ func awsAwsjson11_deserializeOpDocumentGrantPermissionsOutput(v **GrantPermissio return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GrantPermissionsOutput + var cv []string if *v == nil { - sv = &GrantPermissionsOutput{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - default: - _, _ = key, value - + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LFTagValue to be of type string, got %T instead", value) + } + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentListLFTagsOutput(v **ListLFTagsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentThrottledException(v **types.ThrottledException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5705,27 +9452,22 @@ func awsAwsjson11_deserializeOpDocumentListLFTagsOutput(v **ListLFTagsOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListLFTagsOutput + var sv *types.ThrottledException if *v == nil { - sv = &ListLFTagsOutput{} + sv = &types.ThrottledException{} } else { sv = *v } for key, value := range shape { switch key { - case "LFTags": - if err := awsAwsjson11_deserializeDocumentLFTagsList(&sv.LFTags, value); err != nil { - return err - } - - case "NextToken": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Token to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.Message = ptr.String(jtv) } default: @@ -5737,7 +9479,7 @@ func awsAwsjson11_deserializeOpDocumentListLFTagsOutput(v **ListLFTagsOutput, va return nil } -func awsAwsjson11_deserializeOpDocumentListPermissionsOutput(v **ListPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTransactionCanceledException(v **types.TransactionCanceledException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5750,27 +9492,22 @@ func awsAwsjson11_deserializeOpDocumentListPermissionsOutput(v **ListPermissions return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListPermissionsOutput + var sv *types.TransactionCanceledException if *v == nil { - sv = &ListPermissionsOutput{} + sv = &types.TransactionCanceledException{} } else { sv = *v } for key, value := range shape { switch key { - case "NextToken": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Token to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) - } - - case "PrincipalResourcePermissions": - if err := awsAwsjson11_deserializeDocumentPrincipalResourcePermissionsList(&sv.PrincipalResourcePermissions, value); err != nil { - return err + sv.Message = ptr.String(jtv) } default: @@ -5782,7 +9519,7 @@ func awsAwsjson11_deserializeOpDocumentListPermissionsOutput(v **ListPermissions return nil } -func awsAwsjson11_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTransactionCommitInProgressException(v **types.TransactionCommitInProgressException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5795,27 +9532,22 @@ func awsAwsjson11_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListResourcesOutput + var sv *types.TransactionCommitInProgressException if *v == nil { - sv = &ListResourcesOutput{} + sv = &types.TransactionCommitInProgressException{} } else { sv = *v } for key, value := range shape { switch key { - case "NextToken": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Token to be of type string, got %T instead", value) + return fmt.Errorf("expected MessageString to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) - } - - case "ResourceInfoList": - if err := awsAwsjson11_deserializeDocumentResourceInfoList(&sv.ResourceInfoList, value); err != nil { - return err + sv.Message = ptr.String(jtv) } default: @@ -5827,7 +9559,7 @@ func awsAwsjson11_deserializeOpDocumentListResourcesOutput(v **ListResourcesOutp return nil } -func awsAwsjson11_deserializeOpDocumentPutDataLakeSettingsOutput(v **PutDataLakeSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTransactionCommittedException(v **types.TransactionCommittedException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5840,15 +9572,24 @@ func awsAwsjson11_deserializeOpDocumentPutDataLakeSettingsOutput(v **PutDataLake return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutDataLakeSettingsOutput + var sv *types.TransactionCommittedException if *v == nil { - sv = &PutDataLakeSettingsOutput{} + sv = &types.TransactionCommittedException{} } 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 MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + default: _, _ = key, value @@ -5858,7 +9599,7 @@ func awsAwsjson11_deserializeOpDocumentPutDataLakeSettingsOutput(v **PutDataLake return nil } -func awsAwsjson11_deserializeOpDocumentRegisterResourceOutput(v **RegisterResourceOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTransactionDescription(v **types.TransactionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5871,49 +9612,63 @@ func awsAwsjson11_deserializeOpDocumentRegisterResourceOutput(v **RegisterResour return fmt.Errorf("unexpected JSON type %v", value) } - var sv *RegisterResourceOutput + var sv *types.TransactionDescription if *v == nil { - sv = &RegisterResourceOutput{} + sv = &types.TransactionDescription{} } else { sv = *v } for key, value := range shape { switch key { - default: - _, _ = key, value + case "TransactionEndTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TransactionEndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - } - } - *v = sv - return nil -} + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) -func awsAwsjson11_deserializeOpDocumentRemoveLFTagsFromResourceOutput(v **RemoveLFTagsFromResourceOutput, 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) - } + case "TransactionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TransactionIdString to be of type string, got %T instead", value) + } + sv.TransactionId = ptr.String(jtv) + } - var sv *RemoveLFTagsFromResourceOutput - if *v == nil { - sv = &RemoveLFTagsFromResourceOutput{} - } else { - sv = *v - } + case "TransactionStartTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.TransactionStartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - for key, value := range shape { - switch key { - case "Failures": - if err := awsAwsjson11_deserializeDocumentLFTagErrors(&sv.Failures, value); err != nil { - return err + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "TransactionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TransactionStatus to be of type string, got %T instead", value) + } + sv.TransactionStatus = types.TransactionStatus(jtv) } default: @@ -5925,7 +9680,7 @@ func awsAwsjson11_deserializeOpDocumentRemoveLFTagsFromResourceOutput(v **Remove return nil } -func awsAwsjson11_deserializeOpDocumentRevokePermissionsOutput(v **RevokePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTransactionDescriptionList(v *[]types.TransactionDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5933,30 +9688,33 @@ func awsAwsjson11_deserializeOpDocumentRevokePermissionsOutput(v **RevokePermiss return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *RevokePermissionsOutput + var cv []types.TransactionDescription if *v == nil { - sv = &RevokePermissionsOutput{} + cv = []types.TransactionDescription{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - default: - _, _ = key, value - + for _, value := range shape { + var col types.TransactionDescription + destAddr := &col + if err := awsRestjson1_deserializeDocumentTransactionDescription(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentSearchDatabasesByLFTagsOutput(v **SearchDatabasesByLFTagsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentTrustedResourceOwners(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5964,44 +9722,35 @@ func awsAwsjson11_deserializeOpDocumentSearchDatabasesByLFTagsOutput(v **SearchD return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchDatabasesByLFTagsOutput + var cv []string if *v == nil { - sv = &SearchDatabasesByLFTagsOutput{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DatabaseList": - if err := awsAwsjson11_deserializeDocumentDatabaseLFTagsList(&sv.DatabaseList, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Token to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CatalogIdString to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentSearchTablesByLFTagsOutput(v **SearchTablesByLFTagsOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentWorkUnitRange(v **types.WorkUnitRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6014,27 +9763,48 @@ func awsAwsjson11_deserializeOpDocumentSearchTablesByLFTagsOutput(v **SearchTabl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchTablesByLFTagsOutput + var sv *types.WorkUnitRange if *v == nil { - sv = &SearchTablesByLFTagsOutput{} + sv = &types.WorkUnitRange{} } else { sv = *v } for key, value := range shape { switch key { - case "NextToken": + case "WorkUnitIdMax": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Token to be of type string, got %T instead", value) + return fmt.Errorf("expected WorkUnitIdLong to be json.Number, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WorkUnitIdMax = i64 } - case "TableList": - if err := awsAwsjson11_deserializeDocumentTableLFTagsList(&sv.TableList, value); err != nil { - return err + case "WorkUnitIdMin": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected WorkUnitIdLong to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.WorkUnitIdMin = i64 + } + + case "WorkUnitToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkUnitTokenString to be of type string, got %T instead", value) + } + sv.WorkUnitToken = ptr.String(jtv) } default: @@ -6046,7 +9816,7 @@ func awsAwsjson11_deserializeOpDocumentSearchTablesByLFTagsOutput(v **SearchTabl return nil } -func awsAwsjson11_deserializeOpDocumentUpdateLFTagOutput(v **UpdateLFTagOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentWorkUnitRangeList(v *[]types.WorkUnitRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6054,30 +9824,33 @@ func awsAwsjson11_deserializeOpDocumentUpdateLFTagOutput(v **UpdateLFTagOutput, return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateLFTagOutput + var cv []types.WorkUnitRange if *v == nil { - sv = &UpdateLFTagOutput{} + cv = []types.WorkUnitRange{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - default: - _, _ = key, value - + for _, value := range shape { + var col types.WorkUnitRange + destAddr := &col + if err := awsRestjson1_deserializeDocumentWorkUnitRange(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson11_deserializeOpDocumentUpdateResourceOutput(v **UpdateResourceOutput, value interface{}) error { +func awsRestjson1_deserializeDocumentWorkUnitsNotReadyYetException(v **types.WorkUnitsNotReadyYetException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6090,15 +9863,24 @@ func awsAwsjson11_deserializeOpDocumentUpdateResourceOutput(v **UpdateResourceOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateResourceOutput + var sv *types.WorkUnitsNotReadyYetException if *v == nil { - sv = &UpdateResourceOutput{} + sv = &types.WorkUnitsNotReadyYetException{} } 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 MessageString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + default: _, _ = key, value diff --git a/service/lakeformation/doc.go b/service/lakeformation/doc.go index 9addf1418f1..66b60b20b89 100644 --- a/service/lakeformation/doc.go +++ b/service/lakeformation/doc.go @@ -3,6 +3,5 @@ // Package lakeformation provides the API client, operations, and parameter types // for AWS Lake Formation. // -// AWS Lake Formation Defines the public endpoint for the AWS Lake Formation -// service. +// Lake Formation Defines the public endpoint for the Lake Formation service. package lakeformation diff --git a/service/lakeformation/generated.json b/service/lakeformation/generated.json index 4dfdcfbe265..e50d9ccc141 100644 --- a/service/lakeformation/generated.json +++ b/service/lakeformation/generated.json @@ -10,26 +10,45 @@ "api_op_AddLFTagsToResource.go", "api_op_BatchGrantPermissions.go", "api_op_BatchRevokePermissions.go", + "api_op_CancelTransaction.go", + "api_op_CommitTransaction.go", + "api_op_CreateDataCellsFilter.go", "api_op_CreateLFTag.go", + "api_op_DeleteDataCellsFilter.go", "api_op_DeleteLFTag.go", + "api_op_DeleteObjectsOnCancel.go", "api_op_DeregisterResource.go", "api_op_DescribeResource.go", + "api_op_DescribeTransaction.go", + "api_op_ExtendTransaction.go", "api_op_GetDataLakeSettings.go", "api_op_GetEffectivePermissionsForPath.go", "api_op_GetLFTag.go", + "api_op_GetQueryState.go", + "api_op_GetQueryStatistics.go", "api_op_GetResourceLFTags.go", + "api_op_GetTableObjects.go", + "api_op_GetWorkUnitResults.go", + "api_op_GetWorkUnits.go", "api_op_GrantPermissions.go", + "api_op_ListDataCellsFilter.go", "api_op_ListLFTags.go", "api_op_ListPermissions.go", "api_op_ListResources.go", + "api_op_ListTableStorageOptimizers.go", + "api_op_ListTransactions.go", "api_op_PutDataLakeSettings.go", "api_op_RegisterResource.go", "api_op_RemoveLFTagsFromResource.go", "api_op_RevokePermissions.go", "api_op_SearchDatabasesByLFTags.go", "api_op_SearchTablesByLFTags.go", + "api_op_StartQueryPlanning.go", + "api_op_StartTransaction.go", "api_op_UpdateLFTag.go", "api_op_UpdateResource.go", + "api_op_UpdateTableObjects.go", + "api_op_UpdateTableStorageOptimizer.go", "deserializers.go", "doc.go", "endpoints.go", diff --git a/service/lakeformation/serializers.go b/service/lakeformation/serializers.go index ae762ab26b7..9d66acce41b 100644 --- a/service/lakeformation/serializers.go +++ b/service/lakeformation/serializers.go @@ -11,18 +11,18 @@ import ( "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" - "path" ) -type awsAwsjson11_serializeOpAddLFTagsToResource struct { +type awsRestjson1_serializeOpAddLFTagsToResource struct { } -func (*awsAwsjson11_serializeOpAddLFTagsToResource) ID() string { +func (*awsRestjson1_serializeOpAddLFTagsToResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpAddLFTagsToResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpAddLFTagsToResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -36,25 +36,19 @@ func (m *awsAwsjson11_serializeOpAddLFTagsToResource) HandleSerialize(ctx contex 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) + opPath, opQuery := httpbinding.SplitURI("/AddLFTagsToResource") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.AddLFTagsToResource") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentAddLFTagsToResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentAddLFTagsToResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -62,22 +56,55 @@ func (m *awsAwsjson11_serializeOpAddLFTagsToResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsAddLFTagsToResourceInput(v *AddLFTagsToResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentAddLFTagsToResourceInput(v *AddLFTagsToResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.LFTags != nil { + ok := object.Key("LFTags") + if err := awsRestjson1_serializeDocumentLFTagsList(v.LFTags, ok); err != nil { + return err + } + } + + if v.Resource != nil { + ok := object.Key("Resource") + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { + return err + } + } + + return nil +} -type awsAwsjson11_serializeOpBatchGrantPermissions struct { +type awsRestjson1_serializeOpBatchGrantPermissions struct { } -func (*awsAwsjson11_serializeOpBatchGrantPermissions) ID() string { +func (*awsRestjson1_serializeOpBatchGrantPermissions) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpBatchGrantPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpBatchGrantPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -91,25 +118,19 @@ func (m *awsAwsjson11_serializeOpBatchGrantPermissions) HandleSerialize(ctx cont 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) + opPath, opQuery := httpbinding.SplitURI("/BatchGrantPermissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.BatchGrantPermissions") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentBatchGrantPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentBatchGrantPermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -117,22 +138,48 @@ func (m *awsAwsjson11_serializeOpBatchGrantPermissions) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsBatchGrantPermissionsInput(v *BatchGrantPermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchGrantPermissionsInput(v *BatchGrantPermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Entries != nil { + ok := object.Key("Entries") + if err := awsRestjson1_serializeDocumentBatchPermissionsRequestEntryList(v.Entries, ok); err != nil { + return err + } + } + + return nil +} -type awsAwsjson11_serializeOpBatchRevokePermissions struct { +type awsRestjson1_serializeOpBatchRevokePermissions struct { } -func (*awsAwsjson11_serializeOpBatchRevokePermissions) ID() string { +func (*awsRestjson1_serializeOpBatchRevokePermissions) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpBatchRevokePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpBatchRevokePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -146,25 +193,19 @@ func (m *awsAwsjson11_serializeOpBatchRevokePermissions) HandleSerialize(ctx con 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) + opPath, opQuery := httpbinding.SplitURI("/BatchRevokePermissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.BatchRevokePermissions") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentBatchRevokePermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentBatchRevokePermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -172,22 +213,48 @@ func (m *awsAwsjson11_serializeOpBatchRevokePermissions) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsBatchRevokePermissionsInput(v *BatchRevokePermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentBatchRevokePermissionsInput(v *BatchRevokePermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Entries != nil { + ok := object.Key("Entries") + if err := awsRestjson1_serializeDocumentBatchPermissionsRequestEntryList(v.Entries, ok); err != nil { + return err + } + } + + return nil +} -type awsAwsjson11_serializeOpCreateLFTag struct { +type awsRestjson1_serializeOpCancelTransaction struct { } -func (*awsAwsjson11_serializeOpCreateLFTag) ID() string { +func (*awsRestjson1_serializeOpCancelTransaction) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpCreateLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCancelTransaction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -195,31 +262,25 @@ func (m *awsAwsjson11_serializeOpCreateLFTag) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*CreateLFTagInput) + input, ok := in.Parameters.(*CancelTransactionInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/CancelTransaction") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.CreateLFTag") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentCreateLFTagInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentCancelTransactionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -227,22 +288,41 @@ func (m *awsAwsjson11_serializeOpCreateLFTag) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsCancelTransactionInput(v *CancelTransactionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCancelTransactionInput(v *CancelTransactionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + + return nil +} -type awsAwsjson11_serializeOpDeleteLFTag struct { +type awsRestjson1_serializeOpCommitTransaction struct { } -func (*awsAwsjson11_serializeOpDeleteLFTag) ID() string { +func (*awsRestjson1_serializeOpCommitTransaction) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDeleteLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCommitTransaction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -250,31 +330,25 @@ func (m *awsAwsjson11_serializeOpDeleteLFTag) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteLFTagInput) + input, ok := in.Parameters.(*CommitTransactionInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/CommitTransaction") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.DeleteLFTag") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeleteLFTagInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentCommitTransactionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -282,22 +356,41 @@ func (m *awsAwsjson11_serializeOpDeleteLFTag) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsCommitTransactionInput(v *CommitTransactionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCommitTransactionInput(v *CommitTransactionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + + return nil +} -type awsAwsjson11_serializeOpDeregisterResource struct { +type awsRestjson1_serializeOpCreateDataCellsFilter struct { } -func (*awsAwsjson11_serializeOpDeregisterResource) ID() string { +func (*awsRestjson1_serializeOpCreateDataCellsFilter) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDeregisterResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateDataCellsFilter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -305,31 +398,25 @@ func (m *awsAwsjson11_serializeOpDeregisterResource) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeregisterResourceInput) + input, ok := in.Parameters.(*CreateDataCellsFilterInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/CreateDataCellsFilter") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.DeregisterResource") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDeregisterResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentCreateDataCellsFilterInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -337,22 +424,43 @@ func (m *awsAwsjson11_serializeOpDeregisterResource) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsCreateDataCellsFilterInput(v *CreateDataCellsFilterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateDataCellsFilterInput(v *CreateDataCellsFilterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TableData != nil { + ok := object.Key("TableData") + if err := awsRestjson1_serializeDocumentDataCellsFilter(v.TableData, ok); err != nil { + return err + } + } + + return nil +} -type awsAwsjson11_serializeOpDescribeResource struct { +type awsRestjson1_serializeOpCreateLFTag struct { } -func (*awsAwsjson11_serializeOpDescribeResource) ID() string { +func (*awsRestjson1_serializeOpCreateLFTag) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpDescribeResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -360,31 +468,25 @@ func (m *awsAwsjson11_serializeOpDescribeResource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeResourceInput) + input, ok := in.Parameters.(*CreateLFTagInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/CreateLFTag") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.DescribeResource") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentDescribeResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentCreateLFTagInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -392,22 +494,53 @@ func (m *awsAwsjson11_serializeOpDescribeResource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsCreateLFTagInput(v *CreateLFTagInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateLFTagInput(v *CreateLFTagInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) + } + + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentTagValueList(v.TagValues, ok); err != nil { + return err + } + } + + return nil +} -type awsAwsjson11_serializeOpGetDataLakeSettings struct { +type awsRestjson1_serializeOpDeleteDataCellsFilter struct { } -func (*awsAwsjson11_serializeOpGetDataLakeSettings) ID() string { +func (*awsRestjson1_serializeOpDeleteDataCellsFilter) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpGetDataLakeSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteDataCellsFilter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -415,31 +548,25 @@ func (m *awsAwsjson11_serializeOpGetDataLakeSettings) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetDataLakeSettingsInput) + input, ok := in.Parameters.(*DeleteDataCellsFilterInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/DeleteDataCellsFilter") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.GetDataLakeSettings") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetDataLakeSettingsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDeleteDataCellsFilterInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -447,22 +574,56 @@ func (m *awsAwsjson11_serializeOpGetDataLakeSettings) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsDeleteDataCellsFilterInput(v *DeleteDataCellsFilterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeleteDataCellsFilterInput(v *DeleteDataCellsFilterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.TableCatalogId != nil { + ok := object.Key("TableCatalogId") + ok.String(*v.TableCatalogId) + } + + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) + } + + return nil +} -type awsAwsjson11_serializeOpGetEffectivePermissionsForPath struct { +type awsRestjson1_serializeOpDeleteLFTag struct { } -func (*awsAwsjson11_serializeOpGetEffectivePermissionsForPath) ID() string { +func (*awsRestjson1_serializeOpDeleteLFTag) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpGetEffectivePermissionsForPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -470,31 +631,25 @@ func (m *awsAwsjson11_serializeOpGetEffectivePermissionsForPath) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetEffectivePermissionsForPathInput) + input, ok := in.Parameters.(*DeleteLFTagInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/DeleteLFTag") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.GetEffectivePermissionsForPath") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetEffectivePermissionsForPathInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDeleteLFTagInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -502,22 +657,46 @@ func (m *awsAwsjson11_serializeOpGetEffectivePermissionsForPath) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsDeleteLFTagInput(v *DeleteLFTagInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeleteLFTagInput(v *DeleteLFTagInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) + } + + return nil +} -type awsAwsjson11_serializeOpGetLFTag struct { +type awsRestjson1_serializeOpDeleteObjectsOnCancel struct { } -func (*awsAwsjson11_serializeOpGetLFTag) ID() string { +func (*awsRestjson1_serializeOpDeleteObjectsOnCancel) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpGetLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteObjectsOnCancel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -525,31 +704,25 @@ func (m *awsAwsjson11_serializeOpGetLFTag) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetLFTagInput) + input, ok := in.Parameters.(*DeleteObjectsOnCancelInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/DeleteObjectsOnCancel") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.GetLFTag") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetLFTagInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDeleteObjectsOnCancelInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -557,77 +730,63 @@ func (m *awsAwsjson11_serializeOpGetLFTag) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsDeleteObjectsOnCancelInput(v *DeleteObjectsOnCancelInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } -type awsAwsjson11_serializeOpGetResourceLFTags struct { + return nil } -func (*awsAwsjson11_serializeOpGetResourceLFTags) ID() string { - return "OperationSerializer" -} +func awsRestjson1_serializeOpDocumentDeleteObjectsOnCancelInput(v *DeleteObjectsOnCancelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() -func (m *awsAwsjson11_serializeOpGetResourceLFTags) 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)} + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) } - input, ok := in.Parameters.(*GetResourceLFTagsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) } - 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 += "/" + if v.Objects != nil { + ok := object.Key("Objects") + if err := awsRestjson1_serializeDocumentVirtualObjectList(v.Objects, ok); err != nil { + return err } } - 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("AWSLakeFormation.GetResourceLFTags") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGetResourceLFTagsInput(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 v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) } - in.Request = request - return next.HandleSerialize(ctx, in) + return nil } -type awsAwsjson11_serializeOpGrantPermissions struct { +type awsRestjson1_serializeOpDeregisterResource struct { } -func (*awsAwsjson11_serializeOpGrantPermissions) ID() string { +func (*awsRestjson1_serializeOpDeregisterResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpGrantPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeregisterResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -635,31 +794,25 @@ func (m *awsAwsjson11_serializeOpGrantPermissions) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GrantPermissionsInput) + input, ok := in.Parameters.(*DeregisterResourceInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/DeregisterResource") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.GrantPermissions") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentGrantPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDeregisterResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -667,22 +820,41 @@ func (m *awsAwsjson11_serializeOpGrantPermissions) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsDeregisterResourceInput(v *DeregisterResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDeregisterResourceInput(v *DeregisterResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } -type awsAwsjson11_serializeOpListLFTags struct { + return nil +} + +type awsRestjson1_serializeOpDescribeResource struct { } -func (*awsAwsjson11_serializeOpListLFTags) ID() string { +func (*awsRestjson1_serializeOpDescribeResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListLFTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -690,31 +862,25 @@ func (m *awsAwsjson11_serializeOpListLFTags) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListLFTagsInput) + input, ok := in.Parameters.(*DescribeResourceInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/DescribeResource") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.ListLFTags") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListLFTagsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDescribeResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -722,22 +888,41 @@ func (m *awsAwsjson11_serializeOpListLFTags) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsDescribeResourceInput(v *DescribeResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDescribeResourceInput(v *DescribeResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} -type awsAwsjson11_serializeOpListPermissions struct { +type awsRestjson1_serializeOpDescribeTransaction struct { } -func (*awsAwsjson11_serializeOpListPermissions) ID() string { +func (*awsRestjson1_serializeOpDescribeTransaction) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeTransaction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -745,31 +930,25 @@ func (m *awsAwsjson11_serializeOpListPermissions) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListPermissionsInput) + input, ok := in.Parameters.(*DescribeTransactionInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/DescribeTransaction") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.ListPermissions") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentDescribeTransactionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -777,22 +956,41 @@ func (m *awsAwsjson11_serializeOpListPermissions) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsDescribeTransactionInput(v *DescribeTransactionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentDescribeTransactionInput(v *DescribeTransactionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + + return nil +} -type awsAwsjson11_serializeOpListResources struct { +type awsRestjson1_serializeOpExtendTransaction struct { } -func (*awsAwsjson11_serializeOpListResources) ID() string { +func (*awsRestjson1_serializeOpExtendTransaction) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListResources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpExtendTransaction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -800,31 +998,25 @@ func (m *awsAwsjson11_serializeOpListResources) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListResourcesInput) + input, ok := in.Parameters.(*ExtendTransactionInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/ExtendTransaction") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.ListResources") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListResourcesInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentExtendTransactionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -832,22 +1024,41 @@ func (m *awsAwsjson11_serializeOpListResources) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsExtendTransactionInput(v *ExtendTransactionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentExtendTransactionInput(v *ExtendTransactionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + + return nil +} -type awsAwsjson11_serializeOpPutDataLakeSettings struct { +type awsRestjson1_serializeOpGetDataLakeSettings struct { } -func (*awsAwsjson11_serializeOpPutDataLakeSettings) ID() string { +func (*awsRestjson1_serializeOpGetDataLakeSettings) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpPutDataLakeSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetDataLakeSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -855,31 +1066,25 @@ func (m *awsAwsjson11_serializeOpPutDataLakeSettings) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*PutDataLakeSettingsInput) + input, ok := in.Parameters.(*GetDataLakeSettingsInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetDataLakeSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.PutDataLakeSettings") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentPutDataLakeSettingsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetDataLakeSettingsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -887,22 +1092,41 @@ func (m *awsAwsjson11_serializeOpPutDataLakeSettings) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetDataLakeSettingsInput(v *GetDataLakeSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetDataLakeSettingsInput(v *GetDataLakeSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + return nil +} -type awsAwsjson11_serializeOpRegisterResource struct { +type awsRestjson1_serializeOpGetEffectivePermissionsForPath struct { } -func (*awsAwsjson11_serializeOpRegisterResource) ID() string { +func (*awsRestjson1_serializeOpGetEffectivePermissionsForPath) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpRegisterResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetEffectivePermissionsForPath) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -910,31 +1134,25 @@ func (m *awsAwsjson11_serializeOpRegisterResource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RegisterResourceInput) + input, ok := in.Parameters.(*GetEffectivePermissionsForPathInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetEffectivePermissionsForPath") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.RegisterResource") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentRegisterResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetEffectivePermissionsForPathInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -942,22 +1160,56 @@ func (m *awsAwsjson11_serializeOpRegisterResource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetEffectivePermissionsForPathInput(v *GetEffectivePermissionsForPathInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} -type awsAwsjson11_serializeOpRemoveLFTagsFromResource struct { +func awsRestjson1_serializeOpDocumentGetEffectivePermissionsForPathInput(v *GetEffectivePermissionsForPathInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + 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.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil } -func (*awsAwsjson11_serializeOpRemoveLFTagsFromResource) ID() string { +type awsRestjson1_serializeOpGetLFTag struct { +} + +func (*awsRestjson1_serializeOpGetLFTag) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpRemoveLFTagsFromResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -965,31 +1217,25 @@ func (m *awsAwsjson11_serializeOpRemoveLFTagsFromResource) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RemoveLFTagsFromResourceInput) + input, ok := in.Parameters.(*GetLFTagInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetLFTag") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.RemoveLFTagsFromResource") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentRemoveLFTagsFromResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetLFTagInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -997,22 +1243,46 @@ func (m *awsAwsjson11_serializeOpRemoveLFTagsFromResource) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetLFTagInput(v *GetLFTagInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetLFTagInput(v *GetLFTagInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) + } + + return nil +} -type awsAwsjson11_serializeOpRevokePermissions struct { +type awsRestjson1_serializeOpGetQueryState struct { } -func (*awsAwsjson11_serializeOpRevokePermissions) ID() string { +func (*awsRestjson1_serializeOpGetQueryState) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpRevokePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetQueryState) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1020,31 +1290,25 @@ func (m *awsAwsjson11_serializeOpRevokePermissions) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RevokePermissionsInput) + input, ok := in.Parameters.(*GetQueryStateInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetQueryState") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.RevokePermissions") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentRevokePermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetQueryStateInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1052,22 +1316,41 @@ func (m *awsAwsjson11_serializeOpRevokePermissions) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetQueryStateInput(v *GetQueryStateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetQueryStateInput(v *GetQueryStateInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.QueryId != nil { + ok := object.Key("QueryId") + ok.String(*v.QueryId) + } + + return nil +} -type awsAwsjson11_serializeOpSearchDatabasesByLFTags struct { +type awsRestjson1_serializeOpGetQueryStatistics struct { } -func (*awsAwsjson11_serializeOpSearchDatabasesByLFTags) ID() string { +func (*awsRestjson1_serializeOpGetQueryStatistics) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpSearchDatabasesByLFTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetQueryStatistics) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1075,31 +1358,25 @@ func (m *awsAwsjson11_serializeOpSearchDatabasesByLFTags) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchDatabasesByLFTagsInput) + input, ok := in.Parameters.(*GetQueryStatisticsInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetQueryStatistics") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.SearchDatabasesByLFTags") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchDatabasesByLFTagsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetQueryStatisticsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1107,22 +1384,41 @@ func (m *awsAwsjson11_serializeOpSearchDatabasesByLFTags) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetQueryStatisticsInput(v *GetQueryStatisticsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetQueryStatisticsInput(v *GetQueryStatisticsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.QueryId != nil { + ok := object.Key("QueryId") + ok.String(*v.QueryId) + } + + return nil +} -type awsAwsjson11_serializeOpSearchTablesByLFTags struct { +type awsRestjson1_serializeOpGetResourceLFTags struct { } -func (*awsAwsjson11_serializeOpSearchTablesByLFTags) ID() string { +func (*awsRestjson1_serializeOpGetResourceLFTags) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpSearchTablesByLFTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetResourceLFTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1130,31 +1426,25 @@ func (m *awsAwsjson11_serializeOpSearchTablesByLFTags) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchTablesByLFTagsInput) + input, ok := in.Parameters.(*GetResourceLFTagsInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetResourceLFTags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.SearchTablesByLFTags") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentSearchTablesByLFTagsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetResourceLFTagsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1162,22 +1452,53 @@ func (m *awsAwsjson11_serializeOpSearchTablesByLFTags) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetResourceLFTagsInput(v *GetResourceLFTagsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetResourceLFTagsInput(v *GetResourceLFTagsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Resource != nil { + ok := object.Key("Resource") + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { + return err + } + } + + if v.ShowAssignedLFTags != nil { + ok := object.Key("ShowAssignedLFTags") + ok.Boolean(*v.ShowAssignedLFTags) + } + + return nil +} -type awsAwsjson11_serializeOpUpdateLFTag struct { +type awsRestjson1_serializeOpGetTableObjects struct { } -func (*awsAwsjson11_serializeOpUpdateLFTag) ID() string { +func (*awsRestjson1_serializeOpGetTableObjects) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpUpdateLFTag) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetTableObjects) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1185,31 +1506,25 @@ func (m *awsAwsjson11_serializeOpUpdateLFTag) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateLFTagInput) + input, ok := in.Parameters.(*GetTableObjectsInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetTableObjects") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.UpdateLFTag") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateLFTagInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetTableObjectsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1217,22 +1532,76 @@ func (m *awsAwsjson11_serializeOpUpdateLFTag) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsGetTableObjectsInput(v *GetTableObjectsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetTableObjectsInput(v *GetTableObjectsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) + } + + 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.PartitionPredicate != nil { + ok := object.Key("PartitionPredicate") + ok.String(*v.PartitionPredicate) + } + + if v.QueryAsOfTime != nil { + ok := object.Key("QueryAsOfTime") + ok.Double(smithytime.FormatEpochSeconds(*v.QueryAsOfTime)) + } + + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) + } + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) + } + + return nil +} -type awsAwsjson11_serializeOpUpdateResource struct { +type awsRestjson1_serializeOpGetWorkUnitResults struct { } -func (*awsAwsjson11_serializeOpUpdateResource) ID() string { +func (*awsRestjson1_serializeOpGetWorkUnitResults) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpUpdateResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetWorkUnitResults) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1240,31 +1609,25 @@ func (m *awsAwsjson11_serializeOpUpdateResource) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateResourceInput) + input, ok := in.Parameters.(*GetWorkUnitResultsInput) _ = 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) + opPath, opQuery := httpbinding.SplitURI("/GetWorkUnitResults") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, 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("AWSLakeFormation.UpdateResource") + + restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentUpdateResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentGetWorkUnitResultsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1272,46 +1635,210 @@ func (m *awsAwsjson11_serializeOpUpdateResource) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } -func awsAwsjson11_serializeDocumentBatchPermissionsRequestEntry(v *types.BatchPermissionsRequestEntry, value smithyjson.Value) error { +func awsRestjson1_serializeOpHttpBindingsGetWorkUnitResultsInput(v *GetWorkUnitResultsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetWorkUnitResultsInput(v *GetWorkUnitResultsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Id != nil { - ok := object.Key("Id") - ok.String(*v.Id) + if v.QueryId != nil { + ok := object.Key("QueryId") + ok.String(*v.QueryId) + } + + { + ok := object.Key("WorkUnitId") + ok.Long(v.WorkUnitId) + } + + if v.WorkUnitToken != nil { + ok := object.Key("WorkUnitToken") + ok.String(*v.WorkUnitToken) + } + + return nil +} + +type awsRestjson1_serializeOpGetWorkUnits struct { +} + +func (*awsRestjson1_serializeOpGetWorkUnits) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetWorkUnits) 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.(*GetWorkUnitsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/GetWorkUnits") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGetWorkUnitsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetWorkUnitsInput(v *GetWorkUnitsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetWorkUnitsInput(v *GetWorkUnitsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if v.PageSize != nil { + ok := object.Key("PageSize") + ok.Integer(*v.PageSize) + } + + if v.QueryId != nil { + ok := object.Key("QueryId") + ok.String(*v.QueryId) + } + + return nil +} + +type awsRestjson1_serializeOpGrantPermissions struct { +} + +func (*awsRestjson1_serializeOpGrantPermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGrantPermissions) 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.(*GrantPermissionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/GrantPermissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGrantPermissionsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGrantPermissionsInput(v *GrantPermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGrantPermissionsInput(v *GrantPermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) } if v.Permissions != nil { ok := object.Key("Permissions") - if err := awsAwsjson11_serializeDocumentPermissionList(v.Permissions, ok); err != nil { + if err := awsRestjson1_serializeDocumentPermissionList(v.Permissions, ok); err != nil { return err } } if v.PermissionsWithGrantOption != nil { ok := object.Key("PermissionsWithGrantOption") - if err := awsAwsjson11_serializeDocumentPermissionList(v.PermissionsWithGrantOption, ok); err != nil { + if err := awsRestjson1_serializeDocumentPermissionList(v.PermissionsWithGrantOption, ok); err != nil { return err } } if v.Principal != nil { ok := object.Key("Principal") - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { + if err := awsRestjson1_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { return err } } if v.Resource != nil { ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { return err } } @@ -1319,129 +1846,1388 @@ func awsAwsjson11_serializeDocumentBatchPermissionsRequestEntry(v *types.BatchPe return nil } -func awsAwsjson11_serializeDocumentBatchPermissionsRequestEntryList(v []types.BatchPermissionsRequestEntry, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +type awsRestjson1_serializeOpListDataCellsFilter struct { +} - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentBatchPermissionsRequestEntry(&v[i], av); err != nil { - return err - } +func (*awsRestjson1_serializeOpListDataCellsFilter) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListDataCellsFilter) 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.(*ListDataCellsFilterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListDataCellsFilter") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListDataCellsFilterInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListDataCellsFilterInput(v *ListDataCellsFilterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } + return nil } -func awsAwsjson11_serializeDocumentCatalogResource(v *types.CatalogResource, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentListDataCellsFilterInput(v *ListDataCellsFilterInput, value smithyjson.Value) error { object := value.Object() defer object.Close() + 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.Table != nil { + ok := object.Key("Table") + if err := awsRestjson1_serializeDocumentTableResource(v.Table, ok); err != nil { + return err + } + } + return nil } -func awsAwsjson11_serializeDocumentColumnNames(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +type awsRestjson1_serializeOpListLFTags struct { +} - for i := range v { - av := array.Value() - av.String(v[i]) +func (*awsRestjson1_serializeOpListLFTags) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListLFTags) 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.(*ListLFTagsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListLFTags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListLFTagsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListLFTagsInput(v *ListLFTagsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + return nil } -func awsAwsjson11_serializeDocumentColumnWildcard(v *types.ColumnWildcard, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentListLFTagsInput(v *ListLFTagsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ExcludedColumnNames != nil { - ok := object.Key("ExcludedColumnNames") - if err := awsAwsjson11_serializeDocumentColumnNames(v.ExcludedColumnNames, ok); err != nil { - return err - } + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + 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 len(v.ResourceShareType) > 0 { + ok := object.Key("ResourceShareType") + ok.String(string(v.ResourceShareType)) + } + + return nil +} + +type awsRestjson1_serializeOpListPermissions struct { +} + +func (*awsRestjson1_serializeOpListPermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListPermissions) 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.(*ListPermissionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListPermissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListPermissionsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListPermissionsInput(v *ListPermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListPermissionsInput(v *ListPermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.IncludeRelated != nil { + ok := object.Key("IncludeRelated") + ok.String(*v.IncludeRelated) + } + + 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.Principal != nil { + ok := object.Key("Principal") + if err := awsRestjson1_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { + return err + } + } + + if v.Resource != nil { + ok := object.Key("Resource") + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { + return err + } + } + + if len(v.ResourceType) > 0 { + ok := object.Key("ResourceType") + ok.String(string(v.ResourceType)) + } + + return nil +} + +type awsRestjson1_serializeOpListResources struct { +} + +func (*awsRestjson1_serializeOpListResources) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListResources) 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.(*ListResourcesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListResources") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListResourcesInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListResourcesInput(v *ListResourcesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListResourcesInput(v *ListResourcesInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FilterConditionList != nil { + ok := object.Key("FilterConditionList") + if err := awsRestjson1_serializeDocumentFilterConditionList(v.FilterConditionList, 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 +} + +type awsRestjson1_serializeOpListTableStorageOptimizers struct { +} + +func (*awsRestjson1_serializeOpListTableStorageOptimizers) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTableStorageOptimizers) 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.(*ListTableStorageOptimizersInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListTableStorageOptimizers") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListTableStorageOptimizersInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTableStorageOptimizersInput(v *ListTableStorageOptimizersInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListTableStorageOptimizersInput(v *ListTableStorageOptimizersInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) + } + + 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 len(v.StorageOptimizerType) > 0 { + ok := object.Key("StorageOptimizerType") + ok.String(string(v.StorageOptimizerType)) + } + + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) + } + + return nil +} + +type awsRestjson1_serializeOpListTransactions struct { +} + +func (*awsRestjson1_serializeOpListTransactions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTransactions) 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.(*ListTransactionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/ListTransactions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListTransactionsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTransactionsInput(v *ListTransactionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListTransactionsInput(v *ListTransactionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + 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 len(v.StatusFilter) > 0 { + ok := object.Key("StatusFilter") + ok.String(string(v.StatusFilter)) + } + + return nil +} + +type awsRestjson1_serializeOpPutDataLakeSettings struct { +} + +func (*awsRestjson1_serializeOpPutDataLakeSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutDataLakeSettings) 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.(*PutDataLakeSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/PutDataLakeSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentPutDataLakeSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutDataLakeSettingsInput(v *PutDataLakeSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutDataLakeSettingsInput(v *PutDataLakeSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.DataLakeSettings != nil { + ok := object.Key("DataLakeSettings") + if err := awsRestjson1_serializeDocumentDataLakeSettings(v.DataLakeSettings, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpRegisterResource struct { +} + +func (*awsRestjson1_serializeOpRegisterResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpRegisterResource) 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.(*RegisterResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/RegisterResource") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentRegisterResourceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsRegisterResourceInput(v *RegisterResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentRegisterResourceInput(v *RegisterResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.UseServiceLinkedRole != nil { + ok := object.Key("UseServiceLinkedRole") + ok.Boolean(*v.UseServiceLinkedRole) + } + + return nil +} + +type awsRestjson1_serializeOpRemoveLFTagsFromResource struct { +} + +func (*awsRestjson1_serializeOpRemoveLFTagsFromResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpRemoveLFTagsFromResource) 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.(*RemoveLFTagsFromResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/RemoveLFTagsFromResource") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentRemoveLFTagsFromResourceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsRemoveLFTagsFromResourceInput(v *RemoveLFTagsFromResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentRemoveLFTagsFromResourceInput(v *RemoveLFTagsFromResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.LFTags != nil { + ok := object.Key("LFTags") + if err := awsRestjson1_serializeDocumentLFTagsList(v.LFTags, ok); err != nil { + return err + } + } + + if v.Resource != nil { + ok := object.Key("Resource") + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpRevokePermissions struct { +} + +func (*awsRestjson1_serializeOpRevokePermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpRevokePermissions) 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.(*RevokePermissionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/RevokePermissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentRevokePermissionsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsRevokePermissionsInput(v *RevokePermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentRevokePermissionsInput(v *RevokePermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Permissions != nil { + ok := object.Key("Permissions") + if err := awsRestjson1_serializeDocumentPermissionList(v.Permissions, ok); err != nil { + return err + } + } + + if v.PermissionsWithGrantOption != nil { + ok := object.Key("PermissionsWithGrantOption") + if err := awsRestjson1_serializeDocumentPermissionList(v.PermissionsWithGrantOption, ok); err != nil { + return err + } + } + + if v.Principal != nil { + ok := object.Key("Principal") + if err := awsRestjson1_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { + return err + } + } + + if v.Resource != nil { + ok := object.Key("Resource") + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpSearchDatabasesByLFTags struct { +} + +func (*awsRestjson1_serializeOpSearchDatabasesByLFTags) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpSearchDatabasesByLFTags) 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.(*SearchDatabasesByLFTagsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/SearchDatabasesByLFTags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentSearchDatabasesByLFTagsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsSearchDatabasesByLFTagsInput(v *SearchDatabasesByLFTagsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentSearchDatabasesByLFTagsInput(v *SearchDatabasesByLFTagsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Expression != nil { + ok := object.Key("Expression") + if err := awsRestjson1_serializeDocumentExpression(v.Expression, 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 +} + +type awsRestjson1_serializeOpSearchTablesByLFTags struct { +} + +func (*awsRestjson1_serializeOpSearchTablesByLFTags) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpSearchTablesByLFTags) 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.(*SearchTablesByLFTagsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/SearchTablesByLFTags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentSearchTablesByLFTagsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsSearchTablesByLFTagsInput(v *SearchTablesByLFTagsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentSearchTablesByLFTagsInput(v *SearchTablesByLFTagsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Expression != nil { + ok := object.Key("Expression") + if err := awsRestjson1_serializeDocumentExpression(v.Expression, 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 +} + +type awsRestjson1_serializeOpStartQueryPlanning struct { +} + +func (*awsRestjson1_serializeOpStartQueryPlanning) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStartQueryPlanning) 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.(*StartQueryPlanningInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/StartQueryPlanning") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentStartQueryPlanningInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStartQueryPlanningInput(v *StartQueryPlanningInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentStartQueryPlanningInput(v *StartQueryPlanningInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.QueryPlanningContext != nil { + ok := object.Key("QueryPlanningContext") + if err := awsRestjson1_serializeDocumentQueryPlanningContext(v.QueryPlanningContext, ok); err != nil { + return err + } + } + + if v.QueryString != nil { + ok := object.Key("QueryString") + ok.String(*v.QueryString) + } + + return nil +} + +type awsRestjson1_serializeOpStartTransaction struct { +} + +func (*awsRestjson1_serializeOpStartTransaction) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStartTransaction) 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.(*StartTransactionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/StartTransaction") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentStartTransactionInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStartTransactionInput(v *StartTransactionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentStartTransactionInput(v *StartTransactionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.TransactionType) > 0 { + ok := object.Key("TransactionType") + ok.String(string(v.TransactionType)) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateLFTag struct { +} + +func (*awsRestjson1_serializeOpUpdateLFTag) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateLFTag) 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.(*UpdateLFTagInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/UpdateLFTag") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateLFTagInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateLFTagInput(v *UpdateLFTagInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateLFTagInput(v *UpdateLFTagInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) + } + + if v.TagValuesToAdd != nil { + ok := object.Key("TagValuesToAdd") + if err := awsRestjson1_serializeDocumentTagValueList(v.TagValuesToAdd, ok); err != nil { + return err + } + } + + if v.TagValuesToDelete != nil { + ok := object.Key("TagValuesToDelete") + if err := awsRestjson1_serializeDocumentTagValueList(v.TagValuesToDelete, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateResource struct { +} + +func (*awsRestjson1_serializeOpUpdateResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateResource) 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.(*UpdateResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/UpdateResource") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateResourceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateResourceInput(v *UpdateResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } -func awsAwsjson11_serializeDocumentDatabaseResource(v *types.DatabaseResource, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateResourceInput(v *UpdateResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) } return nil } -func awsAwsjson11_serializeDocumentDataLakePrincipal(v *types.DataLakePrincipal, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DataLakePrincipalIdentifier != nil { - ok := object.Key("DataLakePrincipalIdentifier") - ok.String(*v.DataLakePrincipalIdentifier) - } +type awsRestjson1_serializeOpUpdateTableObjects struct { +} - return nil +func (*awsRestjson1_serializeOpUpdateTableObjects) ID() string { + return "OperationSerializer" } -func awsAwsjson11_serializeDocumentDataLakePrincipalList(v []types.DataLakePrincipal, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func (m *awsRestjson1_serializeOpUpdateTableObjects) 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)} + } - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(&v[i], av); err != nil { - return err - } + input, ok := in.Parameters.(*UpdateTableObjectsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - return nil -} -func awsAwsjson11_serializeDocumentDataLakeSettings(v *types.DataLakeSettings, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + opPath, opQuery := httpbinding.SplitURI("/UpdateTableObjects") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } - if v.CreateDatabaseDefaultPermissions != nil { - ok := object.Key("CreateDatabaseDefaultPermissions") - if err := awsAwsjson11_serializeDocumentPrincipalPermissionsList(v.CreateDatabaseDefaultPermissions, ok); err != nil { - return err - } + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTableObjectsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.CreateTableDefaultPermissions != nil { - ok := object.Key("CreateTableDefaultPermissions") - if err := awsAwsjson11_serializeDocumentPrincipalPermissionsList(v.CreateTableDefaultPermissions, ok); err != nil { - return err - } + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.DataLakeAdmins != nil { - ok := object.Key("DataLakeAdmins") - if err := awsAwsjson11_serializeDocumentDataLakePrincipalList(v.DataLakeAdmins, ok); err != nil { - return err - } + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } + in.Request = request - if v.TrustedResourceOwners != nil { - ok := object.Key("TrustedResourceOwners") - if err := awsAwsjson11_serializeDocumentTrustedResourceOwners(v.TrustedResourceOwners, ok); err != nil { - return err - } + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTableObjectsInput(v *UpdateTableObjectsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } -func awsAwsjson11_serializeDocumentDataLocationResource(v *types.DataLocationResource, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateTableObjectsInput(v *UpdateTableObjectsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1450,44 +3236,24 @@ func awsAwsjson11_serializeDocumentDataLocationResource(v *types.DataLocationRes ok.String(*v.CatalogId) } - if v.ResourceArn != nil { - ok := object.Key("ResourceArn") - ok.String(*v.ResourceArn) - } - - return nil -} - -func awsAwsjson11_serializeDocumentExpression(v []types.LFTag, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentLFTag(&v[i], av); err != nil { - return err - } + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) } - return nil -} - -func awsAwsjson11_serializeDocumentFilterCondition(v *types.FilterCondition, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if len(v.ComparisonOperator) > 0 { - ok := object.Key("ComparisonOperator") - ok.String(string(v.ComparisonOperator)) + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) } - if len(v.Field) > 0 { - ok := object.Key("Field") - ok.String(string(v.Field)) + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) } - if v.StringValueList != nil { - ok := object.Key("StringValueList") - if err := awsAwsjson11_serializeDocumentStringValueList(v.StringValueList, ok); err != nil { + if v.WriteOperations != nil { + ok := object.Key("WriteOperations") + if err := awsRestjson1_serializeDocumentWriteOperationList(v.WriteOperations, ok); err != nil { return err } } @@ -1495,63 +3261,63 @@ func awsAwsjson11_serializeDocumentFilterCondition(v *types.FilterCondition, val return nil } -func awsAwsjson11_serializeDocumentFilterConditionList(v []types.FilterCondition, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +type awsRestjson1_serializeOpUpdateTableStorageOptimizer struct { +} - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentFilterCondition(&v[i], av); err != nil { - return err - } - } - return nil +func (*awsRestjson1_serializeOpUpdateTableStorageOptimizer) ID() string { + return "OperationSerializer" } -func awsAwsjson11_serializeDocumentLFTag(v *types.LFTag, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func (m *awsRestjson1_serializeOpUpdateTableStorageOptimizer) 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)} + } - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) + input, ok := in.Parameters.(*UpdateTableStorageOptimizerInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - if v.TagValues != nil { - ok := object.Key("TagValues") - if err := awsAwsjson11_serializeDocumentTagValueList(v.TagValues, ok); err != nil { - return err - } + opPath, opQuery := httpbinding.SplitURI("/UpdateTableStorageOptimizer") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - return nil -} + restEncoder.SetHeader("Content-Type").String("application/json") -func awsAwsjson11_serializeDocumentLFTagKeyResource(v *types.LFTagKeyResource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTableStorageOptimizerInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } + in.Request = request - if v.TagValues != nil { - ok := object.Key("TagValues") - if err := awsAwsjson11_serializeDocumentTagValueList(v.TagValues, ok); err != nil { - return err - } + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTableStorageOptimizerInput(v *UpdateTableStorageOptimizerInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } -func awsAwsjson11_serializeDocumentLFTagPair(v *types.LFTagPair, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateTableStorageOptimizerInput(v *UpdateTableStorageOptimizerInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1560,160 +3326,123 @@ func awsAwsjson11_serializeDocumentLFTagPair(v *types.LFTagPair, value smithyjso ok.String(*v.CatalogId) } - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) } - if v.TagValues != nil { - ok := object.Key("TagValues") - if err := awsAwsjson11_serializeDocumentTagValueList(v.TagValues, ok); err != nil { + if v.StorageOptimizerConfig != nil { + ok := object.Key("StorageOptimizerConfig") + if err := awsRestjson1_serializeDocumentStorageOptimizerConfigMap(v.StorageOptimizerConfig, ok); err != nil { return err } } + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) + } + return nil } -func awsAwsjson11_serializeDocumentLFTagPolicyResource(v *types.LFTagPolicyResource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAddObjectInput(v *types.AddObjectInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.ETag != nil { + ok := object.Key("ETag") + ok.String(*v.ETag) } - if v.Expression != nil { - ok := object.Key("Expression") - if err := awsAwsjson11_serializeDocumentExpression(v.Expression, ok); err != nil { + if v.PartitionValues != nil { + ok := object.Key("PartitionValues") + if err := awsRestjson1_serializeDocumentPartitionValuesList(v.PartitionValues, ok); err != nil { return err } } - if len(v.ResourceType) > 0 { - ok := object.Key("ResourceType") - ok.String(string(v.ResourceType)) + { + ok := object.Key("Size") + ok.Long(v.Size) } - return nil -} - -func awsAwsjson11_serializeDocumentLFTagsList(v []types.LFTagPair, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentLFTagPair(&v[i], av); err != nil { - return err - } + if v.Uri != nil { + ok := object.Key("Uri") + ok.String(*v.Uri) } - return nil -} -func awsAwsjson11_serializeDocumentPermissionList(v []types.Permission, 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_serializeDocumentPrincipalPermissions(v *types.PrincipalPermissions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAllRowsWildcard(v *types.AllRowsWildcard, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Permissions != nil { - ok := object.Key("Permissions") - if err := awsAwsjson11_serializeDocumentPermissionList(v.Permissions, ok); err != nil { - return err - } - } - - if v.Principal != nil { - ok := object.Key("Principal") - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson11_serializeDocumentPrincipalPermissionsList(v []types.PrincipalPermissions, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentPrincipalPermissions(&v[i], av); err != nil { - return err - } - } return nil } -func awsAwsjson11_serializeDocumentResource(v *types.Resource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBatchPermissionsRequestEntry(v *types.BatchPermissionsRequestEntry, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Catalog != nil { - ok := object.Key("Catalog") - if err := awsAwsjson11_serializeDocumentCatalogResource(v.Catalog, ok); err != nil { - return err - } + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) } - if v.Database != nil { - ok := object.Key("Database") - if err := awsAwsjson11_serializeDocumentDatabaseResource(v.Database, ok); err != nil { + if v.Permissions != nil { + ok := object.Key("Permissions") + if err := awsRestjson1_serializeDocumentPermissionList(v.Permissions, ok); err != nil { return err } } - if v.DataLocation != nil { - ok := object.Key("DataLocation") - if err := awsAwsjson11_serializeDocumentDataLocationResource(v.DataLocation, ok); err != nil { + if v.PermissionsWithGrantOption != nil { + ok := object.Key("PermissionsWithGrantOption") + if err := awsRestjson1_serializeDocumentPermissionList(v.PermissionsWithGrantOption, ok); err != nil { return err } } - if v.LFTag != nil { - ok := object.Key("LFTag") - if err := awsAwsjson11_serializeDocumentLFTagKeyResource(v.LFTag, ok); err != nil { + if v.Principal != nil { + ok := object.Key("Principal") + if err := awsRestjson1_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { return err } } - if v.LFTagPolicy != nil { - ok := object.Key("LFTagPolicy") - if err := awsAwsjson11_serializeDocumentLFTagPolicyResource(v.LFTagPolicy, ok); err != nil { + if v.Resource != nil { + ok := object.Key("Resource") + if err := awsRestjson1_serializeDocumentResource(v.Resource, ok); err != nil { return err } } - if v.Table != nil { - ok := object.Key("Table") - if err := awsAwsjson11_serializeDocumentTableResource(v.Table, ok); err != nil { - return err - } - } + return nil +} - if v.TableWithColumns != nil { - ok := object.Key("TableWithColumns") - if err := awsAwsjson11_serializeDocumentTableWithColumnsResource(v.TableWithColumns, ok); err != nil { +func awsRestjson1_serializeDocumentBatchPermissionsRequestEntryList(v []types.BatchPermissionsRequestEntry, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentBatchPermissionsRequestEntry(&v[i], av); err != nil { return err } } + return nil +} + +func awsRestjson1_serializeDocumentCatalogResource(v *types.CatalogResource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() return nil } -func awsAwsjson11_serializeDocumentStringValueList(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnNames(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -1724,28 +3453,13 @@ func awsAwsjson11_serializeDocumentStringValueList(v []string, value smithyjson. return nil } -func awsAwsjson11_serializeDocumentTableResource(v *types.TableResource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnWildcard(v *types.ColumnWildcard, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) - } - - if v.DatabaseName != nil { - ok := object.Key("DatabaseName") - ok.String(*v.DatabaseName) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.TableWildcard != nil { - ok := object.Key("TableWildcard") - if err := awsAwsjson11_serializeDocumentTableWildcard(v.TableWildcard, ok); err != nil { + if v.ExcludedColumnNames != nil { + ok := object.Key("ExcludedColumnNames") + if err := awsRestjson1_serializeDocumentColumnNames(v.ExcludedColumnNames, ok); err != nil { return err } } @@ -1753,32 +3467,37 @@ func awsAwsjson11_serializeDocumentTableResource(v *types.TableResource, value s return nil } -func awsAwsjson11_serializeDocumentTableWildcard(v *types.TableWildcard, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatabaseResource(v *types.DatabaseResource, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.CatalogId != nil { + ok := object.Key("CatalogId") + ok.String(*v.CatalogId) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + return nil } -func awsAwsjson11_serializeDocumentTableWithColumnsResource(v *types.TableWithColumnsResource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataCellsFilter(v *types.DataCellsFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) - } - if v.ColumnNames != nil { ok := object.Key("ColumnNames") - if err := awsAwsjson11_serializeDocumentColumnNames(v.ColumnNames, ok); err != nil { + if err := awsRestjson1_serializeDocumentColumnNames(v.ColumnNames, ok); err != nil { return err } } if v.ColumnWildcard != nil { ok := object.Key("ColumnWildcard") - if err := awsAwsjson11_serializeDocumentColumnWildcard(v.ColumnWildcard, ok); err != nil { + if err := awsRestjson1_serializeDocumentColumnWildcard(v.ColumnWildcard, ok); err != nil { return err } } @@ -1793,50 +3512,106 @@ func awsAwsjson11_serializeDocumentTableWithColumnsResource(v *types.TableWithCo ok.String(*v.Name) } + if v.RowFilter != nil { + ok := object.Key("RowFilter") + if err := awsRestjson1_serializeDocumentRowFilter(v.RowFilter, ok); err != nil { + return err + } + } + + if v.TableCatalogId != nil { + ok := object.Key("TableCatalogId") + ok.String(*v.TableCatalogId) + } + + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) + } + return nil } -func awsAwsjson11_serializeDocumentTagValueList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentDataCellsFilterResource(v *types.DataCellsFilterResource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.TableCatalogId != nil { + ok := object.Key("TableCatalogId") + ok.String(*v.TableCatalogId) + } + + if v.TableName != nil { + ok := object.Key("TableName") + ok.String(*v.TableName) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataLakePrincipal(v *types.DataLakePrincipal, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataLakePrincipalIdentifier != nil { + ok := object.Key("DataLakePrincipalIdentifier") + ok.String(*v.DataLakePrincipalIdentifier) } + return nil } -func awsAwsjson11_serializeDocumentTrustedResourceOwners(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataLakePrincipalList(v []types.DataLakePrincipal, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsRestjson1_serializeDocumentDataLakePrincipal(&v[i], av); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeOpDocumentAddLFTagsToResourceInput(v *AddLFTagsToResourceInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataLakeSettings(v *types.DataLakeSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.CreateDatabaseDefaultPermissions != nil { + ok := object.Key("CreateDatabaseDefaultPermissions") + if err := awsRestjson1_serializeDocumentPrincipalPermissionsList(v.CreateDatabaseDefaultPermissions, ok); err != nil { + return err + } } - if v.LFTags != nil { - ok := object.Key("LFTags") - if err := awsAwsjson11_serializeDocumentLFTagsList(v.LFTags, ok); err != nil { + if v.CreateTableDefaultPermissions != nil { + ok := object.Key("CreateTableDefaultPermissions") + if err := awsRestjson1_serializeDocumentPrincipalPermissionsList(v.CreateTableDefaultPermissions, ok); err != nil { return err } } - if v.Resource != nil { - ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { + if v.DataLakeAdmins != nil { + ok := object.Key("DataLakeAdmins") + if err := awsRestjson1_serializeDocumentDataLakePrincipalList(v.DataLakeAdmins, ok); err != nil { + return err + } + } + + if v.TrustedResourceOwners != nil { + ok := object.Key("TrustedResourceOwners") + if err := awsRestjson1_serializeDocumentTrustedResourceOwners(v.TrustedResourceOwners, ok); err != nil { return err } } @@ -1844,7 +3619,7 @@ func awsAwsjson11_serializeOpDocumentAddLFTagsToResourceInput(v *AddLFTagsToReso return nil } -func awsAwsjson11_serializeOpDocumentBatchGrantPermissionsInput(v *BatchGrantPermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataLocationResource(v *types.DataLocationResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1853,113 +3628,108 @@ func awsAwsjson11_serializeOpDocumentBatchGrantPermissionsInput(v *BatchGrantPer ok.String(*v.CatalogId) } - if v.Entries != nil { - ok := object.Key("Entries") - if err := awsAwsjson11_serializeDocumentBatchPermissionsRequestEntryList(v.Entries, ok); err != nil { - return err - } + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) } return nil } -func awsAwsjson11_serializeOpDocumentBatchRevokePermissionsInput(v *BatchRevokePermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDeleteObjectInput(v *types.DeleteObjectInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.ETag != nil { + ok := object.Key("ETag") + ok.String(*v.ETag) } - if v.Entries != nil { - ok := object.Key("Entries") - if err := awsAwsjson11_serializeDocumentBatchPermissionsRequestEntryList(v.Entries, ok); err != nil { + if v.PartitionValues != nil { + ok := object.Key("PartitionValues") + if err := awsRestjson1_serializeDocumentPartitionValuesList(v.PartitionValues, ok); err != nil { return err } } + if v.Uri != nil { + ok := object.Key("Uri") + ok.String(*v.Uri) + } + return nil } -func awsAwsjson11_serializeOpDocumentCreateLFTagInput(v *CreateLFTagInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) - } - - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) - } +func awsRestjson1_serializeDocumentExpression(v []types.LFTag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.TagValues != nil { - ok := object.Key("TagValues") - if err := awsAwsjson11_serializeDocumentTagValueList(v.TagValues, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentLFTag(&v[i], av); err != nil { return err } } - return nil } -func awsAwsjson11_serializeOpDocumentDeleteLFTagInput(v *DeleteLFTagInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterCondition(v *types.FilterCondition, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if len(v.ComparisonOperator) > 0 { + ok := object.Key("ComparisonOperator") + ok.String(string(v.ComparisonOperator)) } - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) + if len(v.Field) > 0 { + ok := object.Key("Field") + ok.String(string(v.Field)) } - return nil -} - -func awsAwsjson11_serializeOpDocumentDeregisterResourceInput(v *DeregisterResourceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceArn != nil { - ok := object.Key("ResourceArn") - ok.String(*v.ResourceArn) + if v.StringValueList != nil { + ok := object.Key("StringValueList") + if err := awsRestjson1_serializeDocumentStringValueList(v.StringValueList, ok); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeOpDocumentDescribeResourceInput(v *DescribeResourceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentFilterConditionList(v []types.FilterCondition, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.ResourceArn != nil { - ok := object.Key("ResourceArn") - ok.String(*v.ResourceArn) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFilterCondition(&v[i], av); err != nil { + return err + } } - return nil } -func awsAwsjson11_serializeOpDocumentGetDataLakeSettingsInput(v *GetDataLakeSettingsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLFTag(v *types.LFTag, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) + } + + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentTagValueList(v.TagValues, ok); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeOpDocumentGetEffectivePermissionsForPathInput(v *GetEffectivePermissionsForPathInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLFTagKeyResource(v *types.LFTagKeyResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1968,25 +3738,22 @@ func awsAwsjson11_serializeOpDocumentGetEffectivePermissionsForPathInput(v *GetE ok.String(*v.CatalogId) } - 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.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) } - if v.ResourceArn != nil { - ok := object.Key("ResourceArn") - ok.String(*v.ResourceArn) + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentTagValueList(v.TagValues, ok); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeOpDocumentGetLFTagInput(v *GetLFTagInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLFTagPair(v *types.LFTagPair, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2000,10 +3767,17 @@ func awsAwsjson11_serializeOpDocumentGetLFTagInput(v *GetLFTagInput, value smith ok.String(*v.TagKey) } + if v.TagValues != nil { + ok := object.Key("TagValues") + if err := awsRestjson1_serializeDocumentTagValueList(v.TagValues, ok); err != nil { + return err + } + } + return nil } -func awsAwsjson11_serializeOpDocumentGetResourceLFTagsInput(v *GetResourceLFTagsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLFTagPolicyResource(v *types.LFTagPolicyResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2012,62 +3786,102 @@ func awsAwsjson11_serializeOpDocumentGetResourceLFTagsInput(v *GetResourceLFTags ok.String(*v.CatalogId) } - if v.Resource != nil { - ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { + if v.Expression != nil { + ok := object.Key("Expression") + if err := awsRestjson1_serializeDocumentExpression(v.Expression, ok); err != nil { return err } } - if v.ShowAssignedLFTags != nil { - ok := object.Key("ShowAssignedLFTags") - ok.Boolean(*v.ShowAssignedLFTags) + if len(v.ResourceType) > 0 { + ok := object.Key("ResourceType") + ok.String(string(v.ResourceType)) } return nil } -func awsAwsjson11_serializeOpDocumentGrantPermissionsInput(v *GrantPermissionsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentLFTagsList(v []types.LFTagPair, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentLFTagPair(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentPartitionValuesList(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_serializeDocumentPermissionList(v []types.Permission, 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 awsRestjson1_serializeDocumentPrincipalPermissions(v *types.PrincipalPermissions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() if v.Permissions != nil { ok := object.Key("Permissions") - if err := awsAwsjson11_serializeDocumentPermissionList(v.Permissions, ok); err != nil { - return err - } - } - - if v.PermissionsWithGrantOption != nil { - ok := object.Key("PermissionsWithGrantOption") - if err := awsAwsjson11_serializeDocumentPermissionList(v.PermissionsWithGrantOption, ok); err != nil { + if err := awsRestjson1_serializeDocumentPermissionList(v.Permissions, ok); err != nil { return err } } if v.Principal != nil { ok := object.Key("Principal") - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { + if err := awsRestjson1_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { return err } } - if v.Resource != nil { - ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentPrincipalPermissionsList(v []types.PrincipalPermissions, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPrincipalPermissions(&v[i], av); err != nil { return err } } + return nil +} + +func awsRestjson1_serializeDocumentQueryParameterMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + for key := range v { + om := object.Key(key) + om.String(v[key]) + } return nil } -func awsAwsjson11_serializeOpDocumentListLFTagsInput(v *ListLFTagsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentQueryPlanningContext(v *types.QueryPlanningContext, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2076,131 +3890,152 @@ func awsAwsjson11_serializeOpDocumentListLFTagsInput(v *ListLFTagsInput, value s ok.String(*v.CatalogId) } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) } - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + if v.QueryAsOfTime != nil { + ok := object.Key("QueryAsOfTime") + ok.Double(smithytime.FormatEpochSeconds(*v.QueryAsOfTime)) } - if len(v.ResourceShareType) > 0 { - ok := object.Key("ResourceShareType") - ok.String(string(v.ResourceShareType)) + if v.QueryParameters != nil { + ok := object.Key("QueryParameters") + if err := awsRestjson1_serializeDocumentQueryParameterMap(v.QueryParameters, ok); err != nil { + return err + } + } + + if v.TransactionId != nil { + ok := object.Key("TransactionId") + ok.String(*v.TransactionId) } return nil } -func awsAwsjson11_serializeOpDocumentListPermissionsInput(v *ListPermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResource(v *types.Resource, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.Catalog != nil { + ok := object.Key("Catalog") + if err := awsRestjson1_serializeDocumentCatalogResource(v.Catalog, ok); err != nil { + return err + } } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + if v.Database != nil { + ok := object.Key("Database") + if err := awsRestjson1_serializeDocumentDatabaseResource(v.Database, ok); err != nil { + return err + } } - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + if v.DataCellsFilter != nil { + ok := object.Key("DataCellsFilter") + if err := awsRestjson1_serializeDocumentDataCellsFilterResource(v.DataCellsFilter, ok); err != nil { + return err + } } - if v.Principal != nil { - ok := object.Key("Principal") - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { + if v.DataLocation != nil { + ok := object.Key("DataLocation") + if err := awsRestjson1_serializeDocumentDataLocationResource(v.DataLocation, ok); err != nil { return err } } - if v.Resource != nil { - ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { + if v.LFTag != nil { + ok := object.Key("LFTag") + if err := awsRestjson1_serializeDocumentLFTagKeyResource(v.LFTag, ok); err != nil { return err } } - if len(v.ResourceType) > 0 { - ok := object.Key("ResourceType") - ok.String(string(v.ResourceType)) + if v.LFTagPolicy != nil { + ok := object.Key("LFTagPolicy") + if err := awsRestjson1_serializeDocumentLFTagPolicyResource(v.LFTagPolicy, ok); err != nil { + return err + } + } + + if v.Table != nil { + ok := object.Key("Table") + if err := awsRestjson1_serializeDocumentTableResource(v.Table, ok); err != nil { + return err + } + } + + if v.TableWithColumns != nil { + ok := object.Key("TableWithColumns") + if err := awsRestjson1_serializeDocumentTableWithColumnsResource(v.TableWithColumns, ok); err != nil { + return err + } } return nil } -func awsAwsjson11_serializeOpDocumentListResourcesInput(v *ListResourcesInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRowFilter(v *types.RowFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FilterConditionList != nil { - ok := object.Key("FilterConditionList") - if err := awsAwsjson11_serializeDocumentFilterConditionList(v.FilterConditionList, ok); err != nil { + if v.AllRowsWildcard != nil { + ok := object.Key("AllRowsWildcard") + if err := awsRestjson1_serializeDocumentAllRowsWildcard(v.AllRowsWildcard, 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) + if v.FilterExpression != nil { + ok := object.Key("FilterExpression") + ok.String(*v.FilterExpression) } return nil } -func awsAwsjson11_serializeOpDocumentPutDataLakeSettingsInput(v *PutDataLakeSettingsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStorageOptimizerConfig(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) - } - - if v.DataLakeSettings != nil { - ok := object.Key("DataLakeSettings") - if err := awsAwsjson11_serializeDocumentDataLakeSettings(v.DataLakeSettings, ok); err != nil { - return err - } + for key := range v { + om := object.Key(key) + om.String(v[key]) } - return nil } -func awsAwsjson11_serializeOpDocumentRegisterResourceInput(v *RegisterResourceInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStorageOptimizerConfigMap(v map[string]map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ResourceArn != nil { - ok := object.Key("ResourceArn") - ok.String(*v.ResourceArn) + for key := range v { + om := object.Key(key) + if vv := v[key]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentStorageOptimizerConfig(v[key], om); err != nil { + return err + } } + return nil +} - if v.RoleArn != nil { - ok := object.Key("RoleArn") - ok.String(*v.RoleArn) - } +func awsRestjson1_serializeDocumentStringValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.UseServiceLinkedRole != nil { - ok := object.Key("UseServiceLinkedRole") - ok.Boolean(*v.UseServiceLinkedRole) + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsAwsjson11_serializeOpDocumentRemoveLFTagsFromResourceInput(v *RemoveLFTagsFromResourceInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableResource(v *types.TableResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2209,16 +4044,19 @@ func awsAwsjson11_serializeOpDocumentRemoveLFTagsFromResourceInput(v *RemoveLFTa ok.String(*v.CatalogId) } - if v.LFTags != nil { - ok := object.Key("LFTags") - if err := awsAwsjson11_serializeDocumentLFTagsList(v.LFTags, ok); err != nil { - return err - } + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) } - if v.Resource != nil { - ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.TableWildcard != nil { + ok := object.Key("TableWildcard") + if err := awsRestjson1_serializeDocumentTableWildcard(v.TableWildcard, ok); err != nil { return err } } @@ -2226,7 +4064,14 @@ func awsAwsjson11_serializeOpDocumentRemoveLFTagsFromResourceInput(v *RemoveLFTa return nil } -func awsAwsjson11_serializeOpDocumentRevokePermissionsInput(v *RevokePermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableWildcard(v *types.TableWildcard, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + return nil +} + +func awsRestjson1_serializeDocumentTableWithColumnsResource(v *types.TableWithColumnsResource, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2235,119 +4080,99 @@ func awsAwsjson11_serializeOpDocumentRevokePermissionsInput(v *RevokePermissions ok.String(*v.CatalogId) } - if v.Permissions != nil { - ok := object.Key("Permissions") - if err := awsAwsjson11_serializeDocumentPermissionList(v.Permissions, ok); err != nil { + if v.ColumnNames != nil { + ok := object.Key("ColumnNames") + if err := awsRestjson1_serializeDocumentColumnNames(v.ColumnNames, ok); err != nil { return err } } - if v.PermissionsWithGrantOption != nil { - ok := object.Key("PermissionsWithGrantOption") - if err := awsAwsjson11_serializeDocumentPermissionList(v.PermissionsWithGrantOption, ok); err != nil { + if v.ColumnWildcard != nil { + ok := object.Key("ColumnWildcard") + if err := awsRestjson1_serializeDocumentColumnWildcard(v.ColumnWildcard, ok); err != nil { return err } } - if v.Principal != nil { - ok := object.Key("Principal") - if err := awsAwsjson11_serializeDocumentDataLakePrincipal(v.Principal, ok); err != nil { - return err - } + if v.DatabaseName != nil { + ok := object.Key("DatabaseName") + ok.String(*v.DatabaseName) } - if v.Resource != nil { - ok := object.Key("Resource") - if err := awsAwsjson11_serializeDocumentResource(v.Resource, ok); err != nil { - return err - } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } return nil } -func awsAwsjson11_serializeOpDocumentSearchDatabasesByLFTagsInput(v *SearchDatabasesByLFTagsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) - } +func awsRestjson1_serializeDocumentTagValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Expression != nil { - ok := object.Key("Expression") - if err := awsAwsjson11_serializeDocumentExpression(v.Expression, ok); err != nil { - return err - } + for i := range v { + av := array.Value() + av.String(v[i]) } + return nil +} - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } +func awsRestjson1_serializeDocumentTrustedResourceOwners(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsAwsjson11_serializeOpDocumentSearchTablesByLFTagsInput(v *SearchTablesByLFTagsInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentVirtualObject(v *types.VirtualObject, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) + if v.ETag != nil { + ok := object.Key("ETag") + ok.String(*v.ETag) } - if v.Expression != nil { - ok := object.Key("Expression") - if err := awsAwsjson11_serializeDocumentExpression(v.Expression, ok); err != nil { - return err - } + if v.Uri != nil { + ok := object.Key("Uri") + ok.String(*v.Uri) } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } + return nil +} - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } +func awsRestjson1_serializeDocumentVirtualObjectList(v []types.VirtualObject, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentVirtualObject(&v[i], av); err != nil { + return err + } + } return nil } -func awsAwsjson11_serializeOpDocumentUpdateLFTagInput(v *UpdateLFTagInput, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentWriteOperation(v *types.WriteOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CatalogId != nil { - ok := object.Key("CatalogId") - ok.String(*v.CatalogId) - } - - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) - } - - if v.TagValuesToAdd != nil { - ok := object.Key("TagValuesToAdd") - if err := awsAwsjson11_serializeDocumentTagValueList(v.TagValuesToAdd, ok); err != nil { + if v.AddObject != nil { + ok := object.Key("AddObject") + if err := awsRestjson1_serializeDocumentAddObjectInput(v.AddObject, ok); err != nil { return err } } - if v.TagValuesToDelete != nil { - ok := object.Key("TagValuesToDelete") - if err := awsAwsjson11_serializeDocumentTagValueList(v.TagValuesToDelete, ok); err != nil { + if v.DeleteObject != nil { + ok := object.Key("DeleteObject") + if err := awsRestjson1_serializeDocumentDeleteObjectInput(v.DeleteObject, ok); err != nil { return err } } @@ -2355,19 +4180,15 @@ func awsAwsjson11_serializeOpDocumentUpdateLFTagInput(v *UpdateLFTagInput, value return nil } -func awsAwsjson11_serializeOpDocumentUpdateResourceInput(v *UpdateResourceInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceArn != nil { - ok := object.Key("ResourceArn") - ok.String(*v.ResourceArn) - } +func awsRestjson1_serializeDocumentWriteOperationList(v []types.WriteOperation, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.RoleArn != nil { - ok := object.Key("RoleArn") - ok.String(*v.RoleArn) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentWriteOperation(&v[i], av); err != nil { + return err + } } - return nil } diff --git a/service/lakeformation/types/enums.go b/service/lakeformation/types/enums.go index 8c04e1c82fb..593422f0f1b 100644 --- a/service/lakeformation/types/enums.go +++ b/service/lakeformation/types/enums.go @@ -88,6 +88,26 @@ func (FieldNameString) Values() []FieldNameString { } } +type OptimizerType string + +// Enum values for OptimizerType +const ( + OptimizerTypeCompaction OptimizerType = "COMPACTION" + OptimizerTypeGarbageCollection OptimizerType = "GARBAGE_COLLECTION" + OptimizerTypeGeneric OptimizerType = "ALL" +) + +// Values returns all known values for OptimizerType. 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 (OptimizerType) Values() []OptimizerType { + return []OptimizerType{ + "COMPACTION", + "GARBAGE_COLLECTION", + "ALL", + } +} + type Permission string // Enum values for Permission @@ -132,6 +152,30 @@ func (Permission) Values() []Permission { } } +type QueryStateString string + +// Enum values for QueryStateString +const ( + QueryStateStringPending QueryStateString = "PENDING" + QueryStateStringWorkunitsAvailable QueryStateString = "WORKUNITS_AVAILABLE" + QueryStateStringError QueryStateString = "ERROR" + QueryStateStringFinished QueryStateString = "FINISHED" + QueryStateStringExpired QueryStateString = "EXPIRED" +) + +// Values returns all known values for QueryStateString. 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 (QueryStateString) Values() []QueryStateString { + return []QueryStateString{ + "PENDING", + "WORKUNITS_AVAILABLE", + "ERROR", + "FINISHED", + "EXPIRED", + } +} + type ResourceShareType string // Enum values for ResourceShareType @@ -167,3 +211,67 @@ func (ResourceType) Values() []ResourceType { "TABLE", } } + +type TransactionStatus string + +// Enum values for TransactionStatus +const ( + TransactionStatusActive TransactionStatus = "ACTIVE" + TransactionStatusCommitted TransactionStatus = "COMMITTED" + TransactionStatusAborted TransactionStatus = "ABORTED" + TransactionStatusCommitInProgress TransactionStatus = "COMMIT_IN_PROGRESS" +) + +// Values returns all known values for TransactionStatus. 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 (TransactionStatus) Values() []TransactionStatus { + return []TransactionStatus{ + "ACTIVE", + "COMMITTED", + "ABORTED", + "COMMIT_IN_PROGRESS", + } +} + +type TransactionStatusFilter string + +// Enum values for TransactionStatusFilter +const ( + TransactionStatusFilterAll TransactionStatusFilter = "ALL" + TransactionStatusFilterCompleted TransactionStatusFilter = "COMPLETED" + TransactionStatusFilterActive TransactionStatusFilter = "ACTIVE" + TransactionStatusFilterCommitted TransactionStatusFilter = "COMMITTED" + TransactionStatusFilterAborted TransactionStatusFilter = "ABORTED" +) + +// Values returns all known values for TransactionStatusFilter. 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 (TransactionStatusFilter) Values() []TransactionStatusFilter { + return []TransactionStatusFilter{ + "ALL", + "COMPLETED", + "ACTIVE", + "COMMITTED", + "ABORTED", + } +} + +type TransactionType string + +// Enum values for TransactionType +const ( + TransactionTypeReadAndWrite TransactionType = "READ_AND_WRITE" + TransactionTypeReadOnly TransactionType = "READ_ONLY" +) + +// Values returns all known values for TransactionType. 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 (TransactionType) Values() []TransactionType { + return []TransactionType{ + "READ_AND_WRITE", + "READ_ONLY", + } +} diff --git a/service/lakeformation/types/errors.go b/service/lakeformation/types/errors.go index 66283079996..9d37287330b 100644 --- a/service/lakeformation/types/errors.go +++ b/service/lakeformation/types/errors.go @@ -85,6 +85,25 @@ func (e *EntityNotFoundException) ErrorMessage() string { func (e *EntityNotFoundException) ErrorCode() string { return "EntityNotFoundException" } func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// Contains details about an error where the query request expired. +type ExpiredException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ExpiredException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ExpiredException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ExpiredException) ErrorCode() string { return "ExpiredException" } +func (e *ExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // An encryption operation failed. type GlueEncryptionException struct { Message *string @@ -161,6 +180,26 @@ func (e *OperationTimeoutException) ErrorMessage() string { func (e *OperationTimeoutException) ErrorCode() string { return "OperationTimeoutException" } func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// Contains details about an error related to a resource which is not ready for a +// transaction. +type ResourceNotReadyException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotReadyException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotReadyException) ErrorCode() string { return "ResourceNotReadyException" } +func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // A resource numerical limit was exceeded. type ResourceNumberLimitExceededException struct { Message *string @@ -183,3 +222,123 @@ func (e *ResourceNumberLimitExceededException) ErrorCode() string { func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Contains details about an error related to statistics not being ready. +type StatisticsNotReadyYetException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *StatisticsNotReadyYetException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *StatisticsNotReadyYetException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *StatisticsNotReadyYetException) ErrorCode() string { return "StatisticsNotReadyYetException" } +func (e *StatisticsNotReadyYetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Contains details about an error where the query request was throttled. +type ThrottledException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ThrottledException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottledException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottledException) ErrorCode() string { return "ThrottledException" } +func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Contains details about an error related to a transaction that was cancelled. +type TransactionCanceledException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *TransactionCanceledException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *TransactionCanceledException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *TransactionCanceledException) ErrorCode() string { return "TransactionCanceledException" } +func (e *TransactionCanceledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Contains details about an error related to a transaction commit that was in +// progress. +type TransactionCommitInProgressException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *TransactionCommitInProgressException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *TransactionCommitInProgressException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *TransactionCommitInProgressException) ErrorCode() string { + return "TransactionCommitInProgressException" +} +func (e *TransactionCommitInProgressException) ErrorFault() smithy.ErrorFault { + return smithy.FaultClient +} + +// Contains details about an error where the specified transaction has already been +// committed and cannot be used for UpdateTableObjects. +type TransactionCommittedException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *TransactionCommittedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *TransactionCommittedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *TransactionCommittedException) ErrorCode() string { return "TransactionCommittedException" } +func (e *TransactionCommittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Contains details about an error related to work units not being ready. +type WorkUnitsNotReadyYetException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *WorkUnitsNotReadyYetException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *WorkUnitsNotReadyYetException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *WorkUnitsNotReadyYetException) ErrorCode() string { return "WorkUnitsNotReadyYetException" } +func (e *WorkUnitsNotReadyYetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/lakeformation/types/types.go b/service/lakeformation/types/types.go index 725cf5ae204..bccee78f24b 100644 --- a/service/lakeformation/types/types.go +++ b/service/lakeformation/types/types.go @@ -7,6 +7,39 @@ import ( "time" ) +// A new object to add to the governed table. +type AddObjectInput struct { + + // The Amazon S3 ETag of the object. Returned by GetTableObjects for validation and + // used to identify changes to the underlying data. + // + // This member is required. + ETag *string + + // The size of the Amazon S3 object in bytes. + // + // This member is required. + Size int64 + + // The Amazon S3 location of the object. + // + // This member is required. + Uri *string + + // A list of partition values for the object. A value must be specified for each + // partition key associated with the table. The supported data types are integer, + // long, date(yyyy-MM-dd), timestamp(yyyy-MM-dd HH:mm:ssXXX or yyyy-MM-dd + // HH:mm:ss"), string and decimal. + PartitionValues []string + + noSmithyDocumentSerde +} + +// A structure that you pass to indicate you want all rows in a filter. +type AllRowsWildcard struct { + noSmithyDocumentSerde +} + // A list of failures when performing a batch grant or batch revoke operation. type BatchPermissionsFailureEntry struct { @@ -47,11 +80,11 @@ type CatalogResource struct { noSmithyDocumentSerde } -// A structure containing the name of a column resource and the tags attached to +// A structure containing the name of a column resource and the LF-tags attached to // it. type ColumnLFTag struct { - // The tags attached to a column resource. + // The LF-tags attached to a column resource. LFTags []LFTagPair // The name of a column resource. @@ -85,37 +118,107 @@ type DatabaseResource struct { noSmithyDocumentSerde } +// A structure that describes certain columns on certain rows. +type DataCellsFilter struct { + + // A database in the Glue Data Catalog. + // + // This member is required. + DatabaseName *string + + // The name given by the user to the data filter cell. + // + // This member is required. + Name *string + + // The ID of the catalog to which the table belongs. + // + // This member is required. + TableCatalogId *string + + // A table in the database. + // + // This member is required. + TableName *string + + // A list of column names. + ColumnNames []string + + // A wildcard with exclusions. + ColumnWildcard *ColumnWildcard + + // A PartiQL predicate. + RowFilter *RowFilter + + noSmithyDocumentSerde +} + +// A structure for a data cells filter resource. +type DataCellsFilterResource struct { + + // A database in the Glue Data Catalog. + DatabaseName *string + + // The name of the data cells filter. + Name *string + + // The ID of the catalog to which the table belongs. + TableCatalogId *string + + // The name of the table. + TableName *string + + noSmithyDocumentSerde +} + // The AWS Lake Formation principal. Supported principals are IAM users or IAM // roles. type DataLakePrincipal struct { - // An identifier for the AWS Lake Formation principal. + // An identifier for the Lake Formation principal. DataLakePrincipalIdentifier *string noSmithyDocumentSerde } -// A structure representing a list of AWS Lake Formation principals designated as -// data lake administrators and lists of principal permission entries for default -// create database and default create table permissions. +// A structure representing a list of Lake Formation principals designated as data +// lake administrators and lists of principal permission entries for default create +// database and default create table permissions. type DataLakeSettings struct { - // A structure representing a list of up to three principal permissions entries for - // default create database permissions. + // Specifies whether access control on newly created database is managed by Lake + // Formation permissions or exclusively by IAM permissions. You can override this + // default setting when you create a database. A null value indicates access + // control by Lake Formation permissions. A value that assigns ALL to + // IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is + // referred to as the setting "Use only IAM access control," and is for backward + // compatibility with the Glue permission model implemented by IAM permissions. The + // only permitted values are an empty array or an array that contains a single JSON + // object that grants ALL to IAM_ALLOWED_PRINCIPALS. For more information, see + // Changing the Default Security Settings for Your Data Lake + // (https://docs.aws.amazon.com/lake-formation/latest/dg/change-settings.html). CreateDatabaseDefaultPermissions []PrincipalPermissions - // A structure representing a list of up to three principal permissions entries for - // default create table permissions. + // Specifies whether access control on newly created table is managed by Lake + // Formation permissions or exclusively by IAM permissions. A null value indicates + // access control by Lake Formation permissions. A value that assigns ALL to + // IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is + // referred to as the setting "Use only IAM access control," and is for backward + // compatibility with the Glue permission model implemented by IAM permissions. The + // only permitted values are an empty array or an array that contains a single JSON + // object that grants ALL to IAM_ALLOWED_PRINCIPALS. For more information, see + // Changing the Default Security Settings for Your Data Lake + // (https://docs.aws.amazon.com/lake-formation/latest/dg/change-settings.html). CreateTableDefaultPermissions []PrincipalPermissions - // A list of AWS Lake Formation principals. Supported principals are IAM users or - // IAM roles. + // A list of Lake Formation principals. Supported principals are IAM users or IAM + // roles. DataLakeAdmins []DataLakePrincipal // A list of the resource-owning account IDs that the caller's account can use to // share their user access details (user ARNs). The user ARNs can be logged in the - // resource owner's AWS CloudTrail log. You may want to specify this property when - // you are in a high-trust boundary, such as the same team or company. + // resource owner's CloudTrail log. You may want to specify this property when you + // are in a high-trust boundary, such as the same team or company. TrustedResourceOwners []string noSmithyDocumentSerde @@ -130,21 +233,39 @@ type DataLocationResource struct { // This member is required. ResourceArn *string - // The identifier for the Data Catalog where the location is registered with AWS - // Lake Formation. By default, it is the account ID of the caller. + // The identifier for the Data Catalog where the location is registered with Lake + // Formation. By default, it is the account ID of the caller. CatalogId *string noSmithyDocumentSerde } +// An object to delete from the governed table. +type DeleteObjectInput struct { + + // The Amazon S3 location of the object to delete. + // + // This member is required. + Uri *string + + // The Amazon S3 ETag of the object. Returned by GetTableObjects for validation and + // used to identify changes to the underlying data. + ETag *string + + // A list of partition values for the object. A value must be specified for each + // partition key associated with the governed table. + PartitionValues []string + + noSmithyDocumentSerde +} + // A structure containing the additional details to be returned in the // AdditionalDetails attribute of PrincipalResourcePermissions. If a catalog -// resource is shared through AWS Resource Access Manager (AWS RAM), then there -// will exist a corresponding RAM resource share ARN. +// resource is shared through Resource Access Manager (RAM), then there will exist +// a corresponding RAM resource share ARN. type DetailsMap struct { - // A resource share ARN for a catalog resource shared through AWS Resource Access - // Manager (AWS RAM). + // A resource share ARN for a catalog resource shared through RAM. ResourceShare []string noSmithyDocumentSerde @@ -162,6 +283,21 @@ type ErrorDetail struct { noSmithyDocumentSerde } +// Statistics related to the processing of a query statement. +type ExecutionStatistics struct { + + // The average time the request took to be executed. + AverageExecutionTimeMillis int64 + + // The amount of data that was scanned in bytes. + DataScannedBytes int64 + + // The number of work units executed. + WorkUnitsExecutedCount int64 + + noSmithyDocumentSerde +} + // This structure describes the filtering of columns in a table based on a filter // condition. type FilterCondition struct { @@ -179,11 +315,11 @@ type FilterCondition struct { } // A structure that allows an admin to grant user permissions on certain -// conditions. For example, granting a role access to all columns not tagged 'PII' -// of tables tagged 'Prod'. +// conditions. For example, granting a role access to all columns that do not have +// the LF-tag 'PII' in tables that have the LF-tag 'Prod'. type LFTag struct { - // The key-name for the tag. + // The key-name for the LF-tag. // // This member is required. TagKey *string @@ -200,19 +336,19 @@ type LFTag struct { // operation. type LFTagError struct { - // An error that occurred with the attachment or detachment of the tag. + // An error that occurred with the attachment or detachment of the LF-tag. Error *ErrorDetail - // The key-name of the tag. + // The key-name of the LF-tag. LFTag *LFTagPair noSmithyDocumentSerde } -// A structure containing a tag key and values for a resource. +// A structure containing an LF-tag key and values for a resource. type LFTagKeyResource struct { - // The key-name for the tag. + // The key-name for the LF-tag. // // This member is required. TagKey *string @@ -224,17 +360,17 @@ type LFTagKeyResource struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde } -// A structure containing a tag key-value pair. +// A structure containing an LF-tag key-value pair. type LFTagPair struct { - // The key-name for the tag. + // The key-name for the LF-tag. // // This member is required. TagKey *string @@ -246,36 +382,66 @@ type LFTagPair struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde } -// A structure containing a list of tag conditions that apply to a resource's tag -// policy. +// A structure containing a list of LF-tag conditions that apply to a resource's +// LF-tag policy. type LFTagPolicyResource struct { - // A list of tag conditions that apply to the resource's tag policy. + // A list of LF-tag conditions that apply to the resource's LF-tag policy. // // This member is required. Expression []LFTag - // The resource type for which the tag policy applies. + // The resource type for which the LF-tag policy applies. // // This member is required. ResourceType ResourceType // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. CatalogId *string noSmithyDocumentSerde } +// A structure containing a list of partition values and table objects. +type PartitionObjects struct { + + // A list of table objects + Objects []TableObject + + // A list of partition values. + PartitionValues []string + + noSmithyDocumentSerde +} + +// Statistics related to the processing of a query statement. +type PlanningStatistics struct { + + // An estimate of the data that was scanned in bytes. + EstimatedDataToScanBytes int64 + + // The time that it took to process the request. + PlanningTimeMillis int64 + + // The time the request was in queue to be processed. + QueueTimeMillis int64 + + // The number of work units generated. + WorkUnitsGeneratedCount int64 + + noSmithyDocumentSerde +} + // Permissions granted to a principal. type PrincipalPermissions struct { @@ -312,15 +478,48 @@ type PrincipalResourcePermissions struct { noSmithyDocumentSerde } +// A structure containing information about the query plan. +type QueryPlanningContext struct { + + // The database containing the table. + // + // This member is required. + DatabaseName *string + + // The ID of the Data Catalog where the partition in question resides. If none is + // provided, the Amazon Web Services account ID is used by default. + CatalogId *string + + // The time as of when to read the table contents. If not set, the most recent + // transaction commit time will be used. Cannot be specified along with + // TransactionId. + QueryAsOfTime *time.Time + + // A map consisting of key-value pairs. + QueryParameters map[string]string + + // The transaction ID at which to read the table contents. If this transaction is + // not committed, the read will be treated as part of that transaction and will see + // its writes. If this transaction has aborted, an error will be returned. If not + // set, defaults to the most recent committed transaction. Cannot be specified + // along with QueryAsOfTime. + TransactionId *string + + noSmithyDocumentSerde +} + // A structure for the resource. type Resource struct { // The identifier for the Data Catalog. By default, the account ID. The Data // Catalog is the persistent metadata store. It contains database definitions, - // table definitions, and other control information to manage your AWS Lake - // Formation environment. + // table definitions, and other control information to manage your Lake Formation + // environment. Catalog *CatalogResource + // A data cell filter. + DataCellsFilter *DataCellsFilterResource + // The location of an Amazon S3 path where permissions are granted or revoked. DataLocation *DataLocationResource @@ -329,10 +528,10 @@ type Resource struct { // and Revoke database permissions to a principal. Database *DatabaseResource - // The tag key and values attached to a resource. + // The LF-tag key and values attached to a resource. LFTag *LFTagKeyResource - // A list of tag conditions that define a resource's tag policy. + // A list of LF-tag conditions that define a resource's LF-tag policy. LFTagPolicy *LFTagPolicyResource // The table for the resource. A table is a metadata definition that represents @@ -347,7 +546,7 @@ type Resource struct { noSmithyDocumentSerde } -// A structure containing information about an AWS Lake Formation resource. +// A structure containing information about an Lake Formation resource. type ResourceInfo struct { // The date and time the resource was last modified. @@ -362,6 +561,60 @@ type ResourceInfo struct { noSmithyDocumentSerde } +// A PartiQL predicate. +type RowFilter struct { + + // A wildcard for all rows. + AllRowsWildcard *AllRowsWildcard + + // A filter expression. + FilterExpression *string + + noSmithyDocumentSerde +} + +// A structure describing the configuration and details of a storage optimizer. +type StorageOptimizer struct { + + // A map of the storage optimizer configuration. Currently contains only one + // key-value pair: is_enabled indicates true or false for acceleration. + Config map[string]string + + // A message that contains information about any error (if present). When an + // acceleration result has an enabled status, the error message is empty. When an + // acceleration result has a disabled status, the message describes an error or + // simply indicates "disabled by the user". + ErrorMessage *string + + // When an acceleration result has an enabled status, contains the details of the + // last job run. + LastRunDetails *string + + // The specific type of storage optimizer. The supported value is compaction. + StorageOptimizerType OptimizerType + + // A message that contains information about any warnings (if present). + Warnings *string + + noSmithyDocumentSerde +} + +// Specifies the details of a governed table. +type TableObject struct { + + // The Amazon S3 ETag of the object. Returned by GetTableObjects for validation and + // used to identify changes to the underlying data. + ETag *string + + // The size of the Amazon S3 object in bytes. + Size int64 + + // The Amazon S3 location of the object. + Uri *string + + noSmithyDocumentSerde +} + // A structure for the table object. A table is a metadata definition that // represents your data. You can Grant and Revoke table privileges to a principal. type TableResource struct { @@ -425,34 +678,101 @@ type TableWithColumnsResource struct { noSmithyDocumentSerde } -// A structure describing a database resource with tags. +// A structure describing a database resource with LF-tags. type TaggedDatabase struct { - // A database that has tags attached to it. + // A database that has LF-tags attached to it. Database *DatabaseResource - // A list of tags attached to the database. + // A list of LF-tags attached to the database. LFTags []LFTagPair noSmithyDocumentSerde } -// A structure describing a table resource with tags. +// A structure describing a table resource with LF-tags. type TaggedTable struct { - // A list of tags attached to the database where the table resides. + // A list of LF-tags attached to the database where the table resides. LFTagOnDatabase []LFTagPair - // A list of tags attached to columns in the table. + // A list of LF-tags attached to columns in the table. LFTagsOnColumns []ColumnLFTag - // A list of tags attached to the table. + // A list of LF-tags attached to the table. LFTagsOnTable []LFTagPair - // A table that has tags attached to it. + // A table that has LF-tags attached to it. Table *TableResource noSmithyDocumentSerde } +// A structure that contains information about a transaction. +type TransactionDescription struct { + + // The time when the transaction committed or aborted, if it is not currently + // active. + TransactionEndTime *time.Time + + // The ID of the transaction. + TransactionId *string + + // The time when the transaction started. + TransactionStartTime *time.Time + + // A status of ACTIVE, COMMITTED, or ABORTED. + TransactionStatus TransactionStatus + + noSmithyDocumentSerde +} + +// An object that defines an Amazon S3 object to be deleted if a transaction +// cancels, provided that VirtualPut was called before writing the object. +type VirtualObject struct { + + // The path to the Amazon S3 object. Must start with s3:// + // + // This member is required. + Uri *string + + // The ETag of the Amazon S3 object. + ETag *string + + noSmithyDocumentSerde +} + +// Defines the valid range of work unit IDs for querying the execution service. +type WorkUnitRange struct { + + // Defines the maximum work unit ID in the range. The maximum value is inclusive. + // + // This member is required. + WorkUnitIdMax int64 + + // Defines the minimum work unit ID in the range. + // + // This member is required. + WorkUnitIdMin int64 + + // A work token used to query the execution service. + // + // This member is required. + WorkUnitToken *string + + noSmithyDocumentSerde +} + +// Defines an object to add to or delete from a governed table. +type WriteOperation struct { + + // A new object to add to the governed table. + AddObject *AddObjectInput + + // An object to delete from the governed table. + DeleteObject *DeleteObjectInput + + noSmithyDocumentSerde +} + type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/lakeformation/validators.go b/service/lakeformation/validators.go index 694255ddfb0..3d236b12181 100644 --- a/service/lakeformation/validators.go +++ b/service/lakeformation/validators.go @@ -70,6 +70,66 @@ func (m *validateOpBatchRevokePermissions) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpCancelTransaction struct { +} + +func (*validateOpCancelTransaction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCancelTransaction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CancelTransactionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCancelTransactionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCommitTransaction struct { +} + +func (*validateOpCommitTransaction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCommitTransaction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CommitTransactionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCommitTransactionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateDataCellsFilter struct { +} + +func (*validateOpCreateDataCellsFilter) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateDataCellsFilter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateDataCellsFilterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateDataCellsFilterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateLFTag struct { } @@ -110,6 +170,26 @@ func (m *validateOpDeleteLFTag) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpDeleteObjectsOnCancel struct { +} + +func (*validateOpDeleteObjectsOnCancel) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteObjectsOnCancel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteObjectsOnCancelInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteObjectsOnCancelInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeregisterResource struct { } @@ -150,6 +230,26 @@ func (m *validateOpDescribeResource) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpDescribeTransaction struct { +} + +func (*validateOpDescribeTransaction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeTransaction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeTransactionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeTransactionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetEffectivePermissionsForPath struct { } @@ -190,6 +290,46 @@ func (m *validateOpGetLFTag) HandleInitialize(ctx context.Context, in middleware return next.HandleInitialize(ctx, in) } +type validateOpGetQueryState struct { +} + +func (*validateOpGetQueryState) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetQueryState) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetQueryStateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetQueryStateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetQueryStatistics struct { +} + +func (*validateOpGetQueryStatistics) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetQueryStatistics) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetQueryStatisticsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetQueryStatisticsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetResourceLFTags struct { } @@ -210,6 +350,66 @@ func (m *validateOpGetResourceLFTags) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpGetTableObjects struct { +} + +func (*validateOpGetTableObjects) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetTableObjects) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetTableObjectsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetTableObjectsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetWorkUnitResults struct { +} + +func (*validateOpGetWorkUnitResults) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetWorkUnitResults) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetWorkUnitResultsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetWorkUnitResultsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetWorkUnits struct { +} + +func (*validateOpGetWorkUnits) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetWorkUnits) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetWorkUnitsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetWorkUnitsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGrantPermissions struct { } @@ -230,6 +430,26 @@ func (m *validateOpGrantPermissions) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpListDataCellsFilter struct { +} + +func (*validateOpListDataCellsFilter) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListDataCellsFilter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListDataCellsFilterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListDataCellsFilterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListPermissions struct { } @@ -250,6 +470,26 @@ func (m *validateOpListPermissions) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpListTableStorageOptimizers struct { +} + +func (*validateOpListTableStorageOptimizers) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTableStorageOptimizers) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTableStorageOptimizersInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTableStorageOptimizersInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPutDataLakeSettings struct { } @@ -370,6 +610,26 @@ func (m *validateOpSearchTablesByLFTags) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpStartQueryPlanning struct { +} + +func (*validateOpStartQueryPlanning) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartQueryPlanning) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartQueryPlanningInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartQueryPlanningInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateLFTag struct { } @@ -410,6 +670,46 @@ func (m *validateOpUpdateResource) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpUpdateTableObjects struct { +} + +func (*validateOpUpdateTableObjects) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTableObjects) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTableObjectsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTableObjectsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateTableStorageOptimizer struct { +} + +func (*validateOpUpdateTableStorageOptimizer) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTableStorageOptimizer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTableStorageOptimizerInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTableStorageOptimizerInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + func addOpAddLFTagsToResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAddLFTagsToResource{}, middleware.After) } @@ -422,6 +722,18 @@ func addOpBatchRevokePermissionsValidationMiddleware(stack *middleware.Stack) er return stack.Initialize.Add(&validateOpBatchRevokePermissions{}, middleware.After) } +func addOpCancelTransactionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCancelTransaction{}, middleware.After) +} + +func addOpCommitTransactionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCommitTransaction{}, middleware.After) +} + +func addOpCreateDataCellsFilterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateDataCellsFilter{}, middleware.After) +} + func addOpCreateLFTagValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateLFTag{}, middleware.After) } @@ -430,6 +742,10 @@ func addOpDeleteLFTagValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteLFTag{}, middleware.After) } +func addOpDeleteObjectsOnCancelValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteObjectsOnCancel{}, middleware.After) +} + func addOpDeregisterResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeregisterResource{}, middleware.After) } @@ -438,6 +754,10 @@ func addOpDescribeResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeResource{}, middleware.After) } +func addOpDescribeTransactionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeTransaction{}, middleware.After) +} + func addOpGetEffectivePermissionsForPathValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetEffectivePermissionsForPath{}, middleware.After) } @@ -446,18 +766,46 @@ func addOpGetLFTagValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetLFTag{}, middleware.After) } +func addOpGetQueryStateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetQueryState{}, middleware.After) +} + +func addOpGetQueryStatisticsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetQueryStatistics{}, middleware.After) +} + func addOpGetResourceLFTagsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetResourceLFTags{}, middleware.After) } +func addOpGetTableObjectsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetTableObjects{}, middleware.After) +} + +func addOpGetWorkUnitResultsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetWorkUnitResults{}, middleware.After) +} + +func addOpGetWorkUnitsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetWorkUnits{}, middleware.After) +} + func addOpGrantPermissionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGrantPermissions{}, middleware.After) } +func addOpListDataCellsFilterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListDataCellsFilter{}, middleware.After) +} + func addOpListPermissionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListPermissions{}, middleware.After) } +func addOpListTableStorageOptimizersValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTableStorageOptimizers{}, middleware.After) +} + func addOpPutDataLakeSettingsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPutDataLakeSettings{}, middleware.After) } @@ -482,6 +830,10 @@ func addOpSearchTablesByLFTagsValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpSearchTablesByLFTags{}, middleware.After) } +func addOpStartQueryPlanningValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartQueryPlanning{}, middleware.After) +} + func addOpUpdateLFTagValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateLFTag{}, middleware.After) } @@ -490,6 +842,32 @@ func addOpUpdateResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateResource{}, middleware.After) } +func addOpUpdateTableObjectsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTableObjects{}, middleware.After) +} + +func addOpUpdateTableStorageOptimizerValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTableStorageOptimizer{}, middleware.After) +} + +func validateAddObjectInput(v *types.AddObjectInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AddObjectInput"} + if v.Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("Uri")) + } + if v.ETag == nil { + invalidParams.Add(smithy.NewErrParamRequired("ETag")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateBatchPermissionsRequestEntry(v *types.BatchPermissionsRequestEntry) error { if v == nil { return nil @@ -542,6 +920,30 @@ func validateDatabaseResource(v *types.DatabaseResource) error { } } +func validateDataCellsFilter(v *types.DataCellsFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DataCellsFilter"} + if v.TableCatalogId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableCatalogId")) + } + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDataLocationResource(v *types.DataLocationResource) error { if v == nil { return nil @@ -557,6 +959,21 @@ func validateDataLocationResource(v *types.DataLocationResource) error { } } +func validateDeleteObjectInput(v *types.DeleteObjectInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteObjectInput"} + if v.Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("Uri")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateExpression(v []types.LFTag) error { if v == nil { return nil @@ -650,15 +1067,30 @@ func validateLFTagPolicyResource(v *types.LFTagPolicyResource) error { } } -func validateLFTagsList(v []types.LFTagPair) error { +func validateLFTagsList(v []types.LFTagPair) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "LFTagsList"} + for i := range v { + if err := validateLFTagPair(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateQueryPlanningContext(v *types.QueryPlanningContext) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "LFTagsList"} - for i := range v { - if err := validateLFTagPair(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } + invalidParams := smithy.InvalidParamsError{Context: "QueryPlanningContext"} + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) } if invalidParams.Len() > 0 { return invalidParams @@ -742,6 +1174,77 @@ func validateTableWithColumnsResource(v *types.TableWithColumnsResource) error { } } +func validateVirtualObject(v *types.VirtualObject) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VirtualObject"} + if v.Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("Uri")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateVirtualObjectList(v []types.VirtualObject) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "VirtualObjectList"} + for i := range v { + if err := validateVirtualObject(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateWriteOperation(v *types.WriteOperation) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "WriteOperation"} + if v.AddObject != nil { + if err := validateAddObjectInput(v.AddObject); err != nil { + invalidParams.AddNested("AddObject", err.(smithy.InvalidParamsError)) + } + } + if v.DeleteObject != nil { + if err := validateDeleteObjectInput(v.DeleteObject); err != nil { + invalidParams.AddNested("DeleteObject", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateWriteOperationList(v []types.WriteOperation) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "WriteOperationList"} + for i := range v { + if err := validateWriteOperation(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAddLFTagsToResourceInput(v *AddLFTagsToResourceInput) error { if v == nil { return nil @@ -806,6 +1309,55 @@ func validateOpBatchRevokePermissionsInput(v *BatchRevokePermissionsInput) error } } +func validateOpCancelTransactionInput(v *CancelTransactionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CancelTransactionInput"} + if v.TransactionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransactionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCommitTransactionInput(v *CommitTransactionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CommitTransactionInput"} + if v.TransactionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransactionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateDataCellsFilterInput(v *CreateDataCellsFilterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateDataCellsFilterInput"} + if v.TableData == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableData")) + } else if v.TableData != nil { + if err := validateDataCellsFilter(v.TableData); err != nil { + invalidParams.AddNested("TableData", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateLFTagInput(v *CreateLFTagInput) error { if v == nil { return nil @@ -839,6 +1391,34 @@ func validateOpDeleteLFTagInput(v *DeleteLFTagInput) error { } } +func validateOpDeleteObjectsOnCancelInput(v *DeleteObjectsOnCancelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteObjectsOnCancelInput"} + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if v.TransactionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransactionId")) + } + if v.Objects == nil { + invalidParams.Add(smithy.NewErrParamRequired("Objects")) + } else if v.Objects != nil { + if err := validateVirtualObjectList(v.Objects); err != nil { + invalidParams.AddNested("Objects", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeregisterResourceInput(v *DeregisterResourceInput) error { if v == nil { return nil @@ -869,6 +1449,21 @@ func validateOpDescribeResourceInput(v *DescribeResourceInput) error { } } +func validateOpDescribeTransactionInput(v *DescribeTransactionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeTransactionInput"} + if v.TransactionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransactionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetEffectivePermissionsForPathInput(v *GetEffectivePermissionsForPathInput) error { if v == nil { return nil @@ -899,6 +1494,36 @@ func validateOpGetLFTagInput(v *GetLFTagInput) error { } } +func validateOpGetQueryStateInput(v *GetQueryStateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetQueryStateInput"} + if v.QueryId == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetQueryStatisticsInput(v *GetQueryStatisticsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetQueryStatisticsInput"} + if v.QueryId == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetResourceLFTagsInput(v *GetResourceLFTagsInput) error { if v == nil { return nil @@ -918,6 +1543,57 @@ func validateOpGetResourceLFTagsInput(v *GetResourceLFTagsInput) error { } } +func validateOpGetTableObjectsInput(v *GetTableObjectsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetTableObjectsInput"} + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetWorkUnitResultsInput(v *GetWorkUnitResultsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetWorkUnitResultsInput"} + if v.QueryId == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryId")) + } + if v.WorkUnitToken == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkUnitToken")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetWorkUnitsInput(v *GetWorkUnitsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetWorkUnitsInput"} + if v.QueryId == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGrantPermissionsInput(v *GrantPermissionsInput) error { if v == nil { return nil @@ -943,6 +1619,23 @@ func validateOpGrantPermissionsInput(v *GrantPermissionsInput) error { } } +func validateOpListDataCellsFilterInput(v *ListDataCellsFilterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListDataCellsFilterInput"} + if v.Table != nil { + if err := validateTableResource(v.Table); err != nil { + invalidParams.AddNested("Table", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListPermissionsInput(v *ListPermissionsInput) error { if v == nil { return nil @@ -960,6 +1653,24 @@ func validateOpListPermissionsInput(v *ListPermissionsInput) error { } } +func validateOpListTableStorageOptimizersInput(v *ListTableStorageOptimizersInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTableStorageOptimizersInput"} + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPutDataLakeSettingsInput(v *PutDataLakeSettingsInput) error { if v == nil { return nil @@ -1079,6 +1790,28 @@ func validateOpSearchTablesByLFTagsInput(v *SearchTablesByLFTagsInput) error { } } +func validateOpStartQueryPlanningInput(v *StartQueryPlanningInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartQueryPlanningInput"} + if v.QueryPlanningContext == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryPlanningContext")) + } else if v.QueryPlanningContext != nil { + if err := validateQueryPlanningContext(v.QueryPlanningContext); err != nil { + invalidParams.AddNested("QueryPlanningContext", err.(smithy.InvalidParamsError)) + } + } + if v.QueryString == nil { + invalidParams.Add(smithy.NewErrParamRequired("QueryString")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateLFTagInput(v *UpdateLFTagInput) error { if v == nil { return nil @@ -1111,3 +1844,52 @@ func validateOpUpdateResourceInput(v *UpdateResourceInput) error { return nil } } + +func validateOpUpdateTableObjectsInput(v *UpdateTableObjectsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTableObjectsInput"} + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if v.TransactionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransactionId")) + } + if v.WriteOperations == nil { + invalidParams.Add(smithy.NewErrParamRequired("WriteOperations")) + } else if v.WriteOperations != nil { + if err := validateWriteOperationList(v.WriteOperations); err != nil { + invalidParams.AddNested("WriteOperations", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateTableStorageOptimizerInput(v *UpdateTableStorageOptimizerInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTableStorageOptimizerInput"} + if v.DatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatabaseName")) + } + if v.TableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("TableName")) + } + if v.StorageOptimizerConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("StorageOptimizerConfig")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/lexmodelsv2/api_op_DescribeBotRecommendation.go b/service/lexmodelsv2/api_op_DescribeBotRecommendation.go new file mode 100644 index 00000000000..2f6b1af57c0 --- /dev/null +++ b/service/lexmodelsv2/api_op_DescribeBotRecommendation.go @@ -0,0 +1,178 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lexmodelsv2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Provides metadata information about a bot recommendation. This information will +// enable you to get a description on the request inputs, to download associated +// transcripts after processing is complete, and to download intents and slot-types +// generated by the bot recommendation. +func (c *Client) DescribeBotRecommendation(ctx context.Context, params *DescribeBotRecommendationInput, optFns ...func(*Options)) (*DescribeBotRecommendationOutput, error) { + if params == nil { + params = &DescribeBotRecommendationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeBotRecommendation", params, optFns, c.addOperationDescribeBotRecommendationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeBotRecommendationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeBotRecommendationInput struct { + + // The unique identifier of the bot associated with the bot recommendation. + // + // This member is required. + BotId *string + + // The identifier of the bot recommendation to describe. + // + // This member is required. + BotRecommendationId *string + + // The version of the bot associated with the bot recommendation. + // + // This member is required. + BotVersion *string + + // The identifier of the language and locale of the bot recommendation to describe. + // The string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). + // + // This member is required. + LocaleId *string + + noSmithyDocumentSerde +} + +type DescribeBotRecommendationOutput struct { + + // The identifier of the bot associated with the bot recommendation. + BotId *string + + // The identifier of the bot recommendation being described. + BotRecommendationId *string + + // The object representing the URL of the bot definition, the URL of the associated + // transcript and a statistical summary of the bot recommendation results. + BotRecommendationResults *types.BotRecommendationResults + + // The status of the bot recommendation. If the status is Failed, then the reasons + // for the failure are listed in the failureReasons field. + BotRecommendationStatus types.BotRecommendationStatus + + // The version of the bot associated with the bot recommendation. + BotVersion *string + + // The date and time that the bot recommendation was created. + CreationDateTime *time.Time + + // The object representing the passwords that were used to encrypt the data related + // to the bot recommendation results, as well as the KMS key ARN used to encrypt + // the associated metadata. + EncryptionSetting *types.EncryptionSetting + + // If botRecommendationStatus is Failed, Amazon Lex explains why. + FailureReasons []string + + // The date and time that the bot recommendation was last updated. + LastUpdatedDateTime *time.Time + + // The identifier of the language and locale of the bot recommendation to describe. + LocaleId *string + + // The object representing the Amazon S3 bucket containing the transcript, as well + // as the associated metadata. + TranscriptSourceSetting *types.TranscriptSourceSetting + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeBotRecommendationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeBotRecommendation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeBotRecommendation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeBotRecommendationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeBotRecommendation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeBotRecommendation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lex", + OperationName: "DescribeBotRecommendation", + } +} diff --git a/service/lexmodelsv2/api_op_ListBotRecommendations.go b/service/lexmodelsv2/api_op_ListBotRecommendations.go new file mode 100644 index 00000000000..96d60e6229f --- /dev/null +++ b/service/lexmodelsv2/api_op_ListBotRecommendations.go @@ -0,0 +1,249 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lexmodelsv2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Get a list of bot recommendations that meet the specified criteria. +func (c *Client) ListBotRecommendations(ctx context.Context, params *ListBotRecommendationsInput, optFns ...func(*Options)) (*ListBotRecommendationsOutput, error) { + if params == nil { + params = &ListBotRecommendationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListBotRecommendations", params, optFns, c.addOperationListBotRecommendationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListBotRecommendationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListBotRecommendationsInput struct { + + // The unique identifier of the bot that contains the bot recommendation list. + // + // This member is required. + BotId *string + + // The version of the bot that contains the bot recommendation list. + // + // This member is required. + BotVersion *string + + // The identifier of the language and locale of the bot recommendation list. + // + // This member is required. + LocaleId *string + + // The maximum number of bot recommendations to return in each page of results. If + // there are fewer results than the max page size, only the actual number of + // results are returned. + MaxResults *int32 + + // If the response from the ListBotRecommendation operation contains more results + // than specified in the maxResults parameter, a token is returned in the response. + // Use that token in the nextToken parameter to return the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListBotRecommendationsOutput struct { + + // The unique identifier of the bot that contains the bot recommendation list. + BotId *string + + // Summary information for the bot recommendations that meet the filter specified + // in this request. The length of the list is specified in the maxResults parameter + // of the request. If there are more bot recommendations available, the nextToken + // field contains a token to get the next page of results. + BotRecommendationSummaries []types.BotRecommendationSummary + + // The version of the bot that contains the bot recommendation list. + BotVersion *string + + // The identifier of the language and locale of the bot recommendation list. + LocaleId *string + + // A token that indicates whether there are more results to return in a response to + // the ListBotRecommendations operation. If the nextToken field is present, you + // send the contents as the nextToken parameter of a ListBotRecommendations + // operation request to get the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListBotRecommendationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListBotRecommendations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListBotRecommendations{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListBotRecommendationsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListBotRecommendations(options.Region), middleware.Before); 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 + } + return nil +} + +// ListBotRecommendationsAPIClient is a client that implements the +// ListBotRecommendations operation. +type ListBotRecommendationsAPIClient interface { + ListBotRecommendations(context.Context, *ListBotRecommendationsInput, ...func(*Options)) (*ListBotRecommendationsOutput, error) +} + +var _ ListBotRecommendationsAPIClient = (*Client)(nil) + +// ListBotRecommendationsPaginatorOptions is the paginator options for +// ListBotRecommendations +type ListBotRecommendationsPaginatorOptions struct { + // The maximum number of bot recommendations to return in each page of results. If + // there are fewer results than the max page size, only the actual number of + // results are returned. + 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 +} + +// ListBotRecommendationsPaginator is a paginator for ListBotRecommendations +type ListBotRecommendationsPaginator struct { + options ListBotRecommendationsPaginatorOptions + client ListBotRecommendationsAPIClient + params *ListBotRecommendationsInput + nextToken *string + firstPage bool +} + +// NewListBotRecommendationsPaginator returns a new ListBotRecommendationsPaginator +func NewListBotRecommendationsPaginator(client ListBotRecommendationsAPIClient, params *ListBotRecommendationsInput, optFns ...func(*ListBotRecommendationsPaginatorOptions)) *ListBotRecommendationsPaginator { + if params == nil { + params = &ListBotRecommendationsInput{} + } + + options := ListBotRecommendationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListBotRecommendationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListBotRecommendationsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListBotRecommendations page. +func (p *ListBotRecommendationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBotRecommendationsOutput, 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.ListBotRecommendations(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_opListBotRecommendations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lex", + OperationName: "ListBotRecommendations", + } +} diff --git a/service/lexmodelsv2/api_op_ListRecommendedIntents.go b/service/lexmodelsv2/api_op_ListRecommendedIntents.go new file mode 100644 index 00000000000..8e94defe1d0 --- /dev/null +++ b/service/lexmodelsv2/api_op_ListRecommendedIntents.go @@ -0,0 +1,260 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lexmodelsv2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets a list of recommended intents provided by the bot recommendation that you +// can use in your bot. +func (c *Client) ListRecommendedIntents(ctx context.Context, params *ListRecommendedIntentsInput, optFns ...func(*Options)) (*ListRecommendedIntentsOutput, error) { + if params == nil { + params = &ListRecommendedIntentsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListRecommendedIntents", params, optFns, c.addOperationListRecommendedIntentsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListRecommendedIntentsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListRecommendedIntentsInput struct { + + // The unique identifier of the bot associated with the recommended intents. + // + // This member is required. + BotId *string + + // The identifier of the bot recommendation that contains the recommended intents. + // + // This member is required. + BotRecommendationId *string + + // The version of the bot that contains the recommended intents. + // + // This member is required. + BotVersion *string + + // The identifier of the language and locale of the recommended intents. + // + // This member is required. + LocaleId *string + + // The maximum number of bot recommendations to return in each page of results. If + // there are fewer results than the max page size, only the actual number of + // results are returned. + MaxResults *int32 + + // If the response from the ListRecommendedIntents operation contains more results + // than specified in the maxResults parameter, a token is returned in the response. + // Use that token in the nextToken parameter to return the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListRecommendedIntentsOutput struct { + + // The unique identifier of the bot associated with the recommended intent. + BotId *string + + // The identifier of the bot recommendation that contains the recommended intent. + BotRecommendationId *string + + // The version of the bot that contains the intent. + BotVersion *string + + // The identifier of the language and locale of the intents to list. The string + // must match one of the supported locales. For more information, see Supported + // languages (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). + LocaleId *string + + // A token that indicates whether there are more results to return in a response to + // the ListRecommendedIntents operation. If the nextToken field is present, you + // send the contents as the nextToken parameter of a ListRecommendedIntents + // operation request to get the next page of results. + NextToken *string + + // Summary information for the intents that meet the filter criteria specified in + // the request. The length of the list is specified in the maxResults parameter of + // the request. If there are more intents available, the nextToken field contains a + // token to get the next page of results. + SummaryList []types.RecommendedIntentSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListRecommendedIntentsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListRecommendedIntents{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRecommendedIntents{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListRecommendedIntentsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRecommendedIntents(options.Region), middleware.Before); 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 + } + return nil +} + +// ListRecommendedIntentsAPIClient is a client that implements the +// ListRecommendedIntents operation. +type ListRecommendedIntentsAPIClient interface { + ListRecommendedIntents(context.Context, *ListRecommendedIntentsInput, ...func(*Options)) (*ListRecommendedIntentsOutput, error) +} + +var _ ListRecommendedIntentsAPIClient = (*Client)(nil) + +// ListRecommendedIntentsPaginatorOptions is the paginator options for +// ListRecommendedIntents +type ListRecommendedIntentsPaginatorOptions struct { + // The maximum number of bot recommendations to return in each page of results. If + // there are fewer results than the max page size, only the actual number of + // results are returned. + 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 +} + +// ListRecommendedIntentsPaginator is a paginator for ListRecommendedIntents +type ListRecommendedIntentsPaginator struct { + options ListRecommendedIntentsPaginatorOptions + client ListRecommendedIntentsAPIClient + params *ListRecommendedIntentsInput + nextToken *string + firstPage bool +} + +// NewListRecommendedIntentsPaginator returns a new ListRecommendedIntentsPaginator +func NewListRecommendedIntentsPaginator(client ListRecommendedIntentsAPIClient, params *ListRecommendedIntentsInput, optFns ...func(*ListRecommendedIntentsPaginatorOptions)) *ListRecommendedIntentsPaginator { + if params == nil { + params = &ListRecommendedIntentsInput{} + } + + options := ListRecommendedIntentsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListRecommendedIntentsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListRecommendedIntentsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListRecommendedIntents page. +func (p *ListRecommendedIntentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRecommendedIntentsOutput, 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.ListRecommendedIntents(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_opListRecommendedIntents(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lex", + OperationName: "ListRecommendedIntents", + } +} diff --git a/service/lexmodelsv2/api_op_SearchAssociatedTranscripts.go b/service/lexmodelsv2/api_op_SearchAssociatedTranscripts.go new file mode 100644 index 00000000000..a2b86d18156 --- /dev/null +++ b/service/lexmodelsv2/api_op_SearchAssociatedTranscripts.go @@ -0,0 +1,188 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lexmodelsv2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Search for associated transcripts that meet the specified criteria. +func (c *Client) SearchAssociatedTranscripts(ctx context.Context, params *SearchAssociatedTranscriptsInput, optFns ...func(*Options)) (*SearchAssociatedTranscriptsOutput, error) { + if params == nil { + params = &SearchAssociatedTranscriptsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "SearchAssociatedTranscripts", params, optFns, c.addOperationSearchAssociatedTranscriptsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*SearchAssociatedTranscriptsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type SearchAssociatedTranscriptsInput struct { + + // The unique identifier of the bot associated with the transcripts that you are + // searching. + // + // This member is required. + BotId *string + + // The unique identifier of the bot recommendation associated with the transcripts + // to search. + // + // This member is required. + BotRecommendationId *string + + // The version of the bot containing the transcripts that you are searching. + // + // This member is required. + BotVersion *string + + // A list of filter objects. + // + // This member is required. + Filters []types.AssociatedTranscriptFilter + + // The identifier of the language and locale of the transcripts to search. The + // string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + // + // This member is required. + LocaleId *string + + // The maximum number of bot recommendations to return in each page of results. If + // there are fewer results than the max page size, only the actual number of + // results are returned. + MaxResults *int32 + + // If the response from the SearchAssociatedTranscriptsRequest operation contains + // more results than specified in the maxResults parameter, an index is returned in + // the response. Use that index in the nextIndex parameter to return the next page + // of results. + NextIndex *int32 + + // How SearchResults are ordered. Valid values are Ascending or Descending. The + // default is Descending. + SearchOrder types.SearchOrder + + noSmithyDocumentSerde +} + +type SearchAssociatedTranscriptsOutput struct { + + // The object that contains the associated transcript that meet the criteria you + // specified. + AssociatedTranscripts []types.AssociatedTranscript + + // The unique identifier of the bot associated with the transcripts that you are + // searching. + BotId *string + + // The unique identifier of the bot recommendation associated with the transcripts + // to search. + BotRecommendationId *string + + // The version of the bot containing the transcripts that you are searching. + BotVersion *string + + // The identifier of the language and locale of the transcripts to search. The + // string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + LocaleId *string + + // A index that indicates whether there are more results to return in a response to + // the SearchAssociatedTranscripts operation. If the nextIndex field is present, + // you send the contents as the nextIndex parameter of a + // SearchAssociatedTranscriptsRequest operation to get the next page of results. + NextIndex *int32 + + // The total number of transcripts returned by the search. + TotalResults *int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationSearchAssociatedTranscriptsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpSearchAssociatedTranscripts{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpSearchAssociatedTranscripts{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpSearchAssociatedTranscriptsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchAssociatedTranscripts(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opSearchAssociatedTranscripts(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lex", + OperationName: "SearchAssociatedTranscripts", + } +} diff --git a/service/lexmodelsv2/api_op_StartBotRecommendation.go b/service/lexmodelsv2/api_op_StartBotRecommendation.go new file mode 100644 index 00000000000..d517b548de2 --- /dev/null +++ b/service/lexmodelsv2/api_op_StartBotRecommendation.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lexmodelsv2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Use this to provide your transcript data, and to start the bot recommendation +// process. +func (c *Client) StartBotRecommendation(ctx context.Context, params *StartBotRecommendationInput, optFns ...func(*Options)) (*StartBotRecommendationOutput, error) { + if params == nil { + params = &StartBotRecommendationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StartBotRecommendation", params, optFns, c.addOperationStartBotRecommendationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StartBotRecommendationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StartBotRecommendationInput struct { + + // The unique identifier of the bot containing the bot recommendation. + // + // This member is required. + BotId *string + + // The version of the bot containing the bot recommendation. + // + // This member is required. + BotVersion *string + + // The identifier of the language and locale of the bot recommendation to start. + // The string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + // + // This member is required. + LocaleId *string + + // The object representing the Amazon S3 bucket containing the transcript, as well + // as the associated metadata. + // + // This member is required. + TranscriptSourceSetting *types.TranscriptSourceSetting + + // The object representing the passwords that will be used to encrypt the data + // related to the bot recommendation results, as well as the KMS key ARN used to + // encrypt the associated metadata. + EncryptionSetting *types.EncryptionSetting + + noSmithyDocumentSerde +} + +type StartBotRecommendationOutput struct { + + // The unique identifier of the bot containing the bot recommendation. + BotId *string + + // The identifier of the bot recommendation that you have created. + BotRecommendationId *string + + // The status of the bot recommendation. If the status is Failed, then the reasons + // for the failure are listed in the failureReasons field. + BotRecommendationStatus types.BotRecommendationStatus + + // The version of the bot containing the bot recommendation. + BotVersion *string + + // A timestamp of the date and time that the bot recommendation was created. + CreationDateTime *time.Time + + // The object representing the passwords that were used to encrypt the data related + // to the bot recommendation results, as well as the KMS key ARN used to encrypt + // the associated metadata. + EncryptionSetting *types.EncryptionSetting + + // The identifier of the language and locale of the bot recommendation to start. + // The string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + LocaleId *string + + // The object representing the Amazon S3 bucket containing the transcript, as well + // as the associated metadata. + TranscriptSourceSetting *types.TranscriptSourceSetting + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStartBotRecommendationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpStartBotRecommendation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartBotRecommendation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpStartBotRecommendationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartBotRecommendation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opStartBotRecommendation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lex", + OperationName: "StartBotRecommendation", + } +} diff --git a/service/lexmodelsv2/api_op_UpdateBotRecommendation.go b/service/lexmodelsv2/api_op_UpdateBotRecommendation.go new file mode 100644 index 00000000000..49a5706f1c8 --- /dev/null +++ b/service/lexmodelsv2/api_op_UpdateBotRecommendation.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lexmodelsv2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lexmodelsv2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates an existing bot recommendation request. +func (c *Client) UpdateBotRecommendation(ctx context.Context, params *UpdateBotRecommendationInput, optFns ...func(*Options)) (*UpdateBotRecommendationOutput, error) { + if params == nil { + params = &UpdateBotRecommendationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateBotRecommendation", params, optFns, c.addOperationUpdateBotRecommendationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateBotRecommendationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateBotRecommendationInput struct { + + // The unique identifier of the bot containing the bot recommendation to be + // updated. + // + // This member is required. + BotId *string + + // The unique identifier of the bot recommendation to be updated. + // + // This member is required. + BotRecommendationId *string + + // The version of the bot containing the bot recommendation to be updated. + // + // This member is required. + BotVersion *string + + // The object representing the passwords that will be used to encrypt the data + // related to the bot recommendation results, as well as the KMS key ARN used to + // encrypt the associated metadata. + // + // This member is required. + EncryptionSetting *types.EncryptionSetting + + // The identifier of the language and locale of the bot recommendation to update. + // The string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + // + // This member is required. + LocaleId *string + + noSmithyDocumentSerde +} + +type UpdateBotRecommendationOutput struct { + + // The unique identifier of the bot containing the bot recommendation that has been + // updated. + BotId *string + + // The unique identifier of the bot recommendation to be updated. + BotRecommendationId *string + + // The status of the bot recommendation. If the status is Failed, then the reasons + // for the failure are listed in the failureReasons field. + BotRecommendationStatus types.BotRecommendationStatus + + // The version of the bot containing the bot recommendation that has been updated. + BotVersion *string + + // A timestamp of the date and time that the bot recommendation was created. + CreationDateTime *time.Time + + // The object representing the passwords that were used to encrypt the data related + // to the bot recommendation results, as well as the KMS key ARN used to encrypt + // the associated metadata. + EncryptionSetting *types.EncryptionSetting + + // A timestamp of the date and time that the bot recommendation was last updated. + LastUpdatedDateTime *time.Time + + // The identifier of the language and locale of the bot recommendation to update. + // The string must match one of the supported locales. For more information, see + // Supported languages + // (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html) + LocaleId *string + + // The object representing the Amazon S3 bucket containing the transcript, as well + // as the associated metadata. + TranscriptSourceSetting *types.TranscriptSourceSetting + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateBotRecommendationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateBotRecommendation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateBotRecommendation{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateBotRecommendationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateBotRecommendation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateBotRecommendation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lex", + OperationName: "UpdateBotRecommendation", + } +} diff --git a/service/lexmodelsv2/deserializers.go b/service/lexmodelsv2/deserializers.go index 3c76b411294..88cca44230f 100644 --- a/service/lexmodelsv2/deserializers.go +++ b/service/lexmodelsv2/deserializers.go @@ -5375,6 +5375,254 @@ func awsRestjson1_deserializeOpDocumentDescribeBotLocaleOutput(v **DescribeBotLo return nil } +type awsRestjson1_deserializeOpDescribeBotRecommendation struct { +} + +func (*awsRestjson1_deserializeOpDescribeBotRecommendation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeBotRecommendation) 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, awsRestjson1_deserializeOpErrorDescribeBotRecommendation(response, &metadata) + } + output := &DescribeBotRecommendationOutput{} + 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 = awsRestjson1_deserializeOpDocumentDescribeBotRecommendationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeBotRecommendation(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeBotRecommendationOutput(v **DescribeBotRecommendationOutput, 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 *DescribeBotRecommendationOutput + if *v == nil { + sv = &DescribeBotRecommendationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "botId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotId = ptr.String(jtv) + } + + case "botRecommendationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotRecommendationId = ptr.String(jtv) + } + + case "botRecommendationResults": + if err := awsRestjson1_deserializeDocumentBotRecommendationResults(&sv.BotRecommendationResults, value); err != nil { + return err + } + + case "botRecommendationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BotRecommendationStatus to be of type string, got %T instead", value) + } + sv.BotRecommendationStatus = types.BotRecommendationStatus(jtv) + } + + case "botVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DraftBotVersion to be of type string, got %T instead", value) + } + sv.BotVersion = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "encryptionSetting": + if err := awsRestjson1_deserializeDocumentEncryptionSetting(&sv.EncryptionSetting, value); err != nil { + return err + } + + case "failureReasons": + if err := awsRestjson1_deserializeDocumentFailureReasons(&sv.FailureReasons, value); err != nil { + return err + } + + case "lastUpdatedDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "localeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleId to be of type string, got %T instead", value) + } + sv.LocaleId = ptr.String(jtv) + } + + case "transcriptSourceSetting": + if err := awsRestjson1_deserializeDocumentTranscriptSourceSetting(&sv.TranscriptSourceSetting, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpDescribeBotVersion struct { } @@ -7701,14 +7949,14 @@ func awsRestjson1_deserializeOpDocumentListBotLocalesOutput(v **ListBotLocalesOu return nil } -type awsRestjson1_deserializeOpListBots struct { +type awsRestjson1_deserializeOpListBotRecommendations struct { } -func (*awsRestjson1_deserializeOpListBots) ID() string { +func (*awsRestjson1_deserializeOpListBotRecommendations) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListBots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListBotRecommendations) 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) @@ -7722,9 +7970,9 @@ func (m *awsRestjson1_deserializeOpListBots) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListBots(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListBotRecommendations(response, &metadata) } - output := &ListBotsOutput{} + output := &ListBotRecommendationsOutput{} out.Result = output var buff [1024]byte @@ -7745,7 +7993,7 @@ func (m *awsRestjson1_deserializeOpListBots) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListBotsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListBotRecommendationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7758,7 +8006,7 @@ func (m *awsRestjson1_deserializeOpListBots) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorListBots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListBotRecommendations(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)} @@ -7802,8 +8050,8 @@ func awsRestjson1_deserializeOpErrorListBots(response *smithyhttp.Response, meta case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -7821,7 +8069,7 @@ func awsRestjson1_deserializeOpErrorListBots(response *smithyhttp.Response, meta } } -func awsRestjson1_deserializeOpDocumentListBotsOutput(v **ListBotsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListBotRecommendationsOutput(v **ListBotRecommendationsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7834,31 +8082,223 @@ func awsRestjson1_deserializeOpDocumentListBotsOutput(v **ListBotsOutput, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListBotsOutput + var sv *ListBotRecommendationsOutput if *v == nil { - sv = &ListBotsOutput{} + sv = &ListBotRecommendationsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "botSummaries": - if err := awsRestjson1_deserializeDocumentBotSummaryList(&sv.BotSummaries, value); err != nil { - return err - } - - case "nextToken": + case "botId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.BotId = ptr.String(jtv) } - default: - _, _ = key, value + case "botRecommendationSummaries": + if err := awsRestjson1_deserializeDocumentBotRecommendationSummaryList(&sv.BotRecommendationSummaries, value); err != nil { + return err + } + + case "botVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DraftBotVersion to be of type string, got %T instead", value) + } + sv.BotVersion = ptr.String(jtv) + } + + case "localeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleId to be of type string, got %T instead", value) + } + sv.LocaleId = ptr.String(jtv) + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListBots struct { +} + +func (*awsRestjson1_deserializeOpListBots) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListBots) 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, awsRestjson1_deserializeOpErrorListBots(response, &metadata) + } + output := &ListBotsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListBotsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListBots(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListBotsOutput(v **ListBotsOutput, 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 *ListBotsOutput + if *v == nil { + sv = &ListBotsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "botSummaries": + if err := awsRestjson1_deserializeDocumentBotSummaryList(&sv.BotSummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value } } @@ -8940,14 +9380,14 @@ func awsRestjson1_deserializeOpDocumentListIntentsOutput(v **ListIntentsOutput, return nil } -type awsRestjson1_deserializeOpListSlots struct { +type awsRestjson1_deserializeOpListRecommendedIntents struct { } -func (*awsRestjson1_deserializeOpListSlots) ID() string { +func (*awsRestjson1_deserializeOpListRecommendedIntents) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListSlots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListRecommendedIntents) 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) @@ -8961,9 +9401,9 @@ func (m *awsRestjson1_deserializeOpListSlots) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListSlots(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListRecommendedIntents(response, &metadata) } - output := &ListSlotsOutput{} + output := &ListRecommendedIntentsOutput{} out.Result = output var buff [1024]byte @@ -8984,7 +9424,7 @@ func (m *awsRestjson1_deserializeOpListSlots) HandleDeserialize(ctx context.Cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListSlotsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListRecommendedIntentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8997,7 +9437,7 @@ func (m *awsRestjson1_deserializeOpListSlots) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorListSlots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListRecommendedIntents(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)} @@ -9041,6 +9481,9 @@ func awsRestjson1_deserializeOpErrorListSlots(response *smithyhttp.Response, met case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) @@ -9060,7 +9503,7 @@ func awsRestjson1_deserializeOpErrorListSlots(response *smithyhttp.Response, met } } -func awsRestjson1_deserializeOpDocumentListSlotsOutput(v **ListSlotsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListRecommendedIntentsOutput(v **ListRecommendedIntentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9073,9 +9516,9 @@ func awsRestjson1_deserializeOpDocumentListSlotsOutput(v **ListSlotsOutput, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListSlotsOutput + var sv *ListRecommendedIntentsOutput if *v == nil { - sv = &ListSlotsOutput{} + sv = &ListRecommendedIntentsOutput{} } else { sv = *v } @@ -9091,22 +9534,22 @@ func awsRestjson1_deserializeOpDocumentListSlotsOutput(v **ListSlotsOutput, valu sv.BotId = ptr.String(jtv) } - case "botVersion": + case "botRecommendationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BotVersion to be of type string, got %T instead", value) + return fmt.Errorf("expected Id to be of type string, got %T instead", value) } - sv.BotVersion = ptr.String(jtv) + sv.BotRecommendationId = ptr.String(jtv) } - case "intentId": + case "botVersion": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Id to be of type string, got %T instead", value) + return fmt.Errorf("expected DraftBotVersion to be of type string, got %T instead", value) } - sv.IntentId = ptr.String(jtv) + sv.BotVersion = ptr.String(jtv) } case "localeId": @@ -9127,8 +9570,8 @@ func awsRestjson1_deserializeOpDocumentListSlotsOutput(v **ListSlotsOutput, valu sv.NextToken = ptr.String(jtv) } - case "slotSummaries": - if err := awsRestjson1_deserializeDocumentSlotSummaryList(&sv.SlotSummaries, value); err != nil { + case "summaryList": + if err := awsRestjson1_deserializeDocumentRecommendedIntentSummaryList(&sv.SummaryList, value); err != nil { return err } @@ -9141,14 +9584,14 @@ func awsRestjson1_deserializeOpDocumentListSlotsOutput(v **ListSlotsOutput, valu return nil } -type awsRestjson1_deserializeOpListSlotTypes struct { +type awsRestjson1_deserializeOpListSlots struct { } -func (*awsRestjson1_deserializeOpListSlotTypes) ID() string { +func (*awsRestjson1_deserializeOpListSlots) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListSlotTypes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListSlots) 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) @@ -9162,9 +9605,9 @@ func (m *awsRestjson1_deserializeOpListSlotTypes) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListSlotTypes(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListSlots(response, &metadata) } - output := &ListSlotTypesOutput{} + output := &ListSlotsOutput{} out.Result = output var buff [1024]byte @@ -9185,7 +9628,7 @@ func (m *awsRestjson1_deserializeOpListSlotTypes) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListSlotTypesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListSlotsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9198,7 +9641,7 @@ func (m *awsRestjson1_deserializeOpListSlotTypes) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorListSlotTypes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListSlots(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)} @@ -9261,7 +9704,7 @@ func awsRestjson1_deserializeOpErrorListSlotTypes(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpDocumentListSlotTypesOutput(v **ListSlotTypesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListSlotsOutput(v **ListSlotsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9274,9 +9717,9 @@ func awsRestjson1_deserializeOpDocumentListSlotTypesOutput(v **ListSlotTypesOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListSlotTypesOutput + var sv *ListSlotsOutput if *v == nil { - sv = &ListSlotTypesOutput{} + sv = &ListSlotsOutput{} } else { sv = *v } @@ -9301,6 +9744,15 @@ func awsRestjson1_deserializeOpDocumentListSlotTypesOutput(v **ListSlotTypesOutp sv.BotVersion = ptr.String(jtv) } + case "intentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.IntentId = ptr.String(jtv) + } + case "localeId": if value != nil { jtv, ok := value.(string) @@ -9319,8 +9771,8 @@ func awsRestjson1_deserializeOpDocumentListSlotTypesOutput(v **ListSlotTypesOutp sv.NextToken = ptr.String(jtv) } - case "slotTypeSummaries": - if err := awsRestjson1_deserializeDocumentSlotTypeSummaryList(&sv.SlotTypeSummaries, value); err != nil { + case "slotSummaries": + if err := awsRestjson1_deserializeDocumentSlotSummaryList(&sv.SlotSummaries, value); err != nil { return err } @@ -9333,10 +9785,202 @@ func awsRestjson1_deserializeOpDocumentListSlotTypesOutput(v **ListSlotTypesOutp return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListSlotTypes struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListSlotTypes) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListSlotTypes) 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, awsRestjson1_deserializeOpErrorListSlotTypes(response, &metadata) + } + output := &ListSlotTypesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListSlotTypesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListSlotTypes(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListSlotTypesOutput(v **ListSlotTypesOutput, 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 *ListSlotTypesOutput + if *v == nil { + sv = &ListSlotTypesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "botId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotId = ptr.String(jtv) + } + + case "botVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BotVersion to be of type string, got %T instead", value) + } + sv.BotVersion = ptr.String(jtv) + } + + case "localeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleId to be of type string, got %T instead", value) + } + sv.LocaleId = ptr.String(jtv) + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "slotTypeSummaries": + if err := awsRestjson1_deserializeDocumentSlotTypeSummaryList(&sv.SlotTypeSummaries, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTagsForResource struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } @@ -9461,22 +10105,474 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tags": + if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpSearchAssociatedTranscripts struct { +} + +func (*awsRestjson1_deserializeOpSearchAssociatedTranscripts) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpSearchAssociatedTranscripts) 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, awsRestjson1_deserializeOpErrorSearchAssociatedTranscripts(response, &metadata) + } + output := &SearchAssociatedTranscriptsOutput{} + 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 = awsRestjson1_deserializeOpDocumentSearchAssociatedTranscriptsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorSearchAssociatedTranscripts(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentSearchAssociatedTranscriptsOutput(v **SearchAssociatedTranscriptsOutput, 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 *SearchAssociatedTranscriptsOutput + if *v == nil { + sv = &SearchAssociatedTranscriptsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedTranscripts": + if err := awsRestjson1_deserializeDocumentAssociatedTranscriptList(&sv.AssociatedTranscripts, value); err != nil { + return err + } + + case "botId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotId = ptr.String(jtv) + } + + case "botRecommendationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotRecommendationId = ptr.String(jtv) + } + + case "botVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BotVersion to be of type string, got %T instead", value) + } + sv.BotVersion = ptr.String(jtv) + } + + case "localeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleId to be of type string, got %T instead", value) + } + sv.LocaleId = ptr.String(jtv) + } + + case "nextIndex": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected NextIndex to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.NextIndex = ptr.Int32(int32(i64)) + } + + case "totalResults": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxResults to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalResults = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpStartBotRecommendation struct { +} + +func (*awsRestjson1_deserializeOpStartBotRecommendation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpStartBotRecommendation) 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, awsRestjson1_deserializeOpErrorStartBotRecommendation(response, &metadata) + } + output := &StartBotRecommendationOutput{} + 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 = awsRestjson1_deserializeOpDocumentStartBotRecommendationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartBotRecommendation(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("PreconditionFailedException", errorCode): + return awsRestjson1_deserializeErrorPreconditionFailedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentStartBotRecommendationOutput(v **StartBotRecommendationOutput, 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 *StartBotRecommendationOutput + if *v == nil { + sv = &StartBotRecommendationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "botId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotId = ptr.String(jtv) + } + + case "botRecommendationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotRecommendationId = ptr.String(jtv) + } + + case "botRecommendationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BotRecommendationStatus to be of type string, got %T instead", value) + } + sv.BotRecommendationStatus = types.BotRecommendationStatus(jtv) + } + + case "botVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DraftBotVersion to be of type string, got %T instead", value) + } + sv.BotVersion = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } - var sv *ListTagsForResourceOutput - if *v == nil { - sv = &ListTagsForResourceOutput{} - } else { - sv = *v - } + case "encryptionSetting": + if err := awsRestjson1_deserializeDocumentEncryptionSetting(&sv.EncryptionSetting, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "tags": - if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { + case "localeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleId to be of type string, got %T instead", value) + } + sv.LocaleId = ptr.String(jtv) + } + + case "transcriptSourceSetting": + if err := awsRestjson1_deserializeDocumentTranscriptSourceSetting(&sv.TranscriptSourceSetting, value); err != nil { return err } @@ -10661,8 +11757,255 @@ func awsRestjson1_deserializeOpDocumentUpdateBotLocaleOutput(v **UpdateBotLocale } } - case "voiceSettings": - if err := awsRestjson1_deserializeDocumentVoiceSettings(&sv.VoiceSettings, value); err != nil { + case "voiceSettings": + if err := awsRestjson1_deserializeDocumentVoiceSettings(&sv.VoiceSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateBotRecommendation struct { +} + +func (*awsRestjson1_deserializeOpUpdateBotRecommendation) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateBotRecommendation) 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, awsRestjson1_deserializeOpErrorUpdateBotRecommendation(response, &metadata) + } + output := &UpdateBotRecommendationOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateBotRecommendationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateBotRecommendation(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("PreconditionFailedException", errorCode): + return awsRestjson1_deserializeErrorPreconditionFailedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateBotRecommendationOutput(v **UpdateBotRecommendationOutput, 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 *UpdateBotRecommendationOutput + if *v == nil { + sv = &UpdateBotRecommendationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "botId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotId = ptr.String(jtv) + } + + case "botRecommendationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotRecommendationId = ptr.String(jtv) + } + + case "botRecommendationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BotRecommendationStatus to be of type string, got %T instead", value) + } + sv.BotRecommendationStatus = types.BotRecommendationStatus(jtv) + } + + case "botVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DraftBotVersion to be of type string, got %T instead", value) + } + sv.BotVersion = ptr.String(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "encryptionSetting": + if err := awsRestjson1_deserializeDocumentEncryptionSetting(&sv.EncryptionSetting, value); err != nil { + return err + } + + case "lastUpdatedDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "localeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleId to be of type string, got %T instead", value) + } + sv.LocaleId = ptr.String(jtv) + } + + case "transcriptSourceSetting": + if err := awsRestjson1_deserializeDocumentTranscriptSourceSetting(&sv.TranscriptSourceSetting, value); err != nil { return err } @@ -12319,6 +13662,80 @@ func awsRestjson1_deserializeDocumentAggregatedUtterancesSummaryList(v *[]types. return nil } +func awsRestjson1_deserializeDocumentAssociatedTranscript(v **types.AssociatedTranscript, 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.AssociatedTranscript + if *v == nil { + sv = &types.AssociatedTranscript{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "transcript": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Transcript to be of type string, got %T instead", value) + } + sv.Transcript = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssociatedTranscriptList(v *[]types.AssociatedTranscript, 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.AssociatedTranscript + if *v == nil { + cv = []types.AssociatedTranscript{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AssociatedTranscript + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssociatedTranscript(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentAudioLogDestination(v **types.AudioLogDestination, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -13214,13 +14631,223 @@ func awsRestjson1_deserializeDocumentBotLocaleSummary(v **types.BotLocaleSummary sv.LocaleId = ptr.String(jtv) } - case "localeName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LocaleName to be of type string, got %T instead", value) + case "localeName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LocaleName to be of type string, got %T instead", value) + } + sv.LocaleName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBotLocaleSummaryList(v *[]types.BotLocaleSummary, 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.BotLocaleSummary + if *v == nil { + cv = []types.BotLocaleSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BotLocaleSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentBotLocaleSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBotRecommendationResults(v **types.BotRecommendationResults, 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.BotRecommendationResults + if *v == nil { + sv = &types.BotRecommendationResults{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedTranscriptsUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PresignedS3Url to be of type string, got %T instead", value) + } + sv.AssociatedTranscriptsUrl = ptr.String(jtv) + } + + case "botLocaleExportUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PresignedS3Url to be of type string, got %T instead", value) + } + sv.BotLocaleExportUrl = ptr.String(jtv) + } + + case "statistics": + if err := awsRestjson1_deserializeDocumentBotRecommendationResultStatistics(&sv.Statistics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBotRecommendationResultStatistics(v **types.BotRecommendationResultStatistics, 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.BotRecommendationResultStatistics + if *v == nil { + sv = &types.BotRecommendationResultStatistics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "intents": + if err := awsRestjson1_deserializeDocumentIntentStatistics(&sv.Intents, value); err != nil { + return err + } + + case "slotTypes": + if err := awsRestjson1_deserializeDocumentSlotTypeStatistics(&sv.SlotTypes, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBotRecommendationSummary(v **types.BotRecommendationSummary, 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.BotRecommendationSummary + if *v == nil { + sv = &types.BotRecommendationSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "botRecommendationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.BotRecommendationId = ptr.String(jtv) + } + + case "botRecommendationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BotRecommendationStatus to be of type string, got %T instead", value) + } + sv.BotRecommendationStatus = types.BotRecommendationStatus(jtv) + } + + case "creationDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "lastUpdatedDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.LocaleName = ptr.String(jtv) } default: @@ -13232,7 +14859,7 @@ func awsRestjson1_deserializeDocumentBotLocaleSummary(v **types.BotLocaleSummary return nil } -func awsRestjson1_deserializeDocumentBotLocaleSummaryList(v *[]types.BotLocaleSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentBotRecommendationSummaryList(v *[]types.BotRecommendationSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13245,17 +14872,17 @@ func awsRestjson1_deserializeDocumentBotLocaleSummaryList(v *[]types.BotLocaleSu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.BotLocaleSummary + var cv []types.BotRecommendationSummary if *v == nil { - cv = []types.BotLocaleSummary{} + cv = []types.BotRecommendationSummary{} } else { cv = *v } for _, value := range shape { - var col types.BotLocaleSummary + var col types.BotRecommendationSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentBotLocaleSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentBotRecommendationSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -14079,6 +15706,69 @@ func awsRestjson1_deserializeDocumentDataPrivacy(v **types.DataPrivacy, value in return nil } +func awsRestjson1_deserializeDocumentDateRangeFilter(v **types.DateRangeFilter, 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.DateRangeFilter + if *v == nil { + sv = &types.DateRangeFilter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "endDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "startDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartDateTime = 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 awsRestjson1_deserializeDocumentDialogCodeHookSettings(v **types.DialogCodeHookSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14119,6 +15809,64 @@ func awsRestjson1_deserializeDocumentDialogCodeHookSettings(v **types.DialogCode return nil } +func awsRestjson1_deserializeDocumentEncryptionSetting(v **types.EncryptionSetting, 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.EncryptionSetting + if *v == nil { + sv = &types.EncryptionSetting{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedTranscriptsPassword": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilePassword to be of type string, got %T instead", value) + } + sv.AssociatedTranscriptsPassword = ptr.String(jtv) + } + + case "botLocaleExportPassword": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilePassword to be of type string, got %T instead", value) + } + sv.BotLocaleExportPassword = ptr.String(jtv) + } + + case "kmsKeyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + } + sv.KmsKeyArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentExportResourceSpecification(v **types.ExportResourceSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -14969,6 +16717,50 @@ func awsRestjson1_deserializeDocumentIntentConfirmationSetting(v **types.IntentC return nil } +func awsRestjson1_deserializeDocumentIntentStatistics(v **types.IntentStatistics, 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.IntentStatistics + if *v == nil { + sv = &types.IntentStatistics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "discoveredIntentCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Count to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DiscoveredIntentCount = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentIntentSummary(v **types.IntentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15243,6 +17035,42 @@ func awsRestjson1_deserializeDocumentLambdaCodeHook(v **types.LambdaCodeHook, va return nil } +func awsRestjson1_deserializeDocumentLexTranscriptFilter(v **types.LexTranscriptFilter, 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.LexTranscriptFilter + if *v == nil { + sv = &types.LexTranscriptFilter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dateRangeFilter": + if err := awsRestjson1_deserializeDocumentDateRangeFilter(&sv.DateRangeFilter, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15483,6 +17311,42 @@ func awsRestjson1_deserializeDocumentObfuscationSetting(v **types.ObfuscationSet return nil } +func awsRestjson1_deserializeDocumentObjectPrefixes(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 ObjectPrefix to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentOutputContext(v **types.OutputContext, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15569,17 +17433,53 @@ func awsRestjson1_deserializeDocumentOutputContextsList(v *[]types.OutputContext cv = *v } - for _, value := range shape { - var col types.OutputContext - destAddr := &col - if err := awsRestjson1_deserializeDocumentOutputContext(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for _, value := range shape { + var col types.OutputContext + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputContext(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPathFormat(v **types.PathFormat, 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.PathFormat + if *v == nil { + sv = &types.PathFormat{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "objectPrefixes": + if err := awsRestjson1_deserializeDocumentObjectPrefixes(&sv.ObjectPrefixes, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } @@ -15767,6 +17667,102 @@ func awsRestjson1_deserializeDocumentPromptSpecification(v **types.PromptSpecifi return nil } +func awsRestjson1_deserializeDocumentRecommendedIntentSummary(v **types.RecommendedIntentSummary, 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.RecommendedIntentSummary + if *v == nil { + sv = &types.RecommendedIntentSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "intentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Id to be of type string, got %T instead", value) + } + sv.IntentId = ptr.String(jtv) + } + + case "intentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Name to be of type string, got %T instead", value) + } + sv.IntentName = ptr.String(jtv) + } + + case "sampleUtterancesCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SampleUtterancesCount to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.SampleUtterancesCount = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRecommendedIntentSummaryList(v *[]types.RecommendedIntentSummary, 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.RecommendedIntentSummary + if *v == nil { + cv = []types.RecommendedIntentSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RecommendedIntentSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentRecommendedIntentSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentRelativeAggregationDuration(v **types.RelativeAggregationDuration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -15963,6 +17959,74 @@ func awsRestjson1_deserializeDocumentS3BucketLogDestination(v **types.S3BucketLo return nil } +func awsRestjson1_deserializeDocumentS3BucketTranscriptSource(v **types.S3BucketTranscriptSource, 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.S3BucketTranscriptSource + if *v == nil { + sv = &types.S3BucketTranscriptSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "kmsKeyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) + } + sv.KmsKeyArn = ptr.String(jtv) + } + + case "pathFormat": + if err := awsRestjson1_deserializeDocumentPathFormat(&sv.PathFormat, value); err != nil { + return err + } + + case "s3BucketName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3BucketName to be of type string, got %T instead", value) + } + sv.S3BucketName = ptr.String(jtv) + } + + case "transcriptFilter": + if err := awsRestjson1_deserializeDocumentTranscriptFilter(&sv.TranscriptFilter, value); err != nil { + return err + } + + case "transcriptFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TranscriptFormat to be of type string, got %T instead", value) + } + sv.TranscriptFormat = types.TranscriptFormat(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentSampleUtterance(v **types.SampleUtterance, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -16485,6 +18549,50 @@ func awsRestjson1_deserializeDocumentSlotSummaryList(v *[]types.SlotSummary, val return nil } +func awsRestjson1_deserializeDocumentSlotTypeStatistics(v **types.SlotTypeStatistics, 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.SlotTypeStatistics + if *v == nil { + sv = &types.SlotTypeStatistics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "discoveredSlotTypeCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Count to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DiscoveredSlotTypeCount = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentSlotTypeSummary(v **types.SlotTypeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -17171,6 +19279,78 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } +func awsRestjson1_deserializeDocumentTranscriptFilter(v **types.TranscriptFilter, 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.TranscriptFilter + if *v == nil { + sv = &types.TranscriptFilter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "lexTranscriptFilter": + if err := awsRestjson1_deserializeDocumentLexTranscriptFilter(&sv.LexTranscriptFilter, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTranscriptSourceSetting(v **types.TranscriptSourceSetting, 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.TranscriptSourceSetting + if *v == nil { + sv = &types.TranscriptSourceSetting{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "s3BucketTranscriptSource": + if err := awsRestjson1_deserializeDocumentS3BucketTranscriptSource(&sv.S3BucketTranscriptSource, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentUtteranceAggregationDuration(v **types.UtteranceAggregationDuration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/lexmodelsv2/generated.json b/service/lexmodelsv2/generated.json index 3fd88696111..0994c34e66a 100644 --- a/service/lexmodelsv2/generated.json +++ b/service/lexmodelsv2/generated.json @@ -35,6 +35,7 @@ "api_op_DescribeBot.go", "api_op_DescribeBotAlias.go", "api_op_DescribeBotLocale.go", + "api_op_DescribeBotRecommendation.go", "api_op_DescribeBotVersion.go", "api_op_DescribeExport.go", "api_op_DescribeImport.go", @@ -45,6 +46,7 @@ "api_op_ListAggregatedUtterances.go", "api_op_ListBotAliases.go", "api_op_ListBotLocales.go", + "api_op_ListBotRecommendations.go", "api_op_ListBotVersions.go", "api_op_ListBots.go", "api_op_ListBuiltInIntents.go", @@ -52,15 +54,19 @@ "api_op_ListExports.go", "api_op_ListImports.go", "api_op_ListIntents.go", + "api_op_ListRecommendedIntents.go", "api_op_ListSlotTypes.go", "api_op_ListSlots.go", "api_op_ListTagsForResource.go", + "api_op_SearchAssociatedTranscripts.go", + "api_op_StartBotRecommendation.go", "api_op_StartImport.go", "api_op_TagResource.go", "api_op_UntagResource.go", "api_op_UpdateBot.go", "api_op_UpdateBotAlias.go", "api_op_UpdateBotLocale.go", + "api_op_UpdateBotRecommendation.go", "api_op_UpdateExport.go", "api_op_UpdateIntent.go", "api_op_UpdateResourcePolicy.go", diff --git a/service/lexmodelsv2/serializers.go b/service/lexmodelsv2/serializers.go index d57e346b988..d001baf834e 100644 --- a/service/lexmodelsv2/serializers.go +++ b/service/lexmodelsv2/serializers.go @@ -11,6 +11,7 @@ import ( "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" "math" ) @@ -2330,6 +2331,91 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBotLocaleInput(v *DescribeBotLo return nil } +type awsRestjson1_serializeOpDescribeBotRecommendation struct { +} + +func (*awsRestjson1_serializeOpDescribeBotRecommendation) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeBotRecommendation) 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.(*DescribeBotRecommendationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeBotRecommendationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeBotRecommendationInput(v *DescribeBotRecommendationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BotId == nil || len(*v.BotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botId must not be empty")} + } + if v.BotId != nil { + if err := encoder.SetURI("botId").String(*v.BotId); err != nil { + return err + } + } + + if v.BotRecommendationId == nil || len(*v.BotRecommendationId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botRecommendationId must not be empty")} + } + if v.BotRecommendationId != nil { + if err := encoder.SetURI("botRecommendationId").String(*v.BotRecommendationId); err != nil { + return err + } + } + + if v.BotVersion == nil || len(*v.BotVersion) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botVersion must not be empty")} + } + if v.BotVersion != nil { + if err := encoder.SetURI("botVersion").String(*v.BotVersion); err != nil { + return err + } + } + + if v.LocaleId == nil || len(*v.LocaleId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member localeId must not be empty")} + } + if v.LocaleId != nil { + if err := encoder.SetURI("localeId").String(*v.LocaleId); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDescribeBotVersion struct { } @@ -3152,6 +3238,110 @@ func awsRestjson1_serializeOpDocumentListBotLocalesInput(v *ListBotLocalesInput, return nil } +type awsRestjson1_serializeOpListBotRecommendations struct { +} + +func (*awsRestjson1_serializeOpListBotRecommendations) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListBotRecommendations) 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.(*ListBotRecommendationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListBotRecommendationsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListBotRecommendationsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListBotRecommendationsInput(v *ListBotRecommendationsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BotId == nil || len(*v.BotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botId must not be empty")} + } + if v.BotId != nil { + if err := encoder.SetURI("botId").String(*v.BotId); err != nil { + return err + } + } + + if v.BotVersion == nil || len(*v.BotVersion) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botVersion must not be empty")} + } + if v.BotVersion != nil { + if err := encoder.SetURI("botVersion").String(*v.BotVersion); err != nil { + return err + } + } + + if v.LocaleId == nil || len(*v.LocaleId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member localeId must not be empty")} + } + if v.LocaleId != nil { + if err := encoder.SetURI("localeId").String(*v.LocaleId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListBotRecommendationsInput(v *ListBotRecommendationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 +} + type awsRestjson1_serializeOpListBots struct { } @@ -3830,6 +4020,119 @@ func awsRestjson1_serializeOpDocumentListIntentsInput(v *ListIntentsInput, value return nil } +type awsRestjson1_serializeOpListRecommendedIntents struct { +} + +func (*awsRestjson1_serializeOpListRecommendedIntents) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListRecommendedIntents) 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.(*ListRecommendedIntentsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListRecommendedIntentsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentListRecommendedIntentsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListRecommendedIntentsInput(v *ListRecommendedIntentsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BotId == nil || len(*v.BotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botId must not be empty")} + } + if v.BotId != nil { + if err := encoder.SetURI("botId").String(*v.BotId); err != nil { + return err + } + } + + if v.BotRecommendationId == nil || len(*v.BotRecommendationId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botRecommendationId must not be empty")} + } + if v.BotRecommendationId != nil { + if err := encoder.SetURI("botRecommendationId").String(*v.BotRecommendationId); err != nil { + return err + } + } + + if v.BotVersion == nil || len(*v.BotVersion) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botVersion must not be empty")} + } + if v.BotVersion != nil { + if err := encoder.SetURI("botVersion").String(*v.BotVersion); err != nil { + return err + } + } + + if v.LocaleId == nil || len(*v.LocaleId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member localeId must not be empty")} + } + if v.LocaleId != nil { + if err := encoder.SetURI("localeId").String(*v.LocaleId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentListRecommendedIntentsInput(v *ListRecommendedIntentsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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 +} + type awsRestjson1_serializeOpListSlots struct { } @@ -4105,27 +4408,260 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} + if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceARN == nil || len(*v.ResourceARN) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceARN must not be empty")} + } + if v.ResourceARN != nil { + if err := encoder.SetURI("resourceARN").String(*v.ResourceARN); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpSearchAssociatedTranscripts struct { +} + +func (*awsRestjson1_serializeOpSearchAssociatedTranscripts) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpSearchAssociatedTranscripts) 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.(*SearchAssociatedTranscriptsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsSearchAssociatedTranscriptsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentSearchAssociatedTranscriptsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsSearchAssociatedTranscriptsInput(v *SearchAssociatedTranscriptsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BotId == nil || len(*v.BotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botId must not be empty")} + } + if v.BotId != nil { + if err := encoder.SetURI("botId").String(*v.BotId); err != nil { + return err + } + } + + if v.BotRecommendationId == nil || len(*v.BotRecommendationId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botRecommendationId must not be empty")} + } + if v.BotRecommendationId != nil { + if err := encoder.SetURI("botRecommendationId").String(*v.BotRecommendationId); err != nil { + return err + } + } + + if v.BotVersion == nil || len(*v.BotVersion) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botVersion must not be empty")} + } + if v.BotVersion != nil { + if err := encoder.SetURI("botVersion").String(*v.BotVersion); err != nil { + return err + } + } + + if v.LocaleId == nil || len(*v.LocaleId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member localeId must not be empty")} + } + if v.LocaleId != nil { + if err := encoder.SetURI("localeId").String(*v.LocaleId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentSearchAssociatedTranscriptsInput(v *SearchAssociatedTranscriptsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsRestjson1_serializeDocumentAssociatedTranscriptFilters(v.Filters, ok); err != nil { + return err + } + } + + if v.MaxResults != nil { + ok := object.Key("maxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextIndex != nil { + ok := object.Key("nextIndex") + ok.Integer(*v.NextIndex) + } + + if len(v.SearchOrder) > 0 { + ok := object.Key("searchOrder") + ok.String(string(v.SearchOrder)) + } + + return nil +} + +type awsRestjson1_serializeOpStartBotRecommendation struct { +} + +func (*awsRestjson1_serializeOpStartBotRecommendation) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpStartBotRecommendation) 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.(*StartBotRecommendationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsStartBotRecommendationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentStartBotRecommendationInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsStartBotRecommendationInput(v *StartBotRecommendationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BotId == nil || len(*v.BotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botId must not be empty")} + } + if v.BotId != nil { + if err := encoder.SetURI("botId").String(*v.BotId); err != nil { + return err + } + } + + if v.BotVersion == nil || len(*v.BotVersion) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botVersion must not be empty")} + } + if v.BotVersion != nil { + if err := encoder.SetURI("botVersion").String(*v.BotVersion); err != nil { + return err + } } - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} + if v.LocaleId == nil || len(*v.LocaleId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member localeId must not be empty")} + } + if v.LocaleId != nil { + if err := encoder.SetURI("localeId").String(*v.LocaleId); err != nil { + return err + } } - in.Request = request - return next.HandleSerialize(ctx, in) + return nil } -func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { - if v == nil { - return fmt.Errorf("unsupported serialization of nil %T", v) - } - if v.ResourceARN == nil || len(*v.ResourceARN) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member resourceARN must not be empty")} +func awsRestjson1_serializeOpDocumentStartBotRecommendationInput(v *StartBotRecommendationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EncryptionSetting != nil { + ok := object.Key("encryptionSetting") + if err := awsRestjson1_serializeDocumentEncryptionSetting(v.EncryptionSetting, ok); err != nil { + return err + } } - if v.ResourceARN != nil { - if err := encoder.SetURI("resourceARN").String(*v.ResourceARN); err != nil { + + if v.TranscriptSourceSetting != nil { + ok := object.Key("transcriptSourceSetting") + if err := awsRestjson1_serializeDocumentTranscriptSourceSetting(v.TranscriptSourceSetting, ok); err != nil { return err } } @@ -4713,6 +5249,116 @@ func awsRestjson1_serializeOpDocumentUpdateBotLocaleInput(v *UpdateBotLocaleInpu return nil } +type awsRestjson1_serializeOpUpdateBotRecommendation struct { +} + +func (*awsRestjson1_serializeOpUpdateBotRecommendation) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateBotRecommendation) 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.(*UpdateBotRecommendationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateBotRecommendationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateBotRecommendationInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateBotRecommendationInput(v *UpdateBotRecommendationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BotId == nil || len(*v.BotId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botId must not be empty")} + } + if v.BotId != nil { + if err := encoder.SetURI("botId").String(*v.BotId); err != nil { + return err + } + } + + if v.BotRecommendationId == nil || len(*v.BotRecommendationId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botRecommendationId must not be empty")} + } + if v.BotRecommendationId != nil { + if err := encoder.SetURI("botRecommendationId").String(*v.BotRecommendationId); err != nil { + return err + } + } + + if v.BotVersion == nil || len(*v.BotVersion) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member botVersion must not be empty")} + } + if v.BotVersion != nil { + if err := encoder.SetURI("botVersion").String(*v.BotVersion); err != nil { + return err + } + } + + if v.LocaleId == nil || len(*v.LocaleId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member localeId must not be empty")} + } + if v.LocaleId != nil { + if err := encoder.SetURI("localeId").String(*v.LocaleId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateBotRecommendationInput(v *UpdateBotRecommendationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EncryptionSetting != nil { + ok := object.Key("encryptionSetting") + if err := awsRestjson1_serializeDocumentEncryptionSetting(v.EncryptionSetting, ok); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpUpdateExport struct { } @@ -5394,6 +6040,38 @@ func awsRestjson1_serializeDocumentAggregatedUtterancesSortBy(v *types.Aggregate return nil } +func awsRestjson1_serializeDocumentAssociatedTranscriptFilter(v *types.AssociatedTranscriptFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Name) > 0 { + ok := object.Key("name") + ok.String(string(v.Name)) + } + + if v.Values != nil { + ok := object.Key("values") + if err := awsRestjson1_serializeDocumentFilterValues(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAssociatedTranscriptFilters(v []types.AssociatedTranscriptFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAssociatedTranscriptFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentAudioLogDestination(v *types.AudioLogDestination, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5920,6 +6598,23 @@ func awsRestjson1_serializeDocumentDataPrivacy(v *types.DataPrivacy, value smith return nil } +func awsRestjson1_serializeDocumentDateRangeFilter(v *types.DateRangeFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EndDateTime != nil { + ok := object.Key("endDateTime") + ok.Double(smithytime.FormatEpochSeconds(*v.EndDateTime)) + } + + if v.StartDateTime != nil { + ok := object.Key("startDateTime") + ok.Double(smithytime.FormatEpochSeconds(*v.StartDateTime)) + } + + return nil +} + func awsRestjson1_serializeDocumentDialogCodeHookSettings(v *types.DialogCodeHookSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -5932,6 +6627,28 @@ func awsRestjson1_serializeDocumentDialogCodeHookSettings(v *types.DialogCodeHoo return nil } +func awsRestjson1_serializeDocumentEncryptionSetting(v *types.EncryptionSetting, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AssociatedTranscriptsPassword != nil { + ok := object.Key("associatedTranscriptsPassword") + ok.String(*v.AssociatedTranscriptsPassword) + } + + if v.BotLocaleExportPassword != nil { + ok := object.Key("botLocaleExportPassword") + ok.String(*v.BotLocaleExportPassword) + } + + if v.KmsKeyArn != nil { + ok := object.Key("kmsKeyArn") + ok.String(*v.KmsKeyArn) + } + + return nil +} + func awsRestjson1_serializeDocumentExportFilter(v *types.ExportFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6390,6 +7107,20 @@ func awsRestjson1_serializeDocumentLambdaCodeHook(v *types.LambdaCodeHook, value return nil } +func awsRestjson1_serializeDocumentLexTranscriptFilter(v *types.LexTranscriptFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRangeFilter != nil { + ok := object.Key("dateRangeFilter") + if err := awsRestjson1_serializeDocumentDateRangeFilter(v.DateRangeFilter, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentMessage(v *types.Message, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6496,6 +7227,17 @@ func awsRestjson1_serializeDocumentObfuscationSetting(v *types.ObfuscationSettin return nil } +func awsRestjson1_serializeDocumentObjectPrefixes(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_serializeDocumentOperationList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -6542,6 +7284,20 @@ func awsRestjson1_serializeDocumentOutputContextsList(v []types.OutputContext, v return nil } +func awsRestjson1_serializeDocumentPathFormat(v *types.PathFormat, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ObjectPrefixes != nil { + ok := object.Key("objectPrefixes") + if err := awsRestjson1_serializeDocumentObjectPrefixes(v.ObjectPrefixes, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentPlainTextMessage(v *types.PlainTextMessage, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -6694,6 +7450,42 @@ func awsRestjson1_serializeDocumentS3BucketLogDestination(v *types.S3BucketLogDe return nil } +func awsRestjson1_serializeDocumentS3BucketTranscriptSource(v *types.S3BucketTranscriptSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.KmsKeyArn != nil { + ok := object.Key("kmsKeyArn") + ok.String(*v.KmsKeyArn) + } + + if v.PathFormat != nil { + ok := object.Key("pathFormat") + if err := awsRestjson1_serializeDocumentPathFormat(v.PathFormat, ok); err != nil { + return err + } + } + + if v.S3BucketName != nil { + ok := object.Key("s3BucketName") + ok.String(*v.S3BucketName) + } + + if v.TranscriptFilter != nil { + ok := object.Key("transcriptFilter") + if err := awsRestjson1_serializeDocumentTranscriptFilter(v.TranscriptFilter, ok); err != nil { + return err + } + } + + if len(v.TranscriptFormat) > 0 { + ok := object.Key("transcriptFormat") + ok.String(string(v.TranscriptFormat)) + } + + return nil +} + func awsRestjson1_serializeDocumentSampleUtterance(v *types.SampleUtterance, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -7136,6 +7928,34 @@ func awsRestjson1_serializeDocumentTextLogSettingsList(v []types.TextLogSetting, return nil } +func awsRestjson1_serializeDocumentTranscriptFilter(v *types.TranscriptFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.LexTranscriptFilter != nil { + ok := object.Key("lexTranscriptFilter") + if err := awsRestjson1_serializeDocumentLexTranscriptFilter(v.LexTranscriptFilter, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentTranscriptSourceSetting(v *types.TranscriptSourceSetting, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.S3BucketTranscriptSource != nil { + ok := object.Key("s3BucketTranscriptSource") + if err := awsRestjson1_serializeDocumentS3BucketTranscriptSource(v.S3BucketTranscriptSource, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentUtteranceAggregationDuration(v *types.UtteranceAggregationDuration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/lexmodelsv2/types/enums.go b/service/lexmodelsv2/types/enums.go index 18a90ee98cd..1cf259662b1 100644 --- a/service/lexmodelsv2/types/enums.go +++ b/service/lexmodelsv2/types/enums.go @@ -57,6 +57,25 @@ func (AggregatedUtterancesSortAttribute) Values() []AggregatedUtterancesSortAttr } } +type AssociatedTranscriptFilterName string + +// Enum values for AssociatedTranscriptFilterName +const ( + AssociatedTranscriptFilterNameIntentId AssociatedTranscriptFilterName = "IntentId" + AssociatedTranscriptFilterNameSlotTypeId AssociatedTranscriptFilterName = "SlotTypeId" +) + +// Values returns all known values for AssociatedTranscriptFilterName. 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 (AssociatedTranscriptFilterName) Values() []AssociatedTranscriptFilterName { + return []AssociatedTranscriptFilterName{ + "IntentId", + "SlotTypeId", + } +} + type BotAliasStatus string // Enum values for BotAliasStatus @@ -175,6 +194,7 @@ const ( BotLocaleStatusDeleting BotLocaleStatus = "Deleting" BotLocaleStatusNotBuilt BotLocaleStatus = "NotBuilt" BotLocaleStatusImporting BotLocaleStatus = "Importing" + BotLocaleStatusProcessing BotLocaleStatus = "Processing" ) // Values returns all known values for BotLocaleStatus. Note that this can be @@ -190,6 +210,35 @@ func (BotLocaleStatus) Values() []BotLocaleStatus { "Deleting", "NotBuilt", "Importing", + "Processing", + } +} + +type BotRecommendationStatus string + +// Enum values for BotRecommendationStatus +const ( + BotRecommendationStatusProcessing BotRecommendationStatus = "Processing" + BotRecommendationStatusDeleting BotRecommendationStatus = "Deleting" + BotRecommendationStatusDeleted BotRecommendationStatus = "Deleted" + BotRecommendationStatusDownloading BotRecommendationStatus = "Downloading" + BotRecommendationStatusUpdating BotRecommendationStatus = "Updating" + BotRecommendationStatusAvailable BotRecommendationStatus = "Available" + BotRecommendationStatusFailed BotRecommendationStatus = "Failed" +) + +// Values returns all known values for BotRecommendationStatus. 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 (BotRecommendationStatus) Values() []BotRecommendationStatus { + return []BotRecommendationStatus{ + "Processing", + "Deleting", + "Deleted", + "Downloading", + "Updating", + "Available", + "Failed", } } @@ -521,6 +570,7 @@ type MergeStrategy string const ( MergeStrategyOverwrite MergeStrategy = "Overwrite" MergeStrategyFailOnConflict MergeStrategy = "FailOnConflict" + MergeStrategyAppend MergeStrategy = "Append" ) // Values returns all known values for MergeStrategy. Note that this can be @@ -530,6 +580,7 @@ func (MergeStrategy) Values() []MergeStrategy { return []MergeStrategy{ "Overwrite", "FailOnConflict", + "Append", } } @@ -551,6 +602,24 @@ func (ObfuscationSettingType) Values() []ObfuscationSettingType { } } +type SearchOrder string + +// Enum values for SearchOrder +const ( + SearchOrderAscending SearchOrder = "Ascending" + SearchOrderDescending SearchOrder = "Descending" +) + +// Values returns all known values for SearchOrder. 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 (SearchOrder) Values() []SearchOrder { + return []SearchOrder{ + "Ascending", + "Descending", + } +} + type SlotConstraint string // Enum values for SlotConstraint @@ -729,6 +798,22 @@ func (TimeDimension) Values() []TimeDimension { } } +type TranscriptFormat string + +// Enum values for TranscriptFormat +const ( + TranscriptFormatLex TranscriptFormat = "Lex" +) + +// Values returns all known values for TranscriptFormat. 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 (TranscriptFormat) Values() []TranscriptFormat { + return []TranscriptFormat{ + "Lex", + } +} + type VoiceEngine string // Enum values for VoiceEngine diff --git a/service/lexmodelsv2/types/types.go b/service/lexmodelsv2/types/types.go index 916af73904b..abd7bc9050e 100644 --- a/service/lexmodelsv2/types/types.go +++ b/service/lexmodelsv2/types/types.go @@ -83,6 +83,35 @@ type AggregatedUtterancesSummary struct { noSmithyDocumentSerde } +// The object containing information that associates the recommended intent/slot +// type with a conversation. +type AssociatedTranscript struct { + + // The content of the transcript that meets the search filter criteria. For the + // JSON format of the transcript, see Output transcript format + // (https://docs.aws.amazon.com/lex/latest/dg/designing-output-format.html). + Transcript *string + + noSmithyDocumentSerde +} + +// Filters to search for the associated transcript. +type AssociatedTranscriptFilter struct { + + // The name of the field to use for filtering. The allowed names are IntentId and + // SlotTypeId. + // + // This member is required. + Name AssociatedTranscriptFilterName + + // The values to use to filter the transcript. + // + // This member is required. + Values []string + + noSmithyDocumentSerde +} + // The location of audio log files collected when conversation logging is enabled // for a bot. type AudioLogDestination struct { @@ -411,6 +440,59 @@ type BotLocaleSummary struct { noSmithyDocumentSerde } +// The object representing the URL of the bot definition, the URL of the associated +// transcript and a statistical summary of the bot recommendation results. +type BotRecommendationResults struct { + + // The presigned url link of the associated transcript. + AssociatedTranscriptsUrl *string + + // The presigned URL link of the recommended bot definition. + BotLocaleExportUrl *string + + // The statistical summary of the bot recommendation results. + Statistics *BotRecommendationResultStatistics + + noSmithyDocumentSerde +} + +// A statistical summary of the bot recommendation results. +type BotRecommendationResultStatistics struct { + + // Statistical information about about the intents associated with the bot + // recommendation results. + Intents *IntentStatistics + + // Statistical information about the slot types associated with the bot + // recommendation results. + SlotTypes *SlotTypeStatistics + + noSmithyDocumentSerde +} + +// A summary of the bot recommendation. +type BotRecommendationSummary struct { + + // The unique identifier of the bot recommendation to be updated. + // + // This member is required. + BotRecommendationId *string + + // The status of the bot recommendation. If the status is Failed, then the reasons + // for the failure are listed in the failureReasons field. + // + // This member is required. + BotRecommendationStatus BotRecommendationStatus + + // A timestamp of the date and time that the bot recommendation was created. + CreationDateTime *time.Time + + // A timestamp of the date and time that the bot recommendation was last updated. + LastUpdatedDateTime *time.Time + + noSmithyDocumentSerde +} + // Specifies attributes for sorting a list of bots. type BotSortBy struct { @@ -678,6 +760,23 @@ type DataPrivacy struct { noSmithyDocumentSerde } +// The object used for specifying the data range that the customer wants Amazon Lex +// to read through in the input transcripts. +type DateRangeFilter struct { + + // A timestamp indicating the end date for the date range filter. + // + // This member is required. + EndDateTime *time.Time + + // A timestamp indicating the start date for the date range filter. + // + // This member is required. + StartDateTime *time.Time + + noSmithyDocumentSerde +} + // Settings that determine the Lambda function that Amazon Lex uses for processing // user responses. type DialogCodeHookSettings struct { @@ -690,6 +789,24 @@ type DialogCodeHookSettings struct { noSmithyDocumentSerde } +// The object representing the passwords that were used to encrypt the data related +// to the bot recommendation, as well as the KMS key ARN used to encrypt the +// associated metadata. +type EncryptionSetting struct { + + // The password used to encrypt the associated transcript file. + AssociatedTranscriptsPassword *string + + // The password used to encrypt the recommended bot recommendation file. + BotLocaleExportPassword *string + + // The KMS key ARN used to encrypt the metadata associated with the bot + // recommendation. + KmsKeyArn *string + + noSmithyDocumentSerde +} + // Filters the response form the ListExports // (https://docs.aws.amazon.com/lexv2/latest/dg/API_ListExports.html) operation type ExportFilter struct { @@ -1074,6 +1191,16 @@ type IntentSortBy struct { noSmithyDocumentSerde } +// The object that contains the statistical summary of recommended intents +// associated with the bot recommendation. +type IntentStatistics struct { + + // The number of recommended intents associated with the bot recommendation. + DiscoveredIntentCount *int32 + + noSmithyDocumentSerde +} + // Summary information about an intent returned by the ListIntents operation. type IntentSummary struct { @@ -1146,6 +1273,18 @@ type LambdaCodeHook struct { noSmithyDocumentSerde } +// The object that contains transcript filter details that are associated with a +// bot recommendation. +type LexTranscriptFilter struct { + + // The object that contains a date range filter that will be applied to the + // transcript. Specify this object if you want Amazon Lex to only read the files + // that are within the date range. + DateRangeFilter *DateRangeFilter + + noSmithyDocumentSerde +} + // The object that provides message text and it's type. type Message struct { @@ -1230,6 +1369,19 @@ type OutputContext struct { noSmithyDocumentSerde } +// The object that contains a path format that will be applied when Amazon Lex +// reads the transcript file in the bucket you provide. Specify this object if you +// only want Lex to read a subset of files in your Amazon S3 bucket. +type PathFormat struct { + + // A list of Amazon S3 prefixes that points to sub-folders in the Amazon S3 bucket. + // Specify this list if you only want Lex to read the files under this set of + // sub-folders. + ObjectPrefixes []string + + noSmithyDocumentSerde +} + // Defines an ASCII text message to send to the user. type PlainTextMessage struct { @@ -1300,6 +1452,23 @@ type PromptSpecification struct { noSmithyDocumentSerde } +// An object that contains a summary of a recommended intent. +type RecommendedIntentSummary struct { + + // The unique identifier of a recommended intent associated with the bot + // recommendation. + IntentId *string + + // The name of a recommended intent associated with the bot recommendation. + IntentName *string + + // The count of sample utterances of a recommended intent that is associated with a + // bot recommendation. + SampleUtterancesCount *int32 + + noSmithyDocumentSerde +} + // Specifies the time window that utterance statistics are returned for. The time // window is always relative to the last time that the that utterances were // aggregated. For example, if the ListAggregatedUtterances operation is called at @@ -1378,6 +1547,38 @@ type S3BucketLogDestination struct { noSmithyDocumentSerde } +// The object representing the Amazon S3 bucket containing the transcript, as well +// as the associated metadata. +type S3BucketTranscriptSource struct { + + // The name of the bucket containing the transcript and the associated metadata. + // + // This member is required. + S3BucketName *string + + // The format of the transcript content. Currently, Genie only supports the Amazon + // Lex transcript format. + // + // This member is required. + TranscriptFormat TranscriptFormat + + // The ARN of the KMS key that customer use to encrypt their Amazon S3 bucket. Only + // use this field if your bucket is encrypted using a customer managed KMS key. + KmsKeyArn *string + + // The object that contains a path format that will be applied when Amazon Lex + // reads the transcript file in the bucket you provide. Specify this object if you + // only want Lex to read a subset of files in your Amazon S3 bucket. + PathFormat *PathFormat + + // The object that contains the filter which will be applied when Amazon Lex reads + // through the Amazon S3 bucket. Specify this object if you want Amazon Lex to read + // only a subset of the Amazon S3 bucket based on the filter you provide. + TranscriptFilter *TranscriptFilter + + noSmithyDocumentSerde +} + // A sample utterance that invokes an intent or respond to a slot elicitation // prompt. type SampleUtterance struct { @@ -1563,6 +1764,16 @@ type SlotTypeSortBy struct { noSmithyDocumentSerde } +// The object that contains the statistical summary of the recommended slot type +// associated with the bot recommendation. +type SlotTypeStatistics struct { + + // The number of recommended slot types associated with the bot recommendation. + DiscoveredSlotTypeCount *int32 + + noSmithyDocumentSerde +} + // Provides summary information about a slot type. type SlotTypeSummary struct { @@ -1750,6 +1961,26 @@ type TextLogSetting struct { noSmithyDocumentSerde } +// The object representing the filter that Amazon Lex will use to select the +// appropriate transcript. +type TranscriptFilter struct { + + // The object representing the filter that Amazon Lex will use to select the + // appropriate transcript when the transcript format is the Amazon Lex format. + LexTranscriptFilter *LexTranscriptFilter + + noSmithyDocumentSerde +} + +// Indicates the setting of the location where the transcript is stored. +type TranscriptSourceSetting struct { + + // Indicates the setting of the Amazon S3 bucket where the transcript is stored. + S3BucketTranscriptSource *S3BucketTranscriptSource + + noSmithyDocumentSerde +} + // Provides parameters for setting the time window and duration for aggregating // utterance data. type UtteranceAggregationDuration struct { diff --git a/service/lexmodelsv2/validators.go b/service/lexmodelsv2/validators.go index 2d73bc08450..83373235928 100644 --- a/service/lexmodelsv2/validators.go +++ b/service/lexmodelsv2/validators.go @@ -530,6 +530,26 @@ func (m *validateOpDescribeBotLocale) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDescribeBotRecommendation struct { +} + +func (*validateOpDescribeBotRecommendation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeBotRecommendation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeBotRecommendationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeBotRecommendationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeBotVersion struct { } @@ -730,6 +750,26 @@ func (m *validateOpListBotLocales) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpListBotRecommendations struct { +} + +func (*validateOpListBotRecommendations) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListBotRecommendations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListBotRecommendationsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListBotRecommendationsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListBots struct { } @@ -870,6 +910,26 @@ func (m *validateOpListIntents) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpListRecommendedIntents struct { +} + +func (*validateOpListRecommendedIntents) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListRecommendedIntents) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListRecommendedIntentsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListRecommendedIntentsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListSlots struct { } @@ -930,6 +990,46 @@ func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpSearchAssociatedTranscripts struct { +} + +func (*validateOpSearchAssociatedTranscripts) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpSearchAssociatedTranscripts) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*SearchAssociatedTranscriptsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpSearchAssociatedTranscriptsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpStartBotRecommendation struct { +} + +func (*validateOpStartBotRecommendation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStartBotRecommendation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StartBotRecommendationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStartBotRecommendationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStartImport struct { } @@ -1050,6 +1150,26 @@ func (m *validateOpUpdateBotLocale) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpUpdateBotRecommendation struct { +} + +func (*validateOpUpdateBotRecommendation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateBotRecommendation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateBotRecommendationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateBotRecommendationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateExport struct { } @@ -1254,6 +1374,10 @@ func addOpDescribeBotLocaleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeBotLocale{}, middleware.After) } +func addOpDescribeBotRecommendationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeBotRecommendation{}, middleware.After) +} + func addOpDescribeBotVersionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeBotVersion{}, middleware.After) } @@ -1294,6 +1418,10 @@ func addOpListBotLocalesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListBotLocales{}, middleware.After) } +func addOpListBotRecommendationsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListBotRecommendations{}, middleware.After) +} + func addOpListBotsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListBots{}, middleware.After) } @@ -1322,6 +1450,10 @@ func addOpListIntentsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListIntents{}, middleware.After) } +func addOpListRecommendedIntentsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListRecommendedIntents{}, middleware.After) +} + func addOpListSlotsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListSlots{}, middleware.After) } @@ -1334,6 +1466,14 @@ func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } +func addOpSearchAssociatedTranscriptsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpSearchAssociatedTranscripts{}, middleware.After) +} + +func addOpStartBotRecommendationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStartBotRecommendation{}, middleware.After) +} + func addOpStartImportValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartImport{}, middleware.After) } @@ -1358,6 +1498,10 @@ func addOpUpdateBotLocaleValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateBotLocale{}, middleware.After) } +func addOpUpdateBotRecommendationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateBotRecommendation{}, middleware.After) +} + func addOpUpdateExportValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateExport{}, middleware.After) } @@ -1434,6 +1578,41 @@ func validateAggregatedUtterancesSortBy(v *types.AggregatedUtterancesSortBy) err } } +func validateAssociatedTranscriptFilter(v *types.AssociatedTranscriptFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociatedTranscriptFilter"} + if len(v.Name) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Values == nil { + invalidParams.Add(smithy.NewErrParamRequired("Values")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAssociatedTranscriptFilters(v []types.AssociatedTranscriptFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociatedTranscriptFilters"} + for i := range v { + if err := validateAssociatedTranscriptFilter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAudioLogDestination(v *types.AudioLogDestination) error { if v == nil { return nil @@ -1934,6 +2113,24 @@ func validateDataPrivacy(v *types.DataPrivacy) error { } } +func validateDateRangeFilter(v *types.DateRangeFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DateRangeFilter"} + if v.StartDateTime == nil { + invalidParams.Add(smithy.NewErrParamRequired("StartDateTime")) + } + if v.EndDateTime == nil { + invalidParams.Add(smithy.NewErrParamRequired("EndDateTime")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDialogCodeHookSettings(v *types.DialogCodeHookSettings) error { if v == nil { return nil @@ -2379,6 +2576,23 @@ func validateLambdaCodeHook(v *types.LambdaCodeHook) error { } } +func validateLexTranscriptFilter(v *types.LexTranscriptFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "LexTranscriptFilter"} + if v.DateRangeFilter != nil { + if err := validateDateRangeFilter(v.DateRangeFilter); err != nil { + invalidParams.AddNested("DateRangeFilter", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateMessage(v *types.Message) error { if v == nil { return nil @@ -2638,6 +2852,29 @@ func validateS3BucketLogDestination(v *types.S3BucketLogDestination) error { } } +func validateS3BucketTranscriptSource(v *types.S3BucketTranscriptSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "S3BucketTranscriptSource"} + if v.S3BucketName == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3BucketName")) + } + if len(v.TranscriptFormat) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("TranscriptFormat")) + } + if v.TranscriptFilter != nil { + if err := validateTranscriptFilter(v.TranscriptFilter); err != nil { + invalidParams.AddNested("TranscriptFilter", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateSampleUtterance(v *types.SampleUtterance) error { if v == nil { return nil @@ -3116,6 +3353,40 @@ func validateTextLogSettingsList(v []types.TextLogSetting) error { } } +func validateTranscriptFilter(v *types.TranscriptFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TranscriptFilter"} + if v.LexTranscriptFilter != nil { + if err := validateLexTranscriptFilter(v.LexTranscriptFilter); err != nil { + invalidParams.AddNested("LexTranscriptFilter", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTranscriptSourceSetting(v *types.TranscriptSourceSetting) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TranscriptSourceSetting"} + if v.S3BucketTranscriptSource != nil { + if err := validateS3BucketTranscriptSource(v.S3BucketTranscriptSource); err != nil { + invalidParams.AddNested("S3BucketTranscriptSource", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateUtteranceAggregationDuration(v *types.UtteranceAggregationDuration) error { if v == nil { return nil @@ -3802,6 +4073,30 @@ func validateOpDescribeBotLocaleInput(v *DescribeBotLocaleInput) error { } } +func validateOpDescribeBotRecommendationInput(v *DescribeBotRecommendationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeBotRecommendationInput"} + if v.BotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotId")) + } + if v.BotVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotVersion")) + } + if v.LocaleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocaleId")) + } + if v.BotRecommendationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotRecommendationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeBotVersionInput(v *DescribeBotVersionInput) error { if v == nil { return nil @@ -4018,6 +4313,27 @@ func validateOpListBotLocalesInput(v *ListBotLocalesInput) error { } } +func validateOpListBotRecommendationsInput(v *ListBotRecommendationsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListBotRecommendationsInput"} + if v.BotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotId")) + } + if v.BotVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotVersion")) + } + if v.LocaleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocaleId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListBotsInput(v *ListBotsInput) error { if v == nil { return nil @@ -4175,6 +4491,30 @@ func validateOpListIntentsInput(v *ListIntentsInput) error { } } +func validateOpListRecommendedIntentsInput(v *ListRecommendedIntentsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListRecommendedIntentsInput"} + if v.BotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotId")) + } + if v.BotVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotVersion")) + } + if v.LocaleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocaleId")) + } + if v.BotRecommendationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotRecommendationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListSlotsInput(v *ListSlotsInput) error { if v == nil { return nil @@ -4255,6 +4595,65 @@ func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { } } +func validateOpSearchAssociatedTranscriptsInput(v *SearchAssociatedTranscriptsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SearchAssociatedTranscriptsInput"} + if v.BotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotId")) + } + if v.BotVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotVersion")) + } + if v.LocaleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocaleId")) + } + if v.BotRecommendationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotRecommendationId")) + } + if v.Filters == nil { + invalidParams.Add(smithy.NewErrParamRequired("Filters")) + } else if v.Filters != nil { + if err := validateAssociatedTranscriptFilters(v.Filters); err != nil { + invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpStartBotRecommendationInput(v *StartBotRecommendationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StartBotRecommendationInput"} + if v.BotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotId")) + } + if v.BotVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotVersion")) + } + if v.LocaleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocaleId")) + } + if v.TranscriptSourceSetting == nil { + invalidParams.Add(smithy.NewErrParamRequired("TranscriptSourceSetting")) + } else if v.TranscriptSourceSetting != nil { + if err := validateTranscriptSourceSetting(v.TranscriptSourceSetting); err != nil { + invalidParams.AddNested("TranscriptSourceSetting", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStartImportInput(v *StartImportInput) error { if v == nil { return nil @@ -4412,6 +4811,33 @@ func validateOpUpdateBotLocaleInput(v *UpdateBotLocaleInput) error { } } +func validateOpUpdateBotRecommendationInput(v *UpdateBotRecommendationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateBotRecommendationInput"} + if v.BotId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotId")) + } + if v.BotVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotVersion")) + } + if v.LocaleId == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocaleId")) + } + if v.BotRecommendationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BotRecommendationId")) + } + if v.EncryptionSetting == nil { + invalidParams.Add(smithy.NewErrParamRequired("EncryptionSetting")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateExportInput(v *UpdateExportInput) error { if v == nil { return nil diff --git a/service/outposts/api_op_CreateOutpost.go b/service/outposts/api_op_CreateOutpost.go index 9d3e526fb15..64387bb9ed7 100644 --- a/service/outposts/api_op_CreateOutpost.go +++ b/service/outposts/api_op_CreateOutpost.go @@ -48,6 +48,9 @@ type CreateOutpostInput struct { // The description of the Outpost. Description *string + // The type of hardware for this Outpost. + SupportedHardwareType types.SupportedHardwareType + // The tags to apply to the Outpost. Tags map[string]string diff --git a/service/outposts/deserializers.go b/service/outposts/deserializers.go index 99b72b3c1fa..824f54cab5e 100644 --- a/service/outposts/deserializers.go +++ b/service/outposts/deserializers.go @@ -4565,6 +4565,15 @@ func awsRestjson1_deserializeDocumentOutpost(v **types.Outpost, value interface{ sv.SiteId = ptr.String(jtv) } + case "SupportedHardwareType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SupportedHardwareType to be of type string, got %T instead", value) + } + sv.SupportedHardwareType = types.SupportedHardwareType(jtv) + } + case "Tags": if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err diff --git a/service/outposts/serializers.go b/service/outposts/serializers.go index 8ee40a74fe2..973b3c46ba0 100644 --- a/service/outposts/serializers.go +++ b/service/outposts/serializers.go @@ -242,6 +242,11 @@ func awsRestjson1_serializeOpDocumentCreateOutpostInput(v *CreateOutpostInput, v ok.String(*v.SiteId) } + if len(v.SupportedHardwareType) > 0 { + ok := object.Key("SupportedHardwareType") + ok.String(string(v.SupportedHardwareType)) + } + if v.Tags != nil { ok := object.Key("Tags") if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil { diff --git a/service/outposts/types/enums.go b/service/outposts/types/enums.go index ff8c7a92697..9769a60fdd9 100644 --- a/service/outposts/types/enums.go +++ b/service/outposts/types/enums.go @@ -352,6 +352,24 @@ func (ResourceType) Values() []ResourceType { } } +type SupportedHardwareType string + +// Enum values for SupportedHardwareType +const ( + SupportedHardwareTypeRack SupportedHardwareType = "RACK" + SupportedHardwareTypeServer SupportedHardwareType = "SERVER" +) + +// Values returns all known values for SupportedHardwareType. 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 (SupportedHardwareType) Values() []SupportedHardwareType { + return []SupportedHardwareType{ + "RACK", + "SERVER", + } +} + type SupportedStorageEnum string // Enum values for SupportedStorageEnum diff --git a/service/outposts/types/types.go b/service/outposts/types/types.go index 091c2b58475..a81c94d1d8a 100644 --- a/service/outposts/types/types.go +++ b/service/outposts/types/types.go @@ -257,6 +257,9 @@ type Outpost struct { // The ID of the site. SiteId *string + // The hardware type. + SupportedHardwareType SupportedHardwareType + // The Outpost tags. Tags map[string]string diff --git a/service/rbin/internal/endpoints/endpoints.go b/service/rbin/internal/endpoints/endpoints.go index 2d06be0f83c..139aff5b734 100644 --- a/service/rbin/internal/endpoints/endpoints.go +++ b/service/rbin/internal/endpoints/endpoints.go @@ -134,6 +134,71 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "af-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-3", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ca-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-north-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-3", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "me-south-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "sa-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-cn", diff --git a/service/redshiftdata/api_op_BatchExecuteStatement.go b/service/redshiftdata/api_op_BatchExecuteStatement.go index 4b97fc273b4..093cf1c8a6c 100644 --- a/service/redshiftdata/api_op_BatchExecuteStatement.go +++ b/service/redshiftdata/api_op_BatchExecuteStatement.go @@ -16,13 +16,16 @@ import ( // one of the following combinations of request parameters: // // * Secrets Manager - -// specify the Amazon Resource Name (ARN) of the secret, the database name, and the -// cluster identifier that matches the cluster in the secret. +// when connecting to a cluster, specify the Amazon Resource Name (ARN) of the +// secret, the database name, and the cluster identifier that matches the cluster +// in the secret. When connecting to a serverless endpoint, specify the Amazon +// Resource Name (ARN) of the secret and the database name. // // * Temporary -// credentials - specify the cluster identifier, the database name, and the -// database user name. Permission to call the redshift:GetClusterCredentials -// operation is required to use this method. +// credentials - when connecting to a cluster, specify the cluster identifier, the +// database name, and the database user name. Also, permission to call the +// redshift:GetClusterCredentials operation is required. When connecting to a +// serverless endpoint, specify the database name. func (c *Client) BatchExecuteStatement(ctx context.Context, params *BatchExecuteStatementInput, optFns ...func(*Options)) (*BatchExecuteStatementOutput, error) { if params == nil { params = &BatchExecuteStatementInput{} @@ -40,12 +43,6 @@ func (c *Client) BatchExecuteStatement(ctx context.Context, params *BatchExecute type BatchExecuteStatementInput struct { - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - // The name of the database. This parameter is required when authenticating using // either Secrets Manager or temporary credentials. // @@ -57,8 +54,12 @@ type BatchExecuteStatementInput struct { // This member is required. Sqls []string - // The database user name. This parameter is required when authenticating using - // temporary credentials. + // The cluster identifier. This parameter is required when connecting to a cluster + // and authenticating using either Secrets Manager or temporary credentials. + ClusterIdentifier *string + + // The database user name. This parameter is required when connecting to a cluster + // and authenticating using temporary credentials. DbUser *string // The name or ARN of the secret that enables access to the database. This @@ -78,7 +79,8 @@ type BatchExecuteStatementInput struct { type BatchExecuteStatementOutput struct { - // The cluster identifier. + // The cluster identifier. This parameter is not returned when connecting to a + // serverless endpoint. ClusterIdentifier *string // The date and time (UTC) the statement was created. diff --git a/service/redshiftdata/api_op_DescribeStatement.go b/service/redshiftdata/api_op_DescribeStatement.go index 0940dcf661e..e548fe99eaa 100644 --- a/service/redshiftdata/api_op_DescribeStatement.go +++ b/service/redshiftdata/api_op_DescribeStatement.go @@ -74,7 +74,8 @@ type DescribeStatementOutput struct { Error *string // A value that indicates whether the statement has a result set. The result set - // can be empty. + // can be empty. The value is true for an empty result set. The value is true if + // any substatement returns a result set. HasResultSet *bool // The parameters for the SQL statement. diff --git a/service/redshiftdata/api_op_DescribeTable.go b/service/redshiftdata/api_op_DescribeTable.go index 8106b8a15ff..d748b846a65 100644 --- a/service/redshiftdata/api_op_DescribeTable.go +++ b/service/redshiftdata/api_op_DescribeTable.go @@ -17,14 +17,17 @@ import ( // column list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret, the database name, and the cluster identifier -// that matches the cluster in the secret. +// * Secrets Manager - when connecting to a +// cluster, specify the Amazon Resource Name (ARN) of the secret, the database +// name, and the cluster identifier that matches the cluster in the secret. When +// connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of +// the secret and the database name. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - when connecting to +// a cluster, specify the cluster identifier, the database name, and the database +// user name. Also, permission to call the redshift:GetClusterCredentials operation +// is required. When connecting to a serverless endpoint, specify the database +// name. func (c *Client) DescribeTable(ctx context.Context, params *DescribeTableInput, optFns ...func(*Options)) (*DescribeTableOutput, error) { if params == nil { params = &DescribeTableInput{} @@ -42,12 +45,6 @@ func (c *Client) DescribeTable(ctx context.Context, params *DescribeTableInput, type DescribeTableInput struct { - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - // The name of the database that contains the tables to be described. If // ConnectedDatabase is not specified, this is also the database to connect to with // your authentication credentials. @@ -55,12 +52,16 @@ type DescribeTableInput struct { // This member is required. Database *string + // The cluster identifier. This parameter is required when connecting to a cluster + // and authenticating using either Secrets Manager or temporary credentials. + ClusterIdentifier *string + // A database name. The connected database is specified when you connect with your // authentication credentials. ConnectedDatabase *string - // The database user name. This parameter is required when authenticating using - // temporary credentials. + // The database user name. This parameter is required when connecting to a cluster + // and authenticating using temporary credentials. DbUser *string // The maximum number of tables to return in the response. If more tables exist diff --git a/service/redshiftdata/api_op_ExecuteStatement.go b/service/redshiftdata/api_op_ExecuteStatement.go index acdc4ab3192..403bd01909f 100644 --- a/service/redshiftdata/api_op_ExecuteStatement.go +++ b/service/redshiftdata/api_op_ExecuteStatement.go @@ -17,13 +17,16 @@ import ( // Depending on the authorization method, use one of the following combinations of // request parameters: // -// * Secrets Manager - specify the Amazon Resource Name (ARN) -// of the secret, the database name, and the cluster identifier that matches the -// cluster in the secret. +// * Secrets Manager - when connecting to a cluster, specify +// the Amazon Resource Name (ARN) of the secret, the database name, and the cluster +// identifier that matches the cluster in the secret. When connecting to a +// serverless endpoint, specify the Amazon Resource Name (ARN) of the secret and +// the database name. // -// * Temporary credentials - specify the cluster -// identifier, the database name, and the database user name. Permission to call -// the redshift:GetClusterCredentials operation is required to use this method. +// * Temporary credentials - when connecting to a cluster, +// specify the cluster identifier, the database name, and the database user name. +// Also, permission to call the redshift:GetClusterCredentials operation is +// required. When connecting to a serverless endpoint, specify the database name. func (c *Client) ExecuteStatement(ctx context.Context, params *ExecuteStatementInput, optFns ...func(*Options)) (*ExecuteStatementOutput, error) { if params == nil { params = &ExecuteStatementInput{} @@ -41,12 +44,6 @@ func (c *Client) ExecuteStatement(ctx context.Context, params *ExecuteStatementI type ExecuteStatementInput struct { - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - // The name of the database. This parameter is required when authenticating using // either Secrets Manager or temporary credentials. // @@ -58,8 +55,12 @@ type ExecuteStatementInput struct { // This member is required. Sql *string - // The database user name. This parameter is required when authenticating using - // temporary credentials. + // The cluster identifier. This parameter is required when connecting to a cluster + // and authenticating using either Secrets Manager or temporary credentials. + ClusterIdentifier *string + + // The database user name. This parameter is required when connecting to a cluster + // and authenticating using temporary credentials. DbUser *string // The parameters for the SQL statement. @@ -82,7 +83,8 @@ type ExecuteStatementInput struct { type ExecuteStatementOutput struct { - // The cluster identifier. + // The cluster identifier. This parameter is not returned when connecting to a + // serverless endpoint. ClusterIdentifier *string // The date and time (UTC) the statement was created. diff --git a/service/redshiftdata/api_op_ListDatabases.go b/service/redshiftdata/api_op_ListDatabases.go index 92808d7df38..f042ee04be6 100644 --- a/service/redshiftdata/api_op_ListDatabases.go +++ b/service/redshiftdata/api_op_ListDatabases.go @@ -15,14 +15,17 @@ import ( // database list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret, the database name, and the cluster identifier -// that matches the cluster in the secret. +// * Secrets Manager - when connecting to a +// cluster, specify the Amazon Resource Name (ARN) of the secret, the database +// name, and the cluster identifier that matches the cluster in the secret. When +// connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of +// the secret and the database name. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - when connecting to +// a cluster, specify the cluster identifier, the database name, and the database +// user name. Also, permission to call the redshift:GetClusterCredentials operation +// is required. When connecting to a serverless endpoint, specify the database +// name. func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, optFns ...func(*Options)) (*ListDatabasesOutput, error) { if params == nil { params = &ListDatabasesInput{} @@ -40,20 +43,18 @@ func (c *Client) ListDatabases(ctx context.Context, params *ListDatabasesInput, type ListDatabasesInput struct { - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - // The name of the database. This parameter is required when authenticating using // either Secrets Manager or temporary credentials. // // This member is required. Database *string - // The database user name. This parameter is required when authenticating using - // temporary credentials. + // The cluster identifier. This parameter is required when connecting to a cluster + // and authenticating using either Secrets Manager or temporary credentials. + ClusterIdentifier *string + + // The database user name. This parameter is required when connecting to a cluster + // and authenticating using temporary credentials. DbUser *string // The maximum number of databases to return in the response. If more databases diff --git a/service/redshiftdata/api_op_ListSchemas.go b/service/redshiftdata/api_op_ListSchemas.go index c80bf5d6096..bdd29a6c079 100644 --- a/service/redshiftdata/api_op_ListSchemas.go +++ b/service/redshiftdata/api_op_ListSchemas.go @@ -15,14 +15,17 @@ import ( // list. Depending on the authorization method, use one of the following // combinations of request parameters: // -// * Secrets Manager - specify the Amazon -// Resource Name (ARN) of the secret, the database name, and the cluster identifier -// that matches the cluster in the secret. +// * Secrets Manager - when connecting to a +// cluster, specify the Amazon Resource Name (ARN) of the secret, the database +// name, and the cluster identifier that matches the cluster in the secret. When +// connecting to a serverless endpoint, specify the Amazon Resource Name (ARN) of +// the secret and the database name. // -// * Temporary credentials - specify the -// cluster identifier, the database name, and the database user name. Permission to -// call the redshift:GetClusterCredentials operation is required to use this -// method. +// * Temporary credentials - when connecting to +// a cluster, specify the cluster identifier, the database name, and the database +// user name. Also, permission to call the redshift:GetClusterCredentials operation +// is required. When connecting to a serverless endpoint, specify the database +// name. func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optFns ...func(*Options)) (*ListSchemasOutput, error) { if params == nil { params = &ListSchemasInput{} @@ -40,12 +43,6 @@ func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optF type ListSchemasInput struct { - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - // The name of the database that contains the schemas to list. If ConnectedDatabase // is not specified, this is also the database to connect to with your // authentication credentials. @@ -53,12 +50,16 @@ type ListSchemasInput struct { // This member is required. Database *string + // The cluster identifier. This parameter is required when connecting to a cluster + // and authenticating using either Secrets Manager or temporary credentials. + ClusterIdentifier *string + // A database name. The connected database is specified when you connect with your // authentication credentials. ConnectedDatabase *string - // The database user name. This parameter is required when authenticating using - // temporary credentials. + // The database user name. This parameter is required when connecting to a cluster + // and authenticating using temporary credentials. DbUser *string // The maximum number of schemas to return in the response. If more schemas exist diff --git a/service/redshiftdata/api_op_ListTables.go b/service/redshiftdata/api_op_ListTables.go index 9fe1d7c2281..4284f64f21f 100644 --- a/service/redshiftdata/api_op_ListTables.go +++ b/service/redshiftdata/api_op_ListTables.go @@ -17,14 +17,17 @@ import ( // page through the table list. Depending on the authorization method, use one of // the following combinations of request parameters: // -// * Secrets Manager - specify -// the Amazon Resource Name (ARN) of the secret, the database name, and the cluster -// identifier that matches the cluster in the secret. +// * Secrets Manager - when +// connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, +// the database name, and the cluster identifier that matches the cluster in the +// secret. When connecting to a serverless endpoint, specify the Amazon Resource +// Name (ARN) of the secret and the database name. // -// * Temporary credentials - -// specify the cluster identifier, the database name, and the database user name. -// Permission to call the redshift:GetClusterCredentials operation is required to -// use this method. +// * Temporary credentials - when +// connecting to a cluster, specify the cluster identifier, the database name, and +// the database user name. Also, permission to call the +// redshift:GetClusterCredentials operation is required. When connecting to a +// serverless endpoint, specify the database name. func (c *Client) ListTables(ctx context.Context, params *ListTablesInput, optFns ...func(*Options)) (*ListTablesOutput, error) { if params == nil { params = &ListTablesInput{} @@ -42,12 +45,6 @@ func (c *Client) ListTables(ctx context.Context, params *ListTablesInput, optFns type ListTablesInput struct { - // The cluster identifier. This parameter is required when authenticating using - // either Secrets Manager or temporary credentials. - // - // This member is required. - ClusterIdentifier *string - // The name of the database that contains the tables to list. If ConnectedDatabase // is not specified, this is also the database to connect to with your // authentication credentials. @@ -55,12 +52,16 @@ type ListTablesInput struct { // This member is required. Database *string + // The cluster identifier. This parameter is required when connecting to a cluster + // and authenticating using either Secrets Manager or temporary credentials. + ClusterIdentifier *string + // A database name. The connected database is specified when you connect with your // authentication credentials. ConnectedDatabase *string - // The database user name. This parameter is required when authenticating using - // temporary credentials. + // The database user name. This parameter is required when connecting to a cluster + // and authenticating using temporary credentials. DbUser *string // The maximum number of tables to return in the response. If more tables exist diff --git a/service/redshiftdata/deserializers.go b/service/redshiftdata/deserializers.go index 411bca8fc25..b7e3ca73292 100644 --- a/service/redshiftdata/deserializers.go +++ b/service/redshiftdata/deserializers.go @@ -236,6 +236,9 @@ func awsAwsjson11_deserializeOpErrorCancelStatement(response *smithyhttp.Respons } switch { + case strings.EqualFold("DatabaseConnectionException", errorCode): + return awsAwsjson11_deserializeErrorDatabaseConnectionException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -470,6 +473,9 @@ func awsAwsjson11_deserializeOpErrorDescribeTable(response *smithyhttp.Response, } switch { + case strings.EqualFold("DatabaseConnectionException", errorCode): + return awsAwsjson11_deserializeErrorDatabaseConnectionException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -818,6 +824,9 @@ func awsAwsjson11_deserializeOpErrorListDatabases(response *smithyhttp.Response, } switch { + case strings.EqualFold("DatabaseConnectionException", errorCode): + return awsAwsjson11_deserializeErrorDatabaseConnectionException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -932,6 +941,9 @@ func awsAwsjson11_deserializeOpErrorListSchemas(response *smithyhttp.Response, m } switch { + case strings.EqualFold("DatabaseConnectionException", errorCode): + return awsAwsjson11_deserializeErrorDatabaseConnectionException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1160,6 +1172,9 @@ func awsAwsjson11_deserializeOpErrorListTables(response *smithyhttp.Response, me } switch { + case strings.EqualFold("DatabaseConnectionException", errorCode): + return awsAwsjson11_deserializeErrorDatabaseConnectionException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1246,6 +1261,41 @@ func awsAwsjson11_deserializeErrorBatchExecuteStatementException(response *smith return output } +func awsAwsjson11_deserializeErrorDatabaseConnectionException(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.DatabaseConnectionException{} + err := awsAwsjson11_deserializeDocumentDatabaseConnectionException(&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_deserializeErrorExecuteStatementException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -1707,6 +1757,46 @@ func awsAwsjson11_deserializeDocumentColumnMetadataList(v *[]types.ColumnMetadat return nil } +func awsAwsjson11_deserializeDocumentDatabaseConnectionException(v **types.DatabaseConnectionException, 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.DatabaseConnectionException + if *v == nil { + sv = &types.DatabaseConnectionException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentDatabaseList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/redshiftdata/types/errors.go b/service/redshiftdata/types/errors.go index dcea08451e6..fa60348c4fe 100644 --- a/service/redshiftdata/types/errors.go +++ b/service/redshiftdata/types/errors.go @@ -49,6 +49,25 @@ func (e *BatchExecuteStatementException) ErrorMessage() string { func (e *BatchExecuteStatementException) ErrorCode() string { return "BatchExecuteStatementException" } func (e *BatchExecuteStatementException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +// Connection to a database failed. +type DatabaseConnectionException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *DatabaseConnectionException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *DatabaseConnectionException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *DatabaseConnectionException) ErrorCode() string { return "DatabaseConnectionException" } +func (e *DatabaseConnectionException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + // The SQL statement encountered an environmental error while running. type ExecuteStatementException struct { Message *string diff --git a/service/redshiftdata/types/types.go b/service/redshiftdata/types/types.go index 253e7f55a29..a1edfff8efe 100644 --- a/service/redshiftdata/types/types.go +++ b/service/redshiftdata/types/types.go @@ -202,7 +202,7 @@ type SubStatementData struct { Error *string // A value that indicates whether the statement has a result set. The result set - // can be empty. + // can be empty. The value is true for an empty result set. HasResultSet *bool // The SQL statement text. diff --git a/service/redshiftdata/validators.go b/service/redshiftdata/validators.go index 1974086c0ad..bd99d744b85 100644 --- a/service/redshiftdata/validators.go +++ b/service/redshiftdata/validators.go @@ -269,9 +269,6 @@ func validateOpBatchExecuteStatementInput(v *BatchExecuteStatementInput) error { if v.Sqls == nil { invalidParams.Add(smithy.NewErrParamRequired("Sqls")) } - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } @@ -317,9 +314,6 @@ func validateOpDescribeTableInput(v *DescribeTableInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeTableInput"} - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } @@ -338,9 +332,6 @@ func validateOpExecuteStatementInput(v *ExecuteStatementInput) error { if v.Sql == nil { invalidParams.Add(smithy.NewErrParamRequired("Sql")) } - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } @@ -376,9 +367,6 @@ func validateOpListDatabasesInput(v *ListDatabasesInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListDatabasesInput"} - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } @@ -394,9 +382,6 @@ func validateOpListSchemasInput(v *ListSchemasInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListSchemasInput"} - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } @@ -412,9 +397,6 @@ func validateOpListTablesInput(v *ListTablesInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListTablesInput"} - if v.ClusterIdentifier == nil { - invalidParams.Add(smithy.NewErrParamRequired("ClusterIdentifier")) - } if v.Database == nil { invalidParams.Add(smithy.NewErrParamRequired("Database")) } diff --git a/service/rum/internal/endpoints/endpoints.go b/service/rum/internal/endpoints/endpoints.go index b27e7b47d77..92ef63690ea 100644 --- a/service/rum/internal/endpoints/endpoints.go +++ b/service/rum/internal/endpoints/endpoints.go @@ -134,6 +134,38 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "ap-northeast-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-central-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-north-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-west-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-cn", diff --git a/service/s3/api_op_CopyObject.go b/service/s3/api_op_CopyObject.go index 627c11a63bd..cd5ea4208e9 100644 --- a/service/s3/api_op_CopyObject.go +++ b/service/s3/api_op_CopyObject.go @@ -113,10 +113,21 @@ import ( // List (ACL) Overview // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) and Managing // ACLs Using the REST API -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html). -// Storage Class Options You can use the CopyObject action to change the storage -// class of an object that is already stored in Amazon S3 using the StorageClass -// parameter. For more information, see Storage Classes +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html). If +// the bucket that you're copying objects to uses the bucket owner enforced setting +// for S3 Object Ownership, ACLs are disabled and no longer affect permissions. +// Buckets that use this setting only accept PUT requests that don't specify an ACL +// or PUT requests that specify bucket owner full control ACLs, such as the +// bucket-owner-full-control canned ACL or an equivalent form of this ACL expressed +// in the XML format. For more information, see Controlling ownership of objects +// and disabling ACLs +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. If your bucket uses the bucket owner enforced +// setting for Object Ownership, all objects written to the bucket by any account +// will be owned by the bucket owner. Storage Class Options You can use the +// CopyObject action to change the storage class of an object that is already +// stored in Amazon S3 using the StorageClass parameter. For more information, see +// Storage Classes // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) in // the Amazon S3 User Guide. Versioning By default, x-amz-copy-source identifies // the current version of an object to copy. If the current version is a delete diff --git a/service/s3/api_op_CreateBucket.go b/service/s3/api_op_CreateBucket.go index 38ea2c5f018..f33427d010d 100644 --- a/service/s3/api_op_CreateBucket.go +++ b/service/s3/api_op_CreateBucket.go @@ -34,15 +34,23 @@ import ( // created. If you create a bucket in a Region other than US East (N. Virginia), // your application must be able to handle 307 redirect. For more information, see // Virtual hosting of buckets -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html). When -// creating a bucket using this operation, you can optionally specify the accounts -// or groups that should be granted specific permissions on the bucket. There are -// two ways to grant the appropriate permissions using the request headers. +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html). Access +// control lists (ACLs) When creating a bucket using this operation, you can +// optionally configure the bucket ACL to specify the accounts or groups that +// should be granted specific permissions on the bucket. If your CreateBucket +// request includes the BucketOwnerEnforced value for the x-amz-object-ownership +// header, your request can either not specify an ACL or specify bucket owner full +// control ACLs, such as the bucket-owner-full-control canned ACL or an equivalent +// ACL expressed in the XML format. For more information, see Controlling object +// ownership +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. There are two ways to grant the appropriate +// permissions using the request headers. // -// * -// Specify a canned ACL using the x-amz-acl request header. Amazon S3 supports a -// set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined -// set of grantees and permissions. For more information, see Canned ACL +// * Specify a canned ACL using the +// x-amz-acl request header. Amazon S3 supports a set of predefined ACLs, known as +// canned ACLs. Each canned ACL has a predefined set of grantees and permissions. +// For more information, see Canned ACL // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). // // * @@ -51,41 +59,41 @@ import ( // x-amz-grant-full-control headers. These headers map to the set of permissions // Amazon S3 supports in an ACL. For more information, see Access control list // (ACL) overview -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html). You specify -// each grantee as a type=value pair, where the type is one of the following: +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html). You +// specify each grantee as a type=value pair, where the type is one of the +// following: // -// * id -// – if the value specified is the canonical user ID of an Amazon Web Services -// account +// * id – if the value specified is the canonical user ID of an Amazon +// Web Services account // -// * uri – if you are granting permissions to a predefined group +// * uri – if you are granting permissions to a predefined +// group // -// * -// emailAddress – if the value specified is the email address of an Amazon Web -// Services account Using email addresses to specify a grantee is only supported in -// the following Amazon Web Services Regions: +// * emailAddress – if the value specified is the email address of an Amazon +// Web Services account Using email addresses to specify a grantee is only +// supported in the following Amazon Web Services Regions: // -// * US East (N. Virginia) +// * US East (N. +// Virginia) // -// * US West -// (N. California) +// * US West (N. California) // // * US West (Oregon) // -// * Asia Pacific (Singapore) -// // * Asia Pacific -// (Sydney) +// (Singapore) +// +// * Asia Pacific (Sydney) // // * Asia Pacific (Tokyo) // -// * Europe (Ireland) +// * Europe +// (Ireland) // -// * South America (São -// Paulo) +// * South America (São Paulo) // -// For a list of all the Amazon S3 supported Regions and endpoints, see -// Regions and Endpoints +// For a list of all the Amazon S3 +// supported Regions and endpoints, see Regions and Endpoints // (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) in the // Amazon Web Services General Reference. // @@ -95,15 +103,27 @@ import ( // id="11112222333", id="444455556666" // // You can use either a canned ACL or specify -// access permissions explicitly. You cannot do both. Permissions If your -// CreateBucket request specifies ACL permissions and the ACL is public-read, -// public-read-write, authenticated-read, or if you specify access permissions -// explicitly through any other ACL, both s3:CreateBucket and s3:PutBucketAcl -// permissions are needed. If the ACL the CreateBucket request is private, only -// s3:CreateBucket permission is needed. If ObjectLockEnabledForBucket is set to -// true in your CreateBucket request, s3:PutBucketObjectLockConfiguration and -// s3:PutBucketVersioning permissions are required. The following operations are -// related to CreateBucket: +// access permissions explicitly. You cannot do both. Permissions In addition to +// s3:CreateBucket, the following permissions are required when your CreateBucket +// includes specific headers: +// +// * ACLs - If your CreateBucket request specifies ACL +// permissions and the ACL is public-read, public-read-write, authenticated-read, +// or if you specify access permissions explicitly through any other ACL, both +// s3:CreateBucket and s3:PutBucketAcl permissions are needed. If the ACL the +// CreateBucket request is private or doesn't specify any ACLs, only +// s3:CreateBucket permission is needed. +// +// * Object Lock - If +// ObjectLockEnabledForBucket is set to true in your CreateBucket request, +// s3:PutBucketObjectLockConfiguration and s3:PutBucketVersioning permissions are +// required. +// +// * S3 Object Ownership - If your CreateBucket request includes the the +// x-amz-object-ownership header, s3:PutBucketOwnershipControls permission is +// required. +// +// The following operations are related to CreateBucket: // // * PutObject // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) @@ -160,6 +180,19 @@ type CreateBucketInput struct { // Specifies whether you want S3 Object Lock to be enabled for the new bucket. ObjectLockEnabledForBucket bool + // The container element for object ownership for a bucket's ownership controls. + // BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the + // bucket owner if the objects are uploaded with the bucket-owner-full-control + // canned ACL. ObjectWriter - The uploading account will own the object if the + // object is uploaded with the bucket-owner-full-control canned ACL. + // BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer + // affect permissions. The bucket owner automatically owns and has full control + // over every object in the bucket. The bucket only accepts PUT requests that don't + // specify an ACL or bucket owner full control ACLs, such as the + // bucket-owner-full-control canned ACL or an equivalent form of this ACL expressed + // in the XML format. + ObjectOwnership types.ObjectOwnership + noSmithyDocumentSerde } diff --git a/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go b/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go index 7a289f64585..139dd78a05b 100644 --- a/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_DeleteBucketIntelligentTieringConfiguration.go @@ -15,16 +15,16 @@ import ( // S3 Intelligent-Tiering storage class is designed to optimize storage costs by // automatically moving data to the most cost-effective storage access tier, // without performance impact or operational overhead. S3 Intelligent-Tiering -// delivers automatic cost savings in two low latency and high throughput access -// tiers. For data that can be accessed asynchronously, you can choose to activate -// automatic archiving capabilities within the S3 Intelligent-Tiering storage -// class. The S3 Intelligent-Tiering storage class is the ideal storage class for -// data with unknown, changing, or unpredictable access patterns, independent of -// object size or retention period. If the size of an object is less than 128 KB, -// it is not eligible for auto-tiering. Smaller objects can be stored, but they are -// always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering -// storage class. For more information, see Storage class for automatically -// optimizing frequently and infrequently accessed objects +// delivers automatic cost savings in three low latency and high throughput access +// tiers. To get the lowest storage cost on data that can be accessed in minutes to +// hours, you can choose to activate additional archiving capabilities. The S3 +// Intelligent-Tiering storage class is the ideal storage class for data with +// unknown, changing, or unpredictable access patterns, independent of object size +// or retention period. If the size of an object is less than 128 KB, it is not +// monitored and not eligible for auto-tiering. Smaller objects can be stored, but +// they are always charged at the Frequent Access tier rates in the S3 +// Intelligent-Tiering storage class. For more information, see Storage class for +// automatically optimizing frequently and infrequently accessed objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access). // Operations related to DeleteBucketIntelligentTieringConfiguration include: // diff --git a/service/s3/api_op_GetBucketAcl.go b/service/s3/api_op_GetBucketAcl.go index 96a5043408c..7dcd976e21c 100644 --- a/service/s3/api_op_GetBucketAcl.go +++ b/service/s3/api_op_GetBucketAcl.go @@ -16,7 +16,13 @@ import ( // access control list (ACL) of a bucket. To use GET to return the ACL of the // bucket, you must have READ_ACP access to the bucket. If READ_ACP permission is // granted to the anonymous user, you can return the ACL of the bucket without -// using an authorization header. Related Resources +// using an authorization header. If your bucket uses the bucket owner enforced +// setting for S3 Object Ownership, requests to read ACLs are still supported and +// return the bucket-owner-full-control ACL with the owner being the account that +// created the bucket. For more information, see Controlling object ownership and +// disabling ACLs +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. Related Resources // // * ListObjects // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html) diff --git a/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go b/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go index 9c5c6abda05..70bbb9dfbaa 100644 --- a/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_GetBucketIntelligentTieringConfiguration.go @@ -16,16 +16,16 @@ import ( // Intelligent-Tiering storage class is designed to optimize storage costs by // automatically moving data to the most cost-effective storage access tier, // without performance impact or operational overhead. S3 Intelligent-Tiering -// delivers automatic cost savings in two low latency and high throughput access -// tiers. For data that can be accessed asynchronously, you can choose to activate -// automatic archiving capabilities within the S3 Intelligent-Tiering storage -// class. The S3 Intelligent-Tiering storage class is the ideal storage class for -// data with unknown, changing, or unpredictable access patterns, independent of -// object size or retention period. If the size of an object is less than 128 KB, -// it is not eligible for auto-tiering. Smaller objects can be stored, but they are -// always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering -// storage class. For more information, see Storage class for automatically -// optimizing frequently and infrequently accessed objects +// delivers automatic cost savings in three low latency and high throughput access +// tiers. To get the lowest storage cost on data that can be accessed in minutes to +// hours, you can choose to activate additional archiving capabilities. The S3 +// Intelligent-Tiering storage class is the ideal storage class for data with +// unknown, changing, or unpredictable access patterns, independent of object size +// or retention period. If the size of an object is less than 128 KB, it is not +// monitored and not eligible for auto-tiering. Smaller objects can be stored, but +// they are always charged at the Frequent Access tier rates in the S3 +// Intelligent-Tiering storage class. For more information, see Storage class for +// automatically optimizing frequently and infrequently accessed objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access). // Operations related to GetBucketIntelligentTieringConfiguration include: // diff --git a/service/s3/api_op_GetBucketOwnershipControls.go b/service/s3/api_op_GetBucketOwnershipControls.go index ca4144d22a2..88042750b48 100644 --- a/service/s3/api_op_GetBucketOwnershipControls.go +++ b/service/s3/api_op_GetBucketOwnershipControls.go @@ -14,10 +14,10 @@ import ( // Retrieves OwnershipControls for an Amazon S3 bucket. To use this operation, you // must have the s3:GetBucketOwnershipControls permission. For more information -// about Amazon S3 permissions, see Specifying Permissions in a Policy -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html). +// about Amazon S3 permissions, see Specifying permissions in a policy +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html). // For information about Amazon S3 Object Ownership, see Using Object Ownership -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html). +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html). // The following operations are related to GetBucketOwnershipControls: // // * @@ -55,8 +55,8 @@ type GetBucketOwnershipControlsInput struct { type GetBucketOwnershipControlsOutput struct { - // The OwnershipControls (BucketOwnerPreferred or ObjectWriter) currently in effect - // for this Amazon S3 bucket. + // The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or + // ObjectWriter) currently in effect for this Amazon S3 bucket. OwnershipControls *types.OwnershipControls // Metadata pertaining to the operation's result. diff --git a/service/s3/api_op_GetObjectAcl.go b/service/s3/api_op_GetObjectAcl.go index b260a8da960..ed331c4b38f 100644 --- a/service/s3/api_op_GetObjectAcl.go +++ b/service/s3/api_op_GetObjectAcl.go @@ -16,7 +16,13 @@ import ( // must have READ_ACP access to the object. This action is not supported by Amazon // S3 on Outposts. Versioning By default, GET returns ACL information about the // current version of an object. To return ACL information about a different -// version, use the versionId subresource. The following operations are related to +// version, use the versionId subresource. If your bucket uses the bucket owner +// enforced setting for S3 Object Ownership, requests to read ACLs are still +// supported and return the bucket-owner-full-control ACL with the owner being the +// account that created the bucket. For more information, see Controlling object +// ownership and disabling ACLs +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. The following operations are related to // GetObjectAcl: // // * GetObject diff --git a/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go b/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go index 9309e619dea..972a69c99fc 100644 --- a/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go +++ b/service/s3/api_op_ListBucketIntelligentTieringConfigurations.go @@ -16,16 +16,16 @@ import ( // Intelligent-Tiering storage class is designed to optimize storage costs by // automatically moving data to the most cost-effective storage access tier, // without performance impact or operational overhead. S3 Intelligent-Tiering -// delivers automatic cost savings in two low latency and high throughput access -// tiers. For data that can be accessed asynchronously, you can choose to activate -// automatic archiving capabilities within the S3 Intelligent-Tiering storage -// class. The S3 Intelligent-Tiering storage class is the ideal storage class for -// data with unknown, changing, or unpredictable access patterns, independent of -// object size or retention period. If the size of an object is less than 128 KB, -// it is not eligible for auto-tiering. Smaller objects can be stored, but they are -// always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering -// storage class. For more information, see Storage class for automatically -// optimizing frequently and infrequently accessed objects +// delivers automatic cost savings in three low latency and high throughput access +// tiers. To get the lowest storage cost on data that can be accessed in minutes to +// hours, you can choose to activate additional archiving capabilities. The S3 +// Intelligent-Tiering storage class is the ideal storage class for data with +// unknown, changing, or unpredictable access patterns, independent of object size +// or retention period. If the size of an object is less than 128 KB, it is not +// monitored and not eligible for auto-tiering. Smaller objects can be stored, but +// they are always charged at the Frequent Access tier rates in the S3 +// Intelligent-Tiering storage class. For more information, see Storage class for +// automatically optimizing frequently and infrequently accessed objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access). // Operations related to ListBucketIntelligentTieringConfigurations include: // diff --git a/service/s3/api_op_PutBucketAcl.go b/service/s3/api_op_PutBucketAcl.go index 8f619e8dddf..9f80ccc4836 100644 --- a/service/s3/api_op_PutBucketAcl.go +++ b/service/s3/api_op_PutBucketAcl.go @@ -28,15 +28,22 @@ import ( // application needs, you may choose to set the ACL on a bucket using either the // request body or the headers. For example, if you have an existing application // that updates a bucket ACL using the request body, then you can continue to use -// that approach. Access Permissions You can set access permissions using one of -// the following methods: -// -// * Specify a canned ACL with the x-amz-acl request -// header. Amazon S3 supports a set of predefined ACLs, known as canned ACLs. Each -// canned ACL has a predefined set of grantees and permissions. Specify the canned -// ACL name as the value of x-amz-acl. If you use this header, you cannot use other -// access control-specific headers in your request. For more information, see -// Canned ACL +// that approach. If your bucket uses the bucket owner enforced setting for S3 +// Object Ownership, ACLs are disabled and no longer affect permissions. You must +// use policies to grant access to your bucket and the objects in it. Requests to +// set ACLs or update ACLs fail and return the AccessControlListNotSupported error +// code. Requests to read ACLs are still supported. For more information, see +// Controlling object ownership +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. Access Permissions You can set access permissions +// using one of the following methods: +// +// * Specify a canned ACL with the x-amz-acl +// request header. Amazon S3 supports a set of predefined ACLs, known as canned +// ACLs. Each canned ACL has a predefined set of grantees and permissions. Specify +// the canned ACL name as the value of x-amz-acl. If you use this header, you +// cannot use other access control-specific headers in your request. For more +// information, see Canned ACL // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). // // * diff --git a/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go b/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go index 4ae3a8186e8..edf5d178be1 100644 --- a/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go @@ -17,16 +17,16 @@ import ( // Intelligent-Tiering storage class is designed to optimize storage costs by // automatically moving data to the most cost-effective storage access tier, // without performance impact or operational overhead. S3 Intelligent-Tiering -// delivers automatic cost savings in two low latency and high throughput access -// tiers. For data that can be accessed asynchronously, you can choose to activate -// automatic archiving capabilities within the S3 Intelligent-Tiering storage -// class. The S3 Intelligent-Tiering storage class is the ideal storage class for -// data with unknown, changing, or unpredictable access patterns, independent of -// object size or retention period. If the size of an object is less than 128 KB, -// it is not eligible for auto-tiering. Smaller objects can be stored, but they are -// always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering -// storage class. For more information, see Storage class for automatically -// optimizing frequently and infrequently accessed objects +// delivers automatic cost savings in three low latency and high throughput access +// tiers. To get the lowest storage cost on data that can be accessed in minutes to +// hours, you can choose to activate additional archiving capabilities. The S3 +// Intelligent-Tiering storage class is the ideal storage class for data with +// unknown, changing, or unpredictable access patterns, independent of object size +// or retention period. If the size of an object is less than 128 KB, it is not +// monitored and not eligible for auto-tiering. Smaller objects can be stored, but +// they are always charged at the Frequent Access tier rates in the S3 +// Intelligent-Tiering storage class. For more information, see Storage class for +// automatically optimizing frequently and infrequently accessed objects // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access). // Operations related to PutBucketIntelligentTieringConfiguration include: // diff --git a/service/s3/api_op_PutBucketLogging.go b/service/s3/api_op_PutBucketLogging.go index b4f2f00a71c..fab276d1f7a 100644 --- a/service/s3/api_op_PutBucketLogging.go +++ b/service/s3/api_op_PutBucketLogging.go @@ -18,16 +18,22 @@ import ( // of a bucket, you must be the bucket owner. The bucket owner is automatically // granted FULL_CONTROL to all logs. You use the Grantee request element to grant // access to other people. The Permissions request element specifies the kind of -// access the grantee has to the logs. Grantee Values You can specify the person -// (grantee) to whom you're assigning access rights (using request elements) in the -// following ways: +// access the grantee has to the logs. If the target bucket for log delivery uses +// the bucket owner enforced setting for S3 Object Ownership, you can't use the +// Grantee request element to grant access to others. Permissions can only be +// granted using policies. For more information, see Permissions for server access +// log delivery +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general) +// in the Amazon S3 User Guide. Grantee Values You can specify the person (grantee) +// to whom you're assigning access rights (using request elements) in the following +// ways: // -// * By the person's ID: <>ID<><>GranteesEmail<> DisplayName is -// optional and ignored in the request. +// * By the person's ID: <>ID<><>GranteesEmail<> DisplayName is optional +// and ignored in the request. // -// * By Email address: -// <>Grantees@email.com<> The grantee is resolved to the CanonicalUser and, in a -// response to a GET Object acl request, appears as the CanonicalUser. +// * By Email address: <>Grantees@email.com<> The +// grantee is resolved to the CanonicalUser and, in a response to a GET Object acl +// request, appears as the CanonicalUser. // // * By URI: // <>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<> @@ -36,8 +42,9 @@ import ( // logging, you use LoggingEnabled and its children request elements. To disable // logging, you use an empty BucketLoggingStatus request element: For more // information about server access logging, see Server Access Logging -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html). For more -// information about creating a bucket, see CreateBucket +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html) in the +// Amazon S3 User Guide. For more information about creating a bucket, see +// CreateBucket // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html). For // more information about returning the logging status of a bucket, see // GetBucketLogging diff --git a/service/s3/api_op_PutBucketOwnershipControls.go b/service/s3/api_op_PutBucketOwnershipControls.go index 394f17d1ac7..3d3557d138f 100644 --- a/service/s3/api_op_PutBucketOwnershipControls.go +++ b/service/s3/api_op_PutBucketOwnershipControls.go @@ -14,10 +14,10 @@ import ( // Creates or modifies OwnershipControls for an Amazon S3 bucket. To use this // operation, you must have the s3:PutBucketOwnershipControls permission. For more -// information about Amazon S3 permissions, see Specifying Permissions in a Policy -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html). -// For information about Amazon S3 Object Ownership, see Using Object Ownership -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html). +// information about Amazon S3 permissions, see Specifying permissions in a policy +// (https://docs.aws.amazon.com/AmazonS3/latest/user-guide/using-with-s3-actions.html). +// For information about Amazon S3 Object Ownership, see Using object ownership +// (https://docs.aws.amazon.com/AmazonS3/latest/user-guide/about-object-ownership.html). // The following operations are related to PutBucketOwnershipControls: // // * @@ -46,8 +46,8 @@ type PutBucketOwnershipControlsInput struct { // This member is required. Bucket *string - // The OwnershipControls (BucketOwnerPreferred or ObjectWriter) that you want to - // apply to this Amazon S3 bucket. + // The OwnershipControls (BucketOwnerEnforced, BucketOwnerPreferred, or + // ObjectWriter) that you want to apply to this Amazon S3 bucket. // // This member is required. OwnershipControls *types.OwnershipControls diff --git a/service/s3/api_op_PutObject.go b/service/s3/api_op_PutObject.go index bbe52778ef5..a4340ca90a7 100644 --- a/service/s3/api_op_PutObject.go +++ b/service/s3/api_op_PutObject.go @@ -60,12 +60,25 @@ import ( // For more information, see Access Control List (ACL) Overview // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) and Managing // ACLs Using the REST API -// (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html). -// Storage Class Options By default, Amazon S3 uses the STANDARD Storage Class to -// store newly created objects. The STANDARD storage class provides high durability -// and high availability. Depending on performance needs, you can specify a -// different Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage -// Class. For more information, see Storage Classes +// (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html). If +// the bucket that you're uploading objects to uses the bucket owner enforced +// setting for S3 Object Ownership, ACLs are disabled and no longer affect +// permissions. Buckets that use this setting only accept PUT requests that don't +// specify an ACL or PUT requests that specify bucket owner full control ACLs, such +// as the bucket-owner-full-control canned ACL or an equivalent form of this ACL +// expressed in the XML format. PUT requests that contain other ACLs (for example, +// custom grants to certain Amazon Web Services accounts) fail and return a 400 +// error with the error code AccessControlListNotSupported. For more information, +// see Controlling ownership of objects and disabling ACLs +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. If your bucket uses the bucket owner enforced +// setting for Object Ownership, all objects written to the bucket by any account +// will be owned by the bucket owner. Storage Class Options By default, Amazon S3 +// uses the STANDARD Storage Class to store newly created objects. The STANDARD +// storage class provides high durability and high availability. Depending on +// performance needs, you can specify a different Storage Class. Amazon S3 on +// Outposts only uses the OUTPOSTS Storage Class. For more information, see Storage +// Classes // (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) in // the Amazon S3 User Guide. Versioning If you enable versioning for a bucket, // Amazon S3 automatically generates a unique version ID for the object being diff --git a/service/s3/api_op_PutObjectAcl.go b/service/s3/api_op_PutObjectAcl.go index 957aa5663f3..d6dd3d3069f 100644 --- a/service/s3/api_op_PutObjectAcl.go +++ b/service/s3/api_op_PutObjectAcl.go @@ -24,15 +24,22 @@ import ( // can continue to use that approach. For more information, see Access Control List // (ACL) Overview // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) in the -// Amazon S3 User Guide. Access Permissions You can set access permissions using -// one of the following methods: +// Amazon S3 User Guide. If your bucket uses the bucket owner enforced setting for +// S3 Object Ownership, ACLs are disabled and no longer affect permissions. You +// must use policies to grant access to your bucket and the objects in it. Requests +// to set ACLs or update ACLs fail and return the AccessControlListNotSupported +// error code. Requests to read ACLs are still supported. For more information, see +// Controlling object ownership +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. Access Permissions You can set access permissions +// using one of the following methods: // -// * Specify a canned ACL with the x-amz-acl request -// header. Amazon S3 supports a set of predefined ACLs, known as canned ACLs. Each -// canned ACL has a predefined set of grantees and permissions. Specify the canned -// ACL name as the value of x-amz-acl. If you use this header, you cannot use other -// access control-specific headers in your request. For more information, see -// Canned ACL +// * Specify a canned ACL with the x-amz-acl +// request header. Amazon S3 supports a set of predefined ACLs, known as canned +// ACLs. Each canned ACL has a predefined set of grantees and permissions. Specify +// the canned ACL name as the value of x-amz-acl. If you use this header, you +// cannot use other access control-specific headers in your request. For more +// information, see Canned ACL // (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL). // // * diff --git a/service/s3/serializers.go b/service/s3/serializers.go index 72cdb28ba78..85b137df6b2 100644 --- a/service/s3/serializers.go +++ b/service/s3/serializers.go @@ -576,6 +576,11 @@ func awsRestxml_serializeOpHttpBindingsCreateBucketInput(v *CreateBucketInput, e encoder.SetHeader(locationName).Boolean(v.ObjectLockEnabledForBucket) } + if len(v.ObjectOwnership) > 0 { + locationName := "X-Amz-Object-Ownership" + encoder.SetHeader(locationName).String(string(v.ObjectOwnership)) + } + return nil } diff --git a/service/s3/types/enums.go b/service/s3/types/enums.go index fa137deb791..fa75ab8f4bc 100644 --- a/service/s3/types/enums.go +++ b/service/s3/types/enums.go @@ -686,6 +686,7 @@ type ObjectOwnership string const ( ObjectOwnershipBucketOwnerPreferred ObjectOwnership = "BucketOwnerPreferred" ObjectOwnershipObjectWriter ObjectOwnership = "ObjectWriter" + ObjectOwnershipBucketOwnerEnforced ObjectOwnership = "BucketOwnerEnforced" ) // Values returns all known values for ObjectOwnership. Note that this can be @@ -695,6 +696,7 @@ func (ObjectOwnership) Values() []ObjectOwnership { return []ObjectOwnership{ "BucketOwnerPreferred", "ObjectWriter", + "BucketOwnerEnforced", } } @@ -710,6 +712,7 @@ const ( ObjectStorageClassIntelligentTiering ObjectStorageClass = "INTELLIGENT_TIERING" ObjectStorageClassDeepArchive ObjectStorageClass = "DEEP_ARCHIVE" ObjectStorageClassOutposts ObjectStorageClass = "OUTPOSTS" + ObjectStorageClassGlacierIr ObjectStorageClass = "GLACIER_IR" ) // Values returns all known values for ObjectStorageClass. Note that this can be @@ -725,6 +728,7 @@ func (ObjectStorageClass) Values() []ObjectStorageClass { "INTELLIGENT_TIERING", "DEEP_ARCHIVE", "OUTPOSTS", + "GLACIER_IR", } } @@ -1010,6 +1014,7 @@ const ( StorageClassGlacier StorageClass = "GLACIER" StorageClassDeepArchive StorageClass = "DEEP_ARCHIVE" StorageClassOutposts StorageClass = "OUTPOSTS" + StorageClassGlacierIr StorageClass = "GLACIER_IR" ) // Values returns all known values for StorageClass. Note that this can be expanded @@ -1025,6 +1030,7 @@ func (StorageClass) Values() []StorageClass { "GLACIER", "DEEP_ARCHIVE", "OUTPOSTS", + "GLACIER_IR", } } @@ -1092,6 +1098,7 @@ const ( TransitionStorageClassOnezoneIa TransitionStorageClass = "ONEZONE_IA" TransitionStorageClassIntelligentTiering TransitionStorageClass = "INTELLIGENT_TIERING" TransitionStorageClassDeepArchive TransitionStorageClass = "DEEP_ARCHIVE" + TransitionStorageClassGlacierIr TransitionStorageClass = "GLACIER_IR" ) // Values returns all known values for TransitionStorageClass. Note that this can @@ -1104,6 +1111,7 @@ func (TransitionStorageClass) Values() []TransitionStorageClass { "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE", + "GLACIER_IR", } } diff --git a/service/s3/types/types.go b/service/s3/types/types.go index 1ad7932e50e..dcc09b7da29 100644 --- a/service/s3/types/types.go +++ b/service/s3/types/types.go @@ -2203,7 +2203,11 @@ type LoggingEnabled struct { // This member is required. TargetPrefix *string - // Container for granting information. + // Container for granting information. Buckets that use the bucket owner enforced + // setting for Object Ownership don't support target grants. For more information, + // see Permissions for server access log delivery + // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general) + // in the Amazon S3 User Guide. TargetGrants []TargetGrant noSmithyDocumentSerde @@ -2378,12 +2382,12 @@ type NoncurrentVersionExpiration struct { } // Container for the transition rule that describes when noncurrent objects -// transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or -// DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning -// is suspended), you can set this action to request that Amazon S3 transition -// noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, -// GLACIER, or DEEP_ARCHIVE storage class at a specific period in the object's -// lifetime. +// transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER_IR, +// GLACIER, or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or +// versioning is suspended), you can set this action to request that Amazon S3 +// transition noncurrent object versions to the STANDARD_IA, ONEZONE_IA, +// INTELLIGENT_TIERING, GLACIER_IR, GLACIER, or DEEP_ARCHIVE storage class at a +// specific period in the object's lifetime. type NoncurrentVersionTransition struct { // Specifies how many noncurrent versions Amazon S3 will retain. If there are this @@ -2633,6 +2637,12 @@ type OwnershipControlsRule struct { // bucket owner if the objects are uploaded with the bucket-owner-full-control // canned ACL. ObjectWriter - The uploading account will own the object if the // object is uploaded with the bucket-owner-full-control canned ACL. + // BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer + // affect permissions. The bucket owner automatically owns and has full control + // over every object in the bucket. The bucket only accepts PUT requests that don't + // specify an ACL or bucket owner full control ACLs, such as the + // bucket-owner-full-control canned ACL or an equivalent form of this ACL expressed + // in the XML format. // // This member is required. ObjectOwnership ObjectOwnership @@ -3474,7 +3484,11 @@ type Tagging struct { noSmithyDocumentSerde } -// Container for granting information. +// Container for granting information. Buckets that use the bucket owner enforced +// setting for Object Ownership don't support target grants. For more information, +// see Permissions server access log delivery +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general) +// in the Amazon S3 User Guide. type TargetGrant struct { // Container for the person being granted permissions. diff --git a/service/sagemaker/api_op_CreateCompilationJob.go b/service/sagemaker/api_op_CreateCompilationJob.go index 795dba091d8..9762fd702e6 100644 --- a/service/sagemaker/api_op_CreateCompilationJob.go +++ b/service/sagemaker/api_op_CreateCompilationJob.go @@ -60,13 +60,6 @@ type CreateCompilationJobInput struct { // This member is required. CompilationJobName *string - // Provides information about the location of input model artifacts, the name and - // shape of the expected data inputs, and the framework in which the model was - // trained. - // - // This member is required. - InputConfig *types.InputConfig - // Provides information about the output location for the compiled model and the // target device the model runs on. // @@ -102,6 +95,17 @@ type CreateCompilationJobInput struct { // This member is required. StoppingCondition *types.StoppingCondition + // Provides information about the location of input model artifacts, the name and + // shape of the expected data inputs, and the framework in which the model was + // trained. + InputConfig *types.InputConfig + + // The Amazon Resource Name (ARN) of a versioned model package. Provide either a + // ModelPackageVersionArn or an InputConfig object in the request syntax. The + // presence of both objects in the CreateCompilationJob request will return an + // exception. + ModelPackageVersionArn *string + // An array of key-value pairs. You can use tags to categorize your Amazon Web // Services resources in different ways, for example, by purpose, owner, or // environment. For more information, see Tagging Amazon Web Services Resources diff --git a/service/sagemaker/api_op_CreateInferenceRecommendationsJob.go b/service/sagemaker/api_op_CreateInferenceRecommendationsJob.go new file mode 100644 index 00000000000..de54eb2cb8c --- /dev/null +++ b/service/sagemaker/api_op_CreateInferenceRecommendationsJob.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Starts a recommendation job. You can create either an instance recommendation or +// load test job. +func (c *Client) CreateInferenceRecommendationsJob(ctx context.Context, params *CreateInferenceRecommendationsJobInput, optFns ...func(*Options)) (*CreateInferenceRecommendationsJobOutput, error) { + if params == nil { + params = &CreateInferenceRecommendationsJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateInferenceRecommendationsJob", params, optFns, c.addOperationCreateInferenceRecommendationsJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateInferenceRecommendationsJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateInferenceRecommendationsJobInput struct { + + // Provides information about the versioned model package Amazon Resource Name + // (ARN), the traffic pattern, and endpoint configurations. + // + // This member is required. + InputConfig *types.RecommendationJobInputConfig + + // A name for the recommendation job. The name must be unique within the Amazon Web + // Services Region and within your Amazon Web Services account. + // + // This member is required. + JobName *string + + // Defines the type of recommendation job. Specify Default to initiate an instance + // recommendation and Advanced to initiate a load test. If left unspecified, Amazon + // SageMaker Inference Recommender will run an instance recommendation (DEFAULT) + // job. + // + // This member is required. + JobType types.RecommendationJobType + + // The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to + // perform tasks on your behalf. + // + // This member is required. + RoleArn *string + + // Description of the recommendation job. + JobDescription *string + + // A set of conditions for stopping a recommendation job. If any of the conditions + // are met, the job is automatically stopped. + StoppingConditions *types.RecommendationJobStoppingConditions + + // The metadata that you apply to Amazon Web Services resources to help you + // categorize and organize them. Each tag consists of a key and a value, both of + // which you define. For more information, see Tagging Amazon Web Services + // Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in + // the Amazon Web Services General Reference. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateInferenceRecommendationsJobOutput struct { + + // The Amazon Resource Name (ARN) of the recommendation job. + // + // This member is required. + JobArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateInferenceRecommendationsJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateInferenceRecommendationsJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateInferenceRecommendationsJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInferenceRecommendationsJob(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreateInferenceRecommendationsJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "CreateInferenceRecommendationsJob", + } +} diff --git a/service/sagemaker/api_op_CreateModelPackage.go b/service/sagemaker/api_op_CreateModelPackage.go index 02354c97ab9..e844afa6774 100644 --- a/service/sagemaker/api_op_CreateModelPackage.go +++ b/service/sagemaker/api_op_CreateModelPackage.go @@ -44,6 +44,12 @@ func (c *Client) CreateModelPackage(ctx context.Context, params *CreateModelPack type CreateModelPackageInput struct { + // An array of additional Inference Specification objects. Each additional + // Inference Specification specifies artifacts based on this model package that can + // be used on inference endpoints. Generally used with SageMaker Neo to store the + // compiled artifacts. + AdditionalInferenceSpecifications []types.AdditionalInferenceSpecificationDefinition + // Whether to certify the model package for listing on Amazon Web Services // Marketplace. This parameter is optional for unversioned models, and does not // apply to versioned models. @@ -55,6 +61,18 @@ type CreateModelPackageInput struct { // The metadata properties associated with the model package versions. CustomerMetadataProperties map[string]string + // The machine learning domain of your model package and its components. Common + // machine learning domains include computer vision and natural language + // processing. + Domain *string + + // Represents the drift check baselines that can be used when the model monitor is + // set using the model package. For more information, see the topic on Drift + // Detection against Previous Baselines in SageMaker Pipelines + // (https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html#pipelines-quality-clarify-baseline-drift-detection) + // in the Amazon SageMaker Developer Guide. + DriftCheckBaselines *types.DriftCheckBaselines + // Specifies details about inference jobs that can be run with models based on this // model package, including the following: // @@ -93,6 +111,11 @@ type CreateModelPackageInput struct { // unversioned models. It is not applicable to versioned models. ModelPackageName *string + // The Amazon Simple Storage Service (Amazon S3) path where the sample payload are + // stored. This path must point to a single gzip compressed tar archive (.tar.gz + // suffix). + SamplePayloadUrl *string + // Details about the algorithm that was used to create the model package. SourceAlgorithmSpecification *types.SourceAlgorithmSpecification @@ -102,6 +125,10 @@ type CreateModelPackageInput struct { // Web Services General Reference Guide. Tags []types.Tag + // The machine learning task your model package accomplishes. Common machine + // learning tasks include object detection and image classification. + Task *string + // Specifies configurations for one or more transform jobs that Amazon SageMaker // runs to test the model package. ValidationSpecification *types.ModelPackageValidationSpecification diff --git a/service/sagemaker/api_op_DescribeAction.go b/service/sagemaker/api_op_DescribeAction.go index 7c4beb6c0f5..6676b51592b 100644 --- a/service/sagemaker/api_op_DescribeAction.go +++ b/service/sagemaker/api_op_DescribeAction.go @@ -50,7 +50,7 @@ type DescribeActionOutput struct { ActionType *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // When the action was created. @@ -60,12 +60,15 @@ type DescribeActionOutput struct { Description *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // When the action was last modified. LastModifiedTime *time.Time + // The Amazon Resource Name (ARN) of the lineage group. + LineageGroupArn *string + // Metadata properties of the tracking entity, trial, or trial component. MetadataProperties *types.MetadataProperties diff --git a/service/sagemaker/api_op_DescribeArtifact.go b/service/sagemaker/api_op_DescribeArtifact.go index 63c0cbde6d5..6897af5b2a3 100644 --- a/service/sagemaker/api_op_DescribeArtifact.go +++ b/service/sagemaker/api_op_DescribeArtifact.go @@ -50,19 +50,22 @@ type DescribeArtifactOutput struct { ArtifactType *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // When the artifact was created. CreationTime *time.Time // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // When the artifact was last modified. LastModifiedTime *time.Time + // The Amazon Resource Name (ARN) of the lineage group. + LineageGroupArn *string + // Metadata properties of the tracking entity, trial, or trial component. MetadataProperties *types.MetadataProperties diff --git a/service/sagemaker/api_op_DescribeCompilationJob.go b/service/sagemaker/api_op_DescribeCompilationJob.go index 81b5d872344..f0735f52e7f 100644 --- a/service/sagemaker/api_op_DescribeCompilationJob.go +++ b/service/sagemaker/api_op_DescribeCompilationJob.go @@ -126,6 +126,10 @@ type DescribeCompilationJobOutput struct { // Amazon S3. ModelDigests *types.ModelDigests + // The Amazon Resource Name (ARN) of the versioned model package that was provided + // to SageMaker Neo when you initiated a compilation job. + ModelPackageVersionArn *string + // A VpcConfig object that specifies the VPC that you want your compilation job to // connect to. Control access to your models by configuring the VPC. For more // information, see Protect Compilation Jobs by Using an Amazon Virtual Private diff --git a/service/sagemaker/api_op_DescribeContext.go b/service/sagemaker/api_op_DescribeContext.go index 15cf14fe27a..74a93e6b694 100644 --- a/service/sagemaker/api_op_DescribeContext.go +++ b/service/sagemaker/api_op_DescribeContext.go @@ -50,7 +50,7 @@ type DescribeContextOutput struct { ContextType *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // When the context was created. @@ -60,12 +60,15 @@ type DescribeContextOutput struct { Description *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // When the context was last modified. LastModifiedTime *time.Time + // The Amazon Resource Name (ARN) of the lineage group. + LineageGroupArn *string + // A list of the context's properties. Properties map[string]string diff --git a/service/sagemaker/api_op_DescribeInferenceRecommendationsJob.go b/service/sagemaker/api_op_DescribeInferenceRecommendationsJob.go new file mode 100644 index 00000000000..8ae33a16da7 --- /dev/null +++ b/service/sagemaker/api_op_DescribeInferenceRecommendationsJob.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Provides the results of the Inference Recommender job. One or more +// recommendation jobs are returned. +func (c *Client) DescribeInferenceRecommendationsJob(ctx context.Context, params *DescribeInferenceRecommendationsJobInput, optFns ...func(*Options)) (*DescribeInferenceRecommendationsJobOutput, error) { + if params == nil { + params = &DescribeInferenceRecommendationsJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeInferenceRecommendationsJob", params, optFns, c.addOperationDescribeInferenceRecommendationsJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeInferenceRecommendationsJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeInferenceRecommendationsJobInput struct { + + // The name of the job. The name must be unique within an Amazon Web Services + // Region in the Amazon Web Services account. + // + // This member is required. + JobName *string + + noSmithyDocumentSerde +} + +type DescribeInferenceRecommendationsJobOutput struct { + + // A timestamp that shows when the job was created. + // + // This member is required. + CreationTime *time.Time + + // Returns information about the versioned model package Amazon Resource Name + // (ARN), the traffic pattern, and endpoint configurations you provided when you + // initiated the job. + // + // This member is required. + InputConfig *types.RecommendationJobInputConfig + + // The Amazon Resource Name (ARN) of the job. + // + // This member is required. + JobArn *string + + // The name of the job. The name must be unique within an Amazon Web Services + // Region in the Amazon Web Services account. + // + // This member is required. + JobName *string + + // The job type that you provided when you initiated the job. + // + // This member is required. + JobType types.RecommendationJobType + + // A timestamp that shows when the job was last modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access + // Management (IAM) role you provided when you initiated the job. + // + // This member is required. + RoleArn *string + + // The status of the job. + // + // This member is required. + Status types.RecommendationJobStatus + + // A timestamp that shows when the job completed. + CompletionTime *time.Time + + // If the job fails, provides information why the job failed. + FailureReason *string + + // The recommendations made by Inference Recommender. + InferenceRecommendations []types.InferenceRecommendation + + // The job description that you provided when you initiated the job. + JobDescription *string + + // The stopping conditions that you provided when you initiated the job. + StoppingConditions *types.RecommendationJobStoppingConditions + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeInferenceRecommendationsJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeInferenceRecommendationsJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeInferenceRecommendationsJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInferenceRecommendationsJob(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeInferenceRecommendationsJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "DescribeInferenceRecommendationsJob", + } +} diff --git a/service/sagemaker/api_op_DescribeLineageGroup.go b/service/sagemaker/api_op_DescribeLineageGroup.go new file mode 100644 index 00000000000..cb2418d79b7 --- /dev/null +++ b/service/sagemaker/api_op_DescribeLineageGroup.go @@ -0,0 +1,148 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Provides a list of properties for the requested lineage group. For more +// information, see Cross-Account Lineage Tracking +// (https://docs.aws.amazon.com/sagemaker/latest/dg/xaccount-lineage-tracking.html) +// in the Amazon SageMaker Developer Guide. +func (c *Client) DescribeLineageGroup(ctx context.Context, params *DescribeLineageGroupInput, optFns ...func(*Options)) (*DescribeLineageGroupOutput, error) { + if params == nil { + params = &DescribeLineageGroupInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeLineageGroup", params, optFns, c.addOperationDescribeLineageGroupMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeLineageGroupOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeLineageGroupInput struct { + + // The name of the lineage group. + // + // This member is required. + LineageGroupName *string + + noSmithyDocumentSerde +} + +type DescribeLineageGroupOutput struct { + + // Information about the user who created or modified an experiment, trial, trial + // component, lineage group, or project. + CreatedBy *types.UserContext + + // The creation time of lineage group. + CreationTime *time.Time + + // The description of the lineage group. + Description *string + + // The display name of the lineage group. + DisplayName *string + + // Information about the user who created or modified an experiment, trial, trial + // component, lineage group, or project. + LastModifiedBy *types.UserContext + + // The last modified time of the lineage group. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the lineage group. + LineageGroupArn *string + + // The name of the lineage group. + LineageGroupName *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeLineageGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDescribeLineageGroup{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDescribeLineageGroup{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeLineageGroupValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLineageGroup(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeLineageGroup(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "DescribeLineageGroup", + } +} diff --git a/service/sagemaker/api_op_DescribeModelPackage.go b/service/sagemaker/api_op_DescribeModelPackage.go index 0d5b7ceaf6c..d98e3bf5087 100644 --- a/service/sagemaker/api_op_DescribeModelPackage.go +++ b/service/sagemaker/api_op_DescribeModelPackage.go @@ -70,6 +70,12 @@ type DescribeModelPackageOutput struct { // This member is required. ModelPackageStatusDetails *types.ModelPackageStatusDetails + // An array of additional Inference Specification objects. Each additional + // Inference Specification specifies artifacts based on this model package that can + // be used on inference endpoints. Generally used with SageMaker Neo to store the + // compiled artifacts. + AdditionalInferenceSpecifications []types.AdditionalInferenceSpecificationDefinition + // A description provided for the model approval. ApprovalDescription *string @@ -78,18 +84,29 @@ type DescribeModelPackageOutput struct { CertifyForMarketplace bool // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // The metadata properties associated with the model package versions. CustomerMetadataProperties map[string]string + // The machine learning domain of the model package you specified. Common machine + // learning domains include computer vision and natural language processing. + Domain *string + + // Represents the drift check baselines that can be used when the model monitor is + // set using the model package. For more information, see the topic on Drift + // Detection against Previous Baselines in SageMaker Pipelines + // (https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-quality-clarify-baseline-lifecycle.html#pipelines-quality-clarify-baseline-drift-detection) + // in the Amazon SageMaker Developer Guide. + DriftCheckBaselines *types.DriftCheckBaselines + // Details about inference jobs that can be run with models based on this model // package. InferenceSpecification *types.InferenceSpecification // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // The last time the model package was modified. @@ -114,9 +131,18 @@ type DescribeModelPackageOutput struct { // The version of the model package. ModelPackageVersion *int32 + // The Amazon Simple Storage Service (Amazon S3) path where the sample payload are + // stored. This path points to a single gzip compressed tar archive (.tar.gz + // suffix). + SamplePayloadUrl *string + // Details about the algorithm that was used to create the model package. SourceAlgorithmSpecification *types.SourceAlgorithmSpecification + // The machine learning task you specified that your model package accomplishes. + // Common machine learning tasks include object detection and image classification. + Task *string + // Configurations for one or more transform jobs that SageMaker runs to test the // model package. ValidationSpecification *types.ModelPackageValidationSpecification diff --git a/service/sagemaker/api_op_DescribeModelPackageGroup.go b/service/sagemaker/api_op_DescribeModelPackageGroup.go index 1c572045c98..1456a06b45f 100644 --- a/service/sagemaker/api_op_DescribeModelPackageGroup.go +++ b/service/sagemaker/api_op_DescribeModelPackageGroup.go @@ -41,7 +41,7 @@ type DescribeModelPackageGroupInput struct { type DescribeModelPackageGroupOutput struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. // // This member is required. CreatedBy *types.UserContext diff --git a/service/sagemaker/api_op_DescribePipeline.go b/service/sagemaker/api_op_DescribePipeline.go index fe269805f5f..4e94cb52606 100644 --- a/service/sagemaker/api_op_DescribePipeline.go +++ b/service/sagemaker/api_op_DescribePipeline.go @@ -41,14 +41,14 @@ type DescribePipelineInput struct { type DescribePipelineOutput struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // The time when the pipeline was created. CreationTime *time.Time // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // The time when the pipeline was last modified. diff --git a/service/sagemaker/api_op_DescribePipelineExecution.go b/service/sagemaker/api_op_DescribePipelineExecution.go index d413a989303..c96d20e5313 100644 --- a/service/sagemaker/api_op_DescribePipelineExecution.go +++ b/service/sagemaker/api_op_DescribePipelineExecution.go @@ -41,7 +41,7 @@ type DescribePipelineExecutionInput struct { type DescribePipelineExecutionOutput struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // The time when the pipeline execution was created. @@ -51,7 +51,7 @@ type DescribePipelineExecutionOutput struct { FailureReason *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // The time when the pipeline execution was modified last. diff --git a/service/sagemaker/api_op_DescribeProject.go b/service/sagemaker/api_op_DescribeProject.go index 6cf3ba72b86..f1f335f26bc 100644 --- a/service/sagemaker/api_op_DescribeProject.go +++ b/service/sagemaker/api_op_DescribeProject.go @@ -73,11 +73,11 @@ type DescribeProjectOutput struct { ServiceCatalogProvisioningDetails *types.ServiceCatalogProvisioningDetails // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *types.UserContext // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *types.UserContext // The timestamp when project was last modified. diff --git a/service/sagemaker/api_op_DescribeTrialComponent.go b/service/sagemaker/api_op_DescribeTrialComponent.go index a3132c5ed0c..14f124340f6 100644 --- a/service/sagemaker/api_op_DescribeTrialComponent.go +++ b/service/sagemaker/api_op_DescribeTrialComponent.go @@ -62,6 +62,9 @@ type DescribeTrialComponentOutput struct { // When the component was last modified. LastModifiedTime *time.Time + // The Amazon Resource Name (ARN) of the lineage group. + LineageGroupArn *string + // Metadata properties of the tracking entity, trial, or trial component. MetadataProperties *types.MetadataProperties diff --git a/service/sagemaker/api_op_GetLineageGroupPolicy.go b/service/sagemaker/api_op_GetLineageGroupPolicy.go new file mode 100644 index 00000000000..9b512f1005d --- /dev/null +++ b/service/sagemaker/api_op_GetLineageGroupPolicy.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// The resource policy for the lineage group. +func (c *Client) GetLineageGroupPolicy(ctx context.Context, params *GetLineageGroupPolicyInput, optFns ...func(*Options)) (*GetLineageGroupPolicyOutput, error) { + if params == nil { + params = &GetLineageGroupPolicyInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetLineageGroupPolicy", params, optFns, c.addOperationGetLineageGroupPolicyMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetLineageGroupPolicyOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetLineageGroupPolicyInput struct { + + // The name or Amazon Resource Name (ARN) of the lineage group. + // + // This member is required. + LineageGroupName *string + + noSmithyDocumentSerde +} + +type GetLineageGroupPolicyOutput struct { + + // The Amazon Resource Name (ARN) of the lineage group. + LineageGroupArn *string + + // The resource policy that gives access to the lineage group in another account. + ResourcePolicy *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetLineageGroupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetLineageGroupPolicy{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetLineageGroupPolicy{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetLineageGroupPolicyValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetLineageGroupPolicy(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetLineageGroupPolicy(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "GetLineageGroupPolicy", + } +} diff --git a/service/sagemaker/api_op_ListInferenceRecommendationsJobs.go b/service/sagemaker/api_op_ListInferenceRecommendationsJobs.go new file mode 100644 index 00000000000..e12076d3b12 --- /dev/null +++ b/service/sagemaker/api_op_ListInferenceRecommendationsJobs.go @@ -0,0 +1,245 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Lists recommendation jobs that satisfy various filters. +func (c *Client) ListInferenceRecommendationsJobs(ctx context.Context, params *ListInferenceRecommendationsJobsInput, optFns ...func(*Options)) (*ListInferenceRecommendationsJobsOutput, error) { + if params == nil { + params = &ListInferenceRecommendationsJobsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListInferenceRecommendationsJobs", params, optFns, c.addOperationListInferenceRecommendationsJobsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListInferenceRecommendationsJobsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListInferenceRecommendationsJobsInput struct { + + // A filter that returns only jobs created after the specified time (timestamp). + CreationTimeAfter *time.Time + + // A filter that returns only jobs created before the specified time (timestamp). + CreationTimeBefore *time.Time + + // A filter that returns only jobs that were last modified after the specified time + // (timestamp). + LastModifiedTimeAfter *time.Time + + // A filter that returns only jobs that were last modified before the specified + // time (timestamp). + LastModifiedTimeBefore *time.Time + + // The maximum number of recommendations to return in the response. + MaxResults *int32 + + // A string in the job name. This filter returns only recommendations whose name + // contains the specified string. + NameContains *string + + // If the response to a previous ListInferenceRecommendationsJobsRequest request + // was truncated, the response includes a NextToken. To retrieve the next set of + // recommendations, use the token in the next request. + NextToken *string + + // The parameter by which to sort the results. + SortBy types.ListInferenceRecommendationsJobsSortBy + + // The sort order for the results. + SortOrder types.SortOrder + + // A filter that retrieves only inference recommendations jobs with a specific + // status. + StatusEquals types.RecommendationJobStatus + + noSmithyDocumentSerde +} + +type ListInferenceRecommendationsJobsOutput struct { + + // The recommendations created from the Amazon SageMaker Inference Recommender job. + // + // This member is required. + InferenceRecommendationsJobs []types.InferenceRecommendationsJob + + // A token for getting the next set of recommendations, if there are any. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListInferenceRecommendationsJobsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListInferenceRecommendationsJobs{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListInferenceRecommendationsJobs{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInferenceRecommendationsJobs(options.Region), middleware.Before); 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 + } + return nil +} + +// ListInferenceRecommendationsJobsAPIClient is a client that implements the +// ListInferenceRecommendationsJobs operation. +type ListInferenceRecommendationsJobsAPIClient interface { + ListInferenceRecommendationsJobs(context.Context, *ListInferenceRecommendationsJobsInput, ...func(*Options)) (*ListInferenceRecommendationsJobsOutput, error) +} + +var _ ListInferenceRecommendationsJobsAPIClient = (*Client)(nil) + +// ListInferenceRecommendationsJobsPaginatorOptions is the paginator options for +// ListInferenceRecommendationsJobs +type ListInferenceRecommendationsJobsPaginatorOptions struct { + // The maximum number of recommendations to return in the response. + 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 +} + +// ListInferenceRecommendationsJobsPaginator is a paginator for +// ListInferenceRecommendationsJobs +type ListInferenceRecommendationsJobsPaginator struct { + options ListInferenceRecommendationsJobsPaginatorOptions + client ListInferenceRecommendationsJobsAPIClient + params *ListInferenceRecommendationsJobsInput + nextToken *string + firstPage bool +} + +// NewListInferenceRecommendationsJobsPaginator returns a new +// ListInferenceRecommendationsJobsPaginator +func NewListInferenceRecommendationsJobsPaginator(client ListInferenceRecommendationsJobsAPIClient, params *ListInferenceRecommendationsJobsInput, optFns ...func(*ListInferenceRecommendationsJobsPaginatorOptions)) *ListInferenceRecommendationsJobsPaginator { + if params == nil { + params = &ListInferenceRecommendationsJobsInput{} + } + + options := ListInferenceRecommendationsJobsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListInferenceRecommendationsJobsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListInferenceRecommendationsJobsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListInferenceRecommendationsJobs page. +func (p *ListInferenceRecommendationsJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInferenceRecommendationsJobsOutput, 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.ListInferenceRecommendationsJobs(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_opListInferenceRecommendationsJobs(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "ListInferenceRecommendationsJobs", + } +} diff --git a/service/sagemaker/api_op_ListLineageGroups.go b/service/sagemaker/api_op_ListLineageGroups.go new file mode 100644 index 00000000000..84c284a6f08 --- /dev/null +++ b/service/sagemaker/api_op_ListLineageGroups.go @@ -0,0 +1,231 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// A list of lineage groups shared with your Amazon Web Services account. For more +// information, see Cross-Account Lineage Tracking +// (https://docs.aws.amazon.com/sagemaker/latest/dg/xaccount-lineage-tracking.html) +// in the Amazon SageMaker Developer Guide. +func (c *Client) ListLineageGroups(ctx context.Context, params *ListLineageGroupsInput, optFns ...func(*Options)) (*ListLineageGroupsOutput, error) { + if params == nil { + params = &ListLineageGroupsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListLineageGroups", params, optFns, c.addOperationListLineageGroupsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListLineageGroupsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListLineageGroupsInput struct { + + // A timestamp to filter against lineage groups created after a certain point in + // time. + CreatedAfter *time.Time + + // A timestamp to filter against lineage groups created before a certain point in + // time. + CreatedBefore *time.Time + + // The maximum number of endpoints to return in the response. This value defaults + // to 10. + MaxResults *int32 + + // If the response is truncated, SageMaker returns this token. To retrieve the next + // set of algorithms, use it in the subsequent request. + NextToken *string + + // The parameter by which to sort the results. The default is CreationTime. + SortBy types.SortLineageGroupsBy + + // The sort order for the results. The default is Ascending. + SortOrder types.SortOrder + + noSmithyDocumentSerde +} + +type ListLineageGroupsOutput struct { + + // A list of lineage groups and their properties. + LineageGroupSummaries []types.LineageGroupSummary + + // If the response is truncated, SageMaker returns this token. To retrieve the next + // set of algorithms, use it in the subsequent request. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListLineageGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListLineageGroups{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListLineageGroups{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListLineageGroups(options.Region), middleware.Before); 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 + } + return nil +} + +// ListLineageGroupsAPIClient is a client that implements the ListLineageGroups +// operation. +type ListLineageGroupsAPIClient interface { + ListLineageGroups(context.Context, *ListLineageGroupsInput, ...func(*Options)) (*ListLineageGroupsOutput, error) +} + +var _ ListLineageGroupsAPIClient = (*Client)(nil) + +// ListLineageGroupsPaginatorOptions is the paginator options for ListLineageGroups +type ListLineageGroupsPaginatorOptions struct { + // The maximum number of endpoints to return in the response. This value defaults + // to 10. + 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 +} + +// ListLineageGroupsPaginator is a paginator for ListLineageGroups +type ListLineageGroupsPaginator struct { + options ListLineageGroupsPaginatorOptions + client ListLineageGroupsAPIClient + params *ListLineageGroupsInput + nextToken *string + firstPage bool +} + +// NewListLineageGroupsPaginator returns a new ListLineageGroupsPaginator +func NewListLineageGroupsPaginator(client ListLineageGroupsAPIClient, params *ListLineageGroupsInput, optFns ...func(*ListLineageGroupsPaginatorOptions)) *ListLineageGroupsPaginator { + if params == nil { + params = &ListLineageGroupsInput{} + } + + options := ListLineageGroupsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListLineageGroupsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListLineageGroupsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListLineageGroups page. +func (p *ListLineageGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLineageGroupsOutput, 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.ListLineageGroups(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_opListLineageGroups(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "ListLineageGroups", + } +} diff --git a/service/sagemaker/api_op_ListModelMetadata.go b/service/sagemaker/api_op_ListModelMetadata.go new file mode 100644 index 00000000000..84c0fe87660 --- /dev/null +++ b/service/sagemaker/api_op_ListModelMetadata.go @@ -0,0 +1,223 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists the domain, framework, task, and model name of standard machine learning +// models found in common model zoos. +func (c *Client) ListModelMetadata(ctx context.Context, params *ListModelMetadataInput, optFns ...func(*Options)) (*ListModelMetadataOutput, error) { + if params == nil { + params = &ListModelMetadataInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListModelMetadata", params, optFns, c.addOperationListModelMetadataMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListModelMetadataOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListModelMetadataInput struct { + + // The maximum number of models to return in the response. + MaxResults *int32 + + // If the response to a previous ListModelMetadataResponse request was truncated, + // the response includes a NextToken. To retrieve the next set of model metadata, + // use the token in the next request. + NextToken *string + + // One or more filters that searches for the specified resource or resources in a + // search. All resource objects that satisfy the expression's condition are + // included in the search results. Specify the Framework, FrameworkVersion, Domain + // or Task to filter supported. Filter names and values are case-sensitive. + SearchExpression *types.ModelMetadataSearchExpression + + noSmithyDocumentSerde +} + +type ListModelMetadataOutput struct { + + // A structure that holds model metadata. + // + // This member is required. + ModelMetadataSummaries []types.ModelMetadataSummary + + // A token for getting the next set of recommendations, if there are any. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListModelMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListModelMetadata{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListModelMetadata{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListModelMetadataValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListModelMetadata(options.Region), middleware.Before); 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 + } + return nil +} + +// ListModelMetadataAPIClient is a client that implements the ListModelMetadata +// operation. +type ListModelMetadataAPIClient interface { + ListModelMetadata(context.Context, *ListModelMetadataInput, ...func(*Options)) (*ListModelMetadataOutput, error) +} + +var _ ListModelMetadataAPIClient = (*Client)(nil) + +// ListModelMetadataPaginatorOptions is the paginator options for ListModelMetadata +type ListModelMetadataPaginatorOptions struct { + // The maximum number of models to return in the response. + 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 +} + +// ListModelMetadataPaginator is a paginator for ListModelMetadata +type ListModelMetadataPaginator struct { + options ListModelMetadataPaginatorOptions + client ListModelMetadataAPIClient + params *ListModelMetadataInput + nextToken *string + firstPage bool +} + +// NewListModelMetadataPaginator returns a new ListModelMetadataPaginator +func NewListModelMetadataPaginator(client ListModelMetadataAPIClient, params *ListModelMetadataInput, optFns ...func(*ListModelMetadataPaginatorOptions)) *ListModelMetadataPaginator { + if params == nil { + params = &ListModelMetadataInput{} + } + + options := ListModelMetadataPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListModelMetadataPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListModelMetadataPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListModelMetadata page. +func (p *ListModelMetadataPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListModelMetadataOutput, 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.ListModelMetadata(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_opListModelMetadata(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "ListModelMetadata", + } +} diff --git a/service/sagemaker/api_op_QueryLineage.go b/service/sagemaker/api_op_QueryLineage.go new file mode 100644 index 00000000000..d74e0ba4454 --- /dev/null +++ b/service/sagemaker/api_op_QueryLineage.go @@ -0,0 +1,261 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/sagemaker/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Use this action to inspect your lineage and discover relationships between +// entities. For more information, see Querying Lineage Entities +// (https://docs.aws.amazon.com/sagemaker/latest/dg/querying-lineage-entities.html) +// in the Amazon SageMaker Developer Guide. +func (c *Client) QueryLineage(ctx context.Context, params *QueryLineageInput, optFns ...func(*Options)) (*QueryLineageOutput, error) { + if params == nil { + params = &QueryLineageInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "QueryLineage", params, optFns, c.addOperationQueryLineageMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*QueryLineageOutput) + out.ResultMetadata = metadata + return out, nil +} + +type QueryLineageInput struct { + + // A list of resource Amazon Resource Name (ARN) that represent the starting point + // for your lineage query. + // + // This member is required. + StartArns []string + + // Associations between lineage entities are directed. This parameter determines + // the direction from the StartArn(s) the query will look. + Direction types.Direction + + // A set of filtering parameters that allow you to specify which entities should be + // returned. + // + // * Properties - Key-value pairs to match on the lineage entities' + // properties. + // + // * LineageTypes - A set of lineage entity types to match on. For + // example: TrialComponent, Artifact, or Context. + // + // * CreatedBefore - Filter + // entities created before this date. + // + // * ModifiedBefore - Filter entities modified + // before this date. + // + // * ModifiedAfter - Filter entities modified after this date. + Filters *types.QueryFilters + + // Setting this value to True will retrieve not only the entities of interest but + // also the Associations + // (https://docs.aws.amazon.com/sagemaker/latest/dg/lineage-tracking-entities.html) + // and lineage entities on the path. Set to False to only return lineage entities + // that match your query. + IncludeEdges bool + + // The maximum depth in lineage relationships from the StartArns that will be + // traversed. Depth is a measure of the number of Associations from the StartArn + // entity to the matched results. + MaxDepth *int32 + + // Limits the number of vertices in the results. Use the NextToken in a response to + // to retrieve the next page of results. + MaxResults *int32 + + // Limits the number of vertices in the request. Use the NextToken in a response to + // to retrieve the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type QueryLineageOutput struct { + + // A list of edges that connect vertices in the response. + Edges []types.Edge + + // Limits the number of vertices in the response. Use the NextToken in a response + // to to retrieve the next page of results. + NextToken *string + + // A list of vertices connected to the start entity(ies) in the lineage graph. + Vertices []types.Vertex + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationQueryLineageMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpQueryLineage{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpQueryLineage{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpQueryLineageValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opQueryLineage(options.Region), middleware.Before); 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 + } + return nil +} + +// QueryLineageAPIClient is a client that implements the QueryLineage operation. +type QueryLineageAPIClient interface { + QueryLineage(context.Context, *QueryLineageInput, ...func(*Options)) (*QueryLineageOutput, error) +} + +var _ QueryLineageAPIClient = (*Client)(nil) + +// QueryLineagePaginatorOptions is the paginator options for QueryLineage +type QueryLineagePaginatorOptions struct { + // Limits the number of vertices in the results. Use the NextToken in a response to + // to retrieve the next page of results. + 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 +} + +// QueryLineagePaginator is a paginator for QueryLineage +type QueryLineagePaginator struct { + options QueryLineagePaginatorOptions + client QueryLineageAPIClient + params *QueryLineageInput + nextToken *string + firstPage bool +} + +// NewQueryLineagePaginator returns a new QueryLineagePaginator +func NewQueryLineagePaginator(client QueryLineageAPIClient, params *QueryLineageInput, optFns ...func(*QueryLineagePaginatorOptions)) *QueryLineagePaginator { + if params == nil { + params = &QueryLineageInput{} + } + + options := QueryLineagePaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &QueryLineagePaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *QueryLineagePaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next QueryLineage page. +func (p *QueryLineagePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*QueryLineageOutput, 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.QueryLineage(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_opQueryLineage(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "QueryLineage", + } +} diff --git a/service/sagemaker/api_op_StopInferenceRecommendationsJob.go b/service/sagemaker/api_op_StopInferenceRecommendationsJob.go new file mode 100644 index 00000000000..0981d397428 --- /dev/null +++ b/service/sagemaker/api_op_StopInferenceRecommendationsJob.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Stops an Inference Recommender job. +func (c *Client) StopInferenceRecommendationsJob(ctx context.Context, params *StopInferenceRecommendationsJobInput, optFns ...func(*Options)) (*StopInferenceRecommendationsJobOutput, error) { + if params == nil { + params = &StopInferenceRecommendationsJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "StopInferenceRecommendationsJob", params, optFns, c.addOperationStopInferenceRecommendationsJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*StopInferenceRecommendationsJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type StopInferenceRecommendationsJobInput struct { + + // The name of the job you want to stop. + // + // This member is required. + JobName *string + + noSmithyDocumentSerde +} + +type StopInferenceRecommendationsJobOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationStopInferenceRecommendationsJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopInferenceRecommendationsJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopInferenceRecommendationsJob{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpStopInferenceRecommendationsJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopInferenceRecommendationsJob(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opStopInferenceRecommendationsJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "sagemaker", + OperationName: "StopInferenceRecommendationsJob", + } +} diff --git a/service/sagemaker/api_op_UpdateModelPackage.go b/service/sagemaker/api_op_UpdateModelPackage.go index fd8f24007b1..b1e27a4226f 100644 --- a/service/sagemaker/api_op_UpdateModelPackage.go +++ b/service/sagemaker/api_op_UpdateModelPackage.go @@ -34,6 +34,14 @@ type UpdateModelPackageInput struct { // This member is required. ModelPackageArn *string + // An array of additional Inference Specification objects to be added to the + // existing array additional Inference Specification. Total number of additional + // Inference Specifications can not exceed 15. Each additional Inference + // Specification specifies artifacts based on this model package that can be used + // on inference endpoints. Generally used with SageMaker Neo to store the compiled + // artifacts. + AdditionalInferenceSpecificationsToAdd []types.AdditionalInferenceSpecificationDefinition + // A description for the approval status of the model. ApprovalDescription *string diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 2511d6a87c6..752a6eb5851 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -2896,6 +2896,120 @@ func awsAwsjson11_deserializeOpErrorCreateImageVersion(response *smithyhttp.Resp } } +type awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob struct { +} + +func (*awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpCreateInferenceRecommendationsJob) 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_deserializeOpErrorCreateInferenceRecommendationsJob(response, &metadata) + } + output := &CreateInferenceRecommendationsJobOutput{} + 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_deserializeOpDocumentCreateInferenceRecommendationsJobOutput(&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_deserializeOpErrorCreateInferenceRecommendationsJob(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpCreateLabelingJob struct { } @@ -11821,14 +11935,14 @@ func awsAwsjson11_deserializeOpErrorDescribeImageVersion(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeLabelingJob struct { +type awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob struct { } -func (*awsAwsjson11_deserializeOpDescribeLabelingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeInferenceRecommendationsJob) 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) @@ -11842,9 +11956,9 @@ func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(response, &metadata) } - output := &DescribeLabelingJobOutput{} + output := &DescribeInferenceRecommendationsJobOutput{} out.Result = output var buff [1024]byte @@ -11864,7 +11978,7 @@ func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeInferenceRecommendationsJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11878,7 +11992,7 @@ func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeInferenceRecommendationsJob(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)} @@ -11932,122 +12046,14 @@ func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeModel struct { -} - -func (*awsAwsjson11_deserializeOpDescribeModel) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDescribeModel) 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_deserializeOpErrorDescribeModel(response, &metadata) - } - output := &DescribeModelOutput{} - 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_deserializeOpDocumentDescribeModelOutput(&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_deserializeOpErrorDescribeModel(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 - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, 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(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeLabelingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeLabelingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeLabelingJob) 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) @@ -12061,9 +12067,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLabelingJob(response, &metadata) } - output := &DescribeModelBiasJobDefinitionOutput{} + output := &DescribeLabelingJobOutput{} out.Result = output var buff [1024]byte @@ -12083,7 +12089,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12097,7 +12103,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeLabelingJob(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)} @@ -12151,14 +12157,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response *smi } } -type awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeLineageGroup struct { } -func (*awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeLineageGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeLineageGroup) 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) @@ -12172,9 +12178,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeLineageGroup(response, &metadata) } - output := &DescribeModelExplainabilityJobDefinitionOutput{} + output := &DescribeLineageGroupOutput{} out.Result = output var buff [1024]byte @@ -12194,7 +12200,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelExplainabilityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeLineageGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12208,7 +12214,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) Han return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeLineageGroup(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)} @@ -12262,14 +12268,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(res } } -type awsAwsjson11_deserializeOpDescribeModelPackage struct { +type awsAwsjson11_deserializeOpDescribeModel struct { } -func (*awsAwsjson11_deserializeOpDescribeModelPackage) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModel) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModel) 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) @@ -12283,9 +12289,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModel(response, &metadata) } - output := &DescribeModelPackageOutput{} + output := &DescribeModelOutput{} out.Result = output var buff [1024]byte @@ -12305,7 +12311,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12319,7 +12325,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelPackage) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModel(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)} @@ -12370,122 +12376,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelPackage(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeModelPackageGroup struct { -} - -func (*awsAwsjson11_deserializeOpDescribeModelPackageGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) 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_deserializeOpErrorDescribeModelPackageGroup(response, &metadata) - } - output := &DescribeModelPackageGroupOutput{} - 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_deserializeOpDocumentDescribeModelPackageGroupOutput(&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_deserializeOpErrorDescribeModelPackageGroup(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 - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, 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(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition struct { +type awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelBiasJobDefinition) 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) @@ -12499,9 +12397,9 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(response, &metadata) } - output := &DescribeModelQualityJobDefinitionOutput{} + output := &DescribeModelBiasJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -12521,7 +12419,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeModelQualityJobDefinitionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12535,7 +12433,7 @@ func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) HandleDese return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelBiasJobDefinition(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)} @@ -12589,14 +12487,14 @@ func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response * } } -type awsAwsjson11_deserializeOpDescribeMonitoringSchedule struct { +type awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribeMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelExplainabilityJobDefinition) 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) @@ -12610,9 +12508,9 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(response, &metadata) } - output := &DescribeMonitoringScheduleOutput{} + output := &DescribeModelExplainabilityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -12632,7 +12530,7 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelExplainabilityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12646,7 +12544,7 @@ func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelExplainabilityJobDefinition(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)} @@ -12700,14 +12598,14 @@ func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeNotebookInstance struct { +type awsAwsjson11_deserializeOpDescribeModelPackage struct { } -func (*awsAwsjson11_deserializeOpDescribeNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelPackage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelPackage) 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) @@ -12721,9 +12619,9 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackage(response, &metadata) } - output := &DescribeNotebookInstanceOutput{} + output := &DescribeModelPackageOutput{} out.Result = output var buff [1024]byte @@ -12743,7 +12641,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12757,7 +12655,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelPackage(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)} @@ -12808,14 +12706,14 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response *smithyhtt } } -type awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig struct { +type awsAwsjson11_deserializeOpDescribeModelPackageGroup struct { } -func (*awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelPackageGroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelPackageGroup) 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) @@ -12829,9 +12727,9 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(response, &metadata) } - output := &DescribeNotebookInstanceLifecycleConfigOutput{} + output := &DescribeModelPackageGroupOutput{} out.Result = output var buff [1024]byte @@ -12851,7 +12749,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) Hand return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelPackageGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12865,7 +12763,7 @@ func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) Hand return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelPackageGroup(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)} @@ -12916,14 +12814,14 @@ func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(resp } } -type awsAwsjson11_deserializeOpDescribePipeline struct { +type awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition struct { } -func (*awsAwsjson11_deserializeOpDescribePipeline) ID() string { +func (*awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeModelQualityJobDefinition) 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) @@ -12937,9 +12835,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipeline(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(response, &metadata) } - output := &DescribePipelineOutput{} + output := &DescribeModelQualityJobDefinitionOutput{} out.Result = output var buff [1024]byte @@ -12959,7 +12857,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeModelQualityJobDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12973,7 +12871,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipeline) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeModelQualityJobDefinition(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)} @@ -13027,14 +12925,14 @@ func awsAwsjson11_deserializeOpErrorDescribePipeline(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution struct { +type awsAwsjson11_deserializeOpDescribeMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) ID() string { +func (*awsAwsjson11_deserializeOpDescribeMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeMonitoringSchedule) 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) @@ -13048,9 +12946,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(response, &metadata) } - output := &DescribePipelineDefinitionForExecutionOutput{} + output := &DescribeMonitoringScheduleOutput{} out.Result = output var buff [1024]byte @@ -13070,7 +12968,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) Handl return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineDefinitionForExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeMonitoringScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13084,7 +12982,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) Handl return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeMonitoringSchedule(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)} @@ -13138,14 +13036,14 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(respo } } -type awsAwsjson11_deserializeOpDescribePipelineExecution struct { +type awsAwsjson11_deserializeOpDescribeNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpDescribePipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpDescribeNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeNotebookInstance) 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) @@ -13159,9 +13057,9 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(response, &metadata) } - output := &DescribePipelineExecutionOutput{} + output := &DescribeNotebookInstanceOutput{} out.Result = output var buff [1024]byte @@ -13181,7 +13079,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize( return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribePipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13195,7 +13093,7 @@ func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) HandleDeserialize( return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeNotebookInstance(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)} @@ -13236,9 +13134,6 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyht } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13249,14 +13144,14 @@ func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response *smithyht } } -type awsAwsjson11_deserializeOpDescribeProcessingJob struct { +type awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig struct { } -func (*awsAwsjson11_deserializeOpDescribeProcessingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeNotebookInstanceLifecycleConfig) 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) @@ -13270,9 +13165,9 @@ func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(response, &metadata) } - output := &DescribeProcessingJobOutput{} + output := &DescribeNotebookInstanceLifecycleConfigOutput{} out.Result = output var buff [1024]byte @@ -13292,7 +13187,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeNotebookInstanceLifecycleConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13306,7 +13201,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeNotebookInstanceLifecycleConfig(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)} @@ -13347,9 +13242,6 @@ func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response *smithyhttp.R } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13360,14 +13252,14 @@ func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpDescribeProject struct { +type awsAwsjson11_deserializeOpDescribePipeline struct { } -func (*awsAwsjson11_deserializeOpDescribeProject) ID() string { +func (*awsAwsjson11_deserializeOpDescribePipeline) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePipeline) 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) @@ -13381,9 +13273,9 @@ func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProject(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipeline(response, &metadata) } - output := &DescribeProjectOutput{} + output := &DescribePipelineOutput{} out.Result = output var buff [1024]byte @@ -13403,7 +13295,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePipelineOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13417,7 +13309,7 @@ func (m *awsAwsjson11_deserializeOpDescribeProject) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePipeline(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)} @@ -13458,6 +13350,9 @@ func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Respons } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13468,14 +13363,14 @@ func awsAwsjson11_deserializeOpErrorDescribeProject(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig struct { +type awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution struct { } -func (*awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePipelineDefinitionForExecution) 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) @@ -13489,9 +13384,9 @@ func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(response, &metadata) } - output := &DescribeStudioLifecycleConfigOutput{} + output := &DescribePipelineDefinitionForExecutionOutput{} out.Result = output var buff [1024]byte @@ -13511,7 +13406,7 @@ func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeStudioLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePipelineDefinitionForExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13525,7 +13420,7 @@ func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePipelineDefinitionForExecution(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)} @@ -13579,14 +13474,14 @@ func awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response *smit } } -type awsAwsjson11_deserializeOpDescribeSubscribedWorkteam struct { +type awsAwsjson11_deserializeOpDescribePipelineExecution struct { } -func (*awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) ID() string { +func (*awsAwsjson11_deserializeOpDescribePipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribePipelineExecution) 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) @@ -13600,9 +13495,9 @@ func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribePipelineExecution(response, &metadata) } - output := &DescribeSubscribedWorkteamOutput{} + output := &DescribePipelineExecutionOutput{} out.Result = output var buff [1024]byte @@ -13622,7 +13517,7 @@ func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeSubscribedWorkteamOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribePipelineExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13636,7 +13531,7 @@ func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribePipelineExecution(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)} @@ -13677,6 +13572,9 @@ func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response *smithyh } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13687,14 +13585,14 @@ func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response *smithyh } } -type awsAwsjson11_deserializeOpDescribeTrainingJob struct { +type awsAwsjson11_deserializeOpDescribeProcessingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeProcessingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeProcessingJob) 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) @@ -13708,9 +13606,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProcessingJob(response, &metadata) } - output := &DescribeTrainingJobOutput{} + output := &DescribeProcessingJobOutput{} out.Result = output var buff [1024]byte @@ -13730,7 +13628,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeProcessingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13744,7 +13642,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeProcessingJob(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)} @@ -13798,14 +13696,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeTransformJob struct { +type awsAwsjson11_deserializeOpDescribeProject struct { } -func (*awsAwsjson11_deserializeOpDescribeTransformJob) ID() string { +func (*awsAwsjson11_deserializeOpDescribeProject) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeProject) 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) @@ -13819,9 +13717,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTransformJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeProject(response, &metadata) } - output := &DescribeTransformJobOutput{} + output := &DescribeProjectOutput{} out.Result = output var buff [1024]byte @@ -13841,7 +13739,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeProjectOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13855,7 +13753,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTransformJob) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeProject(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)} @@ -13896,9 +13794,6 @@ func awsAwsjson11_deserializeOpErrorDescribeTransformJob(response *smithyhttp.Re } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13909,14 +13804,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTransformJob(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDescribeTrial struct { +type awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig struct { } -func (*awsAwsjson11_deserializeOpDescribeTrial) ID() string { +func (*awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeStudioLifecycleConfig) 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) @@ -13930,9 +13825,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrial(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(response, &metadata) } - output := &DescribeTrialOutput{} + output := &DescribeStudioLifecycleConfigOutput{} out.Result = output var buff [1024]byte @@ -13952,7 +13847,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeStudioLifecycleConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13966,7 +13861,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrial) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeStudioLifecycleConfig(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)} @@ -14020,14 +13915,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTrial(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpDescribeTrialComponent struct { +type awsAwsjson11_deserializeOpDescribeSubscribedWorkteam struct { } -func (*awsAwsjson11_deserializeOpDescribeTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeSubscribedWorkteam) 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) @@ -14041,9 +13936,9 @@ func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(response, &metadata) } - output := &DescribeTrialComponentOutput{} + output := &DescribeSubscribedWorkteamOutput{} out.Result = output var buff [1024]byte @@ -14063,7 +13958,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeSubscribedWorkteamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14077,7 +13972,7 @@ func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeSubscribedWorkteam(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)} @@ -14118,9 +14013,6 @@ func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response *smithyhttp. } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14131,14 +14023,14 @@ func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response *smithyhttp. } } -type awsAwsjson11_deserializeOpDescribeUserProfile struct { +type awsAwsjson11_deserializeOpDescribeTrainingJob struct { } -func (*awsAwsjson11_deserializeOpDescribeUserProfile) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTrainingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTrainingJob) 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) @@ -14152,9 +14044,9 @@ func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeUserProfile(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrainingJob(response, &metadata) } - output := &DescribeUserProfileOutput{} + output := &DescribeTrainingJobOutput{} out.Result = output var buff [1024]byte @@ -14174,7 +14066,7 @@ func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTrainingJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14188,7 +14080,7 @@ func (m *awsAwsjson11_deserializeOpDescribeUserProfile) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeUserProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTrainingJob(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)} @@ -14242,14 +14134,14 @@ func awsAwsjson11_deserializeOpErrorDescribeUserProfile(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpDescribeWorkforce struct { +type awsAwsjson11_deserializeOpDescribeTransformJob struct { } -func (*awsAwsjson11_deserializeOpDescribeWorkforce) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTransformJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTransformJob) 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) @@ -14263,9 +14155,9 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkforce(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTransformJob(response, &metadata) } - output := &DescribeWorkforceOutput{} + output := &DescribeTransformJobOutput{} out.Result = output var buff [1024]byte @@ -14285,7 +14177,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDescribeWorkforceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTransformJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14299,7 +14191,7 @@ func (m *awsAwsjson11_deserializeOpDescribeWorkforce) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDescribeWorkforce(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTransformJob(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)} @@ -14340,114 +14232,9 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkforce(response *smithyhttp.Respo } switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpDescribeWorkteam struct { -} - -func (*awsAwsjson11_deserializeOpDescribeWorkteam) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpDescribeWorkteam) 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_deserializeOpErrorDescribeWorkteam(response, &metadata) - } - output := &DescribeWorkteamOutput{} - 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_deserializeOpDocumentDescribeWorkteamOutput(&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_deserializeOpErrorDescribeWorkteam(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 - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - code, 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(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - switch { default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14458,14 +14245,14 @@ func awsAwsjson11_deserializeOpErrorDescribeWorkteam(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio struct { +type awsAwsjson11_deserializeOpDescribeTrial struct { } -func (*awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTrial) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTrial) 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) @@ -14479,9 +14266,9 @@ func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrial(response, &metadata) } - output := &DisableSagemakerServicecatalogPortfolioOutput{} + output := &DescribeTrialOutput{} out.Result = output var buff [1024]byte @@ -14501,7 +14288,7 @@ func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) Hand return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisableSagemakerServicecatalogPortfolioOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTrialOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14515,7 +14302,7 @@ func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) Hand return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTrial(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)} @@ -14556,6 +14343,9 @@ func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(resp } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14566,14 +14356,14 @@ func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(resp } } -type awsAwsjson11_deserializeOpDisassociateTrialComponent struct { +type awsAwsjson11_deserializeOpDescribeTrialComponent struct { } -func (*awsAwsjson11_deserializeOpDisassociateTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpDescribeTrialComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeTrialComponent) 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) @@ -14587,9 +14377,9 @@ func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeTrialComponent(response, &metadata) } - output := &DisassociateTrialComponentOutput{} + output := &DescribeTrialComponentOutput{} out.Result = output var buff [1024]byte @@ -14609,7 +14399,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDisassociateTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14623,7 +14413,7 @@ func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeTrialComponent(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)} @@ -14677,14 +14467,14 @@ func awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response *smithyh } } -type awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio struct { +type awsAwsjson11_deserializeOpDescribeUserProfile struct { } -func (*awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) ID() string { +func (*awsAwsjson11_deserializeOpDescribeUserProfile) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeUserProfile) 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) @@ -14698,9 +14488,9 @@ func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeUserProfile(response, &metadata) } - output := &EnableSagemakerServicecatalogPortfolioOutput{} + output := &DescribeUserProfileOutput{} out.Result = output var buff [1024]byte @@ -14720,7 +14510,7 @@ func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) Handl return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentEnableSagemakerServicecatalogPortfolioOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeUserProfileOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14734,7 +14524,7 @@ func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) Handl return out, metadata, err } -func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeUserProfile(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)} @@ -14775,6 +14565,9 @@ func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(respo } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14785,14 +14578,14 @@ func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(respo } } -type awsAwsjson11_deserializeOpGetDeviceFleetReport struct { +type awsAwsjson11_deserializeOpDescribeWorkforce struct { } -func (*awsAwsjson11_deserializeOpGetDeviceFleetReport) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkforce) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkforce) 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) @@ -14806,9 +14599,9 @@ func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkforce(response, &metadata) } - output := &GetDeviceFleetReportOutput{} + output := &DescribeWorkforceOutput{} out.Result = output var buff [1024]byte @@ -14828,7 +14621,7 @@ func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetDeviceFleetReportOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkforceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14842,7 +14635,7 @@ func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkforce(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)} @@ -14893,14 +14686,14 @@ func awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpGetModelPackageGroupPolicy struct { +type awsAwsjson11_deserializeOpDescribeWorkteam struct { } -func (*awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) ID() string { +func (*awsAwsjson11_deserializeOpDescribeWorkteam) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDescribeWorkteam) 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) @@ -14914,9 +14707,9 @@ func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDescribeWorkteam(response, &metadata) } - output := &GetModelPackageGroupPolicyOutput{} + output := &DescribeWorkteamOutput{} out.Result = output var buff [1024]byte @@ -14936,7 +14729,7 @@ func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetModelPackageGroupPolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDescribeWorkteamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14950,7 +14743,7 @@ func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDescribeWorkteam(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)} @@ -15001,14 +14794,14 @@ func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response *smithyh } } -type awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus struct { +type awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio struct { } -func (*awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) ID() string { +func (*awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisableSagemakerServicecatalogPortfolio) 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) @@ -15022,9 +14815,9 @@ func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(response, &metadata) } - output := &GetSagemakerServicecatalogPortfolioStatusOutput{} + output := &DisableSagemakerServicecatalogPortfolioOutput{} out.Result = output var buff [1024]byte @@ -15044,7 +14837,7 @@ func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) Ha return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetSagemakerServicecatalogPortfolioStatusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisableSagemakerServicecatalogPortfolioOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15058,7 +14851,7 @@ func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) Ha return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisableSagemakerServicecatalogPortfolio(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)} @@ -15109,14 +14902,14 @@ func awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(re } } -type awsAwsjson11_deserializeOpGetSearchSuggestions struct { +type awsAwsjson11_deserializeOpDisassociateTrialComponent struct { } -func (*awsAwsjson11_deserializeOpGetSearchSuggestions) ID() string { +func (*awsAwsjson11_deserializeOpDisassociateTrialComponent) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDisassociateTrialComponent) 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) @@ -15130,9 +14923,9 @@ func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(response, &metadata) } - output := &GetSearchSuggestionsOutput{} + output := &DisassociateTrialComponentOutput{} out.Result = output var buff [1024]byte @@ -15152,7 +14945,7 @@ func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetSearchSuggestionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDisassociateTrialComponentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15166,7 +14959,7 @@ func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDisassociateTrialComponent(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)} @@ -15207,6 +15000,9 @@ func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15217,14 +15013,14 @@ func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpListActions struct { +type awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio struct { } -func (*awsAwsjson11_deserializeOpListActions) ID() string { +func (*awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpEnableSagemakerServicecatalogPortfolio) 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) @@ -15238,9 +15034,9 @@ func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListActions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(response, &metadata) } - output := &ListActionsOutput{} + output := &EnableSagemakerServicecatalogPortfolioOutput{} out.Result = output var buff [1024]byte @@ -15260,7 +15056,7 @@ func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListActionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentEnableSagemakerServicecatalogPortfolioOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15274,7 +15070,7 @@ func (m *awsAwsjson11_deserializeOpListActions) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorEnableSagemakerServicecatalogPortfolio(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)} @@ -15315,9 +15111,6 @@ func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, m } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15328,14 +15121,14 @@ func awsAwsjson11_deserializeOpErrorListActions(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListAlgorithms struct { +type awsAwsjson11_deserializeOpGetDeviceFleetReport struct { } -func (*awsAwsjson11_deserializeOpListAlgorithms) ID() string { +func (*awsAwsjson11_deserializeOpGetDeviceFleetReport) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetDeviceFleetReport) 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) @@ -15349,9 +15142,9 @@ func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAlgorithms(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(response, &metadata) } - output := &ListAlgorithmsOutput{} + output := &GetDeviceFleetReportOutput{} out.Result = output var buff [1024]byte @@ -15371,7 +15164,7 @@ func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAlgorithmsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetDeviceFleetReportOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15385,7 +15178,7 @@ func (m *awsAwsjson11_deserializeOpListAlgorithms) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAlgorithms(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetDeviceFleetReport(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)} @@ -15436,14 +15229,14 @@ func awsAwsjson11_deserializeOpErrorListAlgorithms(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListAppImageConfigs struct { +type awsAwsjson11_deserializeOpGetLineageGroupPolicy struct { } -func (*awsAwsjson11_deserializeOpListAppImageConfigs) ID() string { +func (*awsAwsjson11_deserializeOpGetLineageGroupPolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetLineageGroupPolicy) 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) @@ -15457,9 +15250,9 @@ func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAppImageConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(response, &metadata) } - output := &ListAppImageConfigsOutput{} + output := &GetLineageGroupPolicyOutput{} out.Result = output var buff [1024]byte @@ -15479,7 +15272,7 @@ func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAppImageConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetLineageGroupPolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15493,7 +15286,7 @@ func (m *awsAwsjson11_deserializeOpListAppImageConfigs) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetLineageGroupPolicy(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)} @@ -15534,6 +15327,9 @@ func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Res } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15544,14 +15340,14 @@ func awsAwsjson11_deserializeOpErrorListAppImageConfigs(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListApps struct { +type awsAwsjson11_deserializeOpGetModelPackageGroupPolicy struct { } -func (*awsAwsjson11_deserializeOpListApps) ID() string { +func (*awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetModelPackageGroupPolicy) 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) @@ -15565,9 +15361,9 @@ func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListApps(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(response, &metadata) } - output := &ListAppsOutput{} + output := &GetModelPackageGroupPolicyOutput{} out.Result = output var buff [1024]byte @@ -15587,7 +15383,7 @@ func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAppsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetModelPackageGroupPolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15601,7 +15397,7 @@ func (m *awsAwsjson11_deserializeOpListApps) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListApps(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetModelPackageGroupPolicy(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)} @@ -15652,14 +15448,14 @@ func awsAwsjson11_deserializeOpErrorListApps(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpListArtifacts struct { +type awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus struct { } -func (*awsAwsjson11_deserializeOpListArtifacts) ID() string { +func (*awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetSagemakerServicecatalogPortfolioStatus) 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) @@ -15673,9 +15469,9 @@ func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListArtifacts(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(response, &metadata) } - output := &ListArtifactsOutput{} + output := &GetSagemakerServicecatalogPortfolioStatusOutput{} out.Result = output var buff [1024]byte @@ -15695,7 +15491,7 @@ func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListArtifactsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetSagemakerServicecatalogPortfolioStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15709,7 +15505,7 @@ func (m *awsAwsjson11_deserializeOpListArtifacts) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetSagemakerServicecatalogPortfolioStatus(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)} @@ -15750,9 +15546,6 @@ func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15763,14 +15556,14 @@ func awsAwsjson11_deserializeOpErrorListArtifacts(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListAssociations struct { +type awsAwsjson11_deserializeOpGetSearchSuggestions struct { } -func (*awsAwsjson11_deserializeOpListAssociations) ID() string { +func (*awsAwsjson11_deserializeOpGetSearchSuggestions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetSearchSuggestions) 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) @@ -15784,9 +15577,9 @@ func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAssociations(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetSearchSuggestions(response, &metadata) } - output := &ListAssociationsOutput{} + output := &GetSearchSuggestionsOutput{} out.Result = output var buff [1024]byte @@ -15806,7 +15599,7 @@ func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAssociationsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetSearchSuggestionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15820,7 +15613,7 @@ func (m *awsAwsjson11_deserializeOpListAssociations) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetSearchSuggestions(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)} @@ -15861,9 +15654,6 @@ func awsAwsjson11_deserializeOpErrorListAssociations(response *smithyhttp.Respon } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15874,14 +15664,14 @@ func awsAwsjson11_deserializeOpErrorListAssociations(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListAutoMLJobs struct { +type awsAwsjson11_deserializeOpListActions struct { } -func (*awsAwsjson11_deserializeOpListAutoMLJobs) ID() string { +func (*awsAwsjson11_deserializeOpListActions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListActions) 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) @@ -15895,9 +15685,9 @@ func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListAutoMLJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListActions(response, &metadata) } - output := &ListAutoMLJobsOutput{} + output := &ListActionsOutput{} out.Result = output var buff [1024]byte @@ -15917,7 +15707,7 @@ func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListActionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15931,7 +15721,7 @@ func (m *awsAwsjson11_deserializeOpListAutoMLJobs) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListAutoMLJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListActions(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)} @@ -15972,6 +15762,9 @@ func awsAwsjson11_deserializeOpErrorListAutoMLJobs(response *smithyhttp.Response } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15982,14 +15775,14 @@ func awsAwsjson11_deserializeOpErrorListAutoMLJobs(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListCandidatesForAutoMLJob struct { +type awsAwsjson11_deserializeOpListAlgorithms struct { } -func (*awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) ID() string { +func (*awsAwsjson11_deserializeOpListAlgorithms) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAlgorithms) 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) @@ -16003,9 +15796,9 @@ func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAlgorithms(response, &metadata) } - output := &ListCandidatesForAutoMLJobOutput{} + output := &ListAlgorithmsOutput{} out.Result = output var buff [1024]byte @@ -16025,7 +15818,7 @@ func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAlgorithmsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16039,7 +15832,7 @@ func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAlgorithms(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)} @@ -16080,9 +15873,6 @@ func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyh } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16093,14 +15883,14 @@ func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response *smithyh } } -type awsAwsjson11_deserializeOpListCodeRepositories struct { +type awsAwsjson11_deserializeOpListAppImageConfigs struct { } -func (*awsAwsjson11_deserializeOpListCodeRepositories) ID() string { +func (*awsAwsjson11_deserializeOpListAppImageConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAppImageConfigs) 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) @@ -16114,9 +15904,9 @@ func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCodeRepositories(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAppImageConfigs(response, &metadata) } - output := &ListCodeRepositoriesOutput{} + output := &ListAppImageConfigsOutput{} out.Result = output var buff [1024]byte @@ -16136,7 +15926,7 @@ func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAppImageConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16150,7 +15940,7 @@ func (m *awsAwsjson11_deserializeOpListCodeRepositories) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCodeRepositories(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAppImageConfigs(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)} @@ -16201,14 +15991,14 @@ func awsAwsjson11_deserializeOpErrorListCodeRepositories(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpListCompilationJobs struct { +type awsAwsjson11_deserializeOpListApps struct { } -func (*awsAwsjson11_deserializeOpListCompilationJobs) ID() string { +func (*awsAwsjson11_deserializeOpListApps) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListApps) 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) @@ -16222,9 +16012,9 @@ func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCompilationJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListApps(response, &metadata) } - output := &ListCompilationJobsOutput{} + output := &ListAppsOutput{} out.Result = output var buff [1024]byte @@ -16244,7 +16034,7 @@ func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAppsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16258,7 +16048,7 @@ func (m *awsAwsjson11_deserializeOpListCompilationJobs) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCompilationJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListApps(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)} @@ -16309,14 +16099,14 @@ func awsAwsjson11_deserializeOpErrorListCompilationJobs(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListContexts struct { +type awsAwsjson11_deserializeOpListArtifacts struct { } -func (*awsAwsjson11_deserializeOpListContexts) ID() string { +func (*awsAwsjson11_deserializeOpListArtifacts) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListArtifacts) 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) @@ -16330,9 +16120,9 @@ func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListContexts(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListArtifacts(response, &metadata) } - output := &ListContextsOutput{} + output := &ListArtifactsOutput{} out.Result = output var buff [1024]byte @@ -16352,7 +16142,7 @@ func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListContextsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListArtifactsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16366,7 +16156,7 @@ func (m *awsAwsjson11_deserializeOpListContexts) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListContexts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListArtifacts(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)} @@ -16420,14 +16210,14 @@ func awsAwsjson11_deserializeOpErrorListContexts(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListDataQualityJobDefinitions struct { +type awsAwsjson11_deserializeOpListAssociations struct { } -func (*awsAwsjson11_deserializeOpListDataQualityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAssociations) 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) @@ -16441,9 +16231,9 @@ func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAssociations(response, &metadata) } - output := &ListDataQualityJobDefinitionsOutput{} + output := &ListAssociationsOutput{} out.Result = output var buff [1024]byte @@ -16463,7 +16253,7 @@ func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16477,7 +16267,7 @@ func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAssociations(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)} @@ -16518,6 +16308,9 @@ func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smit } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16528,14 +16321,14 @@ func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response *smit } } -type awsAwsjson11_deserializeOpListDeviceFleets struct { +type awsAwsjson11_deserializeOpListAutoMLJobs struct { } -func (*awsAwsjson11_deserializeOpListDeviceFleets) ID() string { +func (*awsAwsjson11_deserializeOpListAutoMLJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListAutoMLJobs) 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) @@ -16549,9 +16342,9 @@ func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDeviceFleets(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListAutoMLJobs(response, &metadata) } - output := &ListDeviceFleetsOutput{} + output := &ListAutoMLJobsOutput{} out.Result = output var buff [1024]byte @@ -16571,7 +16364,7 @@ func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16585,7 +16378,7 @@ func (m *awsAwsjson11_deserializeOpListDeviceFleets) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDeviceFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListAutoMLJobs(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)} @@ -16636,14 +16429,14 @@ func awsAwsjson11_deserializeOpErrorListDeviceFleets(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListDevices struct { +type awsAwsjson11_deserializeOpListCandidatesForAutoMLJob struct { } -func (*awsAwsjson11_deserializeOpListDevices) ID() string { +func (*awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListCandidatesForAutoMLJob) 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) @@ -16657,9 +16450,9 @@ func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDevices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(response, &metadata) } - output := &ListDevicesOutput{} + output := &ListCandidatesForAutoMLJobOutput{} out.Result = output var buff [1024]byte @@ -16679,7 +16472,7 @@ func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDevicesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16693,7 +16486,7 @@ func (m *awsAwsjson11_deserializeOpListDevices) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListCandidatesForAutoMLJob(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)} @@ -16734,6 +16527,9 @@ func awsAwsjson11_deserializeOpErrorListDevices(response *smithyhttp.Response, m } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16744,14 +16540,14 @@ func awsAwsjson11_deserializeOpErrorListDevices(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListDomains struct { +type awsAwsjson11_deserializeOpListCodeRepositories struct { } -func (*awsAwsjson11_deserializeOpListDomains) ID() string { +func (*awsAwsjson11_deserializeOpListCodeRepositories) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListCodeRepositories) 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) @@ -16765,9 +16561,9 @@ func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListDomains(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListCodeRepositories(response, &metadata) } - output := &ListDomainsOutput{} + output := &ListCodeRepositoriesOutput{} out.Result = output var buff [1024]byte @@ -16787,7 +16583,7 @@ func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListDomainsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16801,7 +16597,7 @@ func (m *awsAwsjson11_deserializeOpListDomains) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListDomains(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListCodeRepositories(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)} @@ -16852,14 +16648,14 @@ func awsAwsjson11_deserializeOpErrorListDomains(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpListEdgePackagingJobs struct { +type awsAwsjson11_deserializeOpListCompilationJobs struct { } -func (*awsAwsjson11_deserializeOpListEdgePackagingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListCompilationJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListCompilationJobs) 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) @@ -16873,9 +16669,9 @@ func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListCompilationJobs(response, &metadata) } - output := &ListEdgePackagingJobsOutput{} + output := &ListCompilationJobsOutput{} out.Result = output var buff [1024]byte @@ -16895,7 +16691,7 @@ func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16909,7 +16705,7 @@ func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListCompilationJobs(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)} @@ -16960,14 +16756,14 @@ func awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpListEndpointConfigs struct { +type awsAwsjson11_deserializeOpListContexts struct { } -func (*awsAwsjson11_deserializeOpListEndpointConfigs) ID() string { +func (*awsAwsjson11_deserializeOpListContexts) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListContexts) 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) @@ -16981,9 +16777,9 @@ func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEndpointConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListContexts(response, &metadata) } - output := &ListEndpointConfigsOutput{} + output := &ListContextsOutput{} out.Result = output var buff [1024]byte @@ -17003,7 +16799,7 @@ func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListContextsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17017,7 +16813,7 @@ func (m *awsAwsjson11_deserializeOpListEndpointConfigs) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEndpointConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListContexts(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)} @@ -17058,6 +16854,9 @@ func awsAwsjson11_deserializeOpErrorListEndpointConfigs(response *smithyhttp.Res } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17068,14 +16867,14 @@ func awsAwsjson11_deserializeOpErrorListEndpointConfigs(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListEndpoints struct { +type awsAwsjson11_deserializeOpListDataQualityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListEndpoints) ID() string { +func (*awsAwsjson11_deserializeOpListDataQualityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDataQualityJobDefinitions) 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) @@ -17089,9 +16888,9 @@ func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEndpoints(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(response, &metadata) } - output := &ListEndpointsOutput{} + output := &ListDataQualityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -17111,7 +16910,7 @@ func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEndpointsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17125,7 +16924,7 @@ func (m *awsAwsjson11_deserializeOpListEndpoints) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDataQualityJobDefinitions(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)} @@ -17176,14 +16975,14 @@ func awsAwsjson11_deserializeOpErrorListEndpoints(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListExperiments struct { +type awsAwsjson11_deserializeOpListDeviceFleets struct { } -func (*awsAwsjson11_deserializeOpListExperiments) ID() string { +func (*awsAwsjson11_deserializeOpListDeviceFleets) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDeviceFleets) 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) @@ -17197,9 +16996,9 @@ func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListExperiments(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDeviceFleets(response, &metadata) } - output := &ListExperimentsOutput{} + output := &ListDeviceFleetsOutput{} out.Result = output var buff [1024]byte @@ -17219,7 +17018,7 @@ func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListExperimentsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17233,7 +17032,7 @@ func (m *awsAwsjson11_deserializeOpListExperiments) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListExperiments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDeviceFleets(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)} @@ -17284,14 +17083,14 @@ func awsAwsjson11_deserializeOpErrorListExperiments(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpListFeatureGroups struct { +type awsAwsjson11_deserializeOpListDevices struct { } -func (*awsAwsjson11_deserializeOpListFeatureGroups) ID() string { +func (*awsAwsjson11_deserializeOpListDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDevices) 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) @@ -17305,9 +17104,9 @@ func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListFeatureGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDevices(response, &metadata) } - output := &ListFeatureGroupsOutput{} + output := &ListDevicesOutput{} out.Result = output var buff [1024]byte @@ -17327,7 +17126,7 @@ func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDevicesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17341,7 +17140,7 @@ func (m *awsAwsjson11_deserializeOpListFeatureGroups) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListFeatureGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDevices(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)} @@ -17392,14 +17191,14 @@ func awsAwsjson11_deserializeOpErrorListFeatureGroups(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListFlowDefinitions struct { +type awsAwsjson11_deserializeOpListDomains struct { } -func (*awsAwsjson11_deserializeOpListFlowDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListDomains) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListDomains) 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) @@ -17413,9 +17212,9 @@ func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListFlowDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListDomains(response, &metadata) } - output := &ListFlowDefinitionsOutput{} + output := &ListDomainsOutput{} out.Result = output var buff [1024]byte @@ -17435,7 +17234,7 @@ func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListDomainsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17449,7 +17248,7 @@ func (m *awsAwsjson11_deserializeOpListFlowDefinitions) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListFlowDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListDomains(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)} @@ -17500,14 +17299,14 @@ func awsAwsjson11_deserializeOpErrorListFlowDefinitions(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListHumanTaskUis struct { +type awsAwsjson11_deserializeOpListEdgePackagingJobs struct { } -func (*awsAwsjson11_deserializeOpListHumanTaskUis) ID() string { +func (*awsAwsjson11_deserializeOpListEdgePackagingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEdgePackagingJobs) 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) @@ -17521,9 +17320,9 @@ func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHumanTaskUis(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(response, &metadata) } - output := &ListHumanTaskUisOutput{} + output := &ListEdgePackagingJobsOutput{} out.Result = output var buff [1024]byte @@ -17543,7 +17342,7 @@ func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17557,7 +17356,7 @@ func (m *awsAwsjson11_deserializeOpListHumanTaskUis) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHumanTaskUis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEdgePackagingJobs(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)} @@ -17608,14 +17407,14 @@ func awsAwsjson11_deserializeOpErrorListHumanTaskUis(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListHyperParameterTuningJobs struct { +type awsAwsjson11_deserializeOpListEndpointConfigs struct { } -func (*awsAwsjson11_deserializeOpListHyperParameterTuningJobs) ID() string { +func (*awsAwsjson11_deserializeOpListEndpointConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEndpointConfigs) 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) @@ -17629,9 +17428,9 @@ func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEndpointConfigs(response, &metadata) } - output := &ListHyperParameterTuningJobsOutput{} + output := &ListEndpointConfigsOutput{} out.Result = output var buff [1024]byte @@ -17651,7 +17450,7 @@ func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17665,7 +17464,7 @@ func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEndpointConfigs(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)} @@ -17716,14 +17515,14 @@ func awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response *smith } } -type awsAwsjson11_deserializeOpListImages struct { +type awsAwsjson11_deserializeOpListEndpoints struct { } -func (*awsAwsjson11_deserializeOpListImages) ID() string { +func (*awsAwsjson11_deserializeOpListEndpoints) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEndpoints) 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) @@ -17737,9 +17536,9 @@ func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListImages(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEndpoints(response, &metadata) } - output := &ListImagesOutput{} + output := &ListEndpointsOutput{} out.Result = output var buff [1024]byte @@ -17759,7 +17558,7 @@ func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListImagesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEndpointsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17773,7 +17572,7 @@ func (m *awsAwsjson11_deserializeOpListImages) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListImages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEndpoints(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)} @@ -17824,14 +17623,14 @@ func awsAwsjson11_deserializeOpErrorListImages(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListImageVersions struct { +type awsAwsjson11_deserializeOpListExperiments struct { } -func (*awsAwsjson11_deserializeOpListImageVersions) ID() string { +func (*awsAwsjson11_deserializeOpListExperiments) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListExperiments) 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) @@ -17845,9 +17644,9 @@ func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListImageVersions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListExperiments(response, &metadata) } - output := &ListImageVersionsOutput{} + output := &ListExperimentsOutput{} out.Result = output var buff [1024]byte @@ -17867,7 +17666,7 @@ func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListExperimentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17881,7 +17680,7 @@ func (m *awsAwsjson11_deserializeOpListImageVersions) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListImageVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListExperiments(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)} @@ -17922,9 +17721,6 @@ func awsAwsjson11_deserializeOpErrorListImageVersions(response *smithyhttp.Respo } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17935,14 +17731,14 @@ func awsAwsjson11_deserializeOpErrorListImageVersions(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListLabelingJobs struct { +type awsAwsjson11_deserializeOpListFeatureGroups struct { } -func (*awsAwsjson11_deserializeOpListLabelingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListFeatureGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListFeatureGroups) 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) @@ -17956,9 +17752,9 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListFeatureGroups(response, &metadata) } - output := &ListLabelingJobsOutput{} + output := &ListFeatureGroupsOutput{} out.Result = output var buff [1024]byte @@ -17978,7 +17774,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17992,7 +17788,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobs) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListLabelingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListFeatureGroups(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)} @@ -18043,14 +17839,14 @@ func awsAwsjson11_deserializeOpErrorListLabelingJobs(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListLabelingJobsForWorkteam struct { +type awsAwsjson11_deserializeOpListFlowDefinitions struct { } -func (*awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) ID() string { +func (*awsAwsjson11_deserializeOpListFlowDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListFlowDefinitions) 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) @@ -18064,9 +17860,9 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListFlowDefinitions(response, &metadata) } - output := &ListLabelingJobsForWorkteamOutput{} + output := &ListFlowDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -18086,7 +17882,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18100,7 +17896,7 @@ func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListFlowDefinitions(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)} @@ -18141,9 +17937,6 @@ func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response *smithy } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18154,14 +17947,14 @@ func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response *smithy } } -type awsAwsjson11_deserializeOpListModelBiasJobDefinitions struct { +type awsAwsjson11_deserializeOpListHumanTaskUis struct { } -func (*awsAwsjson11_deserializeOpListModelBiasJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListHumanTaskUis) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHumanTaskUis) 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) @@ -18175,9 +17968,9 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHumanTaskUis(response, &metadata) } - output := &ListModelBiasJobDefinitionsOutput{} + output := &ListHumanTaskUisOutput{} out.Result = output var buff [1024]byte @@ -18197,7 +17990,7 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18211,7 +18004,7 @@ func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) HandleDeserializ return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHumanTaskUis(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)} @@ -18262,14 +18055,14 @@ func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response *smithy } } -type awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions struct { +type awsAwsjson11_deserializeOpListHyperParameterTuningJobs struct { } -func (*awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListHyperParameterTuningJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListHyperParameterTuningJobs) 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) @@ -18283,9 +18076,9 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(response, &metadata) } - output := &ListModelExplainabilityJobDefinitionsOutput{} + output := &ListHyperParameterTuningJobsOutput{} out.Result = output var buff [1024]byte @@ -18305,7 +18098,7 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18319,7 +18112,7 @@ func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListHyperParameterTuningJobs(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)} @@ -18370,14 +18163,14 @@ func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(respon } } -type awsAwsjson11_deserializeOpListModelPackageGroups struct { +type awsAwsjson11_deserializeOpListImages struct { } -func (*awsAwsjson11_deserializeOpListModelPackageGroups) ID() string { +func (*awsAwsjson11_deserializeOpListImages) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListImages) 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) @@ -18391,9 +18184,9 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackageGroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListImages(response, &metadata) } - output := &ListModelPackageGroupsOutput{} + output := &ListImagesOutput{} out.Result = output var buff [1024]byte @@ -18413,7 +18206,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelPackageGroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListImagesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18427,7 +18220,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackageGroups) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListImages(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)} @@ -18478,14 +18271,14 @@ func awsAwsjson11_deserializeOpErrorListModelPackageGroups(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListModelPackages struct { +type awsAwsjson11_deserializeOpListImageVersions struct { } -func (*awsAwsjson11_deserializeOpListModelPackages) ID() string { +func (*awsAwsjson11_deserializeOpListImageVersions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListImageVersions) 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) @@ -18499,9 +18292,9 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackages(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListImageVersions(response, &metadata) } - output := &ListModelPackagesOutput{} + output := &ListImageVersionsOutput{} out.Result = output var buff [1024]byte @@ -18521,7 +18314,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18535,7 +18328,7 @@ func (m *awsAwsjson11_deserializeOpListModelPackages) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListImageVersions(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)} @@ -18576,6 +18369,9 @@ func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Respo } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18586,14 +18382,14 @@ func awsAwsjson11_deserializeOpErrorListModelPackages(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListModelQualityJobDefinitions struct { +type awsAwsjson11_deserializeOpListInferenceRecommendationsJobs struct { } -func (*awsAwsjson11_deserializeOpListModelQualityJobDefinitions) ID() string { +func (*awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListInferenceRecommendationsJobs) 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) @@ -18607,9 +18403,9 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(response, &metadata) } - output := &ListModelQualityJobDefinitionsOutput{} + output := &ListInferenceRecommendationsJobsOutput{} out.Result = output var buff [1024]byte @@ -18629,7 +18425,7 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelQualityJobDefinitionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18643,7 +18439,7 @@ func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) HandleDeseria return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListInferenceRecommendationsJobs(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)} @@ -18694,14 +18490,14 @@ func awsAwsjson11_deserializeOpErrorListModelQualityJobDefinitions(response *smi } } -type awsAwsjson11_deserializeOpListModels struct { +type awsAwsjson11_deserializeOpListLabelingJobs struct { } -func (*awsAwsjson11_deserializeOpListModels) ID() string { +func (*awsAwsjson11_deserializeOpListLabelingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListLabelingJobs) 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) @@ -18715,9 +18511,9 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListModels(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobs(response, &metadata) } - output := &ListModelsOutput{} + output := &ListLabelingJobsOutput{} out.Result = output var buff [1024]byte @@ -18737,7 +18533,7 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListModelsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18751,7 +18547,7 @@ func (m *awsAwsjson11_deserializeOpListModels) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListLabelingJobs(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)} @@ -18802,14 +18598,14 @@ func awsAwsjson11_deserializeOpErrorListModels(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListMonitoringExecutions struct { +type awsAwsjson11_deserializeOpListLabelingJobsForWorkteam struct { } -func (*awsAwsjson11_deserializeOpListMonitoringExecutions) ID() string { +func (*awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListLabelingJobsForWorkteam) 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) @@ -18823,9 +18619,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(response, &metadata) } - output := &ListMonitoringExecutionsOutput{} + output := &ListLabelingJobsForWorkteamOutput{} out.Result = output var buff [1024]byte @@ -18845,7 +18641,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringExecutionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18859,7 +18655,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListLabelingJobsForWorkteam(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)} @@ -18900,6 +18696,9 @@ func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response *smithyhtt } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18910,14 +18709,14 @@ func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response *smithyhtt } } -type awsAwsjson11_deserializeOpListMonitoringSchedules struct { +type awsAwsjson11_deserializeOpListLineageGroups struct { } -func (*awsAwsjson11_deserializeOpListMonitoringSchedules) ID() string { +func (*awsAwsjson11_deserializeOpListLineageGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListLineageGroups) 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) @@ -18931,9 +18730,9 @@ func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListLineageGroups(response, &metadata) } - output := &ListMonitoringSchedulesOutput{} + output := &ListLineageGroupsOutput{} out.Result = output var buff [1024]byte @@ -18953,7 +18752,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListMonitoringSchedulesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18967,7 +18766,7 @@ func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListLineageGroups(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)} @@ -19018,14 +18817,14 @@ func awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response *smithyhttp } } -type awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs struct { +type awsAwsjson11_deserializeOpListModelBiasJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) ID() string { +func (*awsAwsjson11_deserializeOpListModelBiasJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelBiasJobDefinitions) 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) @@ -19039,9 +18838,9 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(response, &metadata) } - output := &ListNotebookInstanceLifecycleConfigsOutput{} + output := &ListModelBiasJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -19061,7 +18860,7 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) HandleD return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListNotebookInstanceLifecycleConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19075,7 +18874,7 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) HandleD return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelBiasJobDefinitions(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)} @@ -19126,14 +18925,14 @@ func awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(respons } } -type awsAwsjson11_deserializeOpListNotebookInstances struct { +type awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions struct { } -func (*awsAwsjson11_deserializeOpListNotebookInstances) ID() string { +func (*awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelExplainabilityJobDefinitions) 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) @@ -19147,9 +18946,9 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstances(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(response, &metadata) } - output := &ListNotebookInstancesOutput{} + output := &ListModelExplainabilityJobDefinitionsOutput{} out.Result = output var buff [1024]byte @@ -19169,7 +18968,7 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListNotebookInstancesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19183,7 +18982,7 @@ func (m *awsAwsjson11_deserializeOpListNotebookInstances) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListNotebookInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelExplainabilityJobDefinitions(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)} @@ -19234,14 +19033,14 @@ func awsAwsjson11_deserializeOpErrorListNotebookInstances(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpListPipelineExecutions struct { +type awsAwsjson11_deserializeOpListModelMetadata struct { } -func (*awsAwsjson11_deserializeOpListPipelineExecutions) ID() string { +func (*awsAwsjson11_deserializeOpListModelMetadata) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelMetadata) 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) @@ -19255,9 +19054,9 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutions(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelMetadata(response, &metadata) } - output := &ListPipelineExecutionsOutput{} + output := &ListModelMetadataOutput{} out.Result = output var buff [1024]byte @@ -19277,7 +19076,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelMetadataOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19291,7 +19090,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutions) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelineExecutions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelMetadata(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)} @@ -19332,9 +19131,6 @@ func awsAwsjson11_deserializeOpErrorListPipelineExecutions(response *smithyhttp. } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19345,14 +19141,14 @@ func awsAwsjson11_deserializeOpErrorListPipelineExecutions(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListPipelineExecutionSteps struct { +type awsAwsjson11_deserializeOpListModelPackageGroups struct { } -func (*awsAwsjson11_deserializeOpListPipelineExecutionSteps) ID() string { +func (*awsAwsjson11_deserializeOpListModelPackageGroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelPackageGroups) 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) @@ -19366,9 +19162,9 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackageGroups(response, &metadata) } - output := &ListPipelineExecutionStepsOutput{} + output := &ListModelPackageGroupsOutput{} out.Result = output var buff [1024]byte @@ -19388,7 +19184,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionStepsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelPackageGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19402,7 +19198,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelPackageGroups(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)} @@ -19443,9 +19239,6 @@ func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response *smithyh } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19456,14 +19249,14 @@ func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response *smithyh } } -type awsAwsjson11_deserializeOpListPipelineParametersForExecution struct { +type awsAwsjson11_deserializeOpListModelPackages struct { } -func (*awsAwsjson11_deserializeOpListPipelineParametersForExecution) ID() string { +func (*awsAwsjson11_deserializeOpListModelPackages) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModelPackages) 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) @@ -19477,9 +19270,9 @@ func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModelPackages(response, &metadata) } - output := &ListPipelineParametersForExecutionOutput{} + output := &ListModelPackagesOutput{} out.Result = output var buff [1024]byte @@ -19499,7 +19292,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDes return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelineParametersForExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelPackagesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19513,7 +19306,7 @@ func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) HandleDes return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModelPackages(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)} @@ -19554,9 +19347,114 @@ func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpListModelQualityJobDefinitions struct { +} + +func (*awsAwsjson11_deserializeOpListModelQualityJobDefinitions) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpListModelQualityJobDefinitions) 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_deserializeOpErrorListModelQualityJobDefinitions(response, &metadata) + } + output := &ListModelQualityJobDefinitionsOutput{} + 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_deserializeOpDocumentListModelQualityJobDefinitionsOutput(&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_deserializeOpErrorListModelQualityJobDefinitions(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + switch { default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19567,14 +19465,14 @@ func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response } } -type awsAwsjson11_deserializeOpListPipelines struct { +type awsAwsjson11_deserializeOpListModels struct { } -func (*awsAwsjson11_deserializeOpListPipelines) ID() string { +func (*awsAwsjson11_deserializeOpListModels) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListModels) 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) @@ -19588,9 +19486,9 @@ func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListPipelines(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListModels(response, &metadata) } - output := &ListPipelinesOutput{} + output := &ListModelsOutput{} out.Result = output var buff [1024]byte @@ -19610,7 +19508,7 @@ func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListPipelinesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListModelsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19624,7 +19522,7 @@ func (m *awsAwsjson11_deserializeOpListPipelines) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListPipelines(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListModels(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)} @@ -19675,14 +19573,14 @@ func awsAwsjson11_deserializeOpErrorListPipelines(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListProcessingJobs struct { +type awsAwsjson11_deserializeOpListMonitoringExecutions struct { } -func (*awsAwsjson11_deserializeOpListProcessingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListMonitoringExecutions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMonitoringExecutions) 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) @@ -19696,9 +19594,9 @@ func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListProcessingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringExecutions(response, &metadata) } - output := &ListProcessingJobsOutput{} + output := &ListMonitoringExecutionsOutput{} out.Result = output var buff [1024]byte @@ -19718,7 +19616,7 @@ func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListProcessingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMonitoringExecutionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19732,7 +19630,7 @@ func (m *awsAwsjson11_deserializeOpListProcessingJobs) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListProcessingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMonitoringExecutions(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)} @@ -19783,14 +19681,14 @@ func awsAwsjson11_deserializeOpErrorListProcessingJobs(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpListProjects struct { +type awsAwsjson11_deserializeOpListMonitoringSchedules struct { } -func (*awsAwsjson11_deserializeOpListProjects) ID() string { +func (*awsAwsjson11_deserializeOpListMonitoringSchedules) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListMonitoringSchedules) 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) @@ -19804,9 +19702,9 @@ func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListProjects(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListMonitoringSchedules(response, &metadata) } - output := &ListProjectsOutput{} + output := &ListMonitoringSchedulesOutput{} out.Result = output var buff [1024]byte @@ -19826,7 +19724,7 @@ func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListProjectsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListMonitoringSchedulesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19840,7 +19738,7 @@ func (m *awsAwsjson11_deserializeOpListProjects) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListProjects(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListMonitoringSchedules(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)} @@ -19891,14 +19789,14 @@ func awsAwsjson11_deserializeOpErrorListProjects(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListStudioLifecycleConfigs struct { +type awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs struct { } -func (*awsAwsjson11_deserializeOpListStudioLifecycleConfigs) ID() string { +func (*awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListNotebookInstanceLifecycleConfigs) 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) @@ -19912,9 +19810,9 @@ func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(response, &metadata) } - output := &ListStudioLifecycleConfigsOutput{} + output := &ListNotebookInstanceLifecycleConfigsOutput{} out.Result = output var buff [1024]byte @@ -19934,7 +19832,7 @@ func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListStudioLifecycleConfigsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListNotebookInstanceLifecycleConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19948,7 +19846,7 @@ func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListNotebookInstanceLifecycleConfigs(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)} @@ -19989,9 +19887,6 @@ func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyh } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20002,14 +19897,14 @@ func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response *smithyh } } -type awsAwsjson11_deserializeOpListSubscribedWorkteams struct { +type awsAwsjson11_deserializeOpListNotebookInstances struct { } -func (*awsAwsjson11_deserializeOpListSubscribedWorkteams) ID() string { +func (*awsAwsjson11_deserializeOpListNotebookInstances) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListNotebookInstances) 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) @@ -20023,9 +19918,9 @@ func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListNotebookInstances(response, &metadata) } - output := &ListSubscribedWorkteamsOutput{} + output := &ListNotebookInstancesOutput{} out.Result = output var buff [1024]byte @@ -20045,7 +19940,7 @@ func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListSubscribedWorkteamsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListNotebookInstancesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20059,7 +19954,7 @@ func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListNotebookInstances(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)} @@ -20110,14 +20005,14 @@ func awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response *smithyhttp } } -type awsAwsjson11_deserializeOpListTags struct { +type awsAwsjson11_deserializeOpListPipelineExecutions struct { } -func (*awsAwsjson11_deserializeOpListTags) ID() string { +func (*awsAwsjson11_deserializeOpListPipelineExecutions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelineExecutions) 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) @@ -20131,9 +20026,9 @@ func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTags(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutions(response, &metadata) } - output := &ListTagsOutput{} + output := &ListPipelineExecutionsOutput{} out.Result = output var buff [1024]byte @@ -20153,7 +20048,7 @@ func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTagsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20167,7 +20062,7 @@ func (m *awsAwsjson11_deserializeOpListTags) HandleDeserialize(ctx context.Conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelineExecutions(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)} @@ -20208,6 +20103,9 @@ func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, meta } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20218,14 +20116,14 @@ func awsAwsjson11_deserializeOpErrorListTags(response *smithyhttp.Response, meta } } -type awsAwsjson11_deserializeOpListTrainingJobs struct { +type awsAwsjson11_deserializeOpListPipelineExecutionSteps struct { } -func (*awsAwsjson11_deserializeOpListTrainingJobs) ID() string { +func (*awsAwsjson11_deserializeOpListPipelineExecutionSteps) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelineExecutionSteps) 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) @@ -20239,9 +20137,9 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(response, &metadata) } - output := &ListTrainingJobsOutput{} + output := &ListPipelineExecutionStepsOutput{} out.Result = output var buff [1024]byte @@ -20261,7 +20159,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrainingJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelineExecutionStepsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20275,7 +20173,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobs) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrainingJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelineExecutionSteps(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)} @@ -20316,6 +20214,9 @@ func awsAwsjson11_deserializeOpErrorListTrainingJobs(response *smithyhttp.Respon } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20326,14 +20227,14 @@ func awsAwsjson11_deserializeOpErrorListTrainingJobs(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpListPipelineParametersForExecution struct { } -func (*awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpListPipelineParametersForExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelineParametersForExecution) 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) @@ -20347,9 +20248,9 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(response, &metadata) } - output := &ListTrainingJobsForHyperParameterTuningJobOutput{} + output := &ListPipelineParametersForExecutionOutput{} out.Result = output var buff [1024]byte @@ -20369,7 +20270,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) H return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrainingJobsForHyperParameterTuningJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelineParametersForExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20383,7 +20284,7 @@ func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) H return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelineParametersForExecution(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)} @@ -20437,14 +20338,14 @@ func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(r } } -type awsAwsjson11_deserializeOpListTransformJobs struct { +type awsAwsjson11_deserializeOpListPipelines struct { } -func (*awsAwsjson11_deserializeOpListTransformJobs) ID() string { +func (*awsAwsjson11_deserializeOpListPipelines) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListPipelines) 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) @@ -20458,9 +20359,9 @@ func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTransformJobs(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListPipelines(response, &metadata) } - output := &ListTransformJobsOutput{} + output := &ListPipelinesOutput{} out.Result = output var buff [1024]byte @@ -20480,7 +20381,7 @@ func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTransformJobsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListPipelinesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20494,7 +20395,7 @@ func (m *awsAwsjson11_deserializeOpListTransformJobs) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTransformJobs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListPipelines(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)} @@ -20545,14 +20446,14 @@ func awsAwsjson11_deserializeOpErrorListTransformJobs(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpListTrialComponents struct { +type awsAwsjson11_deserializeOpListProcessingJobs struct { } -func (*awsAwsjson11_deserializeOpListTrialComponents) ID() string { +func (*awsAwsjson11_deserializeOpListProcessingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListProcessingJobs) 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) @@ -20566,9 +20467,9 @@ func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrialComponents(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListProcessingJobs(response, &metadata) } - output := &ListTrialComponentsOutput{} + output := &ListProcessingJobsOutput{} out.Result = output var buff [1024]byte @@ -20588,7 +20489,7 @@ func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrialComponentsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListProcessingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20602,7 +20503,7 @@ func (m *awsAwsjson11_deserializeOpListTrialComponents) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListProcessingJobs(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)} @@ -20643,9 +20544,6 @@ func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Res } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20656,14 +20554,14 @@ func awsAwsjson11_deserializeOpErrorListTrialComponents(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListTrials struct { +type awsAwsjson11_deserializeOpListProjects struct { } -func (*awsAwsjson11_deserializeOpListTrials) ID() string { +func (*awsAwsjson11_deserializeOpListProjects) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListProjects) 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) @@ -20677,9 +20575,9 @@ func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTrials(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListProjects(response, &metadata) } - output := &ListTrialsOutput{} + output := &ListProjectsOutput{} out.Result = output var buff [1024]byte @@ -20699,7 +20597,7 @@ func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTrialsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListProjectsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20713,7 +20611,7 @@ func (m *awsAwsjson11_deserializeOpListTrials) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListProjects(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)} @@ -20754,9 +20652,6 @@ func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, me } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20767,14 +20662,14 @@ func awsAwsjson11_deserializeOpErrorListTrials(response *smithyhttp.Response, me } } -type awsAwsjson11_deserializeOpListUserProfiles struct { +type awsAwsjson11_deserializeOpListStudioLifecycleConfigs struct { } -func (*awsAwsjson11_deserializeOpListUserProfiles) ID() string { +func (*awsAwsjson11_deserializeOpListStudioLifecycleConfigs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListStudioLifecycleConfigs) 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) @@ -20788,9 +20683,9 @@ func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListUserProfiles(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(response, &metadata) } - output := &ListUserProfilesOutput{} + output := &ListStudioLifecycleConfigsOutput{} out.Result = output var buff [1024]byte @@ -20810,7 +20705,7 @@ func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListUserProfilesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListStudioLifecycleConfigsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20824,7 +20719,7 @@ func (m *awsAwsjson11_deserializeOpListUserProfiles) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListUserProfiles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListStudioLifecycleConfigs(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)} @@ -20865,6 +20760,9 @@ func awsAwsjson11_deserializeOpErrorListUserProfiles(response *smithyhttp.Respon } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20875,14 +20773,14 @@ func awsAwsjson11_deserializeOpErrorListUserProfiles(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpListWorkforces struct { +type awsAwsjson11_deserializeOpListSubscribedWorkteams struct { } -func (*awsAwsjson11_deserializeOpListWorkforces) ID() string { +func (*awsAwsjson11_deserializeOpListSubscribedWorkteams) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListSubscribedWorkteams) 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) @@ -20896,9 +20794,9 @@ func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListWorkforces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(response, &metadata) } - output := &ListWorkforcesOutput{} + output := &ListSubscribedWorkteamsOutput{} out.Result = output var buff [1024]byte @@ -20918,7 +20816,7 @@ func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListWorkforcesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListSubscribedWorkteamsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20932,7 +20830,7 @@ func (m *awsAwsjson11_deserializeOpListWorkforces) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListWorkforces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListSubscribedWorkteams(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)} @@ -20983,14 +20881,14 @@ func awsAwsjson11_deserializeOpErrorListWorkforces(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListWorkteams struct { +type awsAwsjson11_deserializeOpListTags struct { } -func (*awsAwsjson11_deserializeOpListWorkteams) ID() string { +func (*awsAwsjson11_deserializeOpListTags) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTags) 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) @@ -21004,9 +20902,9 @@ func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListWorkteams(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTags(response, &metadata) } - output := &ListWorkteamsOutput{} + output := &ListTagsOutput{} out.Result = output var buff [1024]byte @@ -21026,7 +20924,7 @@ func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListWorkteamsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTagsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21040,7 +20938,7 @@ func (m *awsAwsjson11_deserializeOpListWorkteams) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListWorkteams(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTags(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)} @@ -21091,14 +20989,14 @@ func awsAwsjson11_deserializeOpErrorListWorkteams(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpPutModelPackageGroupPolicy struct { +type awsAwsjson11_deserializeOpListTrainingJobs struct { } -func (*awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) ID() string { +func (*awsAwsjson11_deserializeOpListTrainingJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrainingJobs) 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) @@ -21112,9 +21010,9 @@ func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobs(response, &metadata) } - output := &PutModelPackageGroupPolicyOutput{} + output := &ListTrainingJobsOutput{} out.Result = output var buff [1024]byte @@ -21134,7 +21032,7 @@ func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentPutModelPackageGroupPolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTrainingJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21148,7 +21046,7 @@ func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrainingJobs(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)} @@ -21199,14 +21097,14 @@ func awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response *smithyh } } -type awsAwsjson11_deserializeOpRegisterDevices struct { +type awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob struct { } -func (*awsAwsjson11_deserializeOpRegisterDevices) ID() string { +func (*awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRegisterDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrainingJobsForHyperParameterTuningJob) 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) @@ -21220,21 +21118,43 @@ func (m *awsAwsjson11_deserializeOpRegisterDevices) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRegisterDevices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(response, &metadata) } - output := &RegisterDevicesOutput{} + output := &ListTrainingJobsForHyperParameterTuningJobOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentListTrainingJobsForHyperParameterTuningJobOutput(&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_deserializeOpErrorRegisterDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrainingJobsForHyperParameterTuningJob(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)} @@ -21275,8 +21195,8 @@ func awsAwsjson11_deserializeOpErrorRegisterDevices(response *smithyhttp.Respons } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -21288,14 +21208,14 @@ func awsAwsjson11_deserializeOpErrorRegisterDevices(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpRenderUiTemplate struct { +type awsAwsjson11_deserializeOpListTransformJobs struct { } -func (*awsAwsjson11_deserializeOpRenderUiTemplate) ID() string { +func (*awsAwsjson11_deserializeOpListTransformJobs) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTransformJobs) 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) @@ -21309,9 +21229,9 @@ func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRenderUiTemplate(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTransformJobs(response, &metadata) } - output := &RenderUiTemplateOutput{} + output := &ListTransformJobsOutput{} out.Result = output var buff [1024]byte @@ -21331,7 +21251,7 @@ func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRenderUiTemplateOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTransformJobsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21345,7 +21265,7 @@ func (m *awsAwsjson11_deserializeOpRenderUiTemplate) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTransformJobs(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)} @@ -21386,9 +21306,6 @@ func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Respon } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21399,14 +21316,14 @@ func awsAwsjson11_deserializeOpErrorRenderUiTemplate(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpRetryPipelineExecution struct { +type awsAwsjson11_deserializeOpListTrialComponents struct { } -func (*awsAwsjson11_deserializeOpRetryPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpListTrialComponents) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrialComponents) 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) @@ -21420,9 +21337,9 @@ func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrialComponents(response, &metadata) } - output := &RetryPipelineExecutionOutput{} + output := &ListTrialComponentsOutput{} out.Result = output var buff [1024]byte @@ -21442,7 +21359,7 @@ func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRetryPipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTrialComponentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21456,7 +21373,7 @@ func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrialComponents(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)} @@ -21497,12 +21414,6 @@ func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp. } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -21516,14 +21427,14 @@ func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response *smithyhttp. } } -type awsAwsjson11_deserializeOpSearch struct { +type awsAwsjson11_deserializeOpListTrials struct { } -func (*awsAwsjson11_deserializeOpSearch) ID() string { +func (*awsAwsjson11_deserializeOpListTrials) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTrials) 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) @@ -21537,9 +21448,9 @@ func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSearch(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTrials(response, &metadata) } - output := &SearchOutput{} + output := &ListTrialsOutput{} out.Result = output var buff [1024]byte @@ -21559,7 +21470,7 @@ func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSearchOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTrialsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21573,7 +21484,7 @@ func (m *awsAwsjson11_deserializeOpSearch) HandleDeserialize(ctx context.Context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSearch(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTrials(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)} @@ -21614,6 +21525,9 @@ func awsAwsjson11_deserializeOpErrorSearch(response *smithyhttp.Response, metada } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21624,14 +21538,14 @@ func awsAwsjson11_deserializeOpErrorSearch(response *smithyhttp.Response, metada } } -type awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure struct { +type awsAwsjson11_deserializeOpListUserProfiles struct { } -func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) ID() string { +func (*awsAwsjson11_deserializeOpListUserProfiles) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListUserProfiles) 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) @@ -21645,9 +21559,9 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListUserProfiles(response, &metadata) } - output := &SendPipelineExecutionStepFailureOutput{} + output := &ListUserProfilesOutput{} out.Result = output var buff [1024]byte @@ -21667,7 +21581,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeser return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSendPipelineExecutionStepFailureOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListUserProfilesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21681,7 +21595,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) HandleDeser return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListUserProfiles(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)} @@ -21722,12 +21636,6 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *s } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21738,14 +21646,14 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response *s } } -type awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess struct { +type awsAwsjson11_deserializeOpListWorkforces struct { } -func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) ID() string { +func (*awsAwsjson11_deserializeOpListWorkforces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListWorkforces) 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) @@ -21759,9 +21667,9 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListWorkforces(response, &metadata) } - output := &SendPipelineExecutionStepSuccessOutput{} + output := &ListWorkforcesOutput{} out.Result = output var buff [1024]byte @@ -21781,7 +21689,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeser return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentSendPipelineExecutionStepSuccessOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListWorkforcesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21795,7 +21703,7 @@ func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) HandleDeser return out, metadata, err } -func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListWorkforces(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)} @@ -21836,12 +21744,6 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *s } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21852,14 +21754,14 @@ func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response *s } } -type awsAwsjson11_deserializeOpStartMonitoringSchedule struct { +type awsAwsjson11_deserializeOpListWorkteams struct { } -func (*awsAwsjson11_deserializeOpStartMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpListWorkteams) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListWorkteams) 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) @@ -21873,110 +21775,43 @@ func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListWorkteams(response, &metadata) } - output := &StartMonitoringScheduleOutput{} + output := &ListWorkteamsOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), - } - } - - return out, metadata, err -} - -func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(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 - - code := response.Header.Get("X-Amzn-ErrorType") - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - 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() - code, message, err := restjson.GetErrorInfo(decoder) - if err != nil { + 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 - } - - errorBody.Seek(0, io.SeekStart) - if len(code) != 0 { - errorCode = restjson.SanitizeErrorCode(code) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson11_deserializeOpStartNotebookInstance struct { -} - -func (*awsAwsjson11_deserializeOpStartNotebookInstance) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson11_deserializeOpStartNotebookInstance) 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_deserializeOpErrorStartNotebookInstance(response, &metadata) - } - output := &StartNotebookInstanceOutput{} - out.Result = output - - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + err = awsAwsjson11_deserializeOpDocumentListWorkteamsOutput(&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_deserializeOpErrorStartNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListWorkteams(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)} @@ -22017,9 +21852,6 @@ func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.R } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22030,14 +21862,14 @@ func awsAwsjson11_deserializeOpErrorStartNotebookInstance(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpStartPipelineExecution struct { +type awsAwsjson11_deserializeOpPutModelPackageGroupPolicy struct { } -func (*awsAwsjson11_deserializeOpStartPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpPutModelPackageGroupPolicy) 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) @@ -22051,9 +21883,9 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStartPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(response, &metadata) } - output := &StartPipelineExecutionOutput{} + output := &PutModelPackageGroupPolicyOutput{} out.Result = output var buff [1024]byte @@ -22073,7 +21905,7 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentStartPipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentPutModelPackageGroupPolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22087,7 +21919,7 @@ func (m *awsAwsjson11_deserializeOpStartPipelineExecution) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorPutModelPackageGroupPolicy(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)} @@ -22128,12 +21960,6 @@ func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp. } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22144,14 +21970,14 @@ func awsAwsjson11_deserializeOpErrorStartPipelineExecution(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopAutoMLJob struct { +type awsAwsjson11_deserializeOpQueryLineage struct { } -func (*awsAwsjson11_deserializeOpStopAutoMLJob) ID() string { +func (*awsAwsjson11_deserializeOpQueryLineage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpQueryLineage) 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) @@ -22165,21 +21991,43 @@ func (m *awsAwsjson11_deserializeOpStopAutoMLJob) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopAutoMLJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorQueryLineage(response, &metadata) } - output := &StopAutoMLJobOutput{} + output := &QueryLineageOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentQueryLineageOutput(&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_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorQueryLineage(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)} @@ -22233,14 +22081,14 @@ func awsAwsjson11_deserializeOpErrorStopAutoMLJob(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpStopCompilationJob struct { +type awsAwsjson11_deserializeOpRegisterDevices struct { } -func (*awsAwsjson11_deserializeOpStopCompilationJob) ID() string { +func (*awsAwsjson11_deserializeOpRegisterDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRegisterDevices) 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) @@ -22254,9 +22102,9 @@ func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopCompilationJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRegisterDevices(response, &metadata) } - output := &StopCompilationJobOutput{} + output := &RegisterDevicesOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -22268,7 +22116,7 @@ func (m *awsAwsjson11_deserializeOpStopCompilationJob) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRegisterDevices(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)} @@ -22309,8 +22157,8 @@ func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Resp } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -22322,14 +22170,14 @@ func awsAwsjson11_deserializeOpErrorStopCompilationJob(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpStopEdgePackagingJob struct { +type awsAwsjson11_deserializeOpRenderUiTemplate struct { } -func (*awsAwsjson11_deserializeOpStopEdgePackagingJob) ID() string { +func (*awsAwsjson11_deserializeOpRenderUiTemplate) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRenderUiTemplate) 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) @@ -22343,21 +22191,43 @@ func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRenderUiTemplate(response, &metadata) } - output := &StopEdgePackagingJobOutput{} + output := &RenderUiTemplateOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentRenderUiTemplateOutput(&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_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRenderUiTemplate(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)} @@ -22398,6 +22268,9 @@ func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22408,14 +22281,14 @@ func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpStopHyperParameterTuningJob struct { +type awsAwsjson11_deserializeOpRetryPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpStopHyperParameterTuningJob) ID() string { +func (*awsAwsjson11_deserializeOpRetryPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRetryPipelineExecution) 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) @@ -22429,21 +22302,43 @@ func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRetryPipelineExecution(response, &metadata) } - output := &StopHyperParameterTuningJobOutput{} + output := &RetryPipelineExecutionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentRetryPipelineExecutionOutput(&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_deserializeOpErrorStopHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRetryPipelineExecution(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)} @@ -22484,6 +22379,12 @@ func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithy } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -22497,14 +22398,14 @@ func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response *smithy } } -type awsAwsjson11_deserializeOpStopLabelingJob struct { +type awsAwsjson11_deserializeOpSearch struct { } -func (*awsAwsjson11_deserializeOpStopLabelingJob) ID() string { +func (*awsAwsjson11_deserializeOpSearch) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpSearch) 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) @@ -22518,21 +22419,43 @@ func (m *awsAwsjson11_deserializeOpStopLabelingJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopLabelingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorSearch(response, &metadata) } - output := &StopLabelingJobOutput{} + output := &SearchOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentSearchOutput(&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_deserializeOpErrorStopLabelingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorSearch(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)} @@ -22573,9 +22496,6 @@ func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Respons } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22586,14 +22506,14 @@ func awsAwsjson11_deserializeOpErrorStopLabelingJob(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopMonitoringSchedule struct { +type awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure struct { } -func (*awsAwsjson11_deserializeOpStopMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepFailure) 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) @@ -22607,21 +22527,43 @@ func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(response, &metadata) } - output := &StopMonitoringScheduleOutput{} + output := &SendPipelineExecutionStepFailureOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentSendPipelineExecutionStepFailureOutput(&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_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepFailure(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)} @@ -22662,6 +22604,9 @@ func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp. } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -22675,14 +22620,14 @@ func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response *smithyhttp. } } -type awsAwsjson11_deserializeOpStopNotebookInstance struct { +type awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess struct { } -func (*awsAwsjson11_deserializeOpStopNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpSendPipelineExecutionStepSuccess) 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) @@ -22696,21 +22641,43 @@ func (m *awsAwsjson11_deserializeOpStopNotebookInstance) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(response, &metadata) } - output := &StopNotebookInstanceOutput{} + output := &SendPipelineExecutionStepSuccessOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentSendPipelineExecutionStepSuccessOutput(&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_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorSendPipelineExecutionStepSuccess(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)} @@ -22751,6 +22718,12 @@ func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22761,14 +22734,14 @@ func awsAwsjson11_deserializeOpErrorStopNotebookInstance(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpStopPipelineExecution struct { +type awsAwsjson11_deserializeOpStartMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpStopPipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpStartMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartMonitoringSchedule) 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) @@ -22782,43 +22755,21 @@ func (m *awsAwsjson11_deserializeOpStopPipelineExecution) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopPipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(response, &metadata) } - output := &StopPipelineExecutionOutput{} + output := &StartMonitoringScheduleOutput{} 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_deserializeOpDocumentStopPipelineExecutionOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartMonitoringSchedule(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)} @@ -22872,14 +22823,14 @@ func awsAwsjson11_deserializeOpErrorStopPipelineExecution(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpStopProcessingJob struct { +type awsAwsjson11_deserializeOpStartNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpStopProcessingJob) ID() string { +func (*awsAwsjson11_deserializeOpStartNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartNotebookInstance) 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) @@ -22893,9 +22844,9 @@ func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopProcessingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartNotebookInstance(response, &metadata) } - output := &StopProcessingJobOutput{} + output := &StartNotebookInstanceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -22907,7 +22858,7 @@ func (m *awsAwsjson11_deserializeOpStopProcessingJob) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartNotebookInstance(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)} @@ -22948,8 +22899,8 @@ func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Respo } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -22961,14 +22912,14 @@ func awsAwsjson11_deserializeOpErrorStopProcessingJob(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpStopTrainingJob struct { +type awsAwsjson11_deserializeOpStartPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpStopTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpStartPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStartPipelineExecution) 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) @@ -22982,21 +22933,43 @@ func (m *awsAwsjson11_deserializeOpStopTrainingJob) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStartPipelineExecution(response, &metadata) } - output := &StopTrainingJobOutput{} + output := &StartPipelineExecutionOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpDocumentStartPipelineExecutionOutput(&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_deserializeOpErrorStopTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStartPipelineExecution(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)} @@ -23037,6 +23010,9 @@ func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Respons } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -23050,14 +23026,14 @@ func awsAwsjson11_deserializeOpErrorStopTrainingJob(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpStopTransformJob struct { +type awsAwsjson11_deserializeOpStopAutoMLJob struct { } -func (*awsAwsjson11_deserializeOpStopTransformJob) ID() string { +func (*awsAwsjson11_deserializeOpStopAutoMLJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopAutoMLJob) 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) @@ -23071,9 +23047,9 @@ func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorStopTransformJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopAutoMLJob(response, &metadata) } - output := &StopTransformJobOutput{} + output := &StopAutoMLJobOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -23085,7 +23061,7 @@ func (m *awsAwsjson11_deserializeOpStopTransformJob) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopAutoMLJob(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)} @@ -23139,14 +23115,14 @@ func awsAwsjson11_deserializeOpErrorStopTransformJob(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateAction struct { +type awsAwsjson11_deserializeOpStopCompilationJob struct { } -func (*awsAwsjson11_deserializeOpUpdateAction) ID() string { +func (*awsAwsjson11_deserializeOpStopCompilationJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopCompilationJob) 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) @@ -23160,43 +23136,21 @@ func (m *awsAwsjson11_deserializeOpUpdateAction) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAction(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopCompilationJob(response, &metadata) } - output := &UpdateActionOutput{} + output := &StopCompilationJobOutput{} 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_deserializeOpDocumentUpdateActionOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopCompilationJob(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)} @@ -23237,9 +23191,6 @@ func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -23253,14 +23204,14 @@ func awsAwsjson11_deserializeOpErrorUpdateAction(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateAppImageConfig struct { +type awsAwsjson11_deserializeOpStopEdgePackagingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateAppImageConfig) ID() string { +func (*awsAwsjson11_deserializeOpStopEdgePackagingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopEdgePackagingJob) 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) @@ -23274,43 +23225,21 @@ func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(response, &metadata) } - output := &UpdateAppImageConfigOutput{} + output := &StopEdgePackagingJobOutput{} 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_deserializeOpDocumentUpdateAppImageConfigOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopEdgePackagingJob(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)} @@ -23351,9 +23280,6 @@ func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Re } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23364,14 +23290,14 @@ func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateArtifact struct { +type awsAwsjson11_deserializeOpStopHyperParameterTuningJob struct { } -func (*awsAwsjson11_deserializeOpUpdateArtifact) ID() string { +func (*awsAwsjson11_deserializeOpStopHyperParameterTuningJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopHyperParameterTuningJob) 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) @@ -23385,43 +23311,21 @@ func (m *awsAwsjson11_deserializeOpUpdateArtifact) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateArtifact(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(response, &metadata) } - output := &UpdateArtifactOutput{} + output := &StopHyperParameterTuningJobOutput{} 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_deserializeOpDocumentUpdateArtifactOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopHyperParameterTuningJob(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)} @@ -23462,9 +23366,6 @@ func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -23478,14 +23379,14 @@ func awsAwsjson11_deserializeOpErrorUpdateArtifact(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdateCodeRepository struct { +type awsAwsjson11_deserializeOpStopInferenceRecommendationsJob struct { } -func (*awsAwsjson11_deserializeOpUpdateCodeRepository) ID() string { +func (*awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateCodeRepository) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopInferenceRecommendationsJob) 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) @@ -23499,43 +23400,21 @@ func (m *awsAwsjson11_deserializeOpUpdateCodeRepository) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(response, &metadata) } - output := &UpdateCodeRepositoryOutput{} + output := &StopInferenceRecommendationsJobOutput{} 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_deserializeOpDocumentUpdateCodeRepositoryOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopInferenceRecommendationsJob(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)} @@ -23576,6 +23455,9 @@ func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Re } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23586,14 +23468,14 @@ func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateContext struct { +type awsAwsjson11_deserializeOpStopLabelingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateContext) ID() string { +func (*awsAwsjson11_deserializeOpStopLabelingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateContext) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopLabelingJob) 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) @@ -23607,43 +23489,21 @@ func (m *awsAwsjson11_deserializeOpUpdateContext) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateContext(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopLabelingJob(response, &metadata) } - output := &UpdateContextOutput{} + output := &StopLabelingJobOutput{} 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_deserializeOpDocumentUpdateContextOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopLabelingJob(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)} @@ -23684,9 +23544,6 @@ func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -23700,14 +23557,14 @@ func awsAwsjson11_deserializeOpErrorUpdateContext(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateDeviceFleet struct { +type awsAwsjson11_deserializeOpStopMonitoringSchedule struct { } -func (*awsAwsjson11_deserializeOpUpdateDeviceFleet) ID() string { +func (*awsAwsjson11_deserializeOpStopMonitoringSchedule) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopMonitoringSchedule) 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) @@ -23721,9 +23578,9 @@ func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(response, &metadata) } - output := &UpdateDeviceFleetOutput{} + output := &StopMonitoringScheduleOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -23735,7 +23592,7 @@ func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopMonitoringSchedule(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)} @@ -23776,8 +23633,8 @@ func awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response *smithyhttp.Respo } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -23789,14 +23646,14 @@ func awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpUpdateDevices struct { +type awsAwsjson11_deserializeOpStopNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpUpdateDevices) ID() string { +func (*awsAwsjson11_deserializeOpStopNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateDevices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopNotebookInstance) 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) @@ -23810,9 +23667,9 @@ func (m *awsAwsjson11_deserializeOpUpdateDevices) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDevices(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopNotebookInstance(response, &metadata) } - output := &UpdateDevicesOutput{} + output := &StopNotebookInstanceOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -23824,7 +23681,7 @@ func (m *awsAwsjson11_deserializeOpUpdateDevices) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateDevices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopNotebookInstance(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)} @@ -23875,14 +23732,14 @@ func awsAwsjson11_deserializeOpErrorUpdateDevices(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateDomain struct { +type awsAwsjson11_deserializeOpStopPipelineExecution struct { } -func (*awsAwsjson11_deserializeOpUpdateDomain) ID() string { +func (*awsAwsjson11_deserializeOpStopPipelineExecution) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopPipelineExecution) 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) @@ -23896,9 +23753,9 @@ func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDomain(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopPipelineExecution(response, &metadata) } - output := &UpdateDomainOutput{} + output := &StopPipelineExecutionOutput{} out.Result = output var buff [1024]byte @@ -23918,7 +23775,7 @@ func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateDomainOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentStopPipelineExecutionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23932,7 +23789,7 @@ func (m *awsAwsjson11_deserializeOpUpdateDomain) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopPipelineExecution(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)} @@ -23973,12 +23830,6 @@ func awsAwsjson11_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) - - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -23992,14 +23843,14 @@ func awsAwsjson11_deserializeOpErrorUpdateDomain(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateEndpoint struct { +type awsAwsjson11_deserializeOpStopProcessingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateEndpoint) ID() string { +func (*awsAwsjson11_deserializeOpStopProcessingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopProcessingJob) 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) @@ -24013,43 +23864,21 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpoint) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpoint(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopProcessingJob(response, &metadata) } - output := &UpdateEndpointOutput{} + output := &StopProcessingJobOutput{} 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_deserializeOpDocumentUpdateEndpointOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopProcessingJob(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)} @@ -24090,8 +23919,8 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -24103,14 +23932,14 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpoint(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities struct { +type awsAwsjson11_deserializeOpStopTrainingJob struct { } -func (*awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) ID() string { +func (*awsAwsjson11_deserializeOpStopTrainingJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopTrainingJob) 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) @@ -24124,43 +23953,21 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopTrainingJob(response, &metadata) } - output := &UpdateEndpointWeightsAndCapacitiesOutput{} + output := &StopTrainingJobOutput{} 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_deserializeOpDocumentUpdateEndpointWeightsAndCapacitiesOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopTrainingJob(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)} @@ -24201,8 +24008,8 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -24214,14 +24021,14 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response } } -type awsAwsjson11_deserializeOpUpdateExperiment struct { +type awsAwsjson11_deserializeOpStopTransformJob struct { } -func (*awsAwsjson11_deserializeOpUpdateExperiment) ID() string { +func (*awsAwsjson11_deserializeOpStopTransformJob) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpStopTransformJob) 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) @@ -24235,43 +24042,21 @@ func (m *awsAwsjson11_deserializeOpUpdateExperiment) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateExperiment(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorStopTransformJob(response, &metadata) } - output := &UpdateExperimentOutput{} + output := &StopTransformJobOutput{} 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_deserializeOpDocumentUpdateExperimentOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorStopTransformJob(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)} @@ -24312,9 +24097,6 @@ func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -24328,14 +24110,14 @@ func awsAwsjson11_deserializeOpErrorUpdateExperiment(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateImage struct { +type awsAwsjson11_deserializeOpUpdateAction struct { } -func (*awsAwsjson11_deserializeOpUpdateImage) ID() string { +func (*awsAwsjson11_deserializeOpUpdateAction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateAction) 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) @@ -24349,9 +24131,9 @@ func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateImage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAction(response, &metadata) } - output := &UpdateImageOutput{} + output := &UpdateActionOutput{} out.Result = output var buff [1024]byte @@ -24371,7 +24153,7 @@ func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateImageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateActionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24385,7 +24167,7 @@ func (m *awsAwsjson11_deserializeOpUpdateImage) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateAction(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)} @@ -24426,8 +24208,8 @@ func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, m } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -24442,14 +24224,14 @@ func awsAwsjson11_deserializeOpErrorUpdateImage(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateModelPackage struct { +type awsAwsjson11_deserializeOpUpdateAppImageConfig struct { } -func (*awsAwsjson11_deserializeOpUpdateModelPackage) ID() string { +func (*awsAwsjson11_deserializeOpUpdateAppImageConfig) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateAppImageConfig) 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) @@ -24463,9 +24245,9 @@ func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelPackage(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(response, &metadata) } - output := &UpdateModelPackageOutput{} + output := &UpdateAppImageConfigOutput{} out.Result = output var buff [1024]byte @@ -24485,7 +24267,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateModelPackageOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateAppImageConfigOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24499,7 +24281,7 @@ func (m *awsAwsjson11_deserializeOpUpdateModelPackage) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateAppImageConfig(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)} @@ -24540,6 +24322,9 @@ func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Resp } switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24550,14 +24335,14 @@ func awsAwsjson11_deserializeOpErrorUpdateModelPackage(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpUpdateMonitoringSchedule struct { +type awsAwsjson11_deserializeOpUpdateArtifact struct { } -func (*awsAwsjson11_deserializeOpUpdateMonitoringSchedule) ID() string { +func (*awsAwsjson11_deserializeOpUpdateArtifact) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateArtifact) 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) @@ -24571,9 +24356,9 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateArtifact(response, &metadata) } - output := &UpdateMonitoringScheduleOutput{} + output := &UpdateArtifactOutput{} out.Result = output var buff [1024]byte @@ -24593,7 +24378,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateMonitoringScheduleOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateArtifactOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24607,7 +24392,7 @@ func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateArtifact(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)} @@ -24648,8 +24433,8 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhtt } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -24664,14 +24449,14 @@ func awsAwsjson11_deserializeOpErrorUpdateMonitoringSchedule(response *smithyhtt } } -type awsAwsjson11_deserializeOpUpdateNotebookInstance struct { +type awsAwsjson11_deserializeOpUpdateCodeRepository struct { } -func (*awsAwsjson11_deserializeOpUpdateNotebookInstance) ID() string { +func (*awsAwsjson11_deserializeOpUpdateCodeRepository) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateCodeRepository) 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) @@ -24685,9 +24470,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCodeRepository(response, &metadata) } - output := &UpdateNotebookInstanceOutput{} + output := &UpdateCodeRepositoryOutput{} out.Result = output var buff [1024]byte @@ -24707,7 +24492,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateCodeRepositoryOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24721,7 +24506,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateCodeRepository(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)} @@ -24762,9 +24547,6 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp. } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24775,14 +24557,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response *smithyhttp. } } -type awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig struct { +type awsAwsjson11_deserializeOpUpdateContext struct { } -func (*awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) ID() string { +func (*awsAwsjson11_deserializeOpUpdateContext) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateContext) 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) @@ -24796,9 +24578,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateContext(response, &metadata) } - output := &UpdateNotebookInstanceLifecycleConfigOutput{} + output := &UpdateContextOutput{} out.Result = output var buff [1024]byte @@ -24818,7 +24600,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceLifecycleConfigOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateContextOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24832,7 +24614,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) Handle return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateContext(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)} @@ -24873,8 +24655,11 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(respon } switch { - case strings.EqualFold("ResourceLimitExceeded", errorCode): - return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -24886,14 +24671,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(respon } } -type awsAwsjson11_deserializeOpUpdatePipeline struct { +type awsAwsjson11_deserializeOpUpdateDeviceFleet struct { } -func (*awsAwsjson11_deserializeOpUpdatePipeline) ID() string { +func (*awsAwsjson11_deserializeOpUpdateDeviceFleet) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateDeviceFleet) 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) @@ -24907,43 +24692,21 @@ func (m *awsAwsjson11_deserializeOpUpdatePipeline) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipeline(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(response, &metadata) } - output := &UpdatePipelineOutput{} + output := &UpdateDeviceFleetOutput{} 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_deserializeOpDocumentUpdatePipelineOutput(&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(), + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateDeviceFleet(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)} @@ -24984,8 +24747,8 @@ func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -24997,14 +24760,14 @@ func awsAwsjson11_deserializeOpErrorUpdatePipeline(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdatePipelineExecution struct { +type awsAwsjson11_deserializeOpUpdateDevices struct { } -func (*awsAwsjson11_deserializeOpUpdatePipelineExecution) ID() string { +func (*awsAwsjson11_deserializeOpUpdateDevices) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateDevices) 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) @@ -25018,9 +24781,95 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateDevices(response, &metadata) } - output := &UpdatePipelineExecutionOutput{} + output := &UpdateDevicesOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateDevices(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateDomain struct { +} + +func (*awsAwsjson11_deserializeOpUpdateDomain) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateDomain) 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_deserializeOpErrorUpdateDomain(response, &metadata) + } + output := &UpdateDomainOutput{} out.Result = output var buff [1024]byte @@ -25040,7 +24889,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdatePipelineExecutionOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateDomainOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25054,7 +24903,7 @@ func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateDomain(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)} @@ -25095,6 +24944,12 @@ func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp } switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -25108,14 +24963,14 @@ func awsAwsjson11_deserializeOpErrorUpdatePipelineExecution(response *smithyhttp } } -type awsAwsjson11_deserializeOpUpdateProject struct { +type awsAwsjson11_deserializeOpUpdateEndpoint struct { } -func (*awsAwsjson11_deserializeOpUpdateProject) ID() string { +func (*awsAwsjson11_deserializeOpUpdateEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateEndpoint) 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) @@ -25129,9 +24984,9 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateProject(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpoint(response, &metadata) } - output := &UpdateProjectOutput{} + output := &UpdateEndpointOutput{} out.Result = output var buff [1024]byte @@ -25151,7 +25006,7 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateProjectOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateEndpointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25165,7 +25020,7 @@ func (m *awsAwsjson11_deserializeOpUpdateProject) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateEndpoint(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)} @@ -25206,6 +25061,9 @@ func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, } switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -25216,14 +25074,14 @@ func awsAwsjson11_deserializeOpErrorUpdateProject(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateTrainingJob struct { +type awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities struct { } -func (*awsAwsjson11_deserializeOpUpdateTrainingJob) ID() string { +func (*awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateEndpointWeightsAndCapacities) 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) @@ -25237,9 +25095,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(response, &metadata) } - output := &UpdateTrainingJobOutput{} + output := &UpdateEndpointWeightsAndCapacitiesOutput{} out.Result = output var buff [1024]byte @@ -25259,7 +25117,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrainingJobOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateEndpointWeightsAndCapacitiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25273,7 +25131,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateEndpointWeightsAndCapacities(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)} @@ -25314,8 +25172,8 @@ func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Respo } switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -25327,14 +25185,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrainingJob(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpUpdateTrial struct { +type awsAwsjson11_deserializeOpUpdateExperiment struct { } -func (*awsAwsjson11_deserializeOpUpdateTrial) ID() string { +func (*awsAwsjson11_deserializeOpUpdateExperiment) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateExperiment) 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) @@ -25348,9 +25206,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrial(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateExperiment(response, &metadata) } - output := &UpdateTrialOutput{} + output := &UpdateExperimentOutput{} out.Result = output var buff [1024]byte @@ -25370,7 +25228,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrialOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateExperimentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25384,7 +25242,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrial) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateExperiment(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)} @@ -25441,14 +25299,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrial(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUpdateTrialComponent struct { +type awsAwsjson11_deserializeOpUpdateImage struct { } -func (*awsAwsjson11_deserializeOpUpdateTrialComponent) ID() string { +func (*awsAwsjson11_deserializeOpUpdateImage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateImage) 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) @@ -25462,9 +25320,9 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateImage(response, &metadata) } - output := &UpdateTrialComponentOutput{} + output := &UpdateImageOutput{} out.Result = output var buff [1024]byte @@ -25484,7 +25342,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateTrialComponentOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateImageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25498,7 +25356,7 @@ func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateImage(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)} @@ -25539,8 +25397,8 @@ func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Re } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) case strings.EqualFold("ResourceNotFound", errorCode): return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) @@ -25555,14 +25413,14 @@ func awsAwsjson11_deserializeOpErrorUpdateTrialComponent(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateUserProfile struct { +type awsAwsjson11_deserializeOpUpdateModelPackage struct { } -func (*awsAwsjson11_deserializeOpUpdateUserProfile) ID() string { +func (*awsAwsjson11_deserializeOpUpdateModelPackage) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateModelPackage) 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) @@ -25576,9 +25434,9 @@ func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateUserProfile(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateModelPackage(response, &metadata) } - output := &UpdateUserProfileOutput{} + output := &UpdateModelPackageOutput{} out.Result = output var buff [1024]byte @@ -25598,7 +25456,7 @@ func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateUserProfileOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateModelPackageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25612,7 +25470,7 @@ func (m *awsAwsjson11_deserializeOpUpdateUserProfile) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateUserProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateModelPackage(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)} @@ -25653,9 +25511,114 @@ func awsAwsjson11_deserializeOpErrorUpdateUserProfile(response *smithyhttp.Respo } switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateMonitoringSchedule struct { +} + +func (*awsAwsjson11_deserializeOpUpdateMonitoringSchedule) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateMonitoringSchedule) 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_deserializeOpErrorUpdateMonitoringSchedule(response, &metadata) + } + output := &UpdateMonitoringScheduleOutput{} + 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_deserializeOpDocumentUpdateMonitoringScheduleOutput(&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_deserializeOpErrorUpdateMonitoringSchedule(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { case strings.EqualFold("ResourceLimitExceeded", errorCode): return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) @@ -25672,14 +25635,14 @@ func awsAwsjson11_deserializeOpErrorUpdateUserProfile(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpUpdateWorkforce struct { +type awsAwsjson11_deserializeOpUpdateNotebookInstance struct { } -func (*awsAwsjson11_deserializeOpUpdateWorkforce) ID() string { +func (*awsAwsjson11_deserializeOpUpdateNotebookInstance) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateWorkforce) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateNotebookInstance) 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) @@ -25693,9 +25656,9 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkforce) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateWorkforce(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(response, &metadata) } - output := &UpdateWorkforceOutput{} + output := &UpdateNotebookInstanceOutput{} out.Result = output var buff [1024]byte @@ -25715,7 +25678,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkforce) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateWorkforceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateNotebookInstanceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25729,7 +25692,1015 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkforce) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateWorkforce(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateNotebookInstance(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig struct { +} + +func (*awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateNotebookInstanceLifecycleConfig) 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_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(response, &metadata) + } + output := &UpdateNotebookInstanceLifecycleConfigOutput{} + 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_deserializeOpDocumentUpdateNotebookInstanceLifecycleConfigOutput(&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_deserializeOpErrorUpdateNotebookInstanceLifecycleConfig(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdatePipeline struct { +} + +func (*awsAwsjson11_deserializeOpUpdatePipeline) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdatePipeline) 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_deserializeOpErrorUpdatePipeline(response, &metadata) + } + output := &UpdatePipelineOutput{} + 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_deserializeOpDocumentUpdatePipelineOutput(&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_deserializeOpErrorUpdatePipeline(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdatePipelineExecution struct { +} + +func (*awsAwsjson11_deserializeOpUpdatePipelineExecution) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdatePipelineExecution) 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_deserializeOpErrorUpdatePipelineExecution(response, &metadata) + } + output := &UpdatePipelineExecutionOutput{} + 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_deserializeOpDocumentUpdatePipelineExecutionOutput(&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_deserializeOpErrorUpdatePipelineExecution(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateProject struct { +} + +func (*awsAwsjson11_deserializeOpUpdateProject) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateProject) 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_deserializeOpErrorUpdateProject(response, &metadata) + } + output := &UpdateProjectOutput{} + 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_deserializeOpDocumentUpdateProjectOutput(&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_deserializeOpErrorUpdateProject(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrainingJob struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrainingJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrainingJob) 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_deserializeOpErrorUpdateTrainingJob(response, &metadata) + } + output := &UpdateTrainingJobOutput{} + 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_deserializeOpDocumentUpdateTrainingJobOutput(&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_deserializeOpErrorUpdateTrainingJob(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrial struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrial) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrial) 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_deserializeOpErrorUpdateTrial(response, &metadata) + } + output := &UpdateTrialOutput{} + 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_deserializeOpDocumentUpdateTrialOutput(&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_deserializeOpErrorUpdateTrial(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateTrialComponent struct { +} + +func (*awsAwsjson11_deserializeOpUpdateTrialComponent) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateTrialComponent) 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_deserializeOpErrorUpdateTrialComponent(response, &metadata) + } + output := &UpdateTrialComponentOutput{} + 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_deserializeOpDocumentUpdateTrialComponentOutput(&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_deserializeOpErrorUpdateTrialComponent(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateUserProfile struct { +} + +func (*awsAwsjson11_deserializeOpUpdateUserProfile) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateUserProfile) 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_deserializeOpErrorUpdateUserProfile(response, &metadata) + } + output := &UpdateUserProfileOutput{} + 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_deserializeOpDocumentUpdateUserProfileOutput(&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_deserializeOpErrorUpdateUserProfile(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ResourceInUse", errorCode): + return awsAwsjson11_deserializeErrorResourceInUse(response, errorBody) + + case strings.EqualFold("ResourceLimitExceeded", errorCode): + return awsAwsjson11_deserializeErrorResourceLimitExceeded(response, errorBody) + + case strings.EqualFold("ResourceNotFound", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFound(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateWorkforce struct { +} + +func (*awsAwsjson11_deserializeOpUpdateWorkforce) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateWorkforce) 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_deserializeOpErrorUpdateWorkforce(response, &metadata) + } + output := &UpdateWorkforceOutput{} + 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_deserializeOpDocumentUpdateWorkforceOutput(&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_deserializeOpErrorUpdateWorkforce(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)} @@ -26263,6 +27234,114 @@ func awsAwsjson11_deserializeDocumentAdditionalCodeRepositoryNamesOrUrls(v *[]st return nil } +func awsAwsjson11_deserializeDocumentAdditionalInferenceSpecificationDefinition(v **types.AdditionalInferenceSpecificationDefinition, 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.AdditionalInferenceSpecificationDefinition + if *v == nil { + sv = &types.AdditionalInferenceSpecificationDefinition{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Containers": + if err := awsAwsjson11_deserializeDocumentModelPackageContainerDefinitionList(&sv.Containers, value); err != nil { + return err + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EntityName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "SupportedContentTypes": + if err := awsAwsjson11_deserializeDocumentContentTypes(&sv.SupportedContentTypes, value); err != nil { + return err + } + + case "SupportedRealtimeInferenceInstanceTypes": + if err := awsAwsjson11_deserializeDocumentRealtimeInferenceInstanceTypes(&sv.SupportedRealtimeInferenceInstanceTypes, value); err != nil { + return err + } + + case "SupportedResponseMIMETypes": + if err := awsAwsjson11_deserializeDocumentResponseMIMETypes(&sv.SupportedResponseMIMETypes, value); err != nil { + return err + } + + case "SupportedTransformInstanceTypes": + if err := awsAwsjson11_deserializeDocumentTransformInstanceTypes(&sv.SupportedTransformInstanceTypes, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentAdditionalInferenceSpecifications(v *[]types.AdditionalInferenceSpecificationDefinition, 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.AdditionalInferenceSpecificationDefinition + if *v == nil { + cv = []types.AdditionalInferenceSpecificationDefinition{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AdditionalInferenceSpecificationDefinition + destAddr := &col + if err := awsAwsjson11_deserializeDocumentAdditionalInferenceSpecificationDefinition(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentAgentVersion(v **types.AgentVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -29224,6 +30303,16 @@ func awsAwsjson11_deserializeDocumentBias(v **types.Bias, value interface{}) err for key, value := range shape { switch key { + case "PostTrainingReport": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PostTrainingReport, value); err != nil { + return err + } + + case "PreTrainingReport": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PreTrainingReport, value); err != nil { + return err + } + case "Report": if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Report, value); err != nil { return err @@ -29677,6 +30766,51 @@ func awsAwsjson11_deserializeDocumentCaptureOptionList(v *[]types.CaptureOption, return nil } +func awsAwsjson11_deserializeDocumentCategoricalParameter(v **types.CategoricalParameter, 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.CategoricalParameter + if *v == nil { + sv = &types.CategoricalParameter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String64 to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Value": + if err := awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(&sv.Value, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentCategoricalParameterRange(v **types.CategoricalParameterRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -29792,6 +30926,76 @@ func awsAwsjson11_deserializeDocumentCategoricalParameterRangeSpecification(v ** return nil } +func awsAwsjson11_deserializeDocumentCategoricalParameterRangeValues(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 String128 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCategoricalParameters(v *[]types.CategoricalParameter, 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.CategoricalParameter + if *v == nil { + cv = []types.CategoricalParameter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CategoricalParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentCategoricalParameter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentChannel(v **types.Channel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -30070,6 +31274,109 @@ func awsAwsjson11_deserializeDocumentCidrs(v *[]string, value interface{}) error return nil } +func awsAwsjson11_deserializeDocumentClarifyCheckStepMetadata(v **types.ClarifyCheckStepMetadata, 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.ClarifyCheckStepMetadata + if *v == nil { + sv = &types.ClarifyCheckStepMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BaselineUsedForDriftCheckConstraints": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.BaselineUsedForDriftCheckConstraints = ptr.String(jtv) + } + + case "CalculatedBaselineConstraints": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.CalculatedBaselineConstraints = ptr.String(jtv) + } + + case "CheckJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.CheckJobArn = ptr.String(jtv) + } + + case "CheckType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.CheckType = ptr.String(jtv) + } + + case "ModelPackageGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.ModelPackageGroupName = ptr.String(jtv) + } + + case "RegisterNewBaseline": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.RegisterNewBaseline = jtv + } + + case "SkipCheck": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.SkipCheck = jtv + } + + case "ViolationReport": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.ViolationReport = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentCodeRepositorySummary(v **types.CodeRepositorySummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -30806,6 +32113,15 @@ func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefi return err } + case "InferenceSpecificationName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSpecificationName to be of type string, got %T instead", value) + } + sv.InferenceSpecificationName = ptr.String(jtv) + } + case "Mode": if value != nil { jtv, ok := value.(string) @@ -33030,6 +34346,284 @@ func awsAwsjson11_deserializeDocumentDomainSettings(v **types.DomainSettings, va return nil } +func awsAwsjson11_deserializeDocumentDriftCheckBaselines(v **types.DriftCheckBaselines, 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.DriftCheckBaselines + if *v == nil { + sv = &types.DriftCheckBaselines{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Bias": + if err := awsAwsjson11_deserializeDocumentDriftCheckBias(&sv.Bias, value); err != nil { + return err + } + + case "Explainability": + if err := awsAwsjson11_deserializeDocumentDriftCheckExplainability(&sv.Explainability, value); err != nil { + return err + } + + case "ModelDataQuality": + if err := awsAwsjson11_deserializeDocumentDriftCheckModelDataQuality(&sv.ModelDataQuality, value); err != nil { + return err + } + + case "ModelQuality": + if err := awsAwsjson11_deserializeDocumentDriftCheckModelQuality(&sv.ModelQuality, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDriftCheckBias(v **types.DriftCheckBias, 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.DriftCheckBias + if *v == nil { + sv = &types.DriftCheckBias{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConfigFile": + if err := awsAwsjson11_deserializeDocumentFileSource(&sv.ConfigFile, value); err != nil { + return err + } + + case "PostTrainingConstraints": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PostTrainingConstraints, value); err != nil { + return err + } + + case "PreTrainingConstraints": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.PreTrainingConstraints, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDriftCheckExplainability(v **types.DriftCheckExplainability, 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.DriftCheckExplainability + if *v == nil { + sv = &types.DriftCheckExplainability{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConfigFile": + if err := awsAwsjson11_deserializeDocumentFileSource(&sv.ConfigFile, value); err != nil { + return err + } + + case "Constraints": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Constraints, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDriftCheckModelDataQuality(v **types.DriftCheckModelDataQuality, 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.DriftCheckModelDataQuality + if *v == nil { + sv = &types.DriftCheckModelDataQuality{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Constraints": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Constraints, value); err != nil { + return err + } + + case "Statistics": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Statistics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDriftCheckModelQuality(v **types.DriftCheckModelQuality, 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.DriftCheckModelQuality + if *v == nil { + sv = &types.DriftCheckModelQuality{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Constraints": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Constraints, value); err != nil { + return err + } + + case "Statistics": + if err := awsAwsjson11_deserializeDocumentMetricsSource(&sv.Statistics, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentEdge(v **types.Edge, 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.Edge + if *v == nil { + sv = &types.Edge{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssociationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationEdgeType to be of type string, got %T instead", value) + } + sv.AssociationType = types.AssociationEdgeType(jtv) + } + + case "DestinationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationEntityArn to be of type string, got %T instead", value) + } + sv.DestinationArn = ptr.String(jtv) + } + + case "SourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationEntityArn to be of type string, got %T instead", value) + } + sv.SourceArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEdgeModel(v **types.EdgeModel, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -33648,6 +35242,40 @@ func awsAwsjson11_deserializeDocumentEdgePresetDeploymentOutput(v **types.EdgePr return nil } +func awsAwsjson11_deserializeDocumentEdges(v *[]types.Edge, 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.Edge + if *v == nil { + cv = []types.Edge{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Edge + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEdge(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -34021,6 +35649,165 @@ func awsAwsjson11_deserializeDocumentEndpointInput(v **types.EndpointInput, valu return nil } +func awsAwsjson11_deserializeDocumentEndpointInputConfiguration(v **types.EndpointInputConfiguration, 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.EndpointInputConfiguration + if *v == nil { + sv = &types.EndpointInputConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EnvironmentParameterRanges": + if err := awsAwsjson11_deserializeDocumentEnvironmentParameterRanges(&sv.EnvironmentParameterRanges, value); err != nil { + return err + } + + case "InferenceSpecificationName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSpecificationName to be of type string, got %T instead", value) + } + sv.InferenceSpecificationName = ptr.String(jtv) + } + + case "InstanceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ProductionVariantInstanceType to be of type string, got %T instead", value) + } + sv.InstanceType = types.ProductionVariantInstanceType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentEndpointInputConfigurations(v *[]types.EndpointInputConfiguration, 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.EndpointInputConfiguration + if *v == nil { + cv = []types.EndpointInputConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.EndpointInputConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEndpointInputConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentEndpointOutputConfiguration(v **types.EndpointOutputConfiguration, 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.EndpointOutputConfiguration + if *v == nil { + sv = &types.EndpointOutputConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EndpointName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.EndpointName = ptr.String(jtv) + } + + case "InitialInstanceCount": + 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.InitialInstanceCount = int32(i64) + } + + case "InstanceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ProductionVariantInstanceType to be of type string, got %T instead", value) + } + sv.InstanceType = types.ProductionVariantInstanceType(jtv) + } + + case "VariantName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.VariantName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEndpointSummary(v **types.EndpointSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -34181,6 +35968,134 @@ func awsAwsjson11_deserializeDocumentEnvironmentMap(v *map[string]string, value return nil } +func awsAwsjson11_deserializeDocumentEnvironmentParameter(v **types.EnvironmentParameter, 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.EnvironmentParameter + if *v == nil { + sv = &types.EnvironmentParameter{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Key": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Key = ptr.String(jtv) + } + + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + case "ValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ValueType = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentEnvironmentParameterRanges(v **types.EnvironmentParameterRanges, 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.EnvironmentParameterRanges + if *v == nil { + sv = &types.EnvironmentParameterRanges{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CategoricalParameterRanges": + if err := awsAwsjson11_deserializeDocumentCategoricalParameters(&sv.CategoricalParameterRanges, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentEnvironmentParameters(v *[]types.EnvironmentParameter, 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.EnvironmentParameter + if *v == nil { + cv = []types.EnvironmentParameter{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.EnvironmentParameter + destAddr := &col + if err := awsAwsjson11_deserializeDocumentEnvironmentParameter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentExperiment(v **types.Experiment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -34912,6 +36827,64 @@ func awsAwsjson11_deserializeDocumentFeatureGroupSummary(v **types.FeatureGroupS return nil } +func awsAwsjson11_deserializeDocumentFileSource(v **types.FileSource, 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.FileSource + if *v == nil { + sv = &types.FileSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContentDigest": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentDigest to be of type string, got %T instead", value) + } + sv.ContentDigest = ptr.String(jtv) + } + + case "ContentType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContentType to be of type string, got %T instead", value) + } + sv.ContentType = ptr.String(jtv) + } + + case "S3Uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) + } + sv.S3Uri = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -37364,6 +39337,262 @@ func awsAwsjson11_deserializeDocumentInferenceExecutionConfig(v **types.Inferenc return nil } +func awsAwsjson11_deserializeDocumentInferenceRecommendation(v **types.InferenceRecommendation, 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.InferenceRecommendation + if *v == nil { + sv = &types.InferenceRecommendation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EndpointConfiguration": + if err := awsAwsjson11_deserializeDocumentEndpointOutputConfiguration(&sv.EndpointConfiguration, value); err != nil { + return err + } + + case "Metrics": + if err := awsAwsjson11_deserializeDocumentRecommendationMetrics(&sv.Metrics, value); err != nil { + return err + } + + case "ModelConfiguration": + if err := awsAwsjson11_deserializeDocumentModelConfiguration(&sv.ModelConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentInferenceRecommendations(v *[]types.InferenceRecommendation, 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.InferenceRecommendation + if *v == nil { + cv = []types.InferenceRecommendation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.InferenceRecommendation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInferenceRecommendation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentInferenceRecommendationsJob(v **types.InferenceRecommendationsJob, 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.InferenceRecommendationsJob + if *v == nil { + sv = &types.InferenceRecommendationsJob{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CompletionTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CompletionTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected CreationTime to be a JSON Number, got %T instead", value) + + } + } + + case "FailureReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + } + sv.FailureReason = ptr.String(jtv) + } + + case "JobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobArn to be of type string, got %T instead", value) + } + sv.JobArn = ptr.String(jtv) + } + + case "JobDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobDescription to be of type string, got %T instead", value) + } + sv.JobDescription = ptr.String(jtv) + } + + case "JobName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobName to be of type string, got %T instead", value) + } + sv.JobName = ptr.String(jtv) + } + + case "JobType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobType to be of type string, got %T instead", value) + } + sv.JobType = types.RecommendationJobType(jtv) + } + + case "LastModifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected LastModifiedTime to be a JSON Number, got %T instead", value) + + } + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.RecommendationJobStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentInferenceRecommendationsJobs(v *[]types.InferenceRecommendationsJob, 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.InferenceRecommendationsJob + if *v == nil { + cv = []types.InferenceRecommendationsJob{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.InferenceRecommendationsJob + destAddr := &col + if err := awsAwsjson11_deserializeDocumentInferenceRecommendationsJob(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentInferenceSpecification(v **types.InferenceSpecification, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -38994,6 +41223,130 @@ func awsAwsjson11_deserializeDocumentLineageEntityParameters(v *map[string]strin return nil } +func awsAwsjson11_deserializeDocumentLineageGroupSummaries(v *[]types.LineageGroupSummary, 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.LineageGroupSummary + if *v == nil { + cv = []types.LineageGroupSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.LineageGroupSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentLineageGroupSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentLineageGroupSummary(v **types.LineageGroupSummary, 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.LineageGroupSummary + if *v == nil { + sv = &types.LineageGroupSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "LastModifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + + case "LineageGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) + } + sv.LineageGroupName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentMemberDefinition(v **types.MemberDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -39721,6 +42074,51 @@ func awsAwsjson11_deserializeDocumentModelClientConfig(v **types.ModelClientConf return nil } +func awsAwsjson11_deserializeDocumentModelConfiguration(v **types.ModelConfiguration, 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.ModelConfiguration + if *v == nil { + sv = &types.ModelConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EnvironmentParameters": + if err := awsAwsjson11_deserializeDocumentEnvironmentParameters(&sv.EnvironmentParameters, value); err != nil { + return err + } + + case "InferenceSpecificationName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferenceSpecificationName to be of type string, got %T instead", value) + } + sv.InferenceSpecificationName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentModelDataQuality(v **types.ModelDataQuality, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -40026,6 +42424,243 @@ func awsAwsjson11_deserializeDocumentModelExplainabilityJobInput(v **types.Model return nil } +func awsAwsjson11_deserializeDocumentModelInput(v **types.ModelInput, 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.ModelInput + if *v == nil { + sv = &types.ModelInput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataInputConfig": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataInputConfig to be of type string, got %T instead", value) + } + sv.DataInputConfig = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentModelLatencyThreshold(v **types.ModelLatencyThreshold, 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.ModelLatencyThreshold + if *v == nil { + sv = &types.ModelLatencyThreshold{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Percentile": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String64 to be of type string, got %T instead", value) + } + sv.Percentile = ptr.String(jtv) + } + + case "ValueInMilliseconds": + 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.ValueInMilliseconds = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentModelLatencyThresholds(v *[]types.ModelLatencyThreshold, 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.ModelLatencyThreshold + if *v == nil { + cv = []types.ModelLatencyThreshold{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ModelLatencyThreshold + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelLatencyThreshold(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentModelMetadataSummaries(v *[]types.ModelMetadataSummary, 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.ModelMetadataSummary + if *v == nil { + cv = []types.ModelMetadataSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ModelMetadataSummary + destAddr := &col + if err := awsAwsjson11_deserializeDocumentModelMetadataSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentModelMetadataSummary(v **types.ModelMetadataSummary, 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.ModelMetadataSummary + if *v == nil { + sv = &types.ModelMetadataSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Domain": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Domain = ptr.String(jtv) + } + + case "Framework": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Framework = ptr.String(jtv) + } + + case "FrameworkVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.FrameworkVersion = ptr.String(jtv) + } + + case "Model": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Model = ptr.String(jtv) + } + + case "Task": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Task = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentModelMetrics(v **types.ModelMetrics, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -40099,6 +42734,11 @@ func awsAwsjson11_deserializeDocumentModelPackage(v **types.ModelPackage, value for key, value := range shape { switch key { + case "AdditionalInferenceSpecifications": + if err := awsAwsjson11_deserializeDocumentAdditionalInferenceSpecifications(&sv.AdditionalInferenceSpecifications, value); err != nil { + return err + } + case "ApprovalDescription": if value != nil { jtv, ok := value.(string) @@ -40143,6 +42783,20 @@ func awsAwsjson11_deserializeDocumentModelPackage(v **types.ModelPackage, value return err } + case "Domain": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Domain = ptr.String(jtv) + } + + case "DriftCheckBaselines": + if err := awsAwsjson11_deserializeDocumentDriftCheckBaselines(&sv.DriftCheckBaselines, value); err != nil { + return err + } + case "InferenceSpecification": if err := awsAwsjson11_deserializeDocumentInferenceSpecification(&sv.InferenceSpecification, value); err != nil { return err @@ -40251,6 +42905,15 @@ func awsAwsjson11_deserializeDocumentModelPackage(v **types.ModelPackage, value sv.ModelPackageVersion = ptr.Int32(int32(i64)) } + case "SamplePayloadUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SamplePayloadUrl = ptr.String(jtv) + } + case "SourceAlgorithmSpecification": if err := awsAwsjson11_deserializeDocumentSourceAlgorithmSpecification(&sv.SourceAlgorithmSpecification, value); err != nil { return err @@ -40261,6 +42924,15 @@ func awsAwsjson11_deserializeDocumentModelPackage(v **types.ModelPackage, value return err } + case "Task": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Task = ptr.String(jtv) + } + case "ValidationSpecification": if err := awsAwsjson11_deserializeDocumentModelPackageValidationSpecification(&sv.ValidationSpecification, value); err != nil { return err @@ -40311,6 +42983,24 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M return err } + case "Framework": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Framework = ptr.String(jtv) + } + + case "FrameworkVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FrameworkVersion to be of type string, got %T instead", value) + } + sv.FrameworkVersion = ptr.String(jtv) + } + case "Image": if value != nil { jtv, ok := value.(string) @@ -40338,6 +43028,20 @@ func awsAwsjson11_deserializeDocumentModelPackageContainerDefinition(v **types.M sv.ModelDataUrl = ptr.String(jtv) } + case "ModelInput": + if err := awsAwsjson11_deserializeDocumentModelInput(&sv.ModelInput, value); err != nil { + return err + } + + case "NearestModelName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NearestModelName = ptr.String(jtv) + } + case "ProductId": if value != nil { jtv, ok := value.(string) @@ -44588,6 +47292,11 @@ func awsAwsjson11_deserializeDocumentPendingProductionVariantSummary(v **types.P sv.CurrentInstanceCount = ptr.Int32(int32(i64)) } + case "CurrentServerlessConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(&sv.CurrentServerlessConfig, value); err != nil { + return err + } + case "CurrentWeight": if value != nil { switch jtv := value.(type) { @@ -44640,6 +47349,11 @@ func awsAwsjson11_deserializeDocumentPendingProductionVariantSummary(v **types.P sv.DesiredInstanceCount = ptr.Int32(int32(i64)) } + case "DesiredServerlessConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(&sv.DesiredServerlessConfig, value); err != nil { + return err + } + case "DesiredWeight": if value != nil { switch jtv := value.(type) { @@ -44740,6 +47454,110 @@ func awsAwsjson11_deserializeDocumentPendingProductionVariantSummaryList(v *[]ty return nil } +func awsAwsjson11_deserializeDocumentPhase(v **types.Phase, 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.Phase + if *v == nil { + sv = &types.Phase{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DurationInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TrafficDurationInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DurationInSeconds = ptr.Int32(int32(i64)) + } + + case "InitialNumberOfUsers": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected InitialNumberOfUsers to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.InitialNumberOfUsers = ptr.Int32(int32(i64)) + } + + case "SpawnRate": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SpawnRate to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.SpawnRate = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentPhases(v *[]types.Phase, 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.Phase + if *v == nil { + cv = []types.Phase{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Phase + destAddr := &col + if err := awsAwsjson11_deserializeDocumentPhase(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentPipeline(v **types.Pipeline, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -45186,6 +48004,11 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionStepMetadata(v **types.Pip return err } + case "ClarifyCheck": + if err := awsAwsjson11_deserializeDocumentClarifyCheckStepMetadata(&sv.ClarifyCheck, value); err != nil { + return err + } + case "Condition": if err := awsAwsjson11_deserializeDocumentConditionStepMetadata(&sv.Condition, value); err != nil { return err @@ -45206,6 +48029,11 @@ func awsAwsjson11_deserializeDocumentPipelineExecutionStepMetadata(v **types.Pip return err } + case "QualityCheck": + if err := awsAwsjson11_deserializeDocumentQualityCheckStepMetadata(&sv.QualityCheck, value); err != nil { + return err + } + case "RegisterModel": if err := awsAwsjson11_deserializeDocumentRegisterModelStepMetadata(&sv.RegisterModel, value); err != nil { return err @@ -46684,6 +49512,11 @@ func awsAwsjson11_deserializeDocumentProductionVariant(v **types.ProductionVaria sv.ModelName = ptr.String(jtv) } + case "ServerlessConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(&sv.ServerlessConfig, value); err != nil { + return err + } + case "VariantName": if value != nil { jtv, ok := value.(string) @@ -46785,6 +49618,63 @@ func awsAwsjson11_deserializeDocumentProductionVariantList(v *[]types.Production return nil } +func awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(v **types.ProductionVariantServerlessConfig, 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.ProductionVariantServerlessConfig + if *v == nil { + sv = &types.ProductionVariantServerlessConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaxConcurrency": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ServerlessMaxConcurrency to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxConcurrency = ptr.Int32(int32(i64)) + } + + case "MemorySizeInMB": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ServerlessMemorySizeInMB to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MemorySizeInMB = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentProductionVariantStatus(v **types.ProductionVariantStatus, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -46919,6 +49809,11 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummary(v **types.Producti sv.CurrentInstanceCount = ptr.Int32(int32(i64)) } + case "CurrentServerlessConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(&sv.CurrentServerlessConfig, value); err != nil { + return err + } + case "CurrentWeight": if value != nil { switch jtv := value.(type) { @@ -46971,6 +49866,11 @@ func awsAwsjson11_deserializeDocumentProductionVariantSummary(v **types.Producti sv.DesiredInstanceCount = ptr.Int32(int32(i64)) } + case "DesiredServerlessConfig": + if err := awsAwsjson11_deserializeDocumentProductionVariantServerlessConfig(&sv.DesiredServerlessConfig, value); err != nil { + return err + } + case "DesiredWeight": if value != nil { switch jtv := value.(type) { @@ -47889,6 +50789,127 @@ func awsAwsjson11_deserializeDocumentPublicWorkforceTaskPrice(v **types.PublicWo return nil } +func awsAwsjson11_deserializeDocumentQualityCheckStepMetadata(v **types.QualityCheckStepMetadata, 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.QualityCheckStepMetadata + if *v == nil { + sv = &types.QualityCheckStepMetadata{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BaselineUsedForDriftCheckConstraints": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.BaselineUsedForDriftCheckConstraints = ptr.String(jtv) + } + + case "BaselineUsedForDriftCheckStatistics": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.BaselineUsedForDriftCheckStatistics = ptr.String(jtv) + } + + case "CalculatedBaselineConstraints": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.CalculatedBaselineConstraints = ptr.String(jtv) + } + + case "CalculatedBaselineStatistics": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.CalculatedBaselineStatistics = ptr.String(jtv) + } + + case "CheckJobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.CheckJobArn = ptr.String(jtv) + } + + case "CheckType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.CheckType = ptr.String(jtv) + } + + case "ModelPackageGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + sv.ModelPackageGroupName = ptr.String(jtv) + } + + case "RegisterNewBaseline": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.RegisterNewBaseline = jtv + } + + case "SkipCheck": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.SkipCheck = jtv + } + + case "ViolationReport": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String1024 to be of type string, got %T instead", value) + } + sv.ViolationReport = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentRealtimeInferenceInstanceTypes(v *[]types.ProductionVariantInstanceType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -47925,6 +50946,305 @@ func awsAwsjson11_deserializeDocumentRealtimeInferenceInstanceTypes(v *[]types.P return nil } +func awsAwsjson11_deserializeDocumentRecommendationJobInputConfig(v **types.RecommendationJobInputConfig, 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.RecommendationJobInputConfig + if *v == nil { + sv = &types.RecommendationJobInputConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EndpointConfigurations": + if err := awsAwsjson11_deserializeDocumentEndpointInputConfigurations(&sv.EndpointConfigurations, value); err != nil { + return err + } + + case "JobDurationInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected JobDurationInSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.JobDurationInSeconds = ptr.Int32(int32(i64)) + } + + case "ModelPackageVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelPackageArn to be of type string, got %T instead", value) + } + sv.ModelPackageVersionArn = ptr.String(jtv) + } + + case "ResourceLimit": + if err := awsAwsjson11_deserializeDocumentRecommendationJobResourceLimit(&sv.ResourceLimit, value); err != nil { + return err + } + + case "TrafficPattern": + if err := awsAwsjson11_deserializeDocumentTrafficPattern(&sv.TrafficPattern, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentRecommendationJobResourceLimit(v **types.RecommendationJobResourceLimit, 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.RecommendationJobResourceLimit + if *v == nil { + sv = &types.RecommendationJobResourceLimit{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaxNumberOfTests": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxNumberOfTests to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxNumberOfTests = ptr.Int32(int32(i64)) + } + + case "MaxParallelOfTests": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected MaxParallelOfTests to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxParallelOfTests = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentRecommendationJobStoppingConditions(v **types.RecommendationJobStoppingConditions, 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.RecommendationJobStoppingConditions + if *v == nil { + sv = &types.RecommendationJobStoppingConditions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MaxInvocations": + 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.MaxInvocations = int32(i64) + } + + case "ModelLatencyThresholds": + if err := awsAwsjson11_deserializeDocumentModelLatencyThresholds(&sv.ModelLatencyThresholds, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentRecommendationMetrics(v **types.RecommendationMetrics, 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.RecommendationMetrics + if *v == nil { + sv = &types.RecommendationMetrics{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CostPerHour": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CostPerHour = float32(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.CostPerHour = float32(f64) + + default: + return fmt.Errorf("expected Float to be a JSON Number, got %T instead", value) + + } + } + + case "CostPerInference": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CostPerInference = float32(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.CostPerInference = float32(f64) + + default: + return fmt.Errorf("expected Float to be a JSON Number, got %T instead", value) + + } + } + + case "MaxInvocations": + 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.MaxInvocations = int32(i64) + } + + case "ModelLatency": + 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.ModelLatency = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentRedshiftDatasetDefinition(v **types.RedshiftDatasetDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -49835,7 +53155,294 @@ func awsAwsjson11_deserializeDocumentSubnets(v *[]string, value interface{}) err if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) + return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWorkteam, 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.SubscribedWorkteam + if *v == nil { + sv = &types.SubscribedWorkteam{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ListingId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ListingId = ptr.String(jtv) + } + + case "MarketplaceDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String200 to be of type string, got %T instead", value) + } + sv.MarketplaceDescription = ptr.String(jtv) + } + + case "MarketplaceTitle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String200 to be of type string, got %T instead", value) + } + sv.MarketplaceTitle = ptr.String(jtv) + } + + case "SellerName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SellerName = ptr.String(jtv) + } + + case "WorkteamArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) + } + sv.WorkteamArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSubscribedWorkteams(v *[]types.SubscribedWorkteam, 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.SubscribedWorkteam + if *v == nil { + cv = []types.SubscribedWorkteam{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SubscribedWorkteam + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSubscribedWorkteam(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentTag(v **types.Tag, 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.Tag + if *v == nil { + sv = &types.Tag{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Key": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) + } + sv.Key = ptr.String(jtv) + } + + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, 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.Tag + if *v == nil { + cv = []types.Tag{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Tag + destAddr := &col + if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentTargetPlatform(v **types.TargetPlatform, 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.TargetPlatform + if *v == nil { + sv = &types.TargetPlatform{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Accelerator": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TargetPlatformAccelerator to be of type string, got %T instead", value) + } + sv.Accelerator = types.TargetPlatformAccelerator(jtv) + } + + case "Arch": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TargetPlatformArch to be of type string, got %T instead", value) + } + sv.Arch = types.TargetPlatformArch(jtv) + } + + case "Os": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TargetPlatformOs to be of type string, got %T instead", value) + } + sv.Os = types.TargetPlatformOs(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentTaskKeywords(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 TaskKeyword to be of type string, got %T instead", value) } col = jtv } @@ -49846,117 +53453,7 @@ func awsAwsjson11_deserializeDocumentSubnets(v *[]string, value interface{}) err return nil } -func awsAwsjson11_deserializeDocumentSubscribedWorkteam(v **types.SubscribedWorkteam, 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.SubscribedWorkteam - if *v == nil { - sv = &types.SubscribedWorkteam{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ListingId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ListingId = ptr.String(jtv) - } - - case "MarketplaceDescription": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String200 to be of type string, got %T instead", value) - } - sv.MarketplaceDescription = ptr.String(jtv) - } - - case "MarketplaceTitle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String200 to be of type string, got %T instead", value) - } - sv.MarketplaceTitle = ptr.String(jtv) - } - - case "SellerName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.SellerName = ptr.String(jtv) - } - - case "WorkteamArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WorkteamArn to be of type string, got %T instead", value) - } - sv.WorkteamArn = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentSubscribedWorkteams(v *[]types.SubscribedWorkteam, 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.SubscribedWorkteam - if *v == nil { - cv = []types.SubscribedWorkteam{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SubscribedWorkteam - destAddr := &col - if err := awsAwsjson11_deserializeDocumentSubscribedWorkteam(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error { +func awsAwsjson11_deserializeDocumentTensorBoardAppSettings(v **types.TensorBoardAppSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49969,31 +53466,18 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Tag + var sv *types.TensorBoardAppSettings if *v == nil { - sv = &types.Tag{} + sv = &types.TensorBoardAppSettings{} } else { sv = *v } for key, value := range shape { switch key { - case "Key": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) - } - sv.Key = ptr.String(jtv) - } - - case "Value": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) - } - sv.Value = ptr.String(jtv) + case "DefaultResourceSpec": + if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.DefaultResourceSpec, value); err != nil { + return err } default: @@ -50005,41 +53489,7 @@ func awsAwsjson11_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, 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.Tag - if *v == nil { - cv = []types.Tag{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Tag - destAddr := &col - if err := awsAwsjson11_deserializeDocumentTag(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentTargetPlatform(v **types.TargetPlatform, value interface{}) error { +func awsAwsjson11_deserializeDocumentTensorBoardOutputConfig(v **types.TensorBoardOutputConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50052,40 +53502,31 @@ func awsAwsjson11_deserializeDocumentTargetPlatform(v **types.TargetPlatform, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TargetPlatform + var sv *types.TensorBoardOutputConfig if *v == nil { - sv = &types.TargetPlatform{} + sv = &types.TensorBoardOutputConfig{} } else { sv = *v } for key, value := range shape { switch key { - case "Accelerator": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TargetPlatformAccelerator to be of type string, got %T instead", value) - } - sv.Accelerator = types.TargetPlatformAccelerator(jtv) - } - - case "Arch": + case "LocalPath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TargetPlatformArch to be of type string, got %T instead", value) + return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) } - sv.Arch = types.TargetPlatformArch(jtv) + sv.LocalPath = ptr.String(jtv) } - case "Os": + case "S3OutputPath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TargetPlatformOs to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) } - sv.Os = types.TargetPlatformOs(jtv) + sv.S3OutputPath = ptr.String(jtv) } default: @@ -50097,43 +53538,7 @@ func awsAwsjson11_deserializeDocumentTargetPlatform(v **types.TargetPlatform, va return nil } -func awsAwsjson11_deserializeDocumentTaskKeywords(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 TaskKeyword to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson11_deserializeDocumentTensorBoardAppSettings(v **types.TensorBoardAppSettings, value interface{}) error { +func awsAwsjson11_deserializeDocumentTrafficPattern(v **types.TrafficPattern, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50146,67 +53551,27 @@ func awsAwsjson11_deserializeDocumentTensorBoardAppSettings(v **types.TensorBoar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TensorBoardAppSettings + var sv *types.TrafficPattern if *v == nil { - sv = &types.TensorBoardAppSettings{} + sv = &types.TrafficPattern{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultResourceSpec": - if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.DefaultResourceSpec, value); err != nil { + case "Phases": + if err := awsAwsjson11_deserializeDocumentPhases(&sv.Phases, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson11_deserializeDocumentTensorBoardOutputConfig(v **types.TensorBoardOutputConfig, 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.TensorBoardOutputConfig - if *v == nil { - sv = &types.TensorBoardOutputConfig{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "LocalPath": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DirectoryPath to be of type string, got %T instead", value) - } - sv.LocalPath = ptr.String(jtv) - } - - case "S3OutputPath": + case "TrafficType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Uri to be of type string, got %T instead", value) + return fmt.Errorf("expected TrafficType to be of type string, got %T instead", value) } - sv.S3OutputPath = ptr.String(jtv) + sv.TrafficType = types.TrafficType(jtv) } default: @@ -52165,6 +55530,15 @@ func awsAwsjson11_deserializeDocumentTrialComponent(v **types.TrialComponent, va } } + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + case "MetadataProperties": if err := awsAwsjson11_deserializeDocumentMetadataProperties(&sv.MetadataProperties, value); err != nil { return err @@ -53878,6 +57252,98 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value return nil } +func awsAwsjson11_deserializeDocumentVertex(v **types.Vertex, 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.Vertex + if *v == nil { + sv = &types.Vertex{} + } 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 AssociationEntityArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "LineageType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageType to be of type string, got %T instead", value) + } + sv.LineageType = types.LineageType(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String40 to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentVertices(v *[]types.Vertex, 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.Vertex + if *v == nil { + cv = []types.Vertex{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Vertex + destAddr := &col + if err := awsAwsjson11_deserializeDocumentVertex(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentVpcConfig(v **types.VpcConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -55235,6 +58701,46 @@ func awsAwsjson11_deserializeOpDocumentCreateImageVersionOutput(v **CreateImageV return nil } +func awsAwsjson11_deserializeOpDocumentCreateInferenceRecommendationsJobOutput(v **CreateInferenceRecommendationsJobOutput, 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 *CreateInferenceRecommendationsJobOutput + if *v == nil { + sv = &CreateInferenceRecommendationsJobOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "JobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobArn to be of type string, got %T instead", value) + } + sv.JobArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateLabelingJobOutput(v **CreateLabelingJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -56754,7 +60260,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeActionOutput(v **DescribeActionOu if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) + return fmt.Errorf("expected ExperimentEntityNameOrArn to be of type string, got %T instead", value) } sv.ActionName = ptr.String(jtv) } @@ -56819,6 +60325,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeActionOutput(v **DescribeActionOu } } + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + case "MetadataProperties": if err := awsAwsjson11_deserializeDocumentMetadataProperties(&sv.MetadataProperties, value); err != nil { return err @@ -57241,7 +60756,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeArtifactOutput(v **DescribeArtifa if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) + return fmt.Errorf("expected ExperimentEntityNameOrArn to be of type string, got %T instead", value) } sv.ArtifactName = ptr.String(jtv) } @@ -57297,6 +60812,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeArtifactOutput(v **DescribeArtifa } } + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + case "MetadataProperties": if err := awsAwsjson11_deserializeDocumentMetadataProperties(&sv.MetadataProperties, value); err != nil { return err @@ -57754,6 +61278,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeCompilationJobOutput(v **Describe return err } + case "ModelPackageVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ModelPackageArn to be of type string, got %T instead", value) + } + sv.ModelPackageVersionArn = ptr.String(jtv) + } + case "OutputConfig": if err := awsAwsjson11_deserializeDocumentOutputConfig(&sv.OutputConfig, value); err != nil { return err @@ -57887,6 +61420,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeContextOutput(v **DescribeContext } } + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + case "Properties": if err := awsAwsjson11_deserializeDocumentLineageEntityParameters(&sv.Properties, value); err != nil { return err @@ -59743,6 +63285,163 @@ func awsAwsjson11_deserializeOpDocumentDescribeImageVersionOutput(v **DescribeIm return nil } +func awsAwsjson11_deserializeOpDocumentDescribeInferenceRecommendationsJobOutput(v **DescribeInferenceRecommendationsJobOutput, 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 *DescribeInferenceRecommendationsJobOutput + if *v == nil { + sv = &DescribeInferenceRecommendationsJobOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CompletionTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CompletionTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected CreationTime to be a JSON Number, got %T instead", value) + + } + } + + case "FailureReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FailureReason to be of type string, got %T instead", value) + } + sv.FailureReason = ptr.String(jtv) + } + + case "InferenceRecommendations": + if err := awsAwsjson11_deserializeDocumentInferenceRecommendations(&sv.InferenceRecommendations, value); err != nil { + return err + } + + case "InputConfig": + if err := awsAwsjson11_deserializeDocumentRecommendationJobInputConfig(&sv.InputConfig, value); err != nil { + return err + } + + case "JobArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobArn to be of type string, got %T instead", value) + } + sv.JobArn = ptr.String(jtv) + } + + case "JobDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobDescription to be of type string, got %T instead", value) + } + sv.JobDescription = ptr.String(jtv) + } + + case "JobName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobName to be of type string, got %T instead", value) + } + sv.JobName = ptr.String(jtv) + } + + case "JobType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobType to be of type string, got %T instead", value) + } + sv.JobType = types.RecommendationJobType(jtv) + } + + case "LastModifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected LastModifiedTime to be a JSON Number, got %T instead", value) + + } + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RecommendationJobStatus to be of type string, got %T instead", value) + } + sv.Status = types.RecommendationJobStatus(jtv) + } + + case "StoppingConditions": + if err := awsAwsjson11_deserializeDocumentRecommendationJobStoppingConditions(&sv.StoppingConditions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLabelingJobOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -59918,6 +63617,115 @@ func awsAwsjson11_deserializeOpDocumentDescribeLabelingJobOutput(v **DescribeLab return nil } +func awsAwsjson11_deserializeOpDocumentDescribeLineageGroupOutput(v **DescribeLineageGroupOutput, 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 *DescribeLineageGroupOutput + if *v == nil { + sv = &DescribeLineageGroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CreatedBy": + if err := awsAwsjson11_deserializeDocumentUserContext(&sv.CreatedBy, value); err != nil { + return err + } + + case "CreationTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationTime = 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 ExperimentDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "DisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "LastModifiedBy": + if err := awsAwsjson11_deserializeDocumentUserContext(&sv.LastModifiedBy, value); err != nil { + return err + } + + case "LastModifiedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastModifiedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + + case "LineageGroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExperimentEntityName to be of type string, got %T instead", value) + } + sv.LineageGroupName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDescribeModelBiasJobDefinitionOutput(v **DescribeModelBiasJobDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -60349,6 +64157,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo for key, value := range shape { switch key { + case "AdditionalInferenceSpecifications": + if err := awsAwsjson11_deserializeDocumentAdditionalInferenceSpecifications(&sv.AdditionalInferenceSpecifications, value); err != nil { + return err + } + case "ApprovalDescription": if value != nil { jtv, ok := value.(string) @@ -60393,6 +64206,20 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo return err } + case "Domain": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Domain = ptr.String(jtv) + } + + case "DriftCheckBaselines": + if err := awsAwsjson11_deserializeDocumentDriftCheckBaselines(&sv.DriftCheckBaselines, value); err != nil { + return err + } + case "InferenceSpecification": if err := awsAwsjson11_deserializeDocumentInferenceSpecification(&sv.InferenceSpecification, value); err != nil { return err @@ -60501,11 +64328,29 @@ func awsAwsjson11_deserializeOpDocumentDescribeModelPackageOutput(v **DescribeMo sv.ModelPackageVersion = ptr.Int32(int32(i64)) } + case "SamplePayloadUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SamplePayloadUrl = ptr.String(jtv) + } + case "SourceAlgorithmSpecification": if err := awsAwsjson11_deserializeDocumentSourceAlgorithmSpecification(&sv.SourceAlgorithmSpecification, value); err != nil { return err } + case "Task": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Task = ptr.String(jtv) + } + case "ValidationSpecification": if err := awsAwsjson11_deserializeDocumentModelPackageValidationSpecification(&sv.ValidationSpecification, value); err != nil { return err @@ -62541,6 +66386,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeTrialComponentOutput(v **Describe } } + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + case "MetadataProperties": if err := awsAwsjson11_deserializeDocumentMetadataProperties(&sv.MetadataProperties, value); err != nil { return err @@ -63150,6 +67004,55 @@ func awsAwsjson11_deserializeOpDocumentGetDeviceFleetReportOutput(v **GetDeviceF return nil } +func awsAwsjson11_deserializeOpDocumentGetLineageGroupPolicyOutput(v **GetLineageGroupPolicyOutput, 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 *GetLineageGroupPolicyOutput + if *v == nil { + sv = &GetLineageGroupPolicyOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LineageGroupArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineageGroupArn to be of type string, got %T instead", value) + } + sv.LineageGroupArn = ptr.String(jtv) + } + + case "ResourcePolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourcePolicyString to be of type string, got %T instead", value) + } + sv.ResourcePolicy = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentGetModelPackageGroupPolicyOutput(v **GetModelPackageGroupPolicyOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -63536,7 +67439,142 @@ func awsAwsjson11_deserializeOpDocumentListAssociationsOutput(v **ListAssociatio return nil } -func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOutput, 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 *ListAutoMLJobsOutput + if *v == nil { + sv = &ListAutoMLJobsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AutoMLJobSummaries": + if err := awsAwsjson11_deserializeDocumentAutoMLJobSummaries(&sv.AutoMLJobSummaries, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **ListCandidatesForAutoMLJobOutput, 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 *ListCandidatesForAutoMLJobOutput + if *v == nil { + sv = &ListCandidatesForAutoMLJobOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Candidates": + if err := awsAwsjson11_deserializeDocumentAutoMLCandidates(&sv.Candidates, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRepositoriesOutput, 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 *ListCodeRepositoriesOutput + if *v == nil { + sv = &ListCodeRepositoriesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CodeRepositorySummaryList": + if err := awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(&sv.CodeRepositorySummaryList, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompilationJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63549,17 +67587,17 @@ func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAutoMLJobsOutput + var sv *ListCompilationJobsOutput if *v == nil { - sv = &ListAutoMLJobsOutput{} + sv = &ListCompilationJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AutoMLJobSummaries": - if err := awsAwsjson11_deserializeDocumentAutoMLJobSummaries(&sv.AutoMLJobSummaries, value); err != nil { + case "CompilationJobSummaries": + if err := awsAwsjson11_deserializeDocumentCompilationJobSummaries(&sv.CompilationJobSummaries, value); err != nil { return err } @@ -63581,7 +67619,7 @@ func awsAwsjson11_deserializeOpDocumentListAutoMLJobsOutput(v **ListAutoMLJobsOu return nil } -func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **ListCandidatesForAutoMLJobOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63594,17 +67632,17 @@ func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **List return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCandidatesForAutoMLJobOutput + var sv *ListContextsOutput if *v == nil { - sv = &ListCandidatesForAutoMLJobOutput{} + sv = &ListContextsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Candidates": - if err := awsAwsjson11_deserializeDocumentAutoMLCandidates(&sv.Candidates, value); err != nil { + case "ContextSummaries": + if err := awsAwsjson11_deserializeDocumentContextSummaries(&sv.ContextSummaries, value); err != nil { return err } @@ -63626,7 +67664,7 @@ func awsAwsjson11_deserializeOpDocumentListCandidatesForAutoMLJobOutput(v **List return nil } -func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRepositoriesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **ListDataQualityJobDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63639,17 +67677,17 @@ func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCodeRepositoriesOutput + var sv *ListDataQualityJobDefinitionsOutput if *v == nil { - sv = &ListCodeRepositoriesOutput{} + sv = &ListDataQualityJobDefinitionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CodeRepositorySummaryList": - if err := awsAwsjson11_deserializeDocumentCodeRepositorySummaryList(&sv.CodeRepositorySummaryList, value); err != nil { + case "JobDefinitionSummaries": + if err := awsAwsjson11_deserializeDocumentMonitoringJobDefinitionSummaryList(&sv.JobDefinitionSummaries, value); err != nil { return err } @@ -63671,7 +67709,7 @@ func awsAwsjson11_deserializeOpDocumentListCodeRepositoriesOutput(v **ListCodeRe return nil } -func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompilationJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFleetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63684,17 +67722,17 @@ func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompila return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListCompilationJobsOutput + var sv *ListDeviceFleetsOutput if *v == nil { - sv = &ListCompilationJobsOutput{} + sv = &ListDeviceFleetsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "CompilationJobSummaries": - if err := awsAwsjson11_deserializeDocumentCompilationJobSummaries(&sv.CompilationJobSummaries, value); err != nil { + case "DeviceFleetSummaries": + if err := awsAwsjson11_deserializeDocumentDeviceFleetSummaries(&sv.DeviceFleetSummaries, value); err != nil { return err } @@ -63716,7 +67754,7 @@ func awsAwsjson11_deserializeOpDocumentListCompilationJobsOutput(v **ListCompila return nil } -func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63729,17 +67767,17 @@ func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListContextsOutput + var sv *ListDevicesOutput if *v == nil { - sv = &ListContextsOutput{} + sv = &ListDevicesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ContextSummaries": - if err := awsAwsjson11_deserializeDocumentContextSummaries(&sv.ContextSummaries, value); err != nil { + case "DeviceSummaries": + if err := awsAwsjson11_deserializeDocumentDeviceSummaries(&sv.DeviceSummaries, value); err != nil { return err } @@ -63761,7 +67799,7 @@ func awsAwsjson11_deserializeOpDocumentListContextsOutput(v **ListContextsOutput return nil } -func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **ListDataQualityJobDefinitionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63774,17 +67812,17 @@ func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **L return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDataQualityJobDefinitionsOutput + var sv *ListDomainsOutput if *v == nil { - sv = &ListDataQualityJobDefinitionsOutput{} + sv = &ListDomainsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "JobDefinitionSummaries": - if err := awsAwsjson11_deserializeDocumentMonitoringJobDefinitionSummaryList(&sv.JobDefinitionSummaries, value); err != nil { + case "Domains": + if err := awsAwsjson11_deserializeDocumentDomainList(&sv.Domains, value); err != nil { return err } @@ -63806,7 +67844,7 @@ func awsAwsjson11_deserializeOpDocumentListDataQualityJobDefinitionsOutput(v **L return nil } -func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFleetsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgePackagingJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63819,17 +67857,17 @@ func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFlee return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDeviceFleetsOutput + var sv *ListEdgePackagingJobsOutput if *v == nil { - sv = &ListDeviceFleetsOutput{} + sv = &ListEdgePackagingJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DeviceFleetSummaries": - if err := awsAwsjson11_deserializeDocumentDeviceFleetSummaries(&sv.DeviceFleetSummaries, value); err != nil { + case "EdgePackagingJobSummaries": + if err := awsAwsjson11_deserializeDocumentEdgePackagingJobSummaries(&sv.EdgePackagingJobSummaries, value); err != nil { return err } @@ -63851,7 +67889,7 @@ func awsAwsjson11_deserializeOpDocumentListDeviceFleetsOutput(v **ListDeviceFlee return nil } -func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpointConfigsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63864,17 +67902,17 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDevicesOutput + var sv *ListEndpointConfigsOutput if *v == nil { - sv = &ListDevicesOutput{} + sv = &ListEndpointConfigsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DeviceSummaries": - if err := awsAwsjson11_deserializeDocumentDeviceSummaries(&sv.DeviceSummaries, value); err != nil { + case "EndpointConfigs": + if err := awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(&sv.EndpointConfigs, value); err != nil { return err } @@ -63882,7 +67920,7 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -63896,7 +67934,7 @@ func awsAwsjson11_deserializeOpDocumentListDevicesOutput(v **ListDevicesOutput, return nil } -func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63909,17 +67947,17 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDomainsOutput + var sv *ListEndpointsOutput if *v == nil { - sv = &ListDomainsOutput{} + sv = &ListEndpointsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Domains": - if err := awsAwsjson11_deserializeDocumentDomainList(&sv.Domains, value); err != nil { + case "Endpoints": + if err := awsAwsjson11_deserializeDocumentEndpointSummaryList(&sv.Endpoints, value); err != nil { return err } @@ -63927,7 +67965,7 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -63941,7 +67979,7 @@ func awsAwsjson11_deserializeOpDocumentListDomainsOutput(v **ListDomainsOutput, return nil } -func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgePackagingJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperimentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63954,17 +67992,17 @@ func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgeP return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEdgePackagingJobsOutput + var sv *ListExperimentsOutput if *v == nil { - sv = &ListEdgePackagingJobsOutput{} + sv = &ListExperimentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EdgePackagingJobSummaries": - if err := awsAwsjson11_deserializeDocumentEdgePackagingJobSummaries(&sv.EdgePackagingJobSummaries, value); err != nil { + case "ExperimentSummaries": + if err := awsAwsjson11_deserializeDocumentExperimentSummaries(&sv.ExperimentSummaries, value); err != nil { return err } @@ -63986,7 +68024,7 @@ func awsAwsjson11_deserializeOpDocumentListEdgePackagingJobsOutput(v **ListEdgeP return nil } -func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpointConfigsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63999,17 +68037,17 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEndpointConfigsOutput + var sv *ListFeatureGroupsOutput if *v == nil { - sv = &ListEndpointConfigsOutput{} + sv = &ListFeatureGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EndpointConfigs": - if err := awsAwsjson11_deserializeDocumentEndpointConfigSummaryList(&sv.EndpointConfigs, value); err != nil { + case "FeatureGroupSummaries": + if err := awsAwsjson11_deserializeDocumentFeatureGroupSummaries(&sv.FeatureGroupSummaries, value); err != nil { return err } @@ -64017,7 +68055,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -64031,7 +68069,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointConfigsOutput(v **ListEndpoin return nil } -func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64044,17 +68082,17 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListEndpointsOutput + var sv *ListFlowDefinitionsOutput if *v == nil { - sv = &ListEndpointsOutput{} + sv = &ListFlowDefinitionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Endpoints": - if err := awsAwsjson11_deserializeDocumentEndpointSummaryList(&sv.Endpoints, value); err != nil { + case "FlowDefinitionSummaries": + if err := awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(&sv.FlowDefinitionSummaries, value); err != nil { return err } @@ -64062,7 +68100,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) } sv.NextToken = ptr.String(jtv) } @@ -64076,7 +68114,7 @@ func awsAwsjson11_deserializeOpDocumentListEndpointsOutput(v **ListEndpointsOutp return nil } -func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperimentsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskUisOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64089,17 +68127,17 @@ func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperiments return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListExperimentsOutput + var sv *ListHumanTaskUisOutput if *v == nil { - sv = &ListExperimentsOutput{} + sv = &ListHumanTaskUisOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ExperimentSummaries": - if err := awsAwsjson11_deserializeDocumentExperimentSummaries(&sv.ExperimentSummaries, value); err != nil { + case "HumanTaskUiSummaries": + if err := awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(&sv.HumanTaskUiSummaries, value); err != nil { return err } @@ -64121,7 +68159,7 @@ func awsAwsjson11_deserializeOpDocumentListExperimentsOutput(v **ListExperiments return nil } -func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGroupsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **ListHyperParameterTuningJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64134,17 +68172,17 @@ func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListFeatureGroupsOutput + var sv *ListHyperParameterTuningJobsOutput if *v == nil { - sv = &ListFeatureGroupsOutput{} + sv = &ListHyperParameterTuningJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FeatureGroupSummaries": - if err := awsAwsjson11_deserializeDocumentFeatureGroupSummaries(&sv.FeatureGroupSummaries, value); err != nil { + case "HyperParameterTuningJobSummaries": + if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(&sv.HyperParameterTuningJobSummaries, value); err != nil { return err } @@ -64166,7 +68204,7 @@ func awsAwsjson11_deserializeOpDocumentListFeatureGroupsOutput(v **ListFeatureGr return nil } -func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDefinitionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64179,17 +68217,17 @@ func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListFlowDefinitionsOutput + var sv *ListImagesOutput if *v == nil { - sv = &ListFlowDefinitionsOutput{} + sv = &ListImagesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FlowDefinitionSummaries": - if err := awsAwsjson11_deserializeDocumentFlowDefinitionSummaries(&sv.FlowDefinitionSummaries, value); err != nil { + case "Images": + if err := awsAwsjson11_deserializeDocumentImages(&sv.Images, value); err != nil { return err } @@ -64211,7 +68249,7 @@ func awsAwsjson11_deserializeOpDocumentListFlowDefinitionsOutput(v **ListFlowDef return nil } -func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskUisOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64224,17 +68262,17 @@ func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskU return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHumanTaskUisOutput + var sv *ListImageVersionsOutput if *v == nil { - sv = &ListHumanTaskUisOutput{} + sv = &ListImageVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HumanTaskUiSummaries": - if err := awsAwsjson11_deserializeDocumentHumanTaskUiSummaries(&sv.HumanTaskUiSummaries, value); err != nil { + case "ImageVersions": + if err := awsAwsjson11_deserializeDocumentImageVersions(&sv.ImageVersions, value); err != nil { return err } @@ -64256,7 +68294,7 @@ func awsAwsjson11_deserializeOpDocumentListHumanTaskUisOutput(v **ListHumanTaskU return nil } -func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **ListHyperParameterTuningJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListInferenceRecommendationsJobsOutput(v **ListInferenceRecommendationsJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64269,17 +68307,17 @@ func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **Li return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHyperParameterTuningJobsOutput + var sv *ListInferenceRecommendationsJobsOutput if *v == nil { - sv = &ListHyperParameterTuningJobsOutput{} + sv = &ListInferenceRecommendationsJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "HyperParameterTuningJobSummaries": - if err := awsAwsjson11_deserializeDocumentHyperParameterTuningJobSummaries(&sv.HyperParameterTuningJobSummaries, value); err != nil { + case "InferenceRecommendationsJobs": + if err := awsAwsjson11_deserializeDocumentInferenceRecommendationsJobs(&sv.InferenceRecommendationsJobs, value); err != nil { return err } @@ -64301,7 +68339,7 @@ func awsAwsjson11_deserializeOpDocumentListHyperParameterTuningJobsOutput(v **Li return nil } -func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **ListLabelingJobsForWorkteamOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64314,17 +68352,17 @@ func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListImagesOutput + var sv *ListLabelingJobsForWorkteamOutput if *v == nil { - sv = &ListImagesOutput{} + sv = &ListLabelingJobsForWorkteamOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Images": - if err := awsAwsjson11_deserializeDocumentImages(&sv.Images, value); err != nil { + case "LabelingJobSummaryList": + if err := awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(&sv.LabelingJobSummaryList, value); err != nil { return err } @@ -64346,7 +68384,7 @@ func awsAwsjson11_deserializeOpDocumentListImagesOutput(v **ListImagesOutput, va return nil } -func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVersionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJobsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64359,17 +68397,17 @@ func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVers return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListImageVersionsOutput + var sv *ListLabelingJobsOutput if *v == nil { - sv = &ListImageVersionsOutput{} + sv = &ListLabelingJobsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ImageVersions": - if err := awsAwsjson11_deserializeDocumentImageVersions(&sv.ImageVersions, value); err != nil { + case "LabelingJobSummaryList": + if err := awsAwsjson11_deserializeDocumentLabelingJobSummaryList(&sv.LabelingJobSummaryList, value); err != nil { return err } @@ -64391,7 +68429,7 @@ func awsAwsjson11_deserializeOpDocumentListImageVersionsOutput(v **ListImageVers return nil } -func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **ListLabelingJobsForWorkteamOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListLineageGroupsOutput(v **ListLineageGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64404,17 +68442,17 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **Lis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListLabelingJobsForWorkteamOutput + var sv *ListLineageGroupsOutput if *v == nil { - sv = &ListLabelingJobsForWorkteamOutput{} + sv = &ListLineageGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "LabelingJobSummaryList": - if err := awsAwsjson11_deserializeDocumentLabelingJobForWorkteamSummaryList(&sv.LabelingJobSummaryList, value); err != nil { + case "LineageGroupSummaries": + if err := awsAwsjson11_deserializeDocumentLineageGroupSummaries(&sv.LineageGroupSummaries, value); err != nil { return err } @@ -64436,7 +68474,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsForWorkteamOutput(v **Lis return nil } -func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJobsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(v **ListModelBiasJobDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64449,17 +68487,17 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListLabelingJobsOutput + var sv *ListModelBiasJobDefinitionsOutput if *v == nil { - sv = &ListLabelingJobsOutput{} + sv = &ListModelBiasJobDefinitionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "LabelingJobSummaryList": - if err := awsAwsjson11_deserializeDocumentLabelingJobSummaryList(&sv.LabelingJobSummaryList, value); err != nil { + case "JobDefinitionSummaries": + if err := awsAwsjson11_deserializeDocumentMonitoringJobDefinitionSummaryList(&sv.JobDefinitionSummaries, value); err != nil { return err } @@ -64481,7 +68519,7 @@ func awsAwsjson11_deserializeOpDocumentListLabelingJobsOutput(v **ListLabelingJo return nil } -func awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(v **ListModelBiasJobDefinitionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(v **ListModelExplainabilityJobDefinitionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64494,9 +68532,9 @@ func awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(v **Lis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListModelBiasJobDefinitionsOutput + var sv *ListModelExplainabilityJobDefinitionsOutput if *v == nil { - sv = &ListModelBiasJobDefinitionsOutput{} + sv = &ListModelExplainabilityJobDefinitionsOutput{} } else { sv = *v } @@ -64526,7 +68564,7 @@ func awsAwsjson11_deserializeOpDocumentListModelBiasJobDefinitionsOutput(v **Lis return nil } -func awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutput(v **ListModelExplainabilityJobDefinitionsOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentListModelMetadataOutput(v **ListModelMetadataOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -64539,17 +68577,17 @@ func awsAwsjson11_deserializeOpDocumentListModelExplainabilityJobDefinitionsOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListModelExplainabilityJobDefinitionsOutput + var sv *ListModelMetadataOutput if *v == nil { - sv = &ListModelExplainabilityJobDefinitionsOutput{} + sv = &ListModelMetadataOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "JobDefinitionSummaries": - if err := awsAwsjson11_deserializeDocumentMonitoringJobDefinitionSummaryList(&sv.JobDefinitionSummaries, value); err != nil { + case "ModelMetadataSummaries": + if err := awsAwsjson11_deserializeDocumentModelMetadataSummaries(&sv.ModelMetadataSummaries, value); err != nil { return err } @@ -65736,6 +69774,56 @@ func awsAwsjson11_deserializeOpDocumentPutModelPackageGroupPolicyOutput(v **PutM return nil } +func awsAwsjson11_deserializeOpDocumentQueryLineageOutput(v **QueryLineageOutput, 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 *QueryLineageOutput + if *v == nil { + sv = &QueryLineageOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Edges": + if err := awsAwsjson11_deserializeDocumentEdges(&sv.Edges, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String8192 to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Vertices": + if err := awsAwsjson11_deserializeDocumentVertices(&sv.Vertices, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentRenderUiTemplateOutput(v **RenderUiTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/sagemaker/generated.json b/service/sagemaker/generated.json index e7650c9197a..785cff64c25 100644 --- a/service/sagemaker/generated.json +++ b/service/sagemaker/generated.json @@ -34,6 +34,7 @@ "api_op_CreateHyperParameterTuningJob.go", "api_op_CreateImage.go", "api_op_CreateImageVersion.go", + "api_op_CreateInferenceRecommendationsJob.go", "api_op_CreateLabelingJob.go", "api_op_CreateModel.go", "api_op_CreateModelBiasJobDefinition.go", @@ -119,7 +120,9 @@ "api_op_DescribeHyperParameterTuningJob.go", "api_op_DescribeImage.go", "api_op_DescribeImageVersion.go", + "api_op_DescribeInferenceRecommendationsJob.go", "api_op_DescribeLabelingJob.go", + "api_op_DescribeLineageGroup.go", "api_op_DescribeModel.go", "api_op_DescribeModelBiasJobDefinition.go", "api_op_DescribeModelExplainabilityJobDefinition.go", @@ -147,6 +150,7 @@ "api_op_DisassociateTrialComponent.go", "api_op_EnableSagemakerServicecatalogPortfolio.go", "api_op_GetDeviceFleetReport.go", + "api_op_GetLineageGroupPolicy.go", "api_op_GetModelPackageGroupPolicy.go", "api_op_GetSagemakerServicecatalogPortfolioStatus.go", "api_op_GetSearchSuggestions.go", @@ -175,10 +179,13 @@ "api_op_ListHyperParameterTuningJobs.go", "api_op_ListImageVersions.go", "api_op_ListImages.go", + "api_op_ListInferenceRecommendationsJobs.go", "api_op_ListLabelingJobs.go", "api_op_ListLabelingJobsForWorkteam.go", + "api_op_ListLineageGroups.go", "api_op_ListModelBiasJobDefinitions.go", "api_op_ListModelExplainabilityJobDefinitions.go", + "api_op_ListModelMetadata.go", "api_op_ListModelPackageGroups.go", "api_op_ListModelPackages.go", "api_op_ListModelQualityJobDefinitions.go", @@ -205,6 +212,7 @@ "api_op_ListWorkforces.go", "api_op_ListWorkteams.go", "api_op_PutModelPackageGroupPolicy.go", + "api_op_QueryLineage.go", "api_op_RegisterDevices.go", "api_op_RenderUiTemplate.go", "api_op_RetryPipelineExecution.go", @@ -218,6 +226,7 @@ "api_op_StopCompilationJob.go", "api_op_StopEdgePackagingJob.go", "api_op_StopHyperParameterTuningJob.go", + "api_op_StopInferenceRecommendationsJob.go", "api_op_StopLabelingJob.go", "api_op_StopMonitoringSchedule.go", "api_op_StopNotebookInstance.go", diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 01c279b202b..27871f8c2b4 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -1447,6 +1447,61 @@ func (m *awsAwsjson11_serializeOpCreateImageVersion) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreateInferenceRecommendationsJob struct { +} + +func (*awsAwsjson11_serializeOpCreateInferenceRecommendationsJob) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateInferenceRecommendationsJob) 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.(*CreateInferenceRecommendationsJobInput) + _ = 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("SageMaker.CreateInferenceRecommendationsJob") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateInferenceRecommendationsJobInput(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_serializeOpCreateLabelingJob struct { } @@ -6122,6 +6177,61 @@ func (m *awsAwsjson11_serializeOpDescribeImageVersion) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeInferenceRecommendationsJob struct { +} + +func (*awsAwsjson11_serializeOpDescribeInferenceRecommendationsJob) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeInferenceRecommendationsJob) 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.(*DescribeInferenceRecommendationsJobInput) + _ = 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("SageMaker.DescribeInferenceRecommendationsJob") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeInferenceRecommendationsJobInput(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_serializeOpDescribeLabelingJob struct { } @@ -6177,6 +6287,61 @@ func (m *awsAwsjson11_serializeOpDescribeLabelingJob) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDescribeLineageGroup struct { +} + +func (*awsAwsjson11_serializeOpDescribeLineageGroup) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDescribeLineageGroup) 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.(*DescribeLineageGroupInput) + _ = 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("SageMaker.DescribeLineageGroup") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDescribeLineageGroupInput(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_serializeOpDescribeModel struct { } @@ -7662,6 +7827,61 @@ func (m *awsAwsjson11_serializeOpGetDeviceFleetReport) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpGetLineageGroupPolicy struct { +} + +func (*awsAwsjson11_serializeOpGetLineageGroupPolicy) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpGetLineageGroupPolicy) 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.(*GetLineageGroupPolicyInput) + _ = 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("SageMaker.GetLineageGroupPolicy") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentGetLineageGroupPolicyInput(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_serializeOpGetModelPackageGroupPolicy struct { } @@ -9202,14 +9422,14 @@ func (m *awsAwsjson11_serializeOpListImageVersions) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListLabelingJobs struct { +type awsAwsjson11_serializeOpListInferenceRecommendationsJobs struct { } -func (*awsAwsjson11_serializeOpListLabelingJobs) ID() string { +func (*awsAwsjson11_serializeOpListInferenceRecommendationsJobs) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListLabelingJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListInferenceRecommendationsJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9217,7 +9437,7 @@ func (m *awsAwsjson11_serializeOpListLabelingJobs) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListLabelingJobsInput) + input, ok := in.Parameters.(*ListInferenceRecommendationsJobsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9238,10 +9458,10 @@ func (m *awsAwsjson11_serializeOpListLabelingJobs) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListLabelingJobs") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListInferenceRecommendationsJobs") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListLabelingJobsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListInferenceRecommendationsJobsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9257,14 +9477,14 @@ func (m *awsAwsjson11_serializeOpListLabelingJobs) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListLabelingJobsForWorkteam struct { +type awsAwsjson11_serializeOpListLabelingJobs struct { } -func (*awsAwsjson11_serializeOpListLabelingJobsForWorkteam) ID() string { +func (*awsAwsjson11_serializeOpListLabelingJobs) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListLabelingJobsForWorkteam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListLabelingJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9272,7 +9492,7 @@ func (m *awsAwsjson11_serializeOpListLabelingJobsForWorkteam) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListLabelingJobsForWorkteamInput) + input, ok := in.Parameters.(*ListLabelingJobsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9293,10 +9513,10 @@ func (m *awsAwsjson11_serializeOpListLabelingJobsForWorkteam) 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("SageMaker.ListLabelingJobsForWorkteam") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListLabelingJobs") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListLabelingJobsForWorkteamInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListLabelingJobsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9312,14 +9532,14 @@ func (m *awsAwsjson11_serializeOpListLabelingJobsForWorkteam) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListModelBiasJobDefinitions struct { +type awsAwsjson11_serializeOpListLabelingJobsForWorkteam struct { } -func (*awsAwsjson11_serializeOpListModelBiasJobDefinitions) ID() string { +func (*awsAwsjson11_serializeOpListLabelingJobsForWorkteam) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelBiasJobDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListLabelingJobsForWorkteam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9327,7 +9547,7 @@ func (m *awsAwsjson11_serializeOpListModelBiasJobDefinitions) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelBiasJobDefinitionsInput) + input, ok := in.Parameters.(*ListLabelingJobsForWorkteamInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9348,10 +9568,10 @@ func (m *awsAwsjson11_serializeOpListModelBiasJobDefinitions) 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("SageMaker.ListModelBiasJobDefinitions") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListLabelingJobsForWorkteam") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListLabelingJobsForWorkteamInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9367,14 +9587,14 @@ func (m *awsAwsjson11_serializeOpListModelBiasJobDefinitions) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions struct { +type awsAwsjson11_serializeOpListLineageGroups struct { } -func (*awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) ID() string { +func (*awsAwsjson11_serializeOpListLineageGroups) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListLineageGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9382,7 +9602,7 @@ func (m *awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) HandleSe return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelExplainabilityJobDefinitionsInput) + input, ok := in.Parameters.(*ListLineageGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9403,10 +9623,10 @@ func (m *awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) HandleSe return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelExplainabilityJobDefinitions") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListLineageGroups") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListModelExplainabilityJobDefinitionsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListLineageGroupsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9422,14 +9642,14 @@ func (m *awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) HandleSe return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListModelPackageGroups struct { +type awsAwsjson11_serializeOpListModelBiasJobDefinitions struct { } -func (*awsAwsjson11_serializeOpListModelPackageGroups) ID() string { +func (*awsAwsjson11_serializeOpListModelBiasJobDefinitions) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelPackageGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListModelBiasJobDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9437,7 +9657,7 @@ func (m *awsAwsjson11_serializeOpListModelPackageGroups) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelPackageGroupsInput) + input, ok := in.Parameters.(*ListModelBiasJobDefinitionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9458,10 +9678,10 @@ func (m *awsAwsjson11_serializeOpListModelPackageGroups) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelPackageGroups") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelBiasJobDefinitions") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListModelPackageGroupsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9477,14 +9697,14 @@ func (m *awsAwsjson11_serializeOpListModelPackageGroups) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListModelPackages struct { +type awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions struct { } -func (*awsAwsjson11_serializeOpListModelPackages) ID() string { +func (*awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListModelPackages) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListModelExplainabilityJobDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9492,7 +9712,7 @@ func (m *awsAwsjson11_serializeOpListModelPackages) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListModelPackagesInput) + input, ok := in.Parameters.(*ListModelExplainabilityJobDefinitionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -9513,10 +9733,175 @@ func (m *awsAwsjson11_serializeOpListModelPackages) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelPackages") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.ListModelExplainabilityJobDefinitions") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListModelPackagesInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListModelExplainabilityJobDefinitionsInput(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_serializeOpListModelMetadata struct { +} + +func (*awsAwsjson11_serializeOpListModelMetadata) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListModelMetadata) 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.(*ListModelMetadataInput) + _ = 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("SageMaker.ListModelMetadata") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListModelMetadataInput(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_serializeOpListModelPackageGroups struct { +} + +func (*awsAwsjson11_serializeOpListModelPackageGroups) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListModelPackageGroups) 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.(*ListModelPackageGroupsInput) + _ = 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("SageMaker.ListModelPackageGroups") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListModelPackageGroupsInput(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_serializeOpListModelPackages struct { +} + +func (*awsAwsjson11_serializeOpListModelPackages) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListModelPackages) 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.(*ListModelPackagesInput) + _ = 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("SageMaker.ListModelPackages") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListModelPackagesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10852,6 +11237,61 @@ func (m *awsAwsjson11_serializeOpPutModelPackageGroupPolicy) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpQueryLineage struct { +} + +func (*awsAwsjson11_serializeOpQueryLineage) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpQueryLineage) 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.(*QueryLineageInput) + _ = 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("SageMaker.QueryLineage") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentQueryLineageInput(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_serializeOpRegisterDevices struct { } @@ -11567,14 +12007,14 @@ func (m *awsAwsjson11_serializeOpStopHyperParameterTuningJob) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpStopLabelingJob struct { +type awsAwsjson11_serializeOpStopInferenceRecommendationsJob struct { } -func (*awsAwsjson11_serializeOpStopLabelingJob) ID() string { +func (*awsAwsjson11_serializeOpStopInferenceRecommendationsJob) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpStopLabelingJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpStopInferenceRecommendationsJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11582,7 +12022,7 @@ func (m *awsAwsjson11_serializeOpStopLabelingJob) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StopLabelingJobInput) + input, ok := in.Parameters.(*StopInferenceRecommendationsJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11603,10 +12043,10 @@ func (m *awsAwsjson11_serializeOpStopLabelingJob) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopLabelingJob") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopInferenceRecommendationsJob") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentStopLabelingJobInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentStopInferenceRecommendationsJobInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11622,14 +12062,14 @@ func (m *awsAwsjson11_serializeOpStopLabelingJob) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpStopMonitoringSchedule struct { +type awsAwsjson11_serializeOpStopLabelingJob struct { } -func (*awsAwsjson11_serializeOpStopMonitoringSchedule) ID() string { +func (*awsAwsjson11_serializeOpStopLabelingJob) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpStopMonitoringSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpStopLabelingJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11637,7 +12077,7 @@ func (m *awsAwsjson11_serializeOpStopMonitoringSchedule) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StopMonitoringScheduleInput) + input, ok := in.Parameters.(*StopLabelingJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11658,10 +12098,10 @@ func (m *awsAwsjson11_serializeOpStopMonitoringSchedule) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopMonitoringSchedule") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopLabelingJob") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentStopMonitoringScheduleInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentStopLabelingJobInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11677,14 +12117,14 @@ func (m *awsAwsjson11_serializeOpStopMonitoringSchedule) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpStopNotebookInstance struct { +type awsAwsjson11_serializeOpStopMonitoringSchedule struct { } -func (*awsAwsjson11_serializeOpStopNotebookInstance) ID() string { +func (*awsAwsjson11_serializeOpStopMonitoringSchedule) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpStopNotebookInstance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpStopMonitoringSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11692,7 +12132,7 @@ func (m *awsAwsjson11_serializeOpStopNotebookInstance) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StopNotebookInstanceInput) + input, ok := in.Parameters.(*StopMonitoringScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11713,10 +12153,10 @@ func (m *awsAwsjson11_serializeOpStopNotebookInstance) 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("SageMaker.StopNotebookInstance") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopMonitoringSchedule") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentStopNotebookInstanceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentStopMonitoringScheduleInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11732,14 +12172,14 @@ func (m *awsAwsjson11_serializeOpStopNotebookInstance) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpStopPipelineExecution struct { +type awsAwsjson11_serializeOpStopNotebookInstance struct { } -func (*awsAwsjson11_serializeOpStopPipelineExecution) ID() string { +func (*awsAwsjson11_serializeOpStopNotebookInstance) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpStopPipelineExecution) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpStopNotebookInstance) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11747,7 +12187,7 @@ func (m *awsAwsjson11_serializeOpStopPipelineExecution) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*StopPipelineExecutionInput) + input, ok := in.Parameters.(*StopNotebookInstanceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -11768,10 +12208,10 @@ func (m *awsAwsjson11_serializeOpStopPipelineExecution) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopPipelineExecution") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.StopNotebookInstance") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentStopPipelineExecutionInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentStopNotebookInstanceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11787,14 +12227,69 @@ func (m *awsAwsjson11_serializeOpStopPipelineExecution) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpStopProcessingJob struct { +type awsAwsjson11_serializeOpStopPipelineExecution struct { } -func (*awsAwsjson11_serializeOpStopProcessingJob) ID() string { +func (*awsAwsjson11_serializeOpStopPipelineExecution) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpStopProcessingJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpStopPipelineExecution) 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.(*StopPipelineExecutionInput) + _ = 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("SageMaker.StopPipelineExecution") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentStopPipelineExecutionInput(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_serializeOpStopProcessingJob struct { +} + +func (*awsAwsjson11_serializeOpStopProcessingJob) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpStopProcessingJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -13359,6 +13854,71 @@ func awsAwsjson11_serializeDocumentAdditionalCodeRepositoryNamesOrUrls(v []strin return nil } +func awsAwsjson11_serializeDocumentAdditionalInferenceSpecificationDefinition(v *types.AdditionalInferenceSpecificationDefinition, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Containers != nil { + ok := object.Key("Containers") + if err := awsAwsjson11_serializeDocumentModelPackageContainerDefinitionList(v.Containers, ok); err != nil { + return err + } + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SupportedContentTypes != nil { + ok := object.Key("SupportedContentTypes") + if err := awsAwsjson11_serializeDocumentContentTypes(v.SupportedContentTypes, ok); err != nil { + return err + } + } + + if v.SupportedRealtimeInferenceInstanceTypes != nil { + ok := object.Key("SupportedRealtimeInferenceInstanceTypes") + if err := awsAwsjson11_serializeDocumentRealtimeInferenceInstanceTypes(v.SupportedRealtimeInferenceInstanceTypes, ok); err != nil { + return err + } + } + + if v.SupportedResponseMIMETypes != nil { + ok := object.Key("SupportedResponseMIMETypes") + if err := awsAwsjson11_serializeDocumentResponseMIMETypes(v.SupportedResponseMIMETypes, ok); err != nil { + return err + } + } + + if v.SupportedTransformInstanceTypes != nil { + ok := object.Key("SupportedTransformInstanceTypes") + if err := awsAwsjson11_serializeDocumentTransformInstanceTypes(v.SupportedTransformInstanceTypes, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentAdditionalInferenceSpecifications(v []types.AdditionalInferenceSpecificationDefinition, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentAdditionalInferenceSpecificationDefinition(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentAlarm(v *types.Alarm, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -13877,6 +14437,20 @@ func awsAwsjson11_serializeDocumentBias(v *types.Bias, value smithyjson.Value) e object := value.Object() defer object.Close() + if v.PostTrainingReport != nil { + ok := object.Key("PostTrainingReport") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.PostTrainingReport, ok); err != nil { + return err + } + } + + if v.PreTrainingReport != nil { + ok := object.Key("PreTrainingReport") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.PreTrainingReport, ok); err != nil { + return err + } + } + if v.Report != nil { ok := object.Key("Report") if err := awsAwsjson11_serializeDocumentMetricsSource(v.Report, ok); err != nil { @@ -13974,6 +14548,25 @@ func awsAwsjson11_serializeDocumentCaptureOptionList(v []types.CaptureOption, va return nil } +func awsAwsjson11_serializeDocumentCategoricalParameter(v *types.CategoricalParameter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Value != nil { + ok := object.Key("Value") + if err := awsAwsjson11_serializeDocumentCategoricalParameterRangeValues(v.Value, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentCategoricalParameterRange(v *types.CategoricalParameterRange, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -14020,6 +14613,30 @@ func awsAwsjson11_serializeDocumentCategoricalParameterRangeSpecification(v *typ return nil } +func awsAwsjson11_serializeDocumentCategoricalParameterRangeValues(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_serializeDocumentCategoricalParameters(v []types.CategoricalParameter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentCategoricalParameter(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentChannel(v *types.Channel, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -14282,6 +14899,11 @@ func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinit } } + if v.InferenceSpecificationName != nil { + ok := object.Key("InferenceSpecificationName") + ok.String(*v.InferenceSpecificationName) + } + if len(v.Mode) > 0 { ok := object.Key("Mode") ok.String(string(v.Mode)) @@ -14974,6 +15596,132 @@ func awsAwsjson11_serializeDocumentDomainSettingsForUpdate(v *types.DomainSettin return nil } +func awsAwsjson11_serializeDocumentDriftCheckBaselines(v *types.DriftCheckBaselines, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Bias != nil { + ok := object.Key("Bias") + if err := awsAwsjson11_serializeDocumentDriftCheckBias(v.Bias, ok); err != nil { + return err + } + } + + if v.Explainability != nil { + ok := object.Key("Explainability") + if err := awsAwsjson11_serializeDocumentDriftCheckExplainability(v.Explainability, ok); err != nil { + return err + } + } + + if v.ModelDataQuality != nil { + ok := object.Key("ModelDataQuality") + if err := awsAwsjson11_serializeDocumentDriftCheckModelDataQuality(v.ModelDataQuality, ok); err != nil { + return err + } + } + + if v.ModelQuality != nil { + ok := object.Key("ModelQuality") + if err := awsAwsjson11_serializeDocumentDriftCheckModelQuality(v.ModelQuality, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentDriftCheckBias(v *types.DriftCheckBias, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConfigFile != nil { + ok := object.Key("ConfigFile") + if err := awsAwsjson11_serializeDocumentFileSource(v.ConfigFile, ok); err != nil { + return err + } + } + + if v.PostTrainingConstraints != nil { + ok := object.Key("PostTrainingConstraints") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.PostTrainingConstraints, ok); err != nil { + return err + } + } + + if v.PreTrainingConstraints != nil { + ok := object.Key("PreTrainingConstraints") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.PreTrainingConstraints, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentDriftCheckExplainability(v *types.DriftCheckExplainability, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConfigFile != nil { + ok := object.Key("ConfigFile") + if err := awsAwsjson11_serializeDocumentFileSource(v.ConfigFile, ok); err != nil { + return err + } + } + + if v.Constraints != nil { + ok := object.Key("Constraints") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.Constraints, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentDriftCheckModelDataQuality(v *types.DriftCheckModelDataQuality, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Constraints != nil { + ok := object.Key("Constraints") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.Constraints, ok); err != nil { + return err + } + } + + if v.Statistics != nil { + ok := object.Key("Statistics") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.Statistics, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentDriftCheckModelQuality(v *types.DriftCheckModelQuality, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Constraints != nil { + ok := object.Key("Constraints") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.Constraints, ok); err != nil { + return err + } + } + + if v.Statistics != nil { + ok := object.Key("Statistics") + if err := awsAwsjson11_serializeDocumentMetricsSource(v.Statistics, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentEdgeOutputConfig(v *types.EdgeOutputConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -15071,6 +15819,43 @@ func awsAwsjson11_serializeDocumentEndpointInput(v *types.EndpointInput, value s return nil } +func awsAwsjson11_serializeDocumentEndpointInputConfiguration(v *types.EndpointInputConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EnvironmentParameterRanges != nil { + ok := object.Key("EnvironmentParameterRanges") + if err := awsAwsjson11_serializeDocumentEnvironmentParameterRanges(v.EnvironmentParameterRanges, ok); err != nil { + return err + } + } + + if v.InferenceSpecificationName != nil { + ok := object.Key("InferenceSpecificationName") + ok.String(*v.InferenceSpecificationName) + } + + if len(v.InstanceType) > 0 { + ok := object.Key("InstanceType") + ok.String(string(v.InstanceType)) + } + + return nil +} + +func awsAwsjson11_serializeDocumentEndpointInputConfigurations(v []types.EndpointInputConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentEndpointInputConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentEnvironmentMap(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -15082,6 +15867,20 @@ func awsAwsjson11_serializeDocumentEnvironmentMap(v map[string]string, value smi return nil } +func awsAwsjson11_serializeDocumentEnvironmentParameterRanges(v *types.EnvironmentParameterRanges, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CategoricalParameterRanges != nil { + ok := object.Key("CategoricalParameterRanges") + if err := awsAwsjson11_serializeDocumentCategoricalParameters(v.CategoricalParameterRanges, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentExperimentConfig(v *types.ExperimentConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -15132,19 +15931,41 @@ func awsAwsjson11_serializeDocumentFeatureDefinition(v *types.FeatureDefinition, ok.String(string(v.FeatureType)) } - return nil -} - -func awsAwsjson11_serializeDocumentFeatureDefinitions(v []types.FeatureDefinition, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + return nil +} + +func awsAwsjson11_serializeDocumentFeatureDefinitions(v []types.FeatureDefinition, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentFeatureDefinition(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentFileSource(v *types.FileSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContentDigest != nil { + ok := object.Key("ContentDigest") + ok.String(*v.ContentDigest) + } + + if v.ContentType != nil { + ok := object.Key("ContentType") + ok.String(*v.ContentType) + } - for i := range v { - av := array.Value() - if err := awsAwsjson11_serializeDocumentFeatureDefinition(&v[i], av); err != nil { - return err - } + if v.S3Uri != nil { + ok := object.Key("S3Uri") + ok.String(*v.S3Uri) } + return nil } @@ -16589,6 +17410,92 @@ func awsAwsjson11_serializeDocumentModelExplainabilityJobInput(v *types.ModelExp return nil } +func awsAwsjson11_serializeDocumentModelInput(v *types.ModelInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataInputConfig != nil { + ok := object.Key("DataInputConfig") + ok.String(*v.DataInputConfig) + } + + return nil +} + +func awsAwsjson11_serializeDocumentModelLatencyThreshold(v *types.ModelLatencyThreshold, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Percentile != nil { + ok := object.Key("Percentile") + ok.String(*v.Percentile) + } + + if v.ValueInMilliseconds != 0 { + ok := object.Key("ValueInMilliseconds") + ok.Integer(v.ValueInMilliseconds) + } + + return nil +} + +func awsAwsjson11_serializeDocumentModelLatencyThresholds(v []types.ModelLatencyThreshold, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentModelLatencyThreshold(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentModelMetadataFilter(v *types.ModelMetadataFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) + } + + return nil +} + +func awsAwsjson11_serializeDocumentModelMetadataFilters(v []types.ModelMetadataFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentModelMetadataFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentModelMetadataSearchExpression(v *types.ModelMetadataSearchExpression, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsAwsjson11_serializeDocumentModelMetadataFilters(v.Filters, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentModelMetrics(v *types.ModelMetrics, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -16651,6 +17558,16 @@ func awsAwsjson11_serializeDocumentModelPackageContainerDefinition(v *types.Mode } } + if v.Framework != nil { + ok := object.Key("Framework") + ok.String(*v.Framework) + } + + if v.FrameworkVersion != nil { + ok := object.Key("FrameworkVersion") + ok.String(*v.FrameworkVersion) + } + if v.Image != nil { ok := object.Key("Image") ok.String(*v.Image) @@ -16666,6 +17583,18 @@ func awsAwsjson11_serializeDocumentModelPackageContainerDefinition(v *types.Mode ok.String(*v.ModelDataUrl) } + if v.ModelInput != nil { + ok := object.Key("ModelInput") + if err := awsAwsjson11_serializeDocumentModelInput(v.ModelInput, ok); err != nil { + return err + } + } + + if v.NearestModelName != nil { + ok := object.Key("NearestModelName") + ok.String(*v.NearestModelName) + } + if v.ProductId != nil { ok := object.Key("ProductId") ok.String(*v.ProductId) @@ -17718,6 +18647,41 @@ func awsAwsjson11_serializeDocumentParentHyperParameterTuningJobs(v []types.Pare return nil } +func awsAwsjson11_serializeDocumentPhase(v *types.Phase, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DurationInSeconds != nil { + ok := object.Key("DurationInSeconds") + ok.Integer(*v.DurationInSeconds) + } + + if v.InitialNumberOfUsers != nil { + ok := object.Key("InitialNumberOfUsers") + ok.Integer(*v.InitialNumberOfUsers) + } + + if v.SpawnRate != nil { + ok := object.Key("SpawnRate") + ok.Integer(*v.SpawnRate) + } + + return nil +} + +func awsAwsjson11_serializeDocumentPhases(v []types.Phase, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson11_serializeDocumentPhase(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentProcessingClusterConfig(v *types.ProcessingClusterConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -18009,6 +18973,13 @@ func awsAwsjson11_serializeDocumentProductionVariant(v *types.ProductionVariant, ok.String(*v.ModelName) } + if v.ServerlessConfig != nil { + ok := object.Key("ServerlessConfig") + if err := awsAwsjson11_serializeDocumentProductionVariantServerlessConfig(v.ServerlessConfig, ok); err != nil { + return err + } + } + if v.VariantName != nil { ok := object.Key("VariantName") ok.String(*v.VariantName) @@ -18047,6 +19018,23 @@ func awsAwsjson11_serializeDocumentProductionVariantList(v []types.ProductionVar return nil } +func awsAwsjson11_serializeDocumentProductionVariantServerlessConfig(v *types.ProductionVariantServerlessConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxConcurrency != nil { + ok := object.Key("MaxConcurrency") + ok.Integer(*v.MaxConcurrency) + } + + if v.MemorySizeInMB != nil { + ok := object.Key("MemorySizeInMB") + ok.Integer(*v.MemorySizeInMB) + } + + return nil +} + func awsAwsjson11_serializeDocumentProfilerConfig(v *types.ProfilerConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -18224,14 +19212,180 @@ func awsAwsjson11_serializeDocumentPublicWorkforceTaskPrice(v *types.PublicWorkf return nil } +func awsAwsjson11_serializeDocumentQueryFilters(v *types.QueryFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreatedAfter != nil { + ok := object.Key("CreatedAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter)) + } + + if v.CreatedBefore != nil { + ok := object.Key("CreatedBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore)) + } + + if v.LineageTypes != nil { + ok := object.Key("LineageTypes") + if err := awsAwsjson11_serializeDocumentQueryLineageTypes(v.LineageTypes, ok); err != nil { + return err + } + } + + if v.ModifiedAfter != nil { + ok := object.Key("ModifiedAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.ModifiedAfter)) + } + + if v.ModifiedBefore != nil { + ok := object.Key("ModifiedBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.ModifiedBefore)) + } + + if v.Properties != nil { + ok := object.Key("Properties") + if err := awsAwsjson11_serializeDocumentQueryProperties(v.Properties, ok); err != nil { + return err + } + } + + if v.Types != nil { + ok := object.Key("Types") + if err := awsAwsjson11_serializeDocumentQueryTypes(v.Types, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentQueryLineageStartArns(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_serializeDocumentQueryLineageTypes(v []types.LineageType, 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_serializeDocumentQueryProperties(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsAwsjson11_serializeDocumentQueryTypes(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_serializeDocumentRealtimeInferenceInstanceTypes(v []types.ProductionVariantInstanceType, value smithyjson.Value) error { array := value.Array() defer array.Close() - for i := range v { - av := array.Value() - av.String(string(v[i])) + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsAwsjson11_serializeDocumentRecommendationJobInputConfig(v *types.RecommendationJobInputConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EndpointConfigurations != nil { + ok := object.Key("EndpointConfigurations") + if err := awsAwsjson11_serializeDocumentEndpointInputConfigurations(v.EndpointConfigurations, ok); err != nil { + return err + } + } + + if v.JobDurationInSeconds != nil { + ok := object.Key("JobDurationInSeconds") + ok.Integer(*v.JobDurationInSeconds) + } + + if v.ModelPackageVersionArn != nil { + ok := object.Key("ModelPackageVersionArn") + ok.String(*v.ModelPackageVersionArn) + } + + if v.ResourceLimit != nil { + ok := object.Key("ResourceLimit") + if err := awsAwsjson11_serializeDocumentRecommendationJobResourceLimit(v.ResourceLimit, ok); err != nil { + return err + } + } + + if v.TrafficPattern != nil { + ok := object.Key("TrafficPattern") + if err := awsAwsjson11_serializeDocumentTrafficPattern(v.TrafficPattern, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentRecommendationJobResourceLimit(v *types.RecommendationJobResourceLimit, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxNumberOfTests != nil { + ok := object.Key("MaxNumberOfTests") + ok.Integer(*v.MaxNumberOfTests) + } + + if v.MaxParallelOfTests != nil { + ok := object.Key("MaxParallelOfTests") + ok.Integer(*v.MaxParallelOfTests) + } + + return nil +} + +func awsAwsjson11_serializeDocumentRecommendationJobStoppingConditions(v *types.RecommendationJobStoppingConditions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxInvocations != 0 { + ok := object.Key("MaxInvocations") + ok.Integer(v.MaxInvocations) + } + + if v.ModelLatencyThresholds != nil { + ok := object.Key("ModelLatencyThresholds") + if err := awsAwsjson11_serializeDocumentModelLatencyThresholds(v.ModelLatencyThresholds, ok); err != nil { + return err + } } + return nil } @@ -18907,6 +20061,25 @@ func awsAwsjson11_serializeDocumentTensorBoardOutputConfig(v *types.TensorBoardO return nil } +func awsAwsjson11_serializeDocumentTrafficPattern(v *types.TrafficPattern, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Phases != nil { + ok := object.Key("Phases") + if err := awsAwsjson11_serializeDocumentPhases(v.Phases, ok); err != nil { + return err + } + } + + if len(v.TrafficType) > 0 { + ok := object.Key("TrafficType") + ok.String(string(v.TrafficType)) + } + + return nil +} + func awsAwsjson11_serializeDocumentTrafficRoutingConfig(v *types.TrafficRoutingConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19936,6 +21109,11 @@ func awsAwsjson11_serializeOpDocumentCreateCompilationJobInput(v *CreateCompilat } } + if v.ModelPackageVersionArn != nil { + ok := object.Key("ModelPackageVersionArn") + ok.String(*v.ModelPackageVersionArn) + } + if v.OutputConfig != nil { ok := object.Key("OutputConfig") if err := awsAwsjson11_serializeDocumentOutputConfig(v.OutputConfig, ok); err != nil { @@ -20596,6 +21774,54 @@ func awsAwsjson11_serializeOpDocumentCreateImageVersionInput(v *CreateImageVersi return nil } +func awsAwsjson11_serializeOpDocumentCreateInferenceRecommendationsJobInput(v *CreateInferenceRecommendationsJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InputConfig != nil { + ok := object.Key("InputConfig") + if err := awsAwsjson11_serializeDocumentRecommendationJobInputConfig(v.InputConfig, ok); err != nil { + return err + } + } + + if v.JobDescription != nil { + ok := object.Key("JobDescription") + ok.String(*v.JobDescription) + } + + if v.JobName != nil { + ok := object.Key("JobName") + ok.String(*v.JobName) + } + + if len(v.JobType) > 0 { + ok := object.Key("JobType") + ok.String(string(v.JobType)) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.StoppingConditions != nil { + ok := object.Key("StoppingConditions") + if err := awsAwsjson11_serializeDocumentRecommendationJobStoppingConditions(v.StoppingConditions, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateLabelingJobInput(v *CreateLabelingJobInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -20896,6 +22122,13 @@ func awsAwsjson11_serializeOpDocumentCreateModelPackageInput(v *CreateModelPacka object := value.Object() defer object.Close() + if v.AdditionalInferenceSpecifications != nil { + ok := object.Key("AdditionalInferenceSpecifications") + if err := awsAwsjson11_serializeDocumentAdditionalInferenceSpecifications(v.AdditionalInferenceSpecifications, ok); err != nil { + return err + } + } + if v.CertifyForMarketplace { ok := object.Key("CertifyForMarketplace") ok.Boolean(v.CertifyForMarketplace) @@ -20913,6 +22146,18 @@ func awsAwsjson11_serializeOpDocumentCreateModelPackageInput(v *CreateModelPacka } } + if v.Domain != nil { + ok := object.Key("Domain") + ok.String(*v.Domain) + } + + if v.DriftCheckBaselines != nil { + ok := object.Key("DriftCheckBaselines") + if err := awsAwsjson11_serializeDocumentDriftCheckBaselines(v.DriftCheckBaselines, ok); err != nil { + return err + } + } + if v.InferenceSpecification != nil { ok := object.Key("InferenceSpecification") if err := awsAwsjson11_serializeDocumentInferenceSpecification(v.InferenceSpecification, ok); err != nil { @@ -20954,6 +22199,11 @@ func awsAwsjson11_serializeOpDocumentCreateModelPackageInput(v *CreateModelPacka ok.String(*v.ModelPackageName) } + if v.SamplePayloadUrl != nil { + ok := object.Key("SamplePayloadUrl") + ok.String(*v.SamplePayloadUrl) + } + if v.SourceAlgorithmSpecification != nil { ok := object.Key("SourceAlgorithmSpecification") if err := awsAwsjson11_serializeDocumentSourceAlgorithmSpecification(v.SourceAlgorithmSpecification, ok); err != nil { @@ -20968,6 +22218,11 @@ func awsAwsjson11_serializeOpDocumentCreateModelPackageInput(v *CreateModelPacka } } + if v.Task != nil { + ok := object.Key("Task") + ok.String(*v.Task) + } + if v.ValidationSpecification != nil { ok := object.Key("ValidationSpecification") if err := awsAwsjson11_serializeDocumentModelPackageValidationSpecification(v.ValidationSpecification, ok); err != nil { @@ -22731,6 +23986,18 @@ func awsAwsjson11_serializeOpDocumentDescribeImageVersionInput(v *DescribeImageV return nil } +func awsAwsjson11_serializeOpDocumentDescribeInferenceRecommendationsJobInput(v *DescribeInferenceRecommendationsJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.JobName != nil { + ok := object.Key("JobName") + ok.String(*v.JobName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeLabelingJobInput(v *DescribeLabelingJobInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -22743,6 +24010,18 @@ func awsAwsjson11_serializeOpDocumentDescribeLabelingJobInput(v *DescribeLabelin return nil } +func awsAwsjson11_serializeOpDocumentDescribeLineageGroupInput(v *DescribeLineageGroupInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.LineageGroupName != nil { + ok := object.Key("LineageGroupName") + ok.String(*v.LineageGroupName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDescribeModelBiasJobDefinitionInput(v *DescribeModelBiasJobDefinitionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -23067,6 +24346,18 @@ func awsAwsjson11_serializeOpDocumentGetDeviceFleetReportInput(v *GetDeviceFleet return nil } +func awsAwsjson11_serializeOpDocumentGetLineageGroupPolicyInput(v *GetLineageGroupPolicyInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.LineageGroupName != nil { + ok := object.Key("LineageGroupName") + ok.String(*v.LineageGroupName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentGetModelPackageGroupPolicyInput(v *GetModelPackageGroupPolicyInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -24270,6 +25561,63 @@ func awsAwsjson11_serializeOpDocumentListImageVersionsInput(v *ListImageVersions return nil } +func awsAwsjson11_serializeOpDocumentListInferenceRecommendationsJobsInput(v *ListInferenceRecommendationsJobsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreationTimeAfter != nil { + ok := object.Key("CreationTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeAfter)) + } + + if v.CreationTimeBefore != nil { + ok := object.Key("CreationTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreationTimeBefore)) + } + + if v.LastModifiedTimeAfter != nil { + ok := object.Key("LastModifiedTimeAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeAfter)) + } + + if v.LastModifiedTimeBefore != nil { + ok := object.Key("LastModifiedTimeBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) + } + + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NameContains != nil { + ok := object.Key("NameContains") + ok.String(*v.NameContains) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + if len(v.StatusEquals) > 0 { + ok := object.Key("StatusEquals") + ok.String(string(v.StatusEquals)) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListLabelingJobsForWorkteamInput(v *ListLabelingJobsForWorkteamInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -24374,6 +25722,43 @@ func awsAwsjson11_serializeOpDocumentListLabelingJobsInput(v *ListLabelingJobsIn return nil } +func awsAwsjson11_serializeOpDocumentListLineageGroupsInput(v *ListLineageGroupsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CreatedAfter != nil { + ok := object.Key("CreatedAfter") + ok.Double(smithytime.FormatEpochSeconds(*v.CreatedAfter)) + } + + if v.CreatedBefore != nil { + ok := object.Key("CreatedBefore") + ok.Double(smithytime.FormatEpochSeconds(*v.CreatedBefore)) + } + + 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 len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListModelBiasJobDefinitionsInput(v *ListModelBiasJobDefinitionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -24468,6 +25853,30 @@ func awsAwsjson11_serializeOpDocumentListModelExplainabilityJobDefinitionsInput( return nil } +func awsAwsjson11_serializeOpDocumentListModelMetadataInput(v *ListModelMetadataInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + 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.SearchExpression != nil { + ok := object.Key("SearchExpression") + if err := awsAwsjson11_serializeDocumentModelMetadataSearchExpression(v.SearchExpression, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListModelPackageGroupsInput(v *ListModelPackageGroupsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -25635,6 +27044,52 @@ func awsAwsjson11_serializeOpDocumentPutModelPackageGroupPolicyInput(v *PutModel return nil } +func awsAwsjson11_serializeOpDocumentQueryLineageInput(v *QueryLineageInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Direction) > 0 { + ok := object.Key("Direction") + ok.String(string(v.Direction)) + } + + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsAwsjson11_serializeDocumentQueryFilters(v.Filters, ok); err != nil { + return err + } + } + + if v.IncludeEdges { + ok := object.Key("IncludeEdges") + ok.Boolean(v.IncludeEdges) + } + + if v.MaxDepth != nil { + ok := object.Key("MaxDepth") + ok.Integer(*v.MaxDepth) + } + + 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.StartArns != nil { + ok := object.Key("StartArns") + if err := awsAwsjson11_serializeDocumentQueryLineageStartArns(v.StartArns, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeOpDocumentRegisterDevicesInput(v *RegisterDevicesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -25900,6 +27355,18 @@ func awsAwsjson11_serializeOpDocumentStopHyperParameterTuningJobInput(v *StopHyp return nil } +func awsAwsjson11_serializeOpDocumentStopInferenceRecommendationsJobInput(v *StopInferenceRecommendationsJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.JobName != nil { + ok := object.Key("JobName") + ok.String(*v.JobName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentStopLabelingJobInput(v *StopLabelingJobInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -26324,6 +27791,13 @@ func awsAwsjson11_serializeOpDocumentUpdateModelPackageInput(v *UpdateModelPacka object := value.Object() defer object.Close() + if v.AdditionalInferenceSpecificationsToAdd != nil { + ok := object.Key("AdditionalInferenceSpecificationsToAdd") + if err := awsAwsjson11_serializeDocumentAdditionalInferenceSpecifications(v.AdditionalInferenceSpecificationsToAdd, ok); err != nil { + return err + } + } + if v.ApprovalDescription != nil { ok := object.Key("ApprovalDescription") ok.String(*v.ApprovalDescription) diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index cf5137ee6e6..7c833930812 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -981,6 +981,26 @@ func (DirectInternetAccess) Values() []DirectInternetAccess { } } +type Direction string + +// Enum values for Direction +const ( + DirectionBoth Direction = "Both" + DirectionAscendants Direction = "Ascendants" + DirectionDescendants Direction = "Descendants" +) + +// Values returns all known values for Direction. 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 (Direction) Values() []Direction { + return []Direction{ + "Both", + "Ascendants", + "Descendants", + } +} + type DomainStatus string // Enum values for DomainStatus @@ -1826,6 +1846,28 @@ func (LabelingJobStatus) Values() []LabelingJobStatus { } } +type LineageType string + +// Enum values for LineageType +const ( + LineageTypeTrialComponent LineageType = "TrialComponent" + LineageTypeArtifact LineageType = "Artifact" + LineageTypeContext LineageType = "Context" + LineageTypeAction LineageType = "Action" +) + +// Values returns all known values for LineageType. 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 (LineageType) Values() []LineageType { + return []LineageType{ + "TrialComponent", + "Artifact", + "Context", + "Action", + } +} + type ListCompilationJobsSortBy string // Enum values for ListCompilationJobsSortBy @@ -1890,6 +1932,27 @@ func (ListEdgePackagingJobsSortBy) Values() []ListEdgePackagingJobsSortBy { } } +type ListInferenceRecommendationsJobsSortBy string + +// Enum values for ListInferenceRecommendationsJobsSortBy +const ( + ListInferenceRecommendationsJobsSortByName ListInferenceRecommendationsJobsSortBy = "Name" + ListInferenceRecommendationsJobsSortByCreationTime ListInferenceRecommendationsJobsSortBy = "CreationTime" + ListInferenceRecommendationsJobsSortByStatus ListInferenceRecommendationsJobsSortBy = "Status" +) + +// Values returns all known values for ListInferenceRecommendationsJobsSortBy. 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 (ListInferenceRecommendationsJobsSortBy) Values() []ListInferenceRecommendationsJobsSortBy { + return []ListInferenceRecommendationsJobsSortBy{ + "Name", + "CreationTime", + "Status", + } +} + type ListLabelingJobsForWorkteamSortByOptions string // Enum values for ListLabelingJobsForWorkteamSortByOptions @@ -2001,6 +2064,28 @@ func (ModelCacheSetting) Values() []ModelCacheSetting { } } +type ModelMetadataFilterType string + +// Enum values for ModelMetadataFilterType +const ( + ModelMetadataFilterTypeDomain ModelMetadataFilterType = "Domain" + ModelMetadataFilterTypeFramework ModelMetadataFilterType = "Framework" + ModelMetadataFilterTypeTask ModelMetadataFilterType = "Task" + ModelMetadataFilterTypeFrameworkversion ModelMetadataFilterType = "FrameworkVersion" +) + +// Values returns all known values for ModelMetadataFilterType. 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 (ModelMetadataFilterType) Values() []ModelMetadataFilterType { + return []ModelMetadataFilterType{ + "Domain", + "Framework", + "Task", + "FrameworkVersion", + } +} + type ModelPackageGroupSortBy string // Enum values for ModelPackageGroupSortBy @@ -3030,6 +3115,50 @@ func (ProjectStatus) Values() []ProjectStatus { } } +type RecommendationJobStatus string + +// Enum values for RecommendationJobStatus +const ( + RecommendationJobStatusPending RecommendationJobStatus = "PENDING" + RecommendationJobStatusInProgress RecommendationJobStatus = "IN_PROGRESS" + RecommendationJobStatusCompleted RecommendationJobStatus = "COMPLETED" + RecommendationJobStatusFailed RecommendationJobStatus = "FAILED" + RecommendationJobStatusStopping RecommendationJobStatus = "STOPPING" + RecommendationJobStatusStopped RecommendationJobStatus = "STOPPED" +) + +// Values returns all known values for RecommendationJobStatus. 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 (RecommendationJobStatus) Values() []RecommendationJobStatus { + return []RecommendationJobStatus{ + "PENDING", + "IN_PROGRESS", + "COMPLETED", + "FAILED", + "STOPPING", + "STOPPED", + } +} + +type RecommendationJobType string + +// Enum values for RecommendationJobType +const ( + RecommendationJobTypeDefault RecommendationJobType = "Default" + RecommendationJobTypeAdvanced RecommendationJobType = "Advanced" +) + +// Values returns all known values for RecommendationJobType. 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 (RecommendationJobType) Values() []RecommendationJobType { + return []RecommendationJobType{ + "Default", + "Advanced", + } +} + type RecordWrapper string // Enum values for RecordWrapper @@ -3500,6 +3629,24 @@ func (SortExperimentsBy) Values() []SortExperimentsBy { } } +type SortLineageGroupsBy string + +// Enum values for SortLineageGroupsBy +const ( + SortLineageGroupsByName SortLineageGroupsBy = "Name" + SortLineageGroupsByCreationTime SortLineageGroupsBy = "CreationTime" +) + +// Values returns all known values for SortLineageGroupsBy. 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 (SortLineageGroupsBy) Values() []SortLineageGroupsBy { + return []SortLineageGroupsBy{ + "Name", + "CreationTime", + } +} + type SortOrder string // Enum values for SortOrder @@ -3834,6 +3981,22 @@ func (TrafficRoutingConfigType) Values() []TrafficRoutingConfigType { } } +type TrafficType string + +// Enum values for TrafficType +const ( + TrafficTypePhases TrafficType = "PHASES" +) + +// Values returns all known values for TrafficType. 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 (TrafficType) Values() []TrafficType { + return []TrafficType{ + "PHASES", + } +} + type TrainingInputMode string // Enum values for TrainingInputMode diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 11a0b06a51f..e37816eb980 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -53,6 +53,43 @@ type ActionSummary struct { noSmithyDocumentSerde } +// A structure of additional Inference Specification. Additional Inference +// Specification specifies details about inference jobs that can be run with models +// based on this model package +type AdditionalInferenceSpecificationDefinition struct { + + // The Amazon ECR registry path of the Docker image that contains the inference + // code. + // + // This member is required. + Containers []ModelPackageContainerDefinition + + // A unique name to identify the additional inference specification. The name must + // be unique within the list of your additional inference specifications for a + // particular model package. + // + // This member is required. + Name *string + + // A description of the additional Inference specification + Description *string + + // The supported MIME types for the input data. + SupportedContentTypes []string + + // A list of the instance types that are used to generate inferences in real-time. + SupportedRealtimeInferenceInstanceTypes []ProductionVariantInstanceType + + // The supported MIME types for the output data. + SupportedResponseMIMETypes []string + + // A list of the instance types on which a transformation job can be run or on + // which an endpoint can be deployed. + SupportedTransformInstanceTypes []TransformInstanceType + + noSmithyDocumentSerde +} + // Edge Manager agent version. type AgentVersion struct { @@ -1314,7 +1351,7 @@ type AssociationSummary struct { AssociationType AssociationEdgeType // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *UserContext // When the association was created. @@ -1868,6 +1905,12 @@ type BatchDescribeModelPackageSummary struct { // Contains bias metrics for a model. type Bias struct { + // + PostTrainingReport *MetricsSource + + // + PreTrainingReport *MetricsSource + // The bias report for a model Report *MetricsSource @@ -1995,6 +2038,22 @@ type CaptureOption struct { noSmithyDocumentSerde } +// Environment parameters you want to benchmark your load test against. +type CategoricalParameter struct { + + // The Name of the environment variable. + // + // This member is required. + Name *string + + // The list of values you can pass. + // + // This member is required. + Value []string + + noSmithyDocumentSerde +} + // A list of categorical hyperparameters to tune. type CategoricalParameterRange struct { @@ -2131,6 +2190,46 @@ type CheckpointConfig struct { noSmithyDocumentSerde } +// The container for the metadata for the ClarifyCheck step. For more information, +// see the topic on ClarifyCheck step +// (https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-steps.html#step-type-clarify-check) +// in the Amazon SageMaker Developer Guide. +type ClarifyCheckStepMetadata struct { + + // The Amazon S3 URI of baseline constraints file to be used for the drift check. + BaselineUsedForDriftCheckConstraints *string + + // The Amazon S3 URI of the newly calculated baseline constraints file. + CalculatedBaselineConstraints *string + + // The Amazon Resource Name (ARN) of the check processing job that was run by this + // step's execution. + CheckJobArn *string + + // The type of the Clarify Check step + CheckType *string + + // The model package group name. + ModelPackageGroupName *string + + // This flag indicates if a newly calculated baseline can be accessed through step + // properties BaselineUsedForDriftCheckConstraints and + // BaselineUsedForDriftCheckStatistics. If it is set to False, the previous + // baseline of the configured check type must also be available. These can be + // accessed through the BaselineUsedForDriftCheckConstraints property. + RegisterNewBaseline bool + + // This flag indicates if the drift check against the previous baseline will be + // skipped or not. If it is set to False, the previous baseline of the configured + // check type must be available. + SkipCheck bool + + // The Amazon S3 URI of the violation report if violations are detected. + ViolationReport *string + + noSmithyDocumentSerde +} + // Specifies summary information about a Git repository. type CodeRepositorySummary struct { @@ -2323,6 +2422,9 @@ type ContainerDefinition struct { // (https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-containers-inference-private.html) ImageConfig *ImageConfig + // The inference specification name in the model package version. + InferenceSpecificationName *string + // Whether the container hosts a single model or multiple models. Mode ContainerMode @@ -2997,6 +3099,102 @@ type DomainSettingsForUpdate struct { noSmithyDocumentSerde } +// Represents the drift check baselines that can be used when the model monitor is +// set using the model package. +type DriftCheckBaselines struct { + + // Represents the drift check bias baselines that can be used when the model + // monitor is set using the model package. + Bias *DriftCheckBias + + // Represents the drift check explainability baselines that can be used when the + // model monitor is set using the model package. + Explainability *DriftCheckExplainability + + // Represents the drift check model data quality baselines that can be used when + // the model monitor is set using the model package. + ModelDataQuality *DriftCheckModelDataQuality + + // Represents the drift check model quality baselines that can be used when the + // model monitor is set using the model package. + ModelQuality *DriftCheckModelQuality + + noSmithyDocumentSerde +} + +// Represents the drift check bias baselines that can be used when the model +// monitor is set using the model package. +type DriftCheckBias struct { + + // The bias config file for a model. + ConfigFile *FileSource + + // + PostTrainingConstraints *MetricsSource + + // + PreTrainingConstraints *MetricsSource + + noSmithyDocumentSerde +} + +// Represents the drift check explainability baselines that can be used when the +// model monitor is set using the model package. +type DriftCheckExplainability struct { + + // The explainability config file for the model. + ConfigFile *FileSource + + // + Constraints *MetricsSource + + noSmithyDocumentSerde +} + +// Represents the drift check data quality baselines that can be used when the +// model monitor is set using the model package. +type DriftCheckModelDataQuality struct { + + // + Constraints *MetricsSource + + // + Statistics *MetricsSource + + noSmithyDocumentSerde +} + +// Represents the drift check model quality baselines that can be used when the +// model monitor is set using the model package. +type DriftCheckModelQuality struct { + + // + Constraints *MetricsSource + + // + Statistics *MetricsSource + + noSmithyDocumentSerde +} + +// A directed edge connecting two lineage entities. +type Edge struct { + + // The type of the Association(Edge) between the source and destination. For + // example ContributedTo, Produced, or DerivedFrom. + AssociationType AssociationEdgeType + + // The Amazon Resource Name (ARN) of the destination lineage entity of the directed + // edge. + DestinationArn *string + + // The Amazon Resource Name (ARN) of the source lineage entity of the directed + // edge. + SourceArn *string + + noSmithyDocumentSerde +} + // The model on the edge device. type EdgeModel struct { @@ -3305,6 +3503,51 @@ type EndpointInput struct { noSmithyDocumentSerde } +// The endpoint configuration for the load test. +type EndpointInputConfiguration struct { + + // The instance types to use for the load test. + // + // This member is required. + InstanceType ProductionVariantInstanceType + + // The parameter you want to benchmark against. + EnvironmentParameterRanges *EnvironmentParameterRanges + + // The inference specification name in the model package version. + InferenceSpecificationName *string + + noSmithyDocumentSerde +} + +// The endpoint configuration made by Inference Recommender during a recommendation +// job. +type EndpointOutputConfiguration struct { + + // The name of the endpoint made during a recommendation job. + // + // This member is required. + EndpointName *string + + // The number of instances recommended to launch initially. + // + // This member is required. + InitialInstanceCount int32 + + // The instance type recommended by Amazon SageMaker Inference Recommender. + // + // This member is required. + InstanceType ProductionVariantInstanceType + + // The name of the production variant (deployed model) made during a recommendation + // job. + // + // This member is required. + VariantName *string + + noSmithyDocumentSerde +} + // Provides summary information for an endpoint. type EndpointSummary struct { @@ -3372,6 +3615,37 @@ type EndpointSummary struct { noSmithyDocumentSerde } +// A list of environment parameters suggested by the Amazon SageMaker Inference +// Recommender. +type EnvironmentParameter struct { + + // The environment key suggested by the Amazon SageMaker Inference Recommender. + // + // This member is required. + Key *string + + // The value suggested by the Amazon SageMaker Inference Recommender. + // + // This member is required. + Value *string + + // The value type suggested by the Amazon SageMaker Inference Recommender. + // + // This member is required. + ValueType *string + + noSmithyDocumentSerde +} + +// Specifies the range of environment parameters +type EnvironmentParameterRanges struct { + + // Specified a list of parameters for each category. + CategoricalParameterRanges []CategoricalParameter + + noSmithyDocumentSerde +} + // The properties of an experiment as returned by the Search API. type Experiment struct { @@ -3395,7 +3669,7 @@ type Experiment struct { ExperimentName *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // When the experiment was last modified. @@ -3596,6 +3870,23 @@ type FeatureGroupSummary struct { noSmithyDocumentSerde } +// Contains details regarding the file source. +type FileSource struct { + + // The Amazon S3 URI for the file source. + // + // This member is required. + S3Uri *string + + // The digest of the file source. + ContentDigest *string + + // The type of content stored in the file source. + ContentType *string + + noSmithyDocumentSerde +} + // The Amazon Elastic File System (EFS) storage configuration for a SageMaker // image. type FileSystemConfig struct { @@ -5127,8 +5418,7 @@ type HumanTaskConfig struct { // (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-point-cloud.html) and video // frame (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-video.html) labeling // jobs, the maximum is 30 days (2952,000 seconds) for non-AL mode. For most users, - // the maximum is also 30 days. If you want to change these limits, contact Amazon - // Web Services Support. + // the maximum is also 30 days. // // This member is required. TaskTimeLimitInSeconds *int32 @@ -5168,7 +5458,7 @@ type HumanTaskConfig struct { // // * If you choose a private or vendor workforce, the default value is // 30 days (2592,000 seconds) for non-AL mode. For most users, the maximum is also - // 30 days. If you want to change this limit, contact Amazon Web Services Support. + // 30 days. TaskAvailabilityLifetimeInSeconds *int32 // Keywords used to describe the task so that workers on Amazon Mechanical Turk can @@ -5746,6 +6036,80 @@ type InferenceExecutionConfig struct { noSmithyDocumentSerde } +// A list of recommendations made by Amazon SageMaker Inference Recommender. +type InferenceRecommendation struct { + + // Defines the endpoint configuration parameters. + // + // This member is required. + EndpointConfiguration *EndpointOutputConfiguration + + // The metrics used to decide what recommendation to make. + // + // This member is required. + Metrics *RecommendationMetrics + + // Defines the model configuration. + // + // This member is required. + ModelConfiguration *ModelConfiguration + + noSmithyDocumentSerde +} + +// A structure that contains a list of recommendation jobs. +type InferenceRecommendationsJob struct { + + // A timestamp that shows when the job was created. + // + // This member is required. + CreationTime *time.Time + + // The Amazon Resource Name (ARN) of the recommendation job. + // + // This member is required. + JobArn *string + + // The job description. + // + // This member is required. + JobDescription *string + + // The name of the job. + // + // This member is required. + JobName *string + + // The recommendation job type. + // + // This member is required. + JobType RecommendationJobType + + // A timestamp that shows when the job was last modified. + // + // This member is required. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to + // perform tasks on your behalf. + // + // This member is required. + RoleArn *string + + // The status of the job. + // + // This member is required. + Status RecommendationJobStatus + + // A timestamp that shows when the job completed. + CompletionTime *time.Time + + // If the job fails, provides information why the job failed. + FailureReason *string + + noSmithyDocumentSerde +} + // Defines how to perform inference generation after a training job is run. type InferenceSpecification struct { @@ -6477,6 +6841,28 @@ type LambdaStepMetadata struct { noSmithyDocumentSerde } +// Lists a summary of the properties of a lineage group. A lineage group provides a +// group of shareable lineage entity resources. +type LineageGroupSummary struct { + + // The creation time of the lineage group summary. + CreationTime *time.Time + + // The display name of the lineage group summary. + DisplayName *string + + // The last modified time of the lineage group summary. + LastModifiedTime *time.Time + + // The Amazon Resource Name (ARN) of the lineage group resource. + LineageGroupArn *string + + // The name or Amazon Resource Name (ARN) of the lineage group. + LineageGroupName *string + + noSmithyDocumentSerde +} + // Defines an Amazon Cognito or your own OIDC IdP user group that is part of a work // team. type MemberDefinition struct { @@ -6661,6 +7047,19 @@ type ModelClientConfig struct { noSmithyDocumentSerde } +// Defines the model configuration. Includes the specification name and environment +// parameters. +type ModelConfiguration struct { + + // Defines the environment parameters that includes key, value types, and values. + EnvironmentParameters []EnvironmentParameter + + // The inference specification name in the model package version. + InferenceSpecificationName *string + + noSmithyDocumentSerde +} + // Data quality constraints and statistics for a model. type ModelDataQuality struct { @@ -6756,6 +7155,88 @@ type ModelExplainabilityJobInput struct { noSmithyDocumentSerde } +// Input object for the model. +type ModelInput struct { + + // The input configuration object for the model. + // + // This member is required. + DataInputConfig *string + + noSmithyDocumentSerde +} + +// The model latency threshold. +type ModelLatencyThreshold struct { + + // The model latency percentile threshold. + Percentile *string + + // The model latency percentile value in milliseconds. + ValueInMilliseconds int32 + + noSmithyDocumentSerde +} + +// Part of the search expression. You can specify the name and value (domain, task, +// framework, framework version, task, and model). +type ModelMetadataFilter struct { + + // The name of the of the model to filter by. + // + // This member is required. + Name ModelMetadataFilterType + + // The value to filter the model metadata. + // + // This member is required. + Value *string + + noSmithyDocumentSerde +} + +// One or more filters that searches for the specified resource or resources in a +// search. All resource objects that satisfy the expression's condition are +// included in the search results +type ModelMetadataSearchExpression struct { + + // A list of filter objects. + Filters []ModelMetadataFilter + + noSmithyDocumentSerde +} + +// A summary of the model metadata. +type ModelMetadataSummary struct { + + // The machine learning domain of the model. + // + // This member is required. + Domain *string + + // The machine learning framework of the model. + // + // This member is required. + Framework *string + + // The framework version of the model. + // + // This member is required. + FrameworkVersion *string + + // The name of the model. + // + // This member is required. + Model *string + + // The machine learning task of the model. + // + // This member is required. + Task *string + + noSmithyDocumentSerde +} + // Contains metrics captured from a model. type ModelMetrics struct { @@ -6777,6 +7258,9 @@ type ModelMetrics struct { // A versioned model that can be deployed for SageMaker inference. type ModelPackage struct { + // An array of additional Inference Specification objects. + AdditionalInferenceSpecifications []AdditionalInferenceSpecificationDefinition + // A description provided when the model approval is set. ApprovalDescription *string @@ -6788,7 +7272,7 @@ type ModelPackage struct { CertifyForMarketplace bool // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *UserContext // The time that the model package was created. @@ -6797,11 +7281,20 @@ type ModelPackage struct { // The metadata properties for the model package. CustomerMetadataProperties map[string]string + // The machine learning domain of your model package and its components. Common + // machine learning domains include computer vision and natural language + // processing. + Domain *string + + // Represents the drift check baselines that can be used when the model monitor is + // set using the model package. + DriftCheckBaselines *DriftCheckBaselines + // Defines how to perform inference generation after a training job is run. InferenceSpecification *InferenceSpecification // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // The last time the model package was modified. @@ -6859,6 +7352,10 @@ type ModelPackage struct { // The version number of a versioned model. ModelPackageVersion *int32 + // The Amazon Simple Storage Service path where the sample payload are stored. This + // path must point to a single gzip compressed tar archive (.tar.gz suffix). + SamplePayloadUrl *string + // A list of algorithms that were used to create a model package. SourceAlgorithmSpecification *SourceAlgorithmSpecification @@ -6868,6 +7365,10 @@ type ModelPackage struct { // Web Services General Reference Guide. Tags []Tag + // The machine learning task your model package accomplishes. Common machine + // learning tasks include object detection and image classification. + Task *string + // Specifies batch transform jobs that Amazon SageMaker runs to validate your model // package. ValidationSpecification *ModelPackageValidationSpecification @@ -6897,6 +7398,12 @@ type ModelPackageContainerDefinition struct { // up to 16 entries in the map. Environment map[string]string + // The machine learning framework of the model package container image. + Framework *string + + // The framework version of the Model Package Container Image. + FrameworkVersion *string + // An MD5 hash of the training algorithm that identifies the Docker image used for // training. ImageDigest *string @@ -6907,6 +7414,14 @@ type ModelPackageContainerDefinition struct { // same region as the model package. ModelDataUrl *string + // A structure with Model Input details. + ModelInput *ModelInput + + // The name of a pre-trained machine learning benchmarked by Amazon SageMaker + // Inference Recommender model that matches your model. You can find a list of + // benchmarked models by calling ListModelMetadata. + NearestModelName *string + // The Amazon Web Services Marketplace product ID of the model package. ProductId *string @@ -6917,7 +7432,7 @@ type ModelPackageContainerDefinition struct { type ModelPackageGroup struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *UserContext // The time that the model group was created. @@ -8428,6 +8943,11 @@ type PendingProductionVariantSummary struct { // The number of instances associated with the variant. CurrentInstanceCount *int32 + // The serverless configuration for the endpoint. Serverless Inference is in + // preview release for Amazon SageMaker and is subject to change. We do not + // recommend using this feature in production environments. + CurrentServerlessConfig *ProductionVariantServerlessConfig + // The weight associated with the variant. CurrentWeight *float32 @@ -8440,6 +8960,12 @@ type PendingProductionVariantSummary struct { // the CreateEndpointConfig operation. DesiredInstanceCount *int32 + // The serverless configuration requested for this deployment, as specified in the + // endpoint configuration for the endpoint. Serverless Inference is in preview + // release for Amazon SageMaker and is subject to change. We do not recommend using + // this feature in production environments. + DesiredServerlessConfig *ProductionVariantServerlessConfig + // The requested weight for the variant in this deployment, as specified in the // endpoint configuration for the endpoint. The value is taken from the request to // the CreateEndpointConfig operation. @@ -8455,18 +8981,33 @@ type PendingProductionVariantSummary struct { noSmithyDocumentSerde } +// Defines the traffic pattern. +type Phase struct { + + // Specifies how long traffic phase should be. + DurationInSeconds *int32 + + // Specifies how many concurrent users to start with. + InitialNumberOfUsers *int32 + + // Specified how many new users to spawn in a minute. + SpawnRate *int32 + + noSmithyDocumentSerde +} + // A SageMaker Model Building Pipeline instance. type Pipeline struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *UserContext // The creation time of the pipeline. CreationTime *time.Time // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // The time that the pipeline was last modified. @@ -8503,7 +9044,7 @@ type Pipeline struct { type PipelineExecution struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *UserContext // The creation time of the pipeline execution. @@ -8513,7 +9054,7 @@ type PipelineExecution struct { FailureReason *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // The time that the pipeline execution was last modified. @@ -8578,6 +9119,33 @@ type PipelineExecutionStepMetadata struct { // generated token, and a list of output parameters. Callback *CallbackStepMetadata + // Container for the metadata for a Clarify check step. The configurations and + // outcomes of the check step execution. This includes: + // + // * The type of the check + // conducted, + // + // * The Amazon S3 URIs of baseline constraints and statistics files to + // be used for the drift check. + // + // * The Amazon S3 URIs of newly calculated baseline + // constraints and statistics. + // + // * The model package group name provided. + // + // * The + // Amazon S3 URI of the violation report if violations detected. + // + // * The Amazon + // Resource Name (ARN) of check processing job initiated by the step execution. + // + // * + // The boolean flags indicating if the drift check is skipped. + // + // * If step property + // BaselineUsedForDriftCheck is set the same as CalculatedBaseline. + ClarifyCheck *ClarifyCheckStepMetadata + // The outcome of the condition evaluation that was run by this step execution. Condition *ConditionStepMetadata @@ -8593,6 +9161,33 @@ type PipelineExecutionStepMetadata struct { // execution. ProcessingJob *ProcessingJobStepMetadata + // The configurations and outcomes of the check step execution. This includes: + // + // * + // The type of the check conducted, + // + // * The Amazon S3 URIs of baseline constraints + // and statistics files to be used for the drift check. + // + // * The Amazon S3 URIs of + // newly calculated baseline constraints and statistics. + // + // * The model package group + // name provided. + // + // * The Amazon S3 URI of the violation report if violations + // detected. + // + // * The Amazon Resource Name (ARN) of check processing job initiated by + // the step execution. + // + // * The boolean flags indicating if the drift check is + // skipped. + // + // * If step property BaselineUsedForDriftCheck is set the same as + // CalculatedBaseline. + QualityCheck *QualityCheckStepMetadata + // The Amazon Resource Name (ARN) of the model package the model was registered to // by this step execution. RegisterModel *RegisterModelStepMetadata @@ -9046,16 +9641,6 @@ type ProcessingStoppingCondition struct { // distribute traffic among the models by specifying variant weights. type ProductionVariant struct { - // Number of instances to launch initially. - // - // This member is required. - InitialInstanceCount *int32 - - // The ML compute instance type. - // - // This member is required. - InstanceType ProductionVariantInstanceType - // The name of the model that you want to host. This is the name that you specified // when creating the model. // @@ -9077,12 +9662,24 @@ type ProductionVariant struct { // process crashes. CoreDumpConfig *ProductionVariantCoreDumpConfig + // Number of instances to launch initially. + InitialInstanceCount *int32 + // Determines initial traffic distribution among all of the models that you specify // in the endpoint configuration. The traffic to a production variant is determined // by the ratio of the VariantWeight to the sum of all VariantWeight values across // all ProductionVariants. If unspecified, it defaults to 1.0. InitialVariantWeight *float32 + // The ML compute instance type. + InstanceType ProductionVariantInstanceType + + // The serverless configuration for an endpoint. Specifies a serverless endpoint + // configuration instead of an instance-based endpoint configuration. Serverless + // Inference is in preview release for Amazon SageMaker and is subject to change. + // We do not recommend using this feature in production environments. + ServerlessConfig *ProductionVariantServerlessConfig + noSmithyDocumentSerde } @@ -9133,6 +9730,26 @@ type ProductionVariantCoreDumpConfig struct { noSmithyDocumentSerde } +// Serverless Inference is in preview release for Amazon SageMaker and is subject +// to change. We do not recommend using this feature in production environments. +// Specifies the serverless configuration for an endpoint variant. +type ProductionVariantServerlessConfig struct { + + // The maximum number of concurrent invocations your serverless endpoint can + // process. + // + // This member is required. + MaxConcurrency *int32 + + // The memory size of your serverless endpoint. Valid values are in 1 GB + // increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB. + // + // This member is required. + MemorySizeInMB *int32 + + noSmithyDocumentSerde +} + // Describes the status of the production variant. type ProductionVariantStatus struct { @@ -9180,6 +9797,11 @@ type ProductionVariantSummary struct { // The number of instances associated with the variant. CurrentInstanceCount *int32 + // The serverless configuration for the endpoint. Serverless Inference is in + // preview release for Amazon SageMaker and is subject to change. We do not + // recommend using this feature in production environments. + CurrentServerlessConfig *ProductionVariantServerlessConfig + // The weight associated with the variant. CurrentWeight *float32 @@ -9191,6 +9813,11 @@ type ProductionVariantSummary struct { // request. DesiredInstanceCount *int32 + // The serverless configuration requested for the endpoint update. Serverless + // Inference is in preview release for Amazon SageMaker and is subject to change. + // We do not recommend using this feature in production environments. + DesiredServerlessConfig *ProductionVariantServerlessConfig + // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities // request. DesiredWeight *float32 @@ -9321,7 +9948,7 @@ type Project struct { CreationTime *time.Time // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // A timestamp container for when the project was last modified. @@ -9658,6 +10285,165 @@ type PublicWorkforceTaskPrice struct { noSmithyDocumentSerde } +// Container for the metadata for a Quality check step. For more information, see +// the topic on QualityCheck step +// (https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-steps.html#step-type-quality-check) +// in the Amazon SageMaker Developer Guide. +type QualityCheckStepMetadata struct { + + // The Amazon S3 URI of the baseline constraints file used for the drift check. + BaselineUsedForDriftCheckConstraints *string + + // The Amazon S3 URI of the baseline statistics file used for the drift check. + BaselineUsedForDriftCheckStatistics *string + + // The Amazon S3 URI of the newly calculated baseline constraints file. + CalculatedBaselineConstraints *string + + // The Amazon S3 URI of the newly calculated baseline statistics file. + CalculatedBaselineStatistics *string + + // The Amazon Resource Name (ARN) of the Quality check processing job that was run + // by this step execution. + CheckJobArn *string + + // The type of the Quality check step. + CheckType *string + + // The model package group name. + ModelPackageGroupName *string + + // This flag indicates if a newly calculated baseline can be accessed through step + // properties BaselineUsedForDriftCheckConstraints and + // BaselineUsedForDriftCheckStatistics. If it is set to False, the previous + // baseline of the configured check type must also be available. These can be + // accessed through the BaselineUsedForDriftCheckConstraints and + // BaselineUsedForDriftCheckStatistics properties. + RegisterNewBaseline bool + + // This flag indicates if the drift check against the previous baseline will be + // skipped or not. If it is set to False, the previous baseline of the configured + // check type must be available. + SkipCheck bool + + // The Amazon S3 URI of violation report if violations are detected. + ViolationReport *string + + noSmithyDocumentSerde +} + +// A set of filters to narrow the set of lineage entities connected to the +// StartArn(s) returned by the QueryLineage API action. +type QueryFilters struct { + + // Filter the lineage entities connected to the StartArn(s) after the create date. + CreatedAfter *time.Time + + // Filter the lineage entities connected to the StartArn(s) by created date. + CreatedBefore *time.Time + + // Filter the lineage entities connected to the StartArn(s) by the type of the + // lineage entity. + LineageTypes []LineageType + + // Filter the lineage entities connected to the StartArn(s) after the last modified + // date. + ModifiedAfter *time.Time + + // Filter the lineage entities connected to the StartArn(s) before the last + // modified date. + ModifiedBefore *time.Time + + // Filter the lineage entities connected to the StartArn(s) by a set if property + // key value pairs. If multiple pairs are provided, an entity will be included in + // the results if it matches any of the provided pairs. + Properties map[string]string + + // Filter the lineage entities connected to the StartArn by type. For example: + // DataSet, Model, Endpoint, or ModelDeployment. + Types []string + + noSmithyDocumentSerde +} + +// The input configuration of the recommendation job. +type RecommendationJobInputConfig struct { + + // The Amazon Resource Name (ARN) of a versioned model package. + // + // This member is required. + ModelPackageVersionArn *string + + // Specifies the endpoint configuration to use for a job. + EndpointConfigurations []EndpointInputConfiguration + + // Specifies the maximum duration of the job, in seconds.> + JobDurationInSeconds *int32 + + // Defines the resource limit of the job. + ResourceLimit *RecommendationJobResourceLimit + + // Specifies the traffic pattern of the job. + TrafficPattern *TrafficPattern + + noSmithyDocumentSerde +} + +// Specifies the maximum number of jobs that can run in parallel and the maximum +// number of jobs that can run. +type RecommendationJobResourceLimit struct { + + // Defines the maximum number of load tests. + MaxNumberOfTests *int32 + + // Defines the maximum number of parallel load tests. + MaxParallelOfTests *int32 + + noSmithyDocumentSerde +} + +// Specifies conditions for stopping a job. When a job reaches a stopping condition +// limit, SageMaker ends the job. +type RecommendationJobStoppingConditions struct { + + // The maximum number of requests per minute expected for the endpoint. + MaxInvocations int32 + + // The interval of time taken by a model to respond as viewed from SageMaker. The + // interval includes the local communication time taken to send the request and to + // fetch the response from the container of a model and the time taken to complete + // the inference in the container. + ModelLatencyThresholds []ModelLatencyThreshold + + noSmithyDocumentSerde +} + +// The metrics of recommendations. +type RecommendationMetrics struct { + + // Defines the cost per hour for the instance. + // + // This member is required. + CostPerHour float32 + + // Defines the cost per inference for the instance . + // + // This member is required. + CostPerInference float32 + + // The expected maximum number of requests per minute for the instance. + // + // This member is required. + MaxInvocations int32 + + // The expected model latency at maximum invocation per minute for the instance. + // + // This member is required. + ModelLatency int32 + + noSmithyDocumentSerde +} + // Configuration for Redshift Dataset Definition input. type RedshiftDatasetDefinition struct { @@ -10655,6 +11441,18 @@ type TensorBoardOutputConfig struct { noSmithyDocumentSerde } +// Defines the traffic pattern of the load test. +type TrafficPattern struct { + + // Defines the phases traffic specification. + Phases []Phase + + // Defines the traffic patterns. + TrafficType TrafficType + + noSmithyDocumentSerde +} + // Defines the traffic routing strategy during an endpoint deployment to shift // traffic from the old fleet to the new fleet. type TrafficRoutingConfig struct { @@ -11537,7 +12335,7 @@ type Trial struct { ExperimentName *string // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // Who last modified the trial. @@ -11586,12 +12384,15 @@ type TrialComponent struct { InputArtifacts map[string]TrialComponentArtifact // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. LastModifiedBy *UserContext // When the component was last modified. LastModifiedTime *time.Time + // The Amazon Resource Name (ARN) of the lineage group resource. + LineageGroupArn *string + // Metadata properties of the tracking entity, trial, or trial component. MetadataProperties *MetadataProperties @@ -11722,7 +12523,7 @@ func (*TrialComponentParameterValueMemberStringValue) isTrialComponentParameterV type TrialComponentSimpleSummary struct { // Information about the user who created or modified an experiment, trial, trial - // component, or project. + // component, lineage group, or project. CreatedBy *UserContext // When the component was created. @@ -11995,7 +12796,7 @@ type USD struct { } // Information about the user who created or modified an experiment, trial, trial -// component, or project. +// component, lineage group, or project. type UserContext struct { // The domain associated with the user. @@ -12100,6 +12901,22 @@ type VariantProperty struct { noSmithyDocumentSerde } +// A lineage entity connected to the starting entity(ies). +type Vertex struct { + + // The Amazon Resource Name (ARN) of the lineage entity resource. + Arn *string + + // The type of resource of the lineage entity. + LineageType LineageType + + // The type of the lineage entity resource. For example: DataSet, Model, Endpoint, + // etc... + Type *string + + noSmithyDocumentSerde +} + // Specifies a VPC that your training jobs and hosted models have access to. // Control access to and from your training and model containers by configuring the // VPC. For more information, see Protect Endpoints by Using an Amazon Virtual diff --git a/service/sagemaker/validators.go b/service/sagemaker/validators.go index 9d835df4f30..e3d97bea215 100644 --- a/service/sagemaker/validators.go +++ b/service/sagemaker/validators.go @@ -530,6 +530,26 @@ func (m *validateOpCreateImageVersion) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpCreateInferenceRecommendationsJob struct { +} + +func (*validateOpCreateInferenceRecommendationsJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateInferenceRecommendationsJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateInferenceRecommendationsJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateInferenceRecommendationsJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateLabelingJob struct { } @@ -2230,6 +2250,26 @@ func (m *validateOpDescribeImageVersion) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDescribeInferenceRecommendationsJob struct { +} + +func (*validateOpDescribeInferenceRecommendationsJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeInferenceRecommendationsJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeInferenceRecommendationsJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeInferenceRecommendationsJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeLabelingJob struct { } @@ -2250,6 +2290,26 @@ func (m *validateOpDescribeLabelingJob) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDescribeLineageGroup struct { +} + +func (*validateOpDescribeLineageGroup) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeLineageGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeLineageGroupInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeLineageGroupInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeModelBiasJobDefinition struct { } @@ -2750,6 +2810,26 @@ func (m *validateOpGetDeviceFleetReport) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpGetLineageGroupPolicy struct { +} + +func (*validateOpGetLineageGroupPolicy) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetLineageGroupPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetLineageGroupPolicyInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetLineageGroupPolicyInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetModelPackageGroupPolicy struct { } @@ -2850,6 +2930,26 @@ func (m *validateOpListLabelingJobsForWorkteam) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpListModelMetadata struct { +} + +func (*validateOpListModelMetadata) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListModelMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListModelMetadataInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListModelMetadataInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListPipelineExecutions struct { } @@ -2950,6 +3050,26 @@ func (m *validateOpPutModelPackageGroupPolicy) HandleInitialize(ctx context.Cont return next.HandleInitialize(ctx, in) } +type validateOpQueryLineage struct { +} + +func (*validateOpQueryLineage) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpQueryLineage) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*QueryLineageInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpQueryLineageInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpRegisterDevices struct { } @@ -3210,6 +3330,26 @@ func (m *validateOpStopHyperParameterTuningJob) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpStopInferenceRecommendationsJob struct { +} + +func (*validateOpStopInferenceRecommendationsJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpStopInferenceRecommendationsJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*StopInferenceRecommendationsJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpStopInferenceRecommendationsJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpStopLabelingJob struct { } @@ -3954,6 +4094,10 @@ func addOpCreateImageVersionValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpCreateImageVersion{}, middleware.After) } +func addOpCreateInferenceRecommendationsJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateInferenceRecommendationsJob{}, middleware.After) +} + func addOpCreateLabelingJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateLabelingJob{}, middleware.After) } @@ -4294,10 +4438,18 @@ func addOpDescribeImageVersionValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDescribeImageVersion{}, middleware.After) } +func addOpDescribeInferenceRecommendationsJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeInferenceRecommendationsJob{}, middleware.After) +} + func addOpDescribeLabelingJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeLabelingJob{}, middleware.After) } +func addOpDescribeLineageGroupValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeLineageGroup{}, middleware.After) +} + func addOpDescribeModelBiasJobDefinitionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeModelBiasJobDefinition{}, middleware.After) } @@ -4398,6 +4550,10 @@ func addOpGetDeviceFleetReportValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpGetDeviceFleetReport{}, middleware.After) } +func addOpGetLineageGroupPolicyValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetLineageGroupPolicy{}, middleware.After) +} + func addOpGetModelPackageGroupPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetModelPackageGroupPolicy{}, middleware.After) } @@ -4418,6 +4574,10 @@ func addOpListLabelingJobsForWorkteamValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpListLabelingJobsForWorkteam{}, middleware.After) } +func addOpListModelMetadataValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListModelMetadata{}, middleware.After) +} + func addOpListPipelineExecutionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListPipelineExecutions{}, middleware.After) } @@ -4438,6 +4598,10 @@ func addOpPutModelPackageGroupPolicyValidationMiddleware(stack *middleware.Stack return stack.Initialize.Add(&validateOpPutModelPackageGroupPolicy{}, middleware.After) } +func addOpQueryLineageValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpQueryLineage{}, middleware.After) +} + func addOpRegisterDevicesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpRegisterDevices{}, middleware.After) } @@ -4490,6 +4654,10 @@ func addOpStopHyperParameterTuningJobValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpStopHyperParameterTuningJob{}, middleware.After) } +func addOpStopInferenceRecommendationsJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpStopInferenceRecommendationsJob{}, middleware.After) +} + func addOpStopLabelingJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStopLabelingJob{}, middleware.After) } @@ -4633,6 +4801,45 @@ func validateActionSource(v *types.ActionSource) error { } } +func validateAdditionalInferenceSpecificationDefinition(v *types.AdditionalInferenceSpecificationDefinition) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AdditionalInferenceSpecificationDefinition"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Containers == nil { + invalidParams.Add(smithy.NewErrParamRequired("Containers")) + } else if v.Containers != nil { + if err := validateModelPackageContainerDefinitionList(v.Containers); err != nil { + invalidParams.AddNested("Containers", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAdditionalInferenceSpecifications(v []types.AdditionalInferenceSpecificationDefinition) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AdditionalInferenceSpecifications"} + for i := range v { + if err := validateAdditionalInferenceSpecificationDefinition(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateAlgorithmSpecification(v *types.AlgorithmSpecification) error { if v == nil { return nil @@ -5015,6 +5222,16 @@ func validateBias(v *types.Bias) error { invalidParams.AddNested("Report", err.(smithy.InvalidParamsError)) } } + if v.PreTrainingReport != nil { + if err := validateMetricsSource(v.PreTrainingReport); err != nil { + invalidParams.AddNested("PreTrainingReport", err.(smithy.InvalidParamsError)) + } + } + if v.PostTrainingReport != nil { + if err := validateMetricsSource(v.PostTrainingReport); err != nil { + invalidParams.AddNested("PostTrainingReport", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5091,6 +5308,24 @@ func validateCaptureOptionList(v []types.CaptureOption) error { } } +func validateCategoricalParameter(v *types.CategoricalParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CategoricalParameter"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCategoricalParameterRange(v *types.CategoricalParameterRange) error { if v == nil { return nil @@ -5141,6 +5376,23 @@ func validateCategoricalParameterRangeSpecification(v *types.CategoricalParamete } } +func validateCategoricalParameters(v []types.CategoricalParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CategoricalParameters"} + for i := range v { + if err := validateCategoricalParameter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateChannel(v *types.Channel) error { if v == nil { return nil @@ -5640,15 +5892,189 @@ func validateDevice(v *types.Device) error { } } -func validateDevices(v []types.Device) error { +func validateDevices(v []types.Device) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Devices"} + for i := range v { + if err := validateDevice(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDomainSettings(v *types.DomainSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DomainSettings"} + if v.RStudioServerProDomainSettings != nil { + if err := validateRStudioServerProDomainSettings(v.RStudioServerProDomainSettings); err != nil { + invalidParams.AddNested("RStudioServerProDomainSettings", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDomainSettingsForUpdate(v *types.DomainSettingsForUpdate) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DomainSettingsForUpdate"} + if v.RStudioServerProDomainSettingsForUpdate != nil { + if err := validateRStudioServerProDomainSettingsForUpdate(v.RStudioServerProDomainSettingsForUpdate); err != nil { + invalidParams.AddNested("RStudioServerProDomainSettingsForUpdate", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDriftCheckBaselines(v *types.DriftCheckBaselines) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DriftCheckBaselines"} + if v.Bias != nil { + if err := validateDriftCheckBias(v.Bias); err != nil { + invalidParams.AddNested("Bias", err.(smithy.InvalidParamsError)) + } + } + if v.Explainability != nil { + if err := validateDriftCheckExplainability(v.Explainability); err != nil { + invalidParams.AddNested("Explainability", err.(smithy.InvalidParamsError)) + } + } + if v.ModelQuality != nil { + if err := validateDriftCheckModelQuality(v.ModelQuality); err != nil { + invalidParams.AddNested("ModelQuality", err.(smithy.InvalidParamsError)) + } + } + if v.ModelDataQuality != nil { + if err := validateDriftCheckModelDataQuality(v.ModelDataQuality); err != nil { + invalidParams.AddNested("ModelDataQuality", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDriftCheckBias(v *types.DriftCheckBias) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DriftCheckBias"} + if v.ConfigFile != nil { + if err := validateFileSource(v.ConfigFile); err != nil { + invalidParams.AddNested("ConfigFile", err.(smithy.InvalidParamsError)) + } + } + if v.PreTrainingConstraints != nil { + if err := validateMetricsSource(v.PreTrainingConstraints); err != nil { + invalidParams.AddNested("PreTrainingConstraints", err.(smithy.InvalidParamsError)) + } + } + if v.PostTrainingConstraints != nil { + if err := validateMetricsSource(v.PostTrainingConstraints); err != nil { + invalidParams.AddNested("PostTrainingConstraints", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDriftCheckExplainability(v *types.DriftCheckExplainability) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DriftCheckExplainability"} + if v.Constraints != nil { + if err := validateMetricsSource(v.Constraints); err != nil { + invalidParams.AddNested("Constraints", err.(smithy.InvalidParamsError)) + } + } + if v.ConfigFile != nil { + if err := validateFileSource(v.ConfigFile); err != nil { + invalidParams.AddNested("ConfigFile", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDriftCheckModelDataQuality(v *types.DriftCheckModelDataQuality) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DriftCheckModelDataQuality"} + if v.Statistics != nil { + if err := validateMetricsSource(v.Statistics); err != nil { + invalidParams.AddNested("Statistics", err.(smithy.InvalidParamsError)) + } + } + if v.Constraints != nil { + if err := validateMetricsSource(v.Constraints); err != nil { + invalidParams.AddNested("Constraints", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDriftCheckModelQuality(v *types.DriftCheckModelQuality) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DriftCheckModelQuality"} + if v.Statistics != nil { + if err := validateMetricsSource(v.Statistics); err != nil { + invalidParams.AddNested("Statistics", err.(smithy.InvalidParamsError)) + } + } + if v.Constraints != nil { + if err := validateMetricsSource(v.Constraints); err != nil { + invalidParams.AddNested("Constraints", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateEdgeOutputConfig(v *types.EdgeOutputConfig) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "Devices"} - for i := range v { - if err := validateDevice(&v[i]); err != nil { - invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) - } + invalidParams := smithy.InvalidParamsError{Context: "EdgeOutputConfig"} + if v.S3OutputLocation == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3OutputLocation")) } if invalidParams.Len() > 0 { return invalidParams @@ -5657,15 +6083,16 @@ func validateDevices(v []types.Device) error { } } -func validateDomainSettings(v *types.DomainSettings) error { +func validateEndpointInput(v *types.EndpointInput) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "DomainSettings"} - if v.RStudioServerProDomainSettings != nil { - if err := validateRStudioServerProDomainSettings(v.RStudioServerProDomainSettings); err != nil { - invalidParams.AddNested("RStudioServerProDomainSettings", err.(smithy.InvalidParamsError)) - } + invalidParams := smithy.InvalidParamsError{Context: "EndpointInput"} + if v.EndpointName == nil { + invalidParams.Add(smithy.NewErrParamRequired("EndpointName")) + } + if v.LocalPath == nil { + invalidParams.Add(smithy.NewErrParamRequired("LocalPath")) } if invalidParams.Len() > 0 { return invalidParams @@ -5674,14 +6101,17 @@ func validateDomainSettings(v *types.DomainSettings) error { } } -func validateDomainSettingsForUpdate(v *types.DomainSettingsForUpdate) error { +func validateEndpointInputConfiguration(v *types.EndpointInputConfiguration) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "DomainSettingsForUpdate"} - if v.RStudioServerProDomainSettingsForUpdate != nil { - if err := validateRStudioServerProDomainSettingsForUpdate(v.RStudioServerProDomainSettingsForUpdate); err != nil { - invalidParams.AddNested("RStudioServerProDomainSettingsForUpdate", err.(smithy.InvalidParamsError)) + invalidParams := smithy.InvalidParamsError{Context: "EndpointInputConfiguration"} + if len(v.InstanceType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InstanceType")) + } + if v.EnvironmentParameterRanges != nil { + if err := validateEnvironmentParameterRanges(v.EnvironmentParameterRanges); err != nil { + invalidParams.AddNested("EnvironmentParameterRanges", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { @@ -5691,13 +6121,15 @@ func validateDomainSettingsForUpdate(v *types.DomainSettingsForUpdate) error { } } -func validateEdgeOutputConfig(v *types.EdgeOutputConfig) error { +func validateEndpointInputConfigurations(v []types.EndpointInputConfiguration) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "EdgeOutputConfig"} - if v.S3OutputLocation == nil { - invalidParams.Add(smithy.NewErrParamRequired("S3OutputLocation")) + invalidParams := smithy.InvalidParamsError{Context: "EndpointInputConfigurations"} + for i := range v { + if err := validateEndpointInputConfiguration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams @@ -5706,16 +6138,15 @@ func validateEdgeOutputConfig(v *types.EdgeOutputConfig) error { } } -func validateEndpointInput(v *types.EndpointInput) error { +func validateEnvironmentParameterRanges(v *types.EnvironmentParameterRanges) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "EndpointInput"} - if v.EndpointName == nil { - invalidParams.Add(smithy.NewErrParamRequired("EndpointName")) - } - if v.LocalPath == nil { - invalidParams.Add(smithy.NewErrParamRequired("LocalPath")) + invalidParams := smithy.InvalidParamsError{Context: "EnvironmentParameterRanges"} + if v.CategoricalParameterRanges != nil { + if err := validateCategoricalParameters(v.CategoricalParameterRanges); err != nil { + invalidParams.AddNested("CategoricalParameterRanges", err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams @@ -5741,6 +6172,21 @@ func validateExplainability(v *types.Explainability) error { } } +func validateFileSource(v *types.FileSource) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FileSource"} + if v.S3Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("S3Uri")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateFileSystemDataSource(v *types.FileSystemDataSource) error { if v == nil { return nil @@ -6693,6 +7139,73 @@ func validateModelExplainabilityJobInput(v *types.ModelExplainabilityJobInput) e } } +func validateModelInput(v *types.ModelInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModelInput"} + if v.DataInputConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataInputConfig")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateModelMetadataFilter(v *types.ModelMetadataFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModelMetadataFilter"} + if len(v.Name) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateModelMetadataFilters(v []types.ModelMetadataFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModelMetadataFilters"} + for i := range v { + if err := validateModelMetadataFilter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateModelMetadataSearchExpression(v *types.ModelMetadataSearchExpression) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModelMetadataSearchExpression"} + if v.Filters != nil { + if err := validateModelMetadataFilters(v.Filters); err != nil { + invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateModelMetrics(v *types.ModelMetrics) error { if v == nil { return nil @@ -6733,6 +7246,11 @@ func validateModelPackageContainerDefinition(v *types.ModelPackageContainerDefin if v.Image == nil { invalidParams.Add(smithy.NewErrParamRequired("Image")) } + if v.ModelInput != nil { + if err := validateModelInput(v.ModelInput); err != nil { + invalidParams.AddNested("ModelInput", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7673,17 +8191,16 @@ func validateProductionVariant(v *types.ProductionVariant) error { if v.ModelName == nil { invalidParams.Add(smithy.NewErrParamRequired("ModelName")) } - if v.InitialInstanceCount == nil { - invalidParams.Add(smithy.NewErrParamRequired("InitialInstanceCount")) - } - if len(v.InstanceType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("InstanceType")) - } if v.CoreDumpConfig != nil { if err := validateProductionVariantCoreDumpConfig(v.CoreDumpConfig); err != nil { invalidParams.AddNested("CoreDumpConfig", err.(smithy.InvalidParamsError)) } } + if v.ServerlessConfig != nil { + if err := validateProductionVariantServerlessConfig(v.ServerlessConfig); err != nil { + invalidParams.AddNested("ServerlessConfig", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7723,6 +8240,24 @@ func validateProductionVariantList(v []types.ProductionVariant) error { } } +func validateProductionVariantServerlessConfig(v *types.ProductionVariantServerlessConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ProductionVariantServerlessConfig"} + if v.MemorySizeInMB == nil { + invalidParams.Add(smithy.NewErrParamRequired("MemorySizeInMB")) + } + if v.MaxConcurrency == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxConcurrency")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateProfilerConfig(v *types.ProfilerConfig) error { if v == nil { return nil @@ -7788,6 +8323,26 @@ func validatePropertyNameQuery(v *types.PropertyNameQuery) error { } } +func validateRecommendationJobInputConfig(v *types.RecommendationJobInputConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RecommendationJobInputConfig"} + if v.ModelPackageVersionArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ModelPackageVersionArn")) + } + if v.EndpointConfigurations != nil { + if err := validateEndpointInputConfigurations(v.EndpointConfigurations); err != nil { + invalidParams.AddNested("EndpointConfigurations", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRedshiftDatasetDefinition(v *types.RedshiftDatasetDefinition) error { if v == nil { return nil @@ -8855,9 +9410,7 @@ func validateOpCreateCompilationJobInput(v *CreateCompilationJobInput) error { if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } - if v.InputConfig == nil { - invalidParams.Add(smithy.NewErrParamRequired("InputConfig")) - } else if v.InputConfig != nil { + if v.InputConfig != nil { if err := validateInputConfig(v.InputConfig); err != nil { invalidParams.AddNested("InputConfig", err.(smithy.InvalidParamsError)) } @@ -9366,6 +9919,39 @@ func validateOpCreateImageVersionInput(v *CreateImageVersionInput) error { } } +func validateOpCreateInferenceRecommendationsJobInput(v *CreateInferenceRecommendationsJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateInferenceRecommendationsJobInput"} + if v.JobName == nil { + invalidParams.Add(smithy.NewErrParamRequired("JobName")) + } + if len(v.JobType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("JobType")) + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if v.InputConfig == nil { + invalidParams.Add(smithy.NewErrParamRequired("InputConfig")) + } else if v.InputConfig != nil { + if err := validateRecommendationJobInputConfig(v.InputConfig); err != nil { + invalidParams.AddNested("InputConfig", err.(smithy.InvalidParamsError)) + } + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateLabelingJobInput(v *CreateLabelingJobInput) error { if v == nil { return nil @@ -9633,6 +10219,16 @@ func validateOpCreateModelPackageInput(v *CreateModelPackageInput) error { invalidParams.AddNested("ModelMetrics", err.(smithy.InvalidParamsError)) } } + if v.DriftCheckBaselines != nil { + if err := validateDriftCheckBaselines(v.DriftCheckBaselines); err != nil { + invalidParams.AddNested("DriftCheckBaselines", err.(smithy.InvalidParamsError)) + } + } + if v.AdditionalInferenceSpecifications != nil { + if err := validateAdditionalInferenceSpecifications(v.AdditionalInferenceSpecifications); err != nil { + invalidParams.AddNested("AdditionalInferenceSpecifications", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11194,6 +11790,21 @@ func validateOpDescribeImageVersionInput(v *DescribeImageVersionInput) error { } } +func validateOpDescribeInferenceRecommendationsJobInput(v *DescribeInferenceRecommendationsJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeInferenceRecommendationsJobInput"} + if v.JobName == nil { + invalidParams.Add(smithy.NewErrParamRequired("JobName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeLabelingJobInput(v *DescribeLabelingJobInput) error { if v == nil { return nil @@ -11209,6 +11820,21 @@ func validateOpDescribeLabelingJobInput(v *DescribeLabelingJobInput) error { } } +func validateOpDescribeLineageGroupInput(v *DescribeLineageGroupInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeLineageGroupInput"} + if v.LineageGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("LineageGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeModelBiasJobDefinitionInput(v *DescribeModelBiasJobDefinitionInput) error { if v == nil { return nil @@ -11590,6 +12216,21 @@ func validateOpGetDeviceFleetReportInput(v *GetDeviceFleetReportInput) error { } } +func validateOpGetLineageGroupPolicyInput(v *GetLineageGroupPolicyInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetLineageGroupPolicyInput"} + if v.LineageGroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("LineageGroupName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetModelPackageGroupPolicyInput(v *GetModelPackageGroupPolicyInput) error { if v == nil { return nil @@ -11670,6 +12311,23 @@ func validateOpListLabelingJobsForWorkteamInput(v *ListLabelingJobsForWorkteamIn } } +func validateOpListModelMetadataInput(v *ListModelMetadataInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListModelMetadataInput"} + if v.SearchExpression != nil { + if err := validateModelMetadataSearchExpression(v.SearchExpression); err != nil { + invalidParams.AddNested("SearchExpression", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListPipelineExecutionsInput(v *ListPipelineExecutionsInput) error { if v == nil { return nil @@ -11748,6 +12406,21 @@ func validateOpPutModelPackageGroupPolicyInput(v *PutModelPackageGroupPolicyInpu } } +func validateOpQueryLineageInput(v *QueryLineageInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "QueryLineageInput"} + if v.StartArns == nil { + invalidParams.Add(smithy.NewErrParamRequired("StartArns")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpRegisterDevicesInput(v *RegisterDevicesInput) error { if v == nil { return nil @@ -11988,6 +12661,21 @@ func validateOpStopHyperParameterTuningJobInput(v *StopHyperParameterTuningJobIn } } +func validateOpStopInferenceRecommendationsJobInput(v *StopInferenceRecommendationsJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StopInferenceRecommendationsJobInput"} + if v.JobName == nil { + invalidParams.Add(smithy.NewErrParamRequired("JobName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpStopLabelingJobInput(v *StopLabelingJobInput) error { if v == nil { return nil @@ -12333,6 +13021,11 @@ func validateOpUpdateModelPackageInput(v *UpdateModelPackageInput) error { if v.ModelPackageArn == nil { invalidParams.Add(smithy.NewErrParamRequired("ModelPackageArn")) } + if v.AdditionalInferenceSpecificationsToAdd != nil { + if err := validateAdditionalInferenceSpecifications(v.AdditionalInferenceSpecificationsToAdd); err != nil { + invalidParams.AddNested("AdditionalInferenceSpecificationsToAdd", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/sagemakerruntime/api_op_InvokeEndpoint.go b/service/sagemakerruntime/api_op_InvokeEndpoint.go index 98a0b43ab49..0032fabf942 100644 --- a/service/sagemakerruntime/api_op_InvokeEndpoint.go +++ b/service/sagemakerruntime/api_op_InvokeEndpoint.go @@ -17,8 +17,9 @@ import ( // Amazon SageMaker strips all POST headers except those supported by the API. // Amazon SageMaker might add additional headers. You should not rely on the // behavior of headers outside those enumerated in the request syntax. Calls to -// InvokeEndpoint are authenticated by using AWS Signature Version 4. For -// information, see Authenticating Requests (AWS Signature Version 4) +// InvokeEndpoint are authenticated by using Amazon Web Services Signature Version +// 4. For information, see Authenticating Requests (Amazon Web Services Signature +// Version 4) // (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) // in the Amazon S3 API Reference. A customer's model containers must respond to // requests within 60 seconds. The model itself can have a maximum processing time @@ -78,7 +79,8 @@ type InvokeEndpointInput struct { // this value in the response, an empty value is returned. For example, if a custom // attribute represents the trace ID, your model can prepend the custom attribute // with Trace ID: in your post-processing function. This feature is currently - // supported in the AWS SDKs but not in the Amazon SageMaker Python SDK. + // supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python + // SDK. CustomAttributes *string // If you provide a value, it is added to the captured data when you enable data @@ -130,8 +132,8 @@ type InvokeEndpointOutput struct { // response. If your code does not set this value in the response, an empty value // is returned. For example, if a custom attribute represents the trace ID, your // model can prepend the custom attribute with Trace ID: in your post-processing - // function. This feature is currently supported in the AWS SDKs but not in the - // Amazon SageMaker Python SDK. + // function. This feature is currently supported in the Amazon Web Services SDKs + // but not in the Amazon SageMaker Python SDK. CustomAttributes *string // Identifies the production variant that was invoked. diff --git a/service/sagemakerruntime/api_op_InvokeEndpointAsync.go b/service/sagemakerruntime/api_op_InvokeEndpointAsync.go index 4ddb7c12c39..c3d8ad91b2e 100644 --- a/service/sagemakerruntime/api_op_InvokeEndpointAsync.go +++ b/service/sagemakerruntime/api_op_InvokeEndpointAsync.go @@ -20,9 +20,10 @@ import ( // SageMaker strips all POST headers except those supported by the API. Amazon // SageMaker might add additional headers. You should not rely on the behavior of // headers outside those enumerated in the request syntax. Calls to -// InvokeEndpointAsync are authenticated by using AWS Signature Version 4. For -// information, see Authenticating Requests (AWS Signature Version 4) -// (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) +// InvokeEndpointAsync are authenticated by using Amazon Web Services Signature +// Version 4. For information, see Authenticating Requests (Amazon Web Services +// Signature Version 4) +// (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) // in the Amazon S3 API Reference. func (c *Client) InvokeEndpointAsync(ctx context.Context, params *InvokeEndpointAsyncInput, optFns ...func(*Options)) (*InvokeEndpointAsyncOutput, error) { if params == nil { @@ -72,7 +73,8 @@ type InvokeEndpointAsyncInput struct { // not set this value in the response, an empty value is returned. For example, if // a custom attribute represents the trace ID, your model can prepend the custom // attribute with Trace ID: in your post-processing function. This feature is - // currently supported in the AWS SDKs but not in the Amazon SageMaker Python SDK. + // currently supported in the Amazon Web Services SDKs but not in the Amazon + // SageMaker Python SDK. CustomAttributes *string // The identifier for the inference request. Amazon SageMaker will generate an diff --git a/service/sagemakerruntime/deserializers.go b/service/sagemakerruntime/deserializers.go index b78d7ae84a1..803523d3e4f 100644 --- a/service/sagemakerruntime/deserializers.go +++ b/service/sagemakerruntime/deserializers.go @@ -99,12 +99,18 @@ func awsRestjson1_deserializeOpErrorInvokeEndpoint(response *smithyhttp.Response } switch { + case strings.EqualFold("InternalDependencyException", errorCode): + return awsRestjson1_deserializeErrorInternalDependencyException(response, errorBody) + case strings.EqualFold("InternalFailure", errorCode): return awsRestjson1_deserializeErrorInternalFailure(response, errorBody) case strings.EqualFold("ModelError", errorCode): return awsRestjson1_deserializeErrorModelError(response, errorBody) + case strings.EqualFold("ModelNotReadyException", errorCode): + return awsRestjson1_deserializeErrorModelNotReadyException(response, errorBody) + case strings.EqualFold("ServiceUnavailable", errorCode): return awsRestjson1_deserializeErrorServiceUnavailable(response, errorBody) @@ -332,6 +338,42 @@ func awsRestjson1_deserializeOpDocumentInvokeEndpointAsyncOutput(v **InvokeEndpo return nil } +func awsRestjson1_deserializeErrorInternalDependencyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalDependencyException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalDependencyException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + func awsRestjson1_deserializeErrorInternalFailure(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.InternalFailure{} var buff [1024]byte @@ -404,6 +446,42 @@ func awsRestjson1_deserializeErrorModelError(response *smithyhttp.Response, erro return output } +func awsRestjson1_deserializeErrorModelNotReadyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ModelNotReadyException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentModelNotReadyException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + func awsRestjson1_deserializeErrorServiceUnavailable(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.ServiceUnavailable{} var buff [1024]byte @@ -476,6 +554,46 @@ func awsRestjson1_deserializeErrorValidationError(response *smithyhttp.Response, return output } +func awsRestjson1_deserializeDocumentInternalDependencyException(v **types.InternalDependencyException, 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.InternalDependencyException + if *v == nil { + sv = &types.InternalDependencyException{} + } 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 Message to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentInternalFailure(v **types.InternalFailure, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -587,6 +705,46 @@ func awsRestjson1_deserializeDocumentModelError(v **types.ModelError, value inte return nil } +func awsRestjson1_deserializeDocumentModelNotReadyException(v **types.ModelNotReadyException, 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.ModelNotReadyException + if *v == nil { + sv = &types.ModelNotReadyException{} + } 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 Message to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentServiceUnavailable(v **types.ServiceUnavailable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/sagemakerruntime/types/errors.go b/service/sagemakerruntime/types/errors.go index 186554f8937..6a65e3296ce 100644 --- a/service/sagemakerruntime/types/errors.go +++ b/service/sagemakerruntime/types/errors.go @@ -7,6 +7,26 @@ import ( smithy "github.com/aws/smithy-go" ) +// Your request caused an exception with an internal dependency. Contact customer +// support. +type InternalDependencyException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *InternalDependencyException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalDependencyException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalDependencyException) ErrorCode() string { return "InternalDependencyException" } +func (e *InternalDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + // An internal failure occurred. type InternalFailure struct { Message *string @@ -49,6 +69,27 @@ func (e *ModelError) ErrorMessage() string { func (e *ModelError) ErrorCode() string { return "ModelError" } func (e *ModelError) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// Either a serverless endpoint variant's resources are still being provisioned, or +// a multi-model endpoint is still downloading or loading the target model. Wait +// and try your request again. +type ModelNotReadyException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *ModelNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ModelNotReadyException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ModelNotReadyException) ErrorCode() string { return "ModelNotReadyException" } +func (e *ModelNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The service is unavailable. Try your call again. type ServiceUnavailable struct { Message *string diff --git a/service/shield/api_op_AssociateDRTLogBucket.go b/service/shield/api_op_AssociateDRTLogBucket.go index 447c920c100..e569deab387 100644 --- a/service/shield/api_op_AssociateDRTLogBucket.go +++ b/service/shield/api_op_AssociateDRTLogBucket.go @@ -15,9 +15,9 @@ import ( // CloudFront logs, or logs from third party sources. You can associate up to 10 // Amazon S3 buckets with your subscription. To use the services of the SRT and // make an AssociateDRTLogBucket request, you must be subscribed to the Business -// Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the -// Enterprise Support plan -// (https://aws.amazon.com/premiumsupport/enterprise-support/). +// Support plan (https://docs.aws.amazon.com/premiumsupport/business-support/) or +// the Enterprise Support plan +// (https://docs.aws.amazon.com/premiumsupport/enterprise-support/). func (c *Client) AssociateDRTLogBucket(ctx context.Context, params *AssociateDRTLogBucketInput, optFns ...func(*Options)) (*AssociateDRTLogBucketOutput, error) { if params == nil { params = &AssociateDRTLogBucketInput{} diff --git a/service/shield/api_op_AssociateDRTRole.go b/service/shield/api_op_AssociateDRTRole.go index 6fd2b689532..6842849dcd5 100644 --- a/service/shield/api_op_AssociateDRTRole.go +++ b/service/shield/api_op_AssociateDRTRole.go @@ -17,25 +17,26 @@ import ( // your subscription. If you submit an AssociateDRTRole request for an account that // already has an associated role, the new RoleArn will replace the existing // RoleArn. Prior to making the AssociateDRTRole request, you must attach the +// AWSShieldDRTAccessPolicy managed policy to the role that you'll specify in the +// request. You can access this policy in the IAM console at // AWSShieldDRTAccessPolicy -// (https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy) -// managed policy to the role you will specify in the request. For more information -// see Attaching and Detaching IAM Policies +// (https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy). +// For more information see Adding and removing IAM identity permissions // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html). -// The role must also trust the service principal drt.shield.amazonaws.com. For -// more information, see IAM JSON Policy Elements: Principal +// The role must also trust the service principal drt.shield.amazonaws.com. For +// more information, see IAM JSON policy elements: Principal // (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html). // The SRT will have access only to your WAF and Shield resources. By submitting // this request, you authorize the SRT to inspect your WAF and Shield configuration // and create and update WAF rules and web ACLs on your behalf. The SRT takes these // actions only if explicitly authorized by you. You must have the iam:PassRole // permission to make an AssociateDRTRole request. For more information, see -// Granting a User Permissions to Pass a Role to an Amazon Web Services Service +// Granting a user permissions to pass a role to an Amazon Web Services service // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). // To use the services of the SRT and make an AssociateDRTRole request, you must be // subscribed to the Business Support plan -// (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise -// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). +// (https://docs.aws.amazon.com/premiumsupport/business-support/) or the Enterprise +// Support plan (https://docs.aws.amazon.com/premiumsupport/enterprise-support/). func (c *Client) AssociateDRTRole(ctx context.Context, params *AssociateDRTRoleInput, optFns ...func(*Options)) (*AssociateDRTRoleOutput, error) { if params == nil { params = &AssociateDRTRoleInput{} diff --git a/service/shield/api_op_AssociateHealthCheck.go b/service/shield/api_op_AssociateHealthCheck.go index 4f471fa0bd8..7118a7df3b4 100644 --- a/service/shield/api_op_AssociateHealthCheck.go +++ b/service/shield/api_op_AssociateHealthCheck.go @@ -13,7 +13,7 @@ import ( // Adds health-based detection to the Shield Advanced protection for a resource. // Shield Advanced health-based detection uses the health of your Amazon Web // Services resource to improve responsiveness and accuracy in attack detection and -// mitigation. You define the health check in Route 53 and then associate it with +// response. You define the health check in Route 53 and then associate it with // your Shield Advanced protection. For more information, see Shield Advanced // Health-Based Detection // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) diff --git a/service/shield/api_op_CreateProtection.go b/service/shield/api_op_CreateProtection.go index 91edc832c9e..3470b62386e 100644 --- a/service/shield/api_op_CreateProtection.go +++ b/service/shield/api_op_CreateProtection.go @@ -15,11 +15,13 @@ import ( // resource can be an Amazon CloudFront distribution, Elastic Load Balancing load // balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route // 53 hosted zone. You can add protection to only a single resource with each -// CreateProtection request. If you want to add protection to multiple resources at -// once, use the WAF console (https://console.aws.amazon.com/waf/). For more -// information see Getting Started with Shield Advanced +// CreateProtection request. You can add protection to multiple resources at once +// through the Shield Advanced console at +// https://console.aws.amazon.com/wafv2/shieldv2#/ +// (https://console.aws.amazon.com/wafv2/shieldv2#/). For more information see +// Getting Started with Shield Advanced // (https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html) -// and Add Shield Advanced Protection to more Amazon Web Services Resources +// and Adding Shield Advanced protection to Amazon Web Services resources // (https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.html). func (c *Client) CreateProtection(ctx context.Context, params *CreateProtectionInput, optFns ...func(*Options)) (*CreateProtectionOutput, error) { if params == nil { diff --git a/service/shield/api_op_DescribeAttack.go b/service/shield/api_op_DescribeAttack.go index 5725cbc4ce3..c9d954210f3 100644 --- a/service/shield/api_op_DescribeAttack.go +++ b/service/shield/api_op_DescribeAttack.go @@ -29,7 +29,7 @@ func (c *Client) DescribeAttack(ctx context.Context, params *DescribeAttackInput type DescribeAttackInput struct { - // The unique identifier (ID) for the attack that to be described. + // The unique identifier (ID) for the attack. // // This member is required. AttackId *string diff --git a/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go b/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go new file mode 100644 index 00000000000..57bfd128d5a --- /dev/null +++ b/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go @@ -0,0 +1,118 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package shield + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disable the Shield Advanced automatic application layer DDoS mitigation feature +// for the resource. This stops Shield Advanced from creating, verifying, and +// applying WAF rules for attacks that it detects for the resource. +func (c *Client) DisableApplicationLayerAutomaticResponse(ctx context.Context, params *DisableApplicationLayerAutomaticResponseInput, optFns ...func(*Options)) (*DisableApplicationLayerAutomaticResponseOutput, error) { + if params == nil { + params = &DisableApplicationLayerAutomaticResponseInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisableApplicationLayerAutomaticResponse", params, optFns, c.addOperationDisableApplicationLayerAutomaticResponseMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisableApplicationLayerAutomaticResponseOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisableApplicationLayerAutomaticResponseInput struct { + + // The ARN (Amazon Resource Name) of the resource. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type DisableApplicationLayerAutomaticResponseOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisableApplicationLayerAutomaticResponseMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDisableApplicationLayerAutomaticResponse{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDisableApplicationLayerAutomaticResponse{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisableApplicationLayerAutomaticResponseValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableApplicationLayerAutomaticResponse(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisableApplicationLayerAutomaticResponse(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "shield", + OperationName: "DisableApplicationLayerAutomaticResponse", + } +} diff --git a/service/shield/api_op_DisassociateDRTLogBucket.go b/service/shield/api_op_DisassociateDRTLogBucket.go index b94b8155d9b..657c280bb44 100644 --- a/service/shield/api_op_DisassociateDRTLogBucket.go +++ b/service/shield/api_op_DisassociateDRTLogBucket.go @@ -11,13 +11,7 @@ import ( ) // Removes the Shield Response Team's (SRT) access to the specified Amazon S3 -// bucket containing the logs that you shared previously. To make a -// DisassociateDRTLogBucket request, you must be subscribed to the Business Support -// plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise -// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). -// However, if you are not subscribed to one of these support plans, but had been -// previously and had granted the SRT access to your account, you can submit a -// DisassociateDRTLogBucket request to remove this access. +// bucket containing the logs that you shared previously. func (c *Client) DisassociateDRTLogBucket(ctx context.Context, params *DisassociateDRTLogBucketInput, optFns ...func(*Options)) (*DisassociateDRTLogBucketOutput, error) { if params == nil { params = &DisassociateDRTLogBucketInput{} diff --git a/service/shield/api_op_DisassociateDRTRole.go b/service/shield/api_op_DisassociateDRTRole.go index 58b0a910bfc..6a1f2e1ce3c 100644 --- a/service/shield/api_op_DisassociateDRTRole.go +++ b/service/shield/api_op_DisassociateDRTRole.go @@ -11,13 +11,7 @@ import ( ) // Removes the Shield Response Team's (SRT) access to your Amazon Web Services -// account. To make a DisassociateDRTRole request, you must be subscribed to the -// Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) -// or the Enterprise Support plan -// (https://aws.amazon.com/premiumsupport/enterprise-support/). However, if you are -// not subscribed to one of these support plans, but had been previously and had -// granted the SRT access to your account, you can submit a DisassociateDRTRole -// request to remove this access. +// account. func (c *Client) DisassociateDRTRole(ctx context.Context, params *DisassociateDRTRoleInput, optFns ...func(*Options)) (*DisassociateDRTRoleOutput, error) { if params == nil { params = &DisassociateDRTRoleInput{} diff --git a/service/shield/api_op_DisassociateHealthCheck.go b/service/shield/api_op_DisassociateHealthCheck.go index 60176e76360..386dbfca02a 100644 --- a/service/shield/api_op_DisassociateHealthCheck.go +++ b/service/shield/api_op_DisassociateHealthCheck.go @@ -13,7 +13,7 @@ import ( // Removes health-based detection from the Shield Advanced protection for a // resource. Shield Advanced health-based detection uses the health of your Amazon // Web Services resource to improve responsiveness and accuracy in attack detection -// and mitigation. You define the health check in Route 53 and then associate or +// and response. You define the health check in Route 53 and then associate or // disassociate it with your Shield Advanced protection. For more information, see // Shield Advanced Health-Based Detection // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html#ddos-advanced-health-check-option) diff --git a/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go b/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go new file mode 100644 index 00000000000..fb24693cb4e --- /dev/null +++ b/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go @@ -0,0 +1,147 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package shield + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/shield/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Enable the Shield Advanced automatic application layer DDoS mitigation for the +// resource. This feature is available for Amazon CloudFront distributions only. +// This causes Shield Advanced to create, verify, and apply WAF rules for DDoS +// attacks that it detects for the resource. Shield Advanced applies the rules in a +// Shield rule group inside the web ACL that you've associated with the resource. +// For information about how automatic mitigation works and the requirements for +// using it, see Shield Advanced automatic application layer DDoS mitigation +// (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html). +// Don't use this action to make changes to automatic mitigation settings when it's +// already enabled for a resource. Instead, use +// UpdateApplicationLayerAutomaticResponse. To use this feature, you must associate +// a web ACL with the protected resource. The web ACL must be created using the +// latest version of WAF (v2). You can associate the web ACL through the Shield +// Advanced console at https://console.aws.amazon.com/wafv2/shieldv2#/ +// (https://console.aws.amazon.com/wafv2/shieldv2#/). For more information, see +// Getting Started with Shield Advanced +// (https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html). +// You can also do this through the WAF console or the WAF API, but you must manage +// Shield Advanced automatic mitigation through Shield Advanced. For information +// about WAF, see WAF Developer Guide +// (https://docs.aws.amazon.com/waf/latest/developerguide/). +func (c *Client) EnableApplicationLayerAutomaticResponse(ctx context.Context, params *EnableApplicationLayerAutomaticResponseInput, optFns ...func(*Options)) (*EnableApplicationLayerAutomaticResponseOutput, error) { + if params == nil { + params = &EnableApplicationLayerAutomaticResponseInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "EnableApplicationLayerAutomaticResponse", params, optFns, c.addOperationEnableApplicationLayerAutomaticResponseMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*EnableApplicationLayerAutomaticResponseOutput) + out.ResultMetadata = metadata + return out, nil +} + +type EnableApplicationLayerAutomaticResponseInput struct { + + // Specifies the action setting that Shield Advanced should use in the WAF rules + // that it creates on behalf of the protected resource in response to DDoS attacks. + // You specify this as part of the configuration for the automatic application + // layer DDoS mitigation feature, when you enable or update automatic mitigation. + // Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, + // inside the web ACL that you have associated with the resource. + // + // This member is required. + Action *types.ResponseAction + + // The ARN (Amazon Resource Name) of the resource. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type EnableApplicationLayerAutomaticResponseOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationEnableApplicationLayerAutomaticResponseMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpEnableApplicationLayerAutomaticResponse{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpEnableApplicationLayerAutomaticResponse{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpEnableApplicationLayerAutomaticResponseValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableApplicationLayerAutomaticResponse(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opEnableApplicationLayerAutomaticResponse(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "shield", + OperationName: "EnableApplicationLayerAutomaticResponse", + } +} diff --git a/service/shield/api_op_ListAttacks.go b/service/shield/api_op_ListAttacks.go index 8c9e7ddb870..efa8eb86e46 100644 --- a/service/shield/api_op_ListAttacks.go +++ b/service/shield/api_op_ListAttacks.go @@ -31,35 +31,42 @@ func (c *Client) ListAttacks(ctx context.Context, params *ListAttacksInput, optF type ListAttacksInput struct { - // The end of the time period for the attacks. This is a timestamp type. The sample - // request above indicates a number type because the default used by WAF is Unix - // time in seconds. However any valid timestamp format - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types) - // is allowed. + // The end of the time period for the attacks. This is a timestamp type. The + // request syntax listing for this call indicates a number type, but you can + // provide the time in any valid timestamp format + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp) + // setting. EndTime *types.TimeRange - // The maximum number of AttackSummary objects to return. If you leave this blank, - // Shield Advanced returns the first 20 results. This is a maximum value. Shield - // Advanced might return the results in smaller batches. That is, the number of - // objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. MaxResults *int32 - // The ListAttacksRequest.NextMarker value from a previous call to - // ListAttacksRequest. Pass null if this is the first call. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. On your first call to a list operation, leave this setting + // empty. NextToken *string - // The ARN (Amazon Resource Name) of the resource that was attacked. If this is - // left blank, all applicable resources for this account will be included. + // The ARNs (Amazon Resource Names) of the resources that were attacked. If you + // leave this blank, all applicable resources for this account will be included. ResourceArns []string // The start of the time period for the attacks. This is a timestamp type. The - // sample request above indicates a number type because the default used by WAF is - // Unix time in seconds. However any valid timestamp format - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types) - // is allowed. + // request syntax listing for this call indicates a number type, but you can + // provide the time in any valid timestamp format + // (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-timestamp) + // setting. StartTime *types.TimeRange noSmithyDocumentSerde @@ -70,13 +77,16 @@ type ListAttacksOutput struct { // The attack information for the specified time range. AttackSummaries []types.AttackSummary - // The token returned by a previous call to indicate that there is more data - // available. If not null, more results are available. Pass this value for the - // NextMarker parameter in a subsequent call to ListAttacks to retrieve the next - // set of items. Shield Advanced might return the list of AttackSummary objects in - // batches smaller than the number specified by MaxResults. If there are more - // attack summary objects to return, Shield Advanced will always also return a - // NextToken. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. NextToken *string // Metadata pertaining to the operation's result. @@ -154,13 +164,11 @@ var _ ListAttacksAPIClient = (*Client)(nil) // ListAttacksPaginatorOptions is the paginator options for ListAttacks type ListAttacksPaginatorOptions struct { - // The maximum number of AttackSummary objects to return. If you leave this blank, - // Shield Advanced returns the first 20 results. This is a maximum value. Shield - // Advanced might return the results in smaller batches. That is, the number of - // objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/shield/api_op_ListProtectionGroups.go b/service/shield/api_op_ListProtectionGroups.go index a1347706baf..a8feeee55e1 100644 --- a/service/shield/api_op_ListProtectionGroups.go +++ b/service/shield/api_op_ListProtectionGroups.go @@ -30,17 +30,24 @@ func (c *Client) ListProtectionGroups(ctx context.Context, params *ListProtectio type ListProtectionGroupsInput struct { - // The maximum number of ProtectionGroup objects to return. If you leave this - // blank, Shield Advanced returns the first 20 results. This is a maximum value. - // Shield Advanced might return the results in smaller batches. That is, the number - // of objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. MaxResults *int32 - // The next token value from a previous call to ListProtectionGroups. Pass null if - // this is the first call. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. On your first call to a list operation, leave this setting + // empty. NextToken *string noSmithyDocumentSerde @@ -53,9 +60,16 @@ type ListProtectionGroupsOutput struct { // This member is required. ProtectionGroups []types.ProtectionGroup - // If you specify a value for MaxResults and you have more protection groups than - // the value of MaxResults, Shield Advanced returns this token that you can use in - // your next request, to get the next batch of objects. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. NextToken *string // Metadata pertaining to the operation's result. @@ -135,13 +149,11 @@ var _ ListProtectionGroupsAPIClient = (*Client)(nil) // ListProtectionGroupsPaginatorOptions is the paginator options for // ListProtectionGroups type ListProtectionGroupsPaginatorOptions struct { - // The maximum number of ProtectionGroup objects to return. If you leave this - // blank, Shield Advanced returns the first 20 results. This is a maximum value. - // Shield Advanced might return the results in smaller batches. That is, the number - // of objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/shield/api_op_ListProtections.go b/service/shield/api_op_ListProtections.go index 52ba5858a39..c68f4d714e7 100644 --- a/service/shield/api_op_ListProtections.go +++ b/service/shield/api_op_ListProtections.go @@ -30,17 +30,24 @@ func (c *Client) ListProtections(ctx context.Context, params *ListProtectionsInp type ListProtectionsInput struct { - // The maximum number of Protection objects to return. If you leave this blank, - // Shield Advanced returns the first 20 results. This is a maximum value. Shield - // Advanced might return the results in smaller batches. That is, the number of - // objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. MaxResults *int32 - // The ListProtectionsRequest.NextToken value from a previous call to - // ListProtections. Pass null if this is the first call. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. On your first call to a list operation, leave this setting + // empty. NextToken *string noSmithyDocumentSerde @@ -48,14 +55,16 @@ type ListProtectionsInput struct { type ListProtectionsOutput struct { - // If you specify a value for MaxResults and you have more Protections than the - // value of MaxResults, Shield Advanced returns a NextToken value in the response - // that allows you to list another group of Protections. For the second and - // subsequent ListProtections requests, specify the value of NextToken from the - // previous response to get information about another batch of Protections. Shield - // Advanced might return the list of Protection objects in batches smaller than the - // number specified by MaxResults. If there are more Protection objects to return, - // Shield Advanced will always also return a NextToken. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. NextToken *string // The array of enabled Protection objects. @@ -137,13 +146,11 @@ var _ ListProtectionsAPIClient = (*Client)(nil) // ListProtectionsPaginatorOptions is the paginator options for ListProtections type ListProtectionsPaginatorOptions struct { - // The maximum number of Protection objects to return. If you leave this blank, - // Shield Advanced returns the first 20 results. This is a maximum value. Shield - // Advanced might return the results in smaller batches. That is, the number of - // objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/shield/api_op_ListResourcesInProtectionGroup.go b/service/shield/api_op_ListResourcesInProtectionGroup.go index 2368df6f12c..ee2b30de2cd 100644 --- a/service/shield/api_op_ListResourcesInProtectionGroup.go +++ b/service/shield/api_op_ListResourcesInProtectionGroup.go @@ -36,17 +36,24 @@ type ListResourcesInProtectionGroupInput struct { // This member is required. ProtectionGroupId *string - // The maximum number of resource ARN objects to return. If you leave this blank, - // Shield Advanced returns the first 20 results. This is a maximum value. Shield - // Advanced might return the results in smaller batches. That is, the number of - // objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. MaxResults *int32 - // The next token value from a previous call to ListResourcesInProtectionGroup. - // Pass null if this is the first call. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. On your first call to a list operation, leave this setting + // empty. NextToken *string noSmithyDocumentSerde @@ -60,9 +67,16 @@ type ListResourcesInProtectionGroupOutput struct { // This member is required. ResourceArns []string - // If you specify a value for MaxResults and you have more resources in the - // protection group than the value of MaxResults, Shield Advanced returns this - // token that you can use in your next request, to get the next batch of objects. + // When you request a list of objects from Shield Advanced, if the response does + // not include all of the remaining available objects, Shield Advanced includes a + // NextToken value in the response. You can retrieve the next batch of objects by + // requesting the list again and providing the token that was returned by the prior + // call in your request. You can indicate the maximum number of objects that you + // want Shield Advanced to return for a single call with the MaxResults setting. + // Shield Advanced will not return more than MaxResults objects, but may return + // fewer, even if more objects are still available. Whenever more objects remain + // that Shield Advanced has not yet returned to you, the response will include a + // NextToken value. NextToken *string // Metadata pertaining to the operation's result. @@ -145,13 +159,11 @@ var _ ListResourcesInProtectionGroupAPIClient = (*Client)(nil) // ListResourcesInProtectionGroupPaginatorOptions is the paginator options for // ListResourcesInProtectionGroup type ListResourcesInProtectionGroupPaginatorOptions struct { - // The maximum number of resource ARN objects to return. If you leave this blank, - // Shield Advanced returns the first 20 results. This is a maximum value. Shield - // Advanced might return the results in smaller batches. That is, the number of - // objects returned could be less than MaxResults, even if there are still more - // objects yet to return. If there are more objects to return, Shield Advanced - // returns a value in NextToken that you can use in your next request, to get the - // next batch of objects. + // The greatest number of objects that you want Shield Advanced to return to the + // list request. Shield Advanced might return fewer objects than you indicate in + // this setting, even if more objects are available. If there are more objects + // remaining, Shield Advanced will always also return a NextToken value in the + // response. The default setting is 20. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/shield/api_op_UpdateApplicationLayerAutomaticResponse.go b/service/shield/api_op_UpdateApplicationLayerAutomaticResponse.go new file mode 100644 index 00000000000..e7eb2e91f2e --- /dev/null +++ b/service/shield/api_op_UpdateApplicationLayerAutomaticResponse.go @@ -0,0 +1,128 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package shield + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/shield/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates an existing Shield Advanced automatic application layer DDoS mitigation +// configuration for the specified resource. +func (c *Client) UpdateApplicationLayerAutomaticResponse(ctx context.Context, params *UpdateApplicationLayerAutomaticResponseInput, optFns ...func(*Options)) (*UpdateApplicationLayerAutomaticResponseOutput, error) { + if params == nil { + params = &UpdateApplicationLayerAutomaticResponseInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateApplicationLayerAutomaticResponse", params, optFns, c.addOperationUpdateApplicationLayerAutomaticResponseMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateApplicationLayerAutomaticResponseOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateApplicationLayerAutomaticResponseInput struct { + + // Specifies the action setting that Shield Advanced should use in the WAF rules + // that it creates on behalf of the protected resource in response to DDoS attacks. + // You specify this as part of the configuration for the automatic application + // layer DDoS mitigation feature, when you enable or update automatic mitigation. + // Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, + // inside the web ACL that you have associated with the resource. + // + // This member is required. + Action *types.ResponseAction + + // The ARN (Amazon Resource Name) of the resource. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type UpdateApplicationLayerAutomaticResponseOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateApplicationLayerAutomaticResponseMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateApplicationLayerAutomaticResponse{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateApplicationLayerAutomaticResponse{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateApplicationLayerAutomaticResponseValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateApplicationLayerAutomaticResponse(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateApplicationLayerAutomaticResponse(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "shield", + OperationName: "UpdateApplicationLayerAutomaticResponse", + } +} diff --git a/service/shield/deserializers.go b/service/shield/deserializers.go index 541f0e892b9..1d29d60125c 100644 --- a/service/shield/deserializers.go +++ b/service/shield/deserializers.go @@ -382,6 +382,9 @@ func awsAwsjson11_deserializeOpErrorAssociateHealthCheck(response *smithyhttp.Re case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("InvalidResourceException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceException(response, errorBody) + case strings.EqualFold("LimitsExceededException", errorCode): return awsAwsjson11_deserializeErrorLimitsExceededException(response, errorBody) @@ -2045,6 +2048,129 @@ func awsAwsjson11_deserializeOpErrorDescribeSubscription(response *smithyhttp.Re } } +type awsAwsjson11_deserializeOpDisableApplicationLayerAutomaticResponse struct { +} + +func (*awsAwsjson11_deserializeOpDisableApplicationLayerAutomaticResponse) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDisableApplicationLayerAutomaticResponse) 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_deserializeOpErrorDisableApplicationLayerAutomaticResponse(response, &metadata) + } + output := &DisableApplicationLayerAutomaticResponseOutput{} + 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_deserializeOpDocumentDisableApplicationLayerAutomaticResponseOutput(&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_deserializeOpErrorDisableApplicationLayerAutomaticResponse(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalErrorException", errorCode): + return awsAwsjson11_deserializeErrorInternalErrorException(response, errorBody) + + case strings.EqualFold("InvalidOperationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidOperationException(response, errorBody) + + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + + case strings.EqualFold("OptimisticLockException", errorCode): + return awsAwsjson11_deserializeErrorOptimisticLockException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpDisableProactiveEngagement struct { } @@ -2518,6 +2644,135 @@ func awsAwsjson11_deserializeOpErrorDisassociateHealthCheck(response *smithyhttp case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("InvalidResourceException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceException(response, errorBody) + + case strings.EqualFold("OptimisticLockException", errorCode): + return awsAwsjson11_deserializeErrorOptimisticLockException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpEnableApplicationLayerAutomaticResponse struct { +} + +func (*awsAwsjson11_deserializeOpEnableApplicationLayerAutomaticResponse) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpEnableApplicationLayerAutomaticResponse) 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_deserializeOpErrorEnableApplicationLayerAutomaticResponse(response, &metadata) + } + output := &EnableApplicationLayerAutomaticResponseOutput{} + 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_deserializeOpDocumentEnableApplicationLayerAutomaticResponseOutput(&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_deserializeOpErrorEnableApplicationLayerAutomaticResponse(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalErrorException", errorCode): + return awsAwsjson11_deserializeErrorInternalErrorException(response, errorBody) + + case strings.EqualFold("InvalidOperationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidOperationException(response, errorBody) + + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + + case strings.EqualFold("LimitsExceededException", errorCode): + return awsAwsjson11_deserializeErrorLimitsExceededException(response, errorBody) + case strings.EqualFold("OptimisticLockException", errorCode): return awsAwsjson11_deserializeErrorOptimisticLockException(response, errorBody) @@ -3259,7 +3514,124 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co if response.StatusCode < 200 || response.StatusCode >= 300 { return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListTagsForResourceOutput{} + 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_deserializeOpDocumentListTagsForResourceOutput(&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_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalErrorException", errorCode): + return awsAwsjson11_deserializeErrorInternalErrorException(response, errorBody) + + case strings.EqualFold("InvalidResourceException", errorCode): + return awsAwsjson11_deserializeErrorInvalidResourceException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpTagResource struct { +} + +func (*awsAwsjson11_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpTagResource) 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_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} out.Result = output var buff [1024]byte @@ -3279,7 +3651,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3293,7 +3665,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorTagResource(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)} @@ -3337,6 +3709,9 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res case strings.EqualFold("InternalErrorException", errorCode): return awsAwsjson11_deserializeErrorInternalErrorException(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): + return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("InvalidResourceException", errorCode): return awsAwsjson11_deserializeErrorInvalidResourceException(response, errorBody) @@ -3353,14 +3728,14 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpTagResource struct { +type awsAwsjson11_deserializeOpUntagResource struct { } -func (*awsAwsjson11_deserializeOpTagResource) ID() string { +func (*awsAwsjson11_deserializeOpUntagResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUntagResource) 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) @@ -3374,9 +3749,9 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) } - output := &TagResourceOutput{} + output := &UntagResourceOutput{} out.Result = output var buff [1024]byte @@ -3396,7 +3771,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3410,7 +3785,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUntagResource(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)} @@ -3473,14 +3848,14 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUntagResource struct { +type awsAwsjson11_deserializeOpUpdateApplicationLayerAutomaticResponse struct { } -func (*awsAwsjson11_deserializeOpUntagResource) ID() string { +func (*awsAwsjson11_deserializeOpUpdateApplicationLayerAutomaticResponse) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpUpdateApplicationLayerAutomaticResponse) 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) @@ -3494,9 +3869,9 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateApplicationLayerAutomaticResponse(response, &metadata) } - output := &UntagResourceOutput{} + output := &UpdateApplicationLayerAutomaticResponseOutput{} out.Result = output var buff [1024]byte @@ -3516,7 +3891,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentUpdateApplicationLayerAutomaticResponseOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3530,7 +3905,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorUpdateApplicationLayerAutomaticResponse(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)} @@ -3574,11 +3949,14 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, case strings.EqualFold("InternalErrorException", errorCode): return awsAwsjson11_deserializeErrorInternalErrorException(response, errorBody) + case strings.EqualFold("InvalidOperationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidOperationException(response, errorBody) + case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) - case strings.EqualFold("InvalidResourceException", errorCode): - return awsAwsjson11_deserializeErrorInvalidResourceException(response, errorBody) + case strings.EqualFold("OptimisticLockException", errorCode): + return awsAwsjson11_deserializeErrorOptimisticLockException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -4491,6 +4869,51 @@ func awsAwsjson11_deserializeDocumentAccessDeniedForDependencyException(v **type return nil } +func awsAwsjson11_deserializeDocumentApplicationLayerAutomaticResponseConfiguration(v **types.ApplicationLayerAutomaticResponseConfiguration, 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.ApplicationLayerAutomaticResponseConfiguration + if *v == nil { + sv = &types.ApplicationLayerAutomaticResponseConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Action": + if err := awsAwsjson11_deserializeDocumentResponseAction(&sv.Action, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ApplicationLayerAutomaticResponseStatus to be of type string, got %T instead", value) + } + sv.Status = types.ApplicationLayerAutomaticResponseStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentAttackDetail(v **types.AttackDetail, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5090,6 +5513,37 @@ func awsAwsjson11_deserializeDocumentAttackVolumeStatistics(v **types.AttackVolu return nil } +func awsAwsjson11_deserializeDocumentBlockAction(v **types.BlockAction, 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.BlockAction + if *v == nil { + sv = &types.BlockAction{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentContributor(v **types.Contributor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5143,6 +5597,37 @@ func awsAwsjson11_deserializeDocumentContributor(v **types.Contributor, value in return nil } +func awsAwsjson11_deserializeDocumentCountAction(v **types.CountAction, 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.CountAction + if *v == nil { + sv = &types.CountAction{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEmergencyContact(v **types.EmergencyContact, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5886,6 +6371,11 @@ func awsAwsjson11_deserializeDocumentProtection(v **types.Protection, value inte for key, value := range shape { switch key { + case "ApplicationLayerAutomaticResponseConfiguration": + if err := awsAwsjson11_deserializeDocumentApplicationLayerAutomaticResponseConfiguration(&sv.ApplicationLayerAutomaticResponseConfiguration, value); err != nil { + return err + } + case "HealthCheckIds": if err := awsAwsjson11_deserializeDocumentHealthCheckIds(&sv.HealthCheckIds, value); err != nil { return err @@ -6420,6 +6910,47 @@ func awsAwsjson11_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } +func awsAwsjson11_deserializeDocumentResponseAction(v **types.ResponseAction, 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.ResponseAction + if *v == nil { + sv = &types.ResponseAction{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Block": + if err := awsAwsjson11_deserializeDocumentBlockAction(&sv.Block, value); err != nil { + return err + } + + case "Count": + if err := awsAwsjson11_deserializeDocumentCountAction(&sv.Count, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentSubResourceSummary(v **types.SubResourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7060,7 +7591,7 @@ func awsAwsjson11_deserializeDocumentTimeRange(v **types.TimeRange, value interf sv.FromInclusive = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: - return fmt.Errorf("expected AttackTimestamp to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) } } @@ -7076,7 +7607,7 @@ func awsAwsjson11_deserializeDocumentTimeRange(v **types.TimeRange, value interf sv.ToExclusive = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: - return fmt.Errorf("expected AttackTimestamp to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) } } @@ -7792,6 +8323,37 @@ func awsAwsjson11_deserializeOpDocumentDescribeSubscriptionOutput(v **DescribeSu return nil } +func awsAwsjson11_deserializeOpDocumentDisableApplicationLayerAutomaticResponseOutput(v **DisableApplicationLayerAutomaticResponseOutput, 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 *DisableApplicationLayerAutomaticResponseOutput + if *v == nil { + sv = &DisableApplicationLayerAutomaticResponseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentDisableProactiveEngagementOutput(v **DisableProactiveEngagementOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7916,6 +8478,37 @@ func awsAwsjson11_deserializeOpDocumentDisassociateHealthCheckOutput(v **Disasso return nil } +func awsAwsjson11_deserializeOpDocumentEnableApplicationLayerAutomaticResponseOutput(v **EnableApplicationLayerAutomaticResponseOutput, 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 *EnableApplicationLayerAutomaticResponseOutput + if *v == nil { + sv = &EnableApplicationLayerAutomaticResponseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentEnableProactiveEngagementOutput(v **EnableProactiveEngagementOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8265,6 +8858,37 @@ func awsAwsjson11_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return nil } +func awsAwsjson11_deserializeOpDocumentUpdateApplicationLayerAutomaticResponseOutput(v **UpdateApplicationLayerAutomaticResponseOutput, 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 *UpdateApplicationLayerAutomaticResponseOutput + if *v == nil { + sv = &UpdateApplicationLayerAutomaticResponseOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateEmergencyContactSettingsOutput(v **UpdateEmergencyContactSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/shield/generated.json b/service/shield/generated.json index ddd533adb7d..252c4396dfb 100644 --- a/service/shield/generated.json +++ b/service/shield/generated.json @@ -24,10 +24,12 @@ "api_op_DescribeProtection.go", "api_op_DescribeProtectionGroup.go", "api_op_DescribeSubscription.go", + "api_op_DisableApplicationLayerAutomaticResponse.go", "api_op_DisableProactiveEngagement.go", "api_op_DisassociateDRTLogBucket.go", "api_op_DisassociateDRTRole.go", "api_op_DisassociateHealthCheck.go", + "api_op_EnableApplicationLayerAutomaticResponse.go", "api_op_EnableProactiveEngagement.go", "api_op_GetSubscriptionState.go", "api_op_ListAttacks.go", @@ -37,6 +39,7 @@ "api_op_ListTagsForResource.go", "api_op_TagResource.go", "api_op_UntagResource.go", + "api_op_UpdateApplicationLayerAutomaticResponse.go", "api_op_UpdateEmergencyContactSettings.go", "api_op_UpdateProtectionGroup.go", "api_op_UpdateSubscription.go", diff --git a/service/shield/serializers.go b/service/shield/serializers.go index eef4a7162cf..c90fc30051f 100644 --- a/service/shield/serializers.go +++ b/service/shield/serializers.go @@ -951,6 +951,61 @@ func (m *awsAwsjson11_serializeOpDescribeSubscription) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDisableApplicationLayerAutomaticResponse struct { +} + +func (*awsAwsjson11_serializeOpDisableApplicationLayerAutomaticResponse) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDisableApplicationLayerAutomaticResponse) 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.(*DisableApplicationLayerAutomaticResponseInput) + _ = 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("AWSShield_20160616.DisableApplicationLayerAutomaticResponse") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDisableApplicationLayerAutomaticResponseInput(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_serializeOpDisableProactiveEngagement struct { } @@ -1171,6 +1226,61 @@ func (m *awsAwsjson11_serializeOpDisassociateHealthCheck) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpEnableApplicationLayerAutomaticResponse struct { +} + +func (*awsAwsjson11_serializeOpEnableApplicationLayerAutomaticResponse) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpEnableApplicationLayerAutomaticResponse) 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.(*EnableApplicationLayerAutomaticResponseInput) + _ = 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("AWSShield_20160616.EnableApplicationLayerAutomaticResponse") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentEnableApplicationLayerAutomaticResponseInput(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_serializeOpEnableProactiveEngagement struct { } @@ -1666,6 +1776,61 @@ func (m *awsAwsjson11_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpUpdateApplicationLayerAutomaticResponse struct { +} + +func (*awsAwsjson11_serializeOpUpdateApplicationLayerAutomaticResponse) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateApplicationLayerAutomaticResponse) 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.(*UpdateApplicationLayerAutomaticResponseInput) + _ = 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("AWSShield_20160616.UpdateApplicationLayerAutomaticResponse") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateApplicationLayerAutomaticResponseInput(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_serializeOpUpdateEmergencyContactSettings struct { } @@ -1830,6 +1995,20 @@ func (m *awsAwsjson11_serializeOpUpdateSubscription) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } +func awsAwsjson11_serializeDocumentBlockAction(v *types.BlockAction, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + return nil +} + +func awsAwsjson11_serializeDocumentCountAction(v *types.CountAction, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + return nil +} + func awsAwsjson11_serializeDocumentEmergencyContact(v *types.EmergencyContact, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1887,6 +2066,27 @@ func awsAwsjson11_serializeDocumentResourceArnFilterList(v []string, value smith return nil } +func awsAwsjson11_serializeDocumentResponseAction(v *types.ResponseAction, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Block != nil { + ok := object.Key("Block") + if err := awsAwsjson11_serializeDocumentBlockAction(v.Block, ok); err != nil { + return err + } + } + + if v.Count != nil { + ok := object.Key("Count") + if err := awsAwsjson11_serializeDocumentCountAction(v.Count, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2172,6 +2372,18 @@ func awsAwsjson11_serializeOpDocumentDescribeSubscriptionInput(v *DescribeSubscr return nil } +func awsAwsjson11_serializeOpDocumentDisableApplicationLayerAutomaticResponseInput(v *DisableApplicationLayerAutomaticResponseInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDisableProactiveEngagementInput(v *DisableProactiveEngagementInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2215,6 +2427,25 @@ func awsAwsjson11_serializeOpDocumentDisassociateHealthCheckInput(v *Disassociat return nil } +func awsAwsjson11_serializeOpDocumentEnableApplicationLayerAutomaticResponseInput(v *EnableApplicationLayerAutomaticResponseInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Action != nil { + ok := object.Key("Action") + if err := awsAwsjson11_serializeDocumentResponseAction(v.Action, ok); err != nil { + return err + } + } + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentEnableProactiveEngagementInput(v *EnableProactiveEngagementInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2373,6 +2604,25 @@ func awsAwsjson11_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, v return nil } +func awsAwsjson11_serializeOpDocumentUpdateApplicationLayerAutomaticResponseInput(v *UpdateApplicationLayerAutomaticResponseInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Action != nil { + ok := object.Key("Action") + if err := awsAwsjson11_serializeDocumentResponseAction(v.Action, ok); err != nil { + return err + } + } + + if v.ResourceArn != nil { + ok := object.Key("ResourceArn") + ok.String(*v.ResourceArn) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateEmergencyContactSettingsInput(v *UpdateEmergencyContactSettingsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/shield/types/enums.go b/service/shield/types/enums.go index 5025b6bad6b..4773d6f2176 100644 --- a/service/shield/types/enums.go +++ b/service/shield/types/enums.go @@ -2,6 +2,25 @@ package types +type ApplicationLayerAutomaticResponseStatus string + +// Enum values for ApplicationLayerAutomaticResponseStatus +const ( + ApplicationLayerAutomaticResponseStatusEnabled ApplicationLayerAutomaticResponseStatus = "ENABLED" + ApplicationLayerAutomaticResponseStatusDisabled ApplicationLayerAutomaticResponseStatus = "DISABLED" +) + +// Values returns all known values for ApplicationLayerAutomaticResponseStatus. +// 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 (ApplicationLayerAutomaticResponseStatus) Values() []ApplicationLayerAutomaticResponseStatus { + return []ApplicationLayerAutomaticResponseStatus{ + "ENABLED", + "DISABLED", + } +} + type AttackLayer string // Enum values for AttackLayer diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index 8d718e4c937..e8bd573dfa7 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -95,7 +95,8 @@ func (e *InvalidOperationException) ErrorCode() string { return "Inv func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Exception that indicates that the NextToken specified in the request is invalid. -// Submit the request using the NextToken value that was returned in the response. +// Submit the request using the NextToken value that was returned in the prior +// response. type InvalidPaginationTokenException struct { Message *string diff --git a/service/shield/types/types.go b/service/shield/types/types.go index f6aa8d5f7ea..1928d020041 100644 --- a/service/shield/types/types.go +++ b/service/shield/types/types.go @@ -7,6 +7,31 @@ import ( "time" ) +// The automatic application layer DDoS mitigation settings for a Protection. This +// configuration determines whether Shield Advanced automatically manages rules in +// the web ACL in order to respond to application layer events that Shield Advanced +// determines to be DDoS attacks. +type ApplicationLayerAutomaticResponseConfiguration struct { + + // Specifies the action setting that Shield Advanced should use in the WAF rules + // that it creates on behalf of the protected resource in response to DDoS attacks. + // You specify this as part of the configuration for the automatic application + // layer DDoS mitigation feature, when you enable or update automatic mitigation. + // Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, + // inside the web ACL that you have associated with the resource. + // + // This member is required. + Action *ResponseAction + + // Indicates whether automatic application layer DDoS mitigation is enabled for the + // protection. + // + // This member is required. + Status ApplicationLayerAutomaticResponseStatus + + noSmithyDocumentSerde +} + // The details of a DDoS attack. type AttackDetail struct { @@ -17,16 +42,14 @@ type AttackDetail struct { AttackId *string // The array of objects that provide details of the Shield event. For - // infrastructure layer events (L3 and L4 events) after January 25, 2021, you can - // view metrics for top contributors in Amazon CloudWatch metrics. For more - // information, see Shield metrics and alarms + // infrastructure layer events (L3 and L4 events), you can view metrics for top + // contributors in Amazon CloudWatch metrics. For more information, see Shield + // metrics and alarms // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms) // in the WAF Developer Guide. AttackProperties []AttackProperty - // The time the attack ended, in Unix time in seconds. For more information see - // timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The time the attack ended, in Unix time in seconds. EndTime *time.Time // List of mitigation actions taken for the attack. @@ -35,9 +58,7 @@ type AttackDetail struct { // The ARN (Amazon Resource Name) of the resource that was attacked. ResourceArn *string - // The time the attack started, in Unix time in seconds. For more information see - // timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The time the attack started, in Unix time in seconds. StartTime *time.Time // If applicable, additional detail about the resource being attacked, for example, @@ -52,9 +73,8 @@ type AttackProperty struct { // The type of Shield event that was observed. NETWORK indicates layer 3 and layer // 4 events and APPLICATION indicates layer 7 events. For infrastructure layer - // events (L3 and L4 events) after January 25, 2021, you can view metrics for top - // contributors in Amazon CloudWatch metrics. For more information, see Shield - // metrics and alarms + // events (L3 and L4 events), you can view metrics for top contributors in Amazon + // CloudWatch metrics. For more information, see Shield metrics and alarms // (https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms) // in the WAF Developer Guide. AttackLayer AttackLayer @@ -64,7 +84,9 @@ type AttackProperty struct { // for WordPress reflective pingback events. AttackPropertyIdentifier AttackPropertyIdentifier - // Contributor objects for the top five contributors to a Shield event. + // Contributor objects for the top five contributors to a Shield event. A + // contributor is a source of traffic that Shield Advanced identifies as + // responsible for some or all of an event. TopContributors []Contributor // The total contributions made to this Shield event by all contributors. @@ -103,17 +125,13 @@ type AttackSummary struct { // The list of attacks for a specified time period. AttackVectors []AttackVectorDescription - // The end time of the attack, in Unix time in seconds. For more information see - // timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The end time of the attack, in Unix time in seconds. EndTime *time.Time // The ARN (Amazon Resource Name) of the resource that was attacked. ResourceArn *string - // The start time of the attack, in Unix time in seconds. For more information see - // timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The start time of the attack, in Unix time in seconds. StartTime *time.Time noSmithyDocumentSerde @@ -203,12 +221,20 @@ type AttackVolumeStatistics struct { noSmithyDocumentSerde } +// Specifies that Shield Advanced should configure its WAF rules with the WAF Block +// action. This is only used in the context of the ResponseAction setting. JSON +// specification: "Block": {} +type BlockAction struct { + noSmithyDocumentSerde +} + // A contributor to the attack and their contribution. type Contributor struct { - // The name of the contributor. This is dependent on the AttackPropertyIdentifier. - // For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could - // be United States. + // The name of the contributor. The type of name that you'll find here depends on + // the AttackPropertyIdentifier setting in the AttackProperty where this + // contributor is defined. For example, if the AttackPropertyIdentifier is + // SOURCE_COUNTRY, the Name could be United States. Name *string // The contribution of this contributor expressed in Protection units. For example @@ -218,6 +244,13 @@ type Contributor struct { noSmithyDocumentSerde } +// Specifies that Shield Advanced should configure its WAF rules with the WAF Count +// action. This is only used in the context of the ResponseAction setting. JSON +// specification: "Count": {} +type CountAction struct { + noSmithyDocumentSerde +} + // Contact information that the SRT can use to contact you if you have proactive // engagement enabled, for escalations to the SRT and to initiate proactive // customer support. @@ -261,6 +294,12 @@ type Mitigation struct { // An object that represents a resource that is under DDoS protection. type Protection struct { + // The automatic application layer DDoS mitigation settings for the protection. + // This configuration determines whether Shield Advanced automatically manages + // rules in the web ACL in order to respond to application layer events that Shield + // Advanced determines to be DDoS attacks. + ApplicationLayerAutomaticResponseConfiguration *ApplicationLayerAutomaticResponseConfiguration + // The unique identifier (ID) for the Route 53 health check that's associated with // the protection. HealthCheckIds []string @@ -390,6 +429,25 @@ type ProtectionLimits struct { noSmithyDocumentSerde } +// Specifies the action setting that Shield Advanced should use in the WAF rules +// that it creates on behalf of the protected resource in response to DDoS attacks. +// You specify this as part of the configuration for the automatic application +// layer DDoS mitigation feature, when you enable or update automatic mitigation. +// Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, +// inside the web ACL that you have associated with the resource. +type ResponseAction struct { + + // Specifies that Shield Advanced should configure its WAF rules with the WAF Block + // action. You must specify exactly one action, either Block or Count. + Block *BlockAction + + // Specifies that Shield Advanced should configure its WAF rules with the WAF Count + // action. You must specify exactly one action, either Block or Count. + Count *CountAction + + noSmithyDocumentSerde +} + // The attack information for the specified SubResource. type SubResourceSummary struct { @@ -437,9 +495,7 @@ type Subscription struct { // initiate proactive customer support. ProactiveEngagementStatus ProactiveEngagementStatus - // The start time of the subscription, in Unix time in seconds. For more - // information see timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The start time of the subscription, in Unix time in seconds. StartTime *time.Time // The ARN (Amazon Resource Name) of the subscription. @@ -530,12 +586,10 @@ type Tag struct { // The time range. type TimeRange struct { - // The start time, in Unix time in seconds. For more information see timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The start time, in Unix time in seconds. FromInclusive *time.Time - // The end time, in Unix time in seconds. For more information see timestamp - // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types). + // The end time, in Unix time in seconds. ToExclusive *time.Time noSmithyDocumentSerde diff --git a/service/shield/validators.go b/service/shield/validators.go index 1a6aa385ff9..31fd6f00f77 100644 --- a/service/shield/validators.go +++ b/service/shield/validators.go @@ -210,6 +210,26 @@ func (m *validateOpDescribeProtectionGroup) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpDisableApplicationLayerAutomaticResponse struct { +} + +func (*validateOpDisableApplicationLayerAutomaticResponse) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisableApplicationLayerAutomaticResponse) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisableApplicationLayerAutomaticResponseInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisableApplicationLayerAutomaticResponseInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDisassociateDRTLogBucket struct { } @@ -250,6 +270,26 @@ func (m *validateOpDisassociateHealthCheck) HandleInitialize(ctx context.Context return next.HandleInitialize(ctx, in) } +type validateOpEnableApplicationLayerAutomaticResponse struct { +} + +func (*validateOpEnableApplicationLayerAutomaticResponse) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpEnableApplicationLayerAutomaticResponse) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*EnableApplicationLayerAutomaticResponseInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpEnableApplicationLayerAutomaticResponseInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListResourcesInProtectionGroup struct { } @@ -330,6 +370,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl return next.HandleInitialize(ctx, in) } +type validateOpUpdateApplicationLayerAutomaticResponse struct { +} + +func (*validateOpUpdateApplicationLayerAutomaticResponse) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateApplicationLayerAutomaticResponse) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateApplicationLayerAutomaticResponseInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateApplicationLayerAutomaticResponseInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateEmergencyContactSettings struct { } @@ -410,6 +470,10 @@ func addOpDescribeProtectionGroupValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpDescribeProtectionGroup{}, middleware.After) } +func addOpDisableApplicationLayerAutomaticResponseValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisableApplicationLayerAutomaticResponse{}, middleware.After) +} + func addOpDisassociateDRTLogBucketValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateDRTLogBucket{}, middleware.After) } @@ -418,6 +482,10 @@ func addOpDisassociateHealthCheckValidationMiddleware(stack *middleware.Stack) e return stack.Initialize.Add(&validateOpDisassociateHealthCheck{}, middleware.After) } +func addOpEnableApplicationLayerAutomaticResponseValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpEnableApplicationLayerAutomaticResponse{}, middleware.After) +} + func addOpListResourcesInProtectionGroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListResourcesInProtectionGroup{}, middleware.After) } @@ -434,6 +502,10 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } +func addOpUpdateApplicationLayerAutomaticResponseValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateApplicationLayerAutomaticResponse{}, middleware.After) +} + func addOpUpdateEmergencyContactSettingsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateEmergencyContactSettings{}, middleware.After) } @@ -640,6 +712,21 @@ func validateOpDescribeProtectionGroupInput(v *DescribeProtectionGroupInput) err } } +func validateOpDisableApplicationLayerAutomaticResponseInput(v *DisableApplicationLayerAutomaticResponseInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisableApplicationLayerAutomaticResponseInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDisassociateDRTLogBucketInput(v *DisassociateDRTLogBucketInput) error { if v == nil { return nil @@ -673,6 +760,24 @@ func validateOpDisassociateHealthCheckInput(v *DisassociateHealthCheckInput) err } } +func validateOpEnableApplicationLayerAutomaticResponseInput(v *EnableApplicationLayerAutomaticResponseInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EnableApplicationLayerAutomaticResponseInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.Action == nil { + invalidParams.Add(smithy.NewErrParamRequired("Action")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListResourcesInProtectionGroupInput(v *ListResourcesInProtectionGroupInput) error { if v == nil { return nil @@ -739,6 +844,24 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error { } } +func validateOpUpdateApplicationLayerAutomaticResponseInput(v *UpdateApplicationLayerAutomaticResponseInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateApplicationLayerAutomaticResponseInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.Action == nil { + invalidParams.Add(smithy.NewErrParamRequired("Action")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateEmergencyContactSettingsInput(v *UpdateEmergencyContactSettingsInput) error { if v == nil { return nil diff --git a/service/snowball/api_op_CreateCluster.go b/service/snowball/api_op_CreateCluster.go index 898d486ffe0..ac4f972c58f 100644 --- a/service/snowball/api_op_CreateCluster.go +++ b/service/snowball/api_op_CreateCluster.go @@ -47,7 +47,7 @@ type CreateClusterInput struct { JobType types.JobType // The resources associated with the cluster job. These resources include Amazon S3 - // buckets and optional AWS Lambda functions written in the Python language. + // buckets and optional Lambda functions written in the Python language. // // This member is required. Resources *types.JobResource @@ -55,7 +55,7 @@ type CreateClusterInput struct { // The RoleARN that you want to associate with this cluster. RoleArn values are // created by using the CreateRole // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) API - // action in AWS Identity and Access Management (IAM). + // action in Identity and Access Management (IAM). // // This member is required. RoleARN *string @@ -97,9 +97,9 @@ type CreateClusterInput struct { // This member is required. ShippingOption types.ShippingOption - // The type of AWS Snow Family device to use for this cluster. For cluster jobs, - // AWS Snow Family currently supports only the EDGE device type. For more - // information, see + // The type of Snow Family Devices to use for this cluster. For cluster jobs, + // Amazon Web Services Snow Family currently supports only the EDGE device type. + // For more information, see // "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" // (Snow Family Devices and Capacity) in the Snowcone User Guide or // "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" @@ -119,7 +119,7 @@ type CreateClusterInput struct { // The KmsKeyARN value that you want to associate with this cluster. KmsKeyARN // values are created by using the CreateKey // (https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) API - // action in AWS Key Management Service (AWS KMS). + // action in Key Management Service (KMS). KmsKeyARN *string // The Amazon Simple Notification Service (Amazon SNS) notification settings for @@ -127,8 +127,8 @@ type CreateClusterInput struct { Notification *types.Notification // Specifies the service or services on the Snow Family device that your - // transferred data will be exported from or imported into. AWS Snow Family - // supports Amazon S3 and NFS (Network File System). + // transferred data will be exported from or imported into. Amazon Web Services + // Snow Family device clusters support Amazon S3 and NFS (Network File System). OnDeviceServiceConfiguration *types.OnDeviceServiceConfiguration // Allows you to securely operate and manage Snow devices in a cluster remotely @@ -137,7 +137,7 @@ type CreateClusterInput struct { // location. Otherwise, you need to use the Snowball Client to manage the device. RemoteManagement types.RemoteManagement - // The tax documents required in your AWS Region. + // The tax documents required in your Amazon Web Services Region. TaxDocuments *types.TaxDocuments noSmithyDocumentSerde diff --git a/service/snowball/api_op_CreateJob.go b/service/snowball/api_op_CreateJob.go index dc8cdeece72..cc666b74dcf 100644 --- a/service/snowball/api_op_CreateJob.go +++ b/service/snowball/api_op_CreateJob.go @@ -12,15 +12,16 @@ import ( ) // Creates a job to import or export data between Amazon S3 and your on-premises -// data center. Your AWS account must have the right trust policies and permissions -// in place to create a job for a Snow device. If you're creating a job for a node -// in a cluster, you only need to provide the clusterId value; the other job -// attributes are inherited from the cluster. Only the Snowball; Edge device type -// is supported when ordering clustered jobs. The device capacity is optional. -// Availability of device types differ by AWS Region. For more information about -// Region availability, see AWS Regional Services +// data center. Your Amazon Web Services account must have the right trust policies +// and permissions in place to create a job for a Snow device. If you're creating a +// job for a node in a cluster, you only need to provide the clusterId value; the +// other job attributes are inherited from the cluster. Only the Snowball; Edge +// device type is supported when ordering clustered jobs. The device capacity is +// optional. Availability of device types differ by Amazon Web Services Region. For +// more information about Region availability, see Amazon Web Services Regional +// Services // (https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/?p=ngi&loc=4). -// AWS Snow Family device types and their capacities. +// Snow Family Devices and their capacities. // // * Snow Family device type: // SNC1_SSD @@ -72,15 +73,15 @@ import ( // // * Description: Original // Snowball device This device is only available in the Ningxia, Beijing, and -// Singapore AWS Regions. +// Singapore Amazon Web Services Region // // * Device type: STANDARD // -// * Capacity: T80 +// * Capacity: +// T80 // -// * Description: -// Original Snowball device This device is only available in the Ningxia, Beijing, -// and Singapore AWS Regions. +// * Description: Original Snowball device This device is only available in +// the Ningxia, Beijing, and Singapore Amazon Web Services Region. func (c *Client) CreateJob(ctx context.Context, params *CreateJobInput, optFns ...func(*Options)) (*CreateJobOutput, error) { if params == nil { params = &CreateJobInput{} @@ -110,8 +111,7 @@ type CreateJobInput struct { // Photos 2016-08-11. Description *string - // Defines the device configuration for an AWS Snowcone job. For more information, - // see + // Defines the device configuration for an Snowcone job. For more information, see // "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" // (Snow Family Devices and Capacity) in the Snowcone User Guide or // "https://docs.aws.amazon.com/snowball/latest/developer-guide/snow-device-types.html" @@ -127,7 +127,7 @@ type CreateJobInput struct { // The KmsKeyARN that you want to associate with this job. KmsKeyARNs are created // using the CreateKey - // (https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) AWS Key + // (https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) Key // Management Service (KMS) API action. KmsKeyARN *string @@ -139,8 +139,9 @@ type CreateJobInput struct { Notification *types.Notification // Specifies the service or services on the Snow Family device that your - // transferred data will be exported from or imported into. AWS Snow Family - // supports Amazon S3 and NFS (Network File System). + // transferred data will be exported from or imported into. Amazon Web Services + // Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web + // Services Storage Gateway service Tape Gateway type. OnDeviceServiceConfiguration *types.OnDeviceServiceConfiguration // Allows you to securely operate and manage Snowcone devices remotely from outside @@ -160,7 +161,7 @@ type CreateJobInput struct { // The RoleARN that you want to associate with this job. RoleArns are created using // the CreateRole - // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) AWS + // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) // Identity and Access Management (IAM) API action. RoleARN *string @@ -193,10 +194,11 @@ type CreateJobInput struct { // (Snow Family Devices and Capacity) in the Snowcone User Guide. SnowballCapacityPreference types.SnowballCapacity - // The type of AWS Snow Family device to use for this job. For cluster jobs, AWS - // Snow Family currently supports only the EDGE device type. The type of AWS Snow - // device to use for this job. Currently, the only supported device type for - // cluster jobs is EDGE. For more information, see Snowball Edge Device Options + // The type of Snow Family Devices to use for this job. For cluster jobs, Amazon + // Web Services Snow Family currently supports only the EDGE device type. The type + // of Amazon Web Services Snow device to use for this job. Currently, the only + // supported device type for cluster jobs is EDGE. For more information, see + // Snowball Edge Device Options // (https://docs.aws.amazon.com/snowball/latest/developer-guide/device-differences.html) // in the Snowball Edge Developer Guide. For more information, see // "https://docs.aws.amazon.com/snowball/latest/snowcone-guide/snow-device-types.html" @@ -205,7 +207,7 @@ type CreateJobInput struct { // (Snow Family Devices and Capacity) in the Snowcone User Guide. SnowballType types.SnowballType - // The tax documents required in your AWS Region. + // The tax documents required in your Amazon Web Services Region. TaxDocuments *types.TaxDocuments noSmithyDocumentSerde diff --git a/service/snowball/api_op_CreateLongTermPricing.go b/service/snowball/api_op_CreateLongTermPricing.go index f727a609958..e1a63fc40f2 100644 --- a/service/snowball/api_op_CreateLongTermPricing.go +++ b/service/snowball/api_op_CreateLongTermPricing.go @@ -13,7 +13,7 @@ import ( // Creates a job with the long-term usage option for a device. The long-term usage // is a 1-year or 3-year long-term pricing type for the device. You are billed -// upfront, and AWS provides discounts for long-term pricing. +// upfront, and Amazon Web Services provides discounts for long-term pricing. func (c *Client) CreateLongTermPricing(ctx context.Context, params *CreateLongTermPricingInput, optFns ...func(*Options)) (*CreateLongTermPricingOutput, error) { if params == nil { params = &CreateLongTermPricingInput{} @@ -41,7 +41,7 @@ type CreateLongTermPricingInput struct { // renewed. IsLongTermPricingAutoRenew *bool - // The type of AWS Snow Family device to use for the long-term pricing job. + // The type of Snow Family Devices to use for the long-term pricing job. SnowballType types.SnowballType noSmithyDocumentSerde diff --git a/service/snowball/api_op_CreateReturnShippingLabel.go b/service/snowball/api_op_CreateReturnShippingLabel.go index 3ff7b068329..ad99c846f8e 100644 --- a/service/snowball/api_op_CreateReturnShippingLabel.go +++ b/service/snowball/api_op_CreateReturnShippingLabel.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a shipping label that will be used to return the Snow device to AWS. +// Creates a shipping label that will be used to return the Snow device to Amazon +// Web Services. func (c *Client) CreateReturnShippingLabel(ctx context.Context, params *CreateReturnShippingLabelInput, optFns ...func(*Options)) (*CreateReturnShippingLabelOutput, error) { if params == nil { params = &CreateReturnShippingLabelInput{} @@ -36,8 +37,9 @@ type CreateReturnShippingLabelInput struct { JobId *string // The shipping speed for a particular job. This speed doesn't dictate how soon the - // device is returned to AWS. This speed represents how quickly it moves to its - // destination while in transit. Regional shipping speeds are as follows: + // device is returned to Amazon Web Services. This speed represents how quickly it + // moves to its destination while in transit. Regional shipping speeds are as + // follows: ShippingOption types.ShippingOption noSmithyDocumentSerde @@ -46,7 +48,7 @@ type CreateReturnShippingLabelInput struct { type CreateReturnShippingLabelOutput struct { // The status information of the task on a Snow device that is being returned to - // AWS. + // Amazon Web Services. Status types.ShippingLabelStatus // Metadata pertaining to the operation's result. diff --git a/service/snowball/api_op_DescribeReturnShippingLabel.go b/service/snowball/api_op_DescribeReturnShippingLabel.go index 1fe7fc0af36..bc089a5e9b3 100644 --- a/service/snowball/api_op_DescribeReturnShippingLabel.go +++ b/service/snowball/api_op_DescribeReturnShippingLabel.go @@ -13,7 +13,7 @@ import ( ) // Information on the shipping label of a Snow device that is being returned to -// AWS. +// Amazon Web Services. func (c *Client) DescribeReturnShippingLabel(ctx context.Context, params *DescribeReturnShippingLabelInput, optFns ...func(*Options)) (*DescribeReturnShippingLabelOutput, error) { if params == nil { params = &DescribeReturnShippingLabelInput{} @@ -45,8 +45,11 @@ type DescribeReturnShippingLabelOutput struct { // The expiration date of the current return shipping label. ExpirationDate *time.Time + // The pre-signed Amazon S3 URI used to download the return shipping label. + ReturnShippingLabelURI *string + // The status information of the task on a Snow device that is being returned to - // AWS. + // Amazon Web Services. Status types.ShippingLabelStatus // Metadata pertaining to the operation's result. diff --git a/service/snowball/api_op_GetSnowballUsage.go b/service/snowball/api_op_GetSnowballUsage.go index b544e93a89f..8dce3651341 100644 --- a/service/snowball/api_op_GetSnowballUsage.go +++ b/service/snowball/api_op_GetSnowballUsage.go @@ -13,7 +13,7 @@ import ( // Returns information about the Snow Family service limit for your account, and // also the number of Snow devices your account has in use. The default service // limit for the number of Snow devices that you can have at one time is 1. If you -// want to increase your service limit, contact AWS Support. +// want to increase your service limit, contact Amazon Web Services Support. func (c *Client) GetSnowballUsage(ctx context.Context, params *GetSnowballUsageInput, optFns ...func(*Options)) (*GetSnowballUsageOutput, error) { if params == nil { params = &GetSnowballUsageInput{} diff --git a/service/snowball/api_op_ListCompatibleImages.go b/service/snowball/api_op_ListCompatibleImages.go index 49dd746c87c..71b65d7ba7c 100644 --- a/service/snowball/api_op_ListCompatibleImages.go +++ b/service/snowball/api_op_ListCompatibleImages.go @@ -12,10 +12,10 @@ import ( ) // This action returns a list of the different Amazon EC2 Amazon Machine Images -// (AMIs) that are owned by your AWS account that would be supported for use on a -// Snow device. Currently, supported AMIs are based on the CentOS 7 (x86_64) - with -// Updates HVM, Ubuntu Server 14.04 LTS (HVM), and Ubuntu 16.04 LTS - Xenial (HVM) -// images, available on the AWS Marketplace. +// (AMIs) that are owned by your Amazon Web Services accountthat would be supported +// for use on a Snow device. Currently, supported AMIs are based on the CentOS 7 +// (x86_64) - with Updates HVM, Ubuntu Server 14.04 LTS (HVM), and Ubuntu 16.04 LTS +// - Xenial (HVM) images, available on the Amazon Web Services Marketplace. func (c *Client) ListCompatibleImages(ctx context.Context, params *ListCompatibleImagesInput, optFns ...func(*Options)) (*ListCompatibleImagesOutput, error) { if params == nil { params = &ListCompatibleImagesInput{} diff --git a/service/snowball/api_op_UpdateCluster.go b/service/snowball/api_op_UpdateCluster.go index 7f1b6b3319d..d3050880a39 100644 --- a/service/snowball/api_op_UpdateCluster.go +++ b/service/snowball/api_op_UpdateCluster.go @@ -52,8 +52,8 @@ type UpdateClusterInput struct { Notification *types.Notification // Specifies the service or services on the Snow Family device that your - // transferred data will be exported from or imported into. AWS Snow Family - // supports Amazon S3 and NFS (Network File System). + // transferred data will be exported from or imported into. Amazon Web Services + // Snow Family device clusters support Amazon S3 and NFS (Network File System). OnDeviceServiceConfiguration *types.OnDeviceServiceConfiguration // The updated arrays of JobResource objects that can include updated S3Resource @@ -63,7 +63,7 @@ type UpdateClusterInput struct { // The new role Amazon Resource Name (ARN) that you want to associate with this // cluster. To create a role ARN, use the CreateRole // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) API - // action in AWS Identity and Access Management (IAM). + // action in Identity and Access Management (IAM). RoleARN *string // The updated shipping option value of this cluster's ShippingDetails object. diff --git a/service/snowball/api_op_UpdateJob.go b/service/snowball/api_op_UpdateJob.go index 02102640bc3..05972fa409c 100644 --- a/service/snowball/api_op_UpdateJob.go +++ b/service/snowball/api_op_UpdateJob.go @@ -51,8 +51,9 @@ type UpdateJobInput struct { Notification *types.Notification // Specifies the service or services on the Snow Family device that your - // transferred data will be exported from or imported into. AWS Snow Family - // supports Amazon S3 and NFS (Network File System). + // transferred data will be exported from or imported into. Amazon Web Services + // Snow Family supports Amazon S3 and NFS (Network File System) and the Amazon Web + // Services Storage Gateway service Tape Gateway type. OnDeviceServiceConfiguration *types.OnDeviceServiceConfiguration // The updated JobResource object, or the updated JobResource object. @@ -60,8 +61,8 @@ type UpdateJobInput struct { // The new role Amazon Resource Name (ARN) that you want to associate with this // job. To create a role ARN, use the CreateRole - // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)AWS - // Identity and Access Management (IAM) API action. + // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)Identity + // and Access Management (IAM) API action. RoleARN *string // The updated shipping option value of this job's ShippingDetails object. diff --git a/service/snowball/api_op_UpdateJobShipmentState.go b/service/snowball/api_op_UpdateJobShipmentState.go index 6977617587d..90050911149 100644 --- a/service/snowball/api_op_UpdateJobShipmentState.go +++ b/service/snowball/api_op_UpdateJobShipmentState.go @@ -37,7 +37,7 @@ type UpdateJobShipmentStateInput struct { // The state of a device when it is being shipped. Set to RECEIVED when the device // arrives at your location. Set to RETURNED when you have returned the device to - // AWS. + // Amazon Web Services. // // This member is required. ShipmentState types.ShipmentState diff --git a/service/snowball/deserializers.go b/service/snowball/deserializers.go index 14935108171..3b27a44ec11 100644 --- a/service/snowball/deserializers.go +++ b/service/snowball/deserializers.go @@ -5490,6 +5490,11 @@ func awsAwsjson11_deserializeDocumentOnDeviceServiceConfiguration(v **types.OnDe return err } + case "TGWOnDeviceService": + if err := awsAwsjson11_deserializeDocumentTGWOnDeviceServiceConfiguration(&sv.TGWOnDeviceService, value); err != nil { + return err + } + default: _, _ = key, value @@ -5877,6 +5882,59 @@ func awsAwsjson11_deserializeDocumentTaxDocuments(v **types.TaxDocuments, value return nil } +func awsAwsjson11_deserializeDocumentTGWOnDeviceServiceConfiguration(v **types.TGWOnDeviceServiceConfiguration, 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.TGWOnDeviceServiceConfiguration + if *v == nil { + sv = &types.TGWOnDeviceServiceConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "StorageLimit": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected StorageLimit to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.StorageLimit = int32(i64) + } + + case "StorageUnit": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StorageUnit to be of type string, got %T instead", value) + } + sv.StorageUnit = types.StorageUnit(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentUnsupportedAddressException(v **types.UnsupportedAddressException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6415,6 +6473,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeReturnShippingLabelOutput(v **Des } } + case "ReturnShippingLabelURI": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ReturnShippingLabelURI = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) diff --git a/service/snowball/doc.go b/service/snowball/doc.go index 5666d080e27..9b52731816b 100644 --- a/service/snowball/doc.go +++ b/service/snowball/doc.go @@ -3,13 +3,14 @@ // Package snowball provides the API client, operations, and parameter types for // Amazon Import/Export Snowball. // -// AWS Snow Family is a petabyte-scale data transport solution that uses secure -// devices to transfer large amounts of data between your on-premises data centers -// and Amazon Simple Storage Service (Amazon S3). The Snow commands described here -// provide access to the same functionality that is available in the AWS Snow -// Family Management Console, which enables you to create and manage jobs for a -// Snow device. To transfer data locally with a Snow device, you'll need to use the -// Snowball Edge client or the Amazon S3 API Interface for Snowball or AWS OpsHub -// for Snow Family. For more information, see the User Guide +// The Amazon Web Services Snow Family provides a petabyte-scale data transport +// solution that uses secure devices to transfer large amounts of data between your +// on-premises data centers and Amazon Simple Storage Service (Amazon S3). The Snow +// Family commands described here provide access to the same functionality that is +// available in the Amazon Web Services Snow Family Management Console, which +// enables you to create and manage jobs for a Snow Family device. To transfer data +// locally with a Snow Family device, you'll need to use the Snowball Edge client +// or the Amazon S3 API Interface for Snowball or OpsHub for Snow Family. For more +// information, see the User Guide // (https://docs.aws.amazon.com/AWSImportExport/latest/ug/api-reference.html). package snowball diff --git a/service/snowball/serializers.go b/service/snowball/serializers.go index 2626ad18956..d61f4222963 100644 --- a/service/snowball/serializers.go +++ b/service/snowball/serializers.go @@ -1687,6 +1687,13 @@ func awsAwsjson11_serializeDocumentOnDeviceServiceConfiguration(v *types.OnDevic } } + if v.TGWOnDeviceService != nil { + ok := object.Key("TGWOnDeviceService") + if err := awsAwsjson11_serializeDocumentTGWOnDeviceServiceConfiguration(v.TGWOnDeviceService, ok); err != nil { + return err + } + } + return nil } @@ -1787,6 +1794,23 @@ func awsAwsjson11_serializeDocumentTaxDocuments(v *types.TaxDocuments, value smi return nil } +func awsAwsjson11_serializeDocumentTGWOnDeviceServiceConfiguration(v *types.TGWOnDeviceServiceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.StorageLimit != 0 { + ok := object.Key("StorageLimit") + ok.Integer(v.StorageLimit) + } + + if len(v.StorageUnit) > 0 { + ok := object.Key("StorageUnit") + ok.String(string(v.StorageUnit)) + } + + return nil +} + func awsAwsjson11_serializeDocumentWirelessConnection(v *types.WirelessConnection, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/snowball/types/errors.go b/service/snowball/types/errors.go index 9a0e0b5ed57..1b9ae7675a0 100644 --- a/service/snowball/types/errors.go +++ b/service/snowball/types/errors.go @@ -175,7 +175,7 @@ func (e *InvalidResourceException) ErrorMessage() string { func (e *InvalidResourceException) ErrorCode() string { return "InvalidResourceException" } func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The provided AWS Key Management Service key lacks the permissions to perform the +// The provided Key Management Service key lacks the permissions to perform the // specified CreateJob or UpdateJob action. type KMSRequestFailedException struct { Message *string @@ -197,7 +197,7 @@ func (e *KMSRequestFailedException) ErrorFault() smithy.ErrorFault { return smit // You get this exception if you call CreateReturnShippingLabel and a valid return // shipping label already exists. In this case, use DescribeReturnShippingLabel to -// get the url. +// get the URL. type ReturnShippingLabelAlreadyExistsException struct { Message *string @@ -222,7 +222,7 @@ func (e *ReturnShippingLabelAlreadyExistsException) ErrorFault() smithy.ErrorFau // The address is either outside the serviceable area for your region, or an error // occurred. Check the address with your region's carrier and try again. If the -// issue persists, contact AWS Support. +// issue persists, contact Amazon Web Services Support. type UnsupportedAddressException struct { Message *string diff --git a/service/snowball/types/types.go b/service/snowball/types/types.go index fa453832465..50e329db0f9 100644 --- a/service/snowball/types/types.go +++ b/service/snowball/types/types.go @@ -111,15 +111,15 @@ type ClusterMetadata struct { // The KmsKeyARN Amazon Resource Name (ARN) associated with this cluster. This ARN // was created using the CreateKey // (https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) API - // action in AWS Key Management Service (AWS KMS). + // action in Key Management Service (KMS. KmsKeyARN *string // The Amazon Simple Notification Service (Amazon SNS) notification settings for // this cluster. Notification *Notification - // Represents metadata and configuration settings for services on an AWS Snow - // Family device. + // Represents metadata and configuration settings for services on an Amazon Web + // Services Snow Family device. OnDeviceServiceConfiguration *OnDeviceServiceConfiguration // The arrays of JobResource objects that can include updated S3Resource objects or @@ -129,7 +129,7 @@ type ClusterMetadata struct { // The role ARN associated with this cluster. This ARN was created using the // CreateRole // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) API - // action in AWS Identity and Access Management (IAM). + // action in Identity and Access Management (IAM). RoleARN *string // The shipping speed for each node in this cluster. This speed doesn't dictate how @@ -152,11 +152,11 @@ type ClusterMetadata struct { // to one-day shipping and two-day shipping. ShippingOption ShippingOption - // The type of AWS Snow device to use for this cluster. For cluster jobs, AWS Snow - // Family currently supports only the EDGE device type. + // The type of Snowcone device to use for this cluster. For cluster jobs, Amazon + // Web Services Snow Family currently supports only the EDGE device type. SnowballType SnowballType - // The tax documents required in your AWS Region. + // The tax documents required in your Amazon Web Services Region. TaxDocuments *TaxDocuments noSmithyDocumentSerde @@ -178,8 +178,8 @@ type CompatibleImage struct { } // Defines the real-time status of a Snow device's data transfer while the device -// is at AWS. This data is only available while a job has a JobState value of -// InProgress, for both import and export jobs. +// is at Amazon Web Services. This data is only available while a job has a +// JobState value of InProgress, for both import and export jobs. type DataTransfer struct { // The number of bytes transferred between a Snow device and Amazon S3. @@ -204,7 +204,7 @@ type DataTransfer struct { // The container for SnowconeDeviceConfiguration. type DeviceConfiguration struct { - // Returns information about the device configuration for an AWS Snowcone job. + // Returns information about the device configuration for an Snowcone job. SnowconeDeviceConfiguration *SnowconeDeviceConfiguration noSmithyDocumentSerde @@ -212,7 +212,8 @@ type DeviceConfiguration struct { // A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI), // including the Amazon EC2 AMI ID and the Snow device AMI ID. Each AMI has these -// two IDs to simplify identifying the AMI in both the AWS Cloud and on the device. +// two IDs to simplify identifying the AMI in both the Amazon Web Services Cloud +// and on the device. type Ec2AmiResource struct { // The ID of the AMI in Amazon EC2. @@ -229,17 +230,18 @@ type Ec2AmiResource struct { // The container for the EventTriggerDefinition$EventResourceARN. type EventTriggerDefinition struct { - // The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an AWS + // The Amazon Resource Name (ARN) for any local Amazon S3 resource that is an // Lambda function's event trigger associated with this job. EventResourceARN *string noSmithyDocumentSerde } -// The tax documents required in AWS Regions in India. +// The tax documents required in Amazon Web Services Region in India. type INDTaxDocuments struct { - // The Goods and Services Tax (GST) documents required in AWS Regions in India. + // The Goods and Services Tax (GST) documents required in Amazon Web Services + // Region in India. GSTIN *string noSmithyDocumentSerde @@ -325,8 +327,8 @@ type JobMetadata struct { CreationDate *time.Time // A value that defines the real-time status of a Snow device's data transfer while - // the device is at AWS. This data is only available while a job has a JobState - // value of InProgress, for both import and export jobs. + // the device is at Amazon Web Services. This data is only available while a job + // has a JobState value of InProgress, for both import and export jobs. DataTransferProgress *DataTransfer // The description of the job, provided at job creation. @@ -355,10 +357,10 @@ type JobMetadata struct { // The type of job. JobType JobType - // The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS) key + // The Amazon Resource Name (ARN) for the Key Management Service (KMS) key // associated with this job. This ARN was created using the CreateKey // (https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html) API - // action in AWS KMS. + // action in KMS. KmsKeyARN *string // The ID of the long-term pricing type for the device. @@ -369,8 +371,8 @@ type JobMetadata struct { // the response syntax of the DescribeJob action in the JobMetadata data type. Notification *Notification - // Represents metadata and configuration settings for services on an AWS Snow - // Family device. + // Represents metadata and configuration settings for services on an Amazon Web + // Services Snow Family device. OnDeviceServiceConfiguration *OnDeviceServiceConfiguration // Allows you to securely operate and manage Snowcone devices remotely from outside @@ -385,7 +387,7 @@ type JobMetadata struct { // The role ARN associated with this job. This ARN was created using the CreateRole // (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html) API - // action in AWS Identity and Access Management (IAM). + // action in Identity and Access Management. RoleARN *string // A job's shipping information, including inbound and outbound tracking numbers @@ -404,15 +406,16 @@ type JobMetadata struct { // The type of device used with this job. SnowballType SnowballType - // The metadata associated with the tax documents required in your AWS Region. + // The metadata associated with the tax documents required in your Amazon Web + // Services Region. TaxDocuments *TaxDocuments noSmithyDocumentSerde } -// Contains an array of AWS resource objects. Each object represents an Amazon S3 -// bucket, an AWS Lambda function, or an Amazon Machine Image (AMI) based on Amazon -// EC2 that is associated with a particular job. +// Contains an array of Amazon Web Services resource objects. Each object +// represents an Amazon S3 bucket, an Lambda function, or an Amazon Machine Image +// (AMI) based on Amazon EC2 that is associated with a particular job. type JobResource struct { // The Amazon Machine Images (AMIs) associated with this job. @@ -451,8 +454,8 @@ type LambdaResource struct { // associated with this job. EventTriggers []EventTriggerDefinition - // An Amazon Resource Name (ARN) that represents an AWS Lambda function to be - // triggered by PUT object actions on the associated local Amazon S3 resource. + // An Amazon Resource Name (ARN) that represents an Lambda function to be triggered + // by PUT object actions on the associated local Amazon S3 resource. LambdaArn *string noSmithyDocumentSerde @@ -490,17 +493,17 @@ type LongTermPricingListEntry struct { // A new device that replaces a device that is ordered with long-term pricing. ReplacementJob *string - // The type of AWS Snow Family device associated with this long-term pricing job. + // The type of Snow Family Devices associated with this long-term pricing job. SnowballType SnowballType noSmithyDocumentSerde } -// An object that represents metadata and configuration settings for NFS service on -// an AWS Snow Family device. +// An object that represents the metadata and configuration settings for the NFS +// (Network File System) service on an Amazon Web Services Snow Family device. type NFSOnDeviceServiceConfiguration struct { - // The maximum NFS storage for one Snowball Family device. + // The maximum NFS storage for one Snow Family device. StorageLimit int32 // The scale unit of the NFS storage on the device. Valid values: TB. @@ -527,8 +530,8 @@ type Notification struct { // The new SNS TopicArn that you want to associate with this job. You can create // Amazon Resource Names (ARNs) for topics by using the CreateTopic // (https://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html) Amazon SNS API - // action. You can subscribe email addresses to an Amazon SNS topic through the AWS - // Management Console, or by using the Subscribe + // action. You can subscribe email addresses to an Amazon SNS topic through the + // Amazon Web Services Management Console, or by using the Subscribe // (https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html) Amazon Simple // Notification Service (Amazon SNS) API action. SnsTopicARN *string @@ -536,13 +539,17 @@ type Notification struct { noSmithyDocumentSerde } -// An object that represents metadata and configuration settings for services on an -// AWS Snow Family device. +// An object that represents the metadata and configuration settings for services +// on an Amazon Web Services Snow Family device. type OnDeviceServiceConfiguration struct { - // Represents the NFS service on a Snow Family device. + // Represents the NFS (Network File System) service on a Snow Family device. NFSOnDeviceService *NFSOnDeviceServiceConfiguration + // Represents the Storage Gateway service Tape Gateway type on a Snow Family + // device. + TGWOnDeviceService *TGWOnDeviceServiceConfiguration + noSmithyDocumentSerde } @@ -563,8 +570,8 @@ type S3Resource struct { KeyRange *KeyRange // Specifies the service or services on the Snow Family device that your - // transferred data will be exported from or imported into. AWS Snow Family - // supports Amazon S3 and NFS (Network File System). + // transferred data will be exported from or imported into. Amazon Web Services + // Snow Family supports Amazon S3 and NFS (Network File System). TargetOnDeviceServices []TargetOnDeviceService noSmithyDocumentSerde @@ -589,8 +596,8 @@ type Shipment struct { // and shipping speed options. type ShippingDetails struct { - // The Status and TrackingNumber values for a Snow device being returned to AWS for - // a particular job. + // The Status and TrackingNumber values for a Snow device being returned to Amazon + // Web Services for a particular job. InboundShipment *Shipment // The Status and TrackingNumber values for a Snow device being delivered to the @@ -621,18 +628,18 @@ type ShippingDetails struct { noSmithyDocumentSerde } -// Specifies the device configuration for an AWS Snowcone job. +// Specifies the device configuration for an Snowcone job. type SnowconeDeviceConfiguration struct { - // Configures the wireless connection for the AWS Snowcone device. + // Configures the wireless connection for the Snowcone device. WirelessConnection *WirelessConnection noSmithyDocumentSerde } // An object that represents the service or services on the Snow Family device that -// your transferred data will be exported from or imported into. AWS Snow Family -// supports Amazon S3 and NFS (Network File System). +// your transferred data will be exported from or imported into. Amazon Web +// Services Snow Family supports Amazon S3 and NFS (Network File System). type TargetOnDeviceService struct { // Specifies the name of the service on the Snow Family device that your @@ -646,19 +653,34 @@ type TargetOnDeviceService struct { noSmithyDocumentSerde } -// The tax documents required in your AWS Region. +// The tax documents required in your Amazon Web Services Region. type TaxDocuments struct { - // The tax documents required in AWS Regions in India. + // The tax documents required in Amazon Web Services Region in India. IND *INDTaxDocuments noSmithyDocumentSerde } -// Configures the wireless connection on an AWS Snowcone device. +// An object that represents the metadata and configuration settings for the +// Storage Gateway service Tape Gateway type on an Amazon Web Services Snow Family +// device. +type TGWOnDeviceServiceConfiguration struct { + + // The maximum number of virtual tapes to store on one Snow Family device. Due to + // physical resource limitations, this value must be set to 80 for Snowball Edge. + StorageLimit int32 + + // The scale unit of the virtual tapes on the device. + StorageUnit StorageUnit + + noSmithyDocumentSerde +} + +// Configures the wireless connection on an Snowcone device. type WirelessConnection struct { - // Enables the Wi-Fi adapter on an AWS Snowcone device. + // Enables the Wi-Fi adapter on an Snowcone device. IsWifiEnabled bool noSmithyDocumentSerde diff --git a/service/storagegateway/api_op_ActivateGateway.go b/service/storagegateway/api_op_ActivateGateway.go index 89d60e66489..7aeffc2f64a 100644 --- a/service/storagegateway/api_op_ActivateGateway.go +++ b/service/storagegateway/api_op_ActivateGateway.go @@ -97,7 +97,7 @@ type ActivateGatewayInput struct { // A value that defines the type of gateway to activate. The type specified is // critical to all later functions of the gateway and cannot be changed after // activation. The default value is CACHED. Valid Values: STORED | CACHED | VTL | - // FILE_S3 | FILE_FSX_SMB| + // VTL_SNOW | FILE_S3 | FILE_FSX_SMB GatewayType *string // The value that indicates the type of medium changer to use for tape gateway. diff --git a/service/storagegateway/api_op_DescribeGatewayInformation.go b/service/storagegateway/api_op_DescribeGatewayInformation.go index b4253d50deb..0775619656d 100644 --- a/service/storagegateway/api_op_DescribeGatewayInformation.go +++ b/service/storagegateway/api_op_DescribeGatewayInformation.go @@ -90,9 +90,14 @@ type DescribeGatewayInformationOutput struct { // The type of the gateway. GatewayType *string - // The type of hypervisor environment used by the host. + // The type of hardware or software platform on which the gateway is running. HostEnvironment types.HostEnvironment + // A unique identifier for the specific instance of the host platform running the + // gateway. This value is only available for certain host environments, and its + // format depends on the host environment type. + HostEnvironmentId *string + // The date on which the last software update was applied to the gateway. If the // gateway has never been updated, this field does not return a value in the // response. diff --git a/service/storagegateway/deserializers.go b/service/storagegateway/deserializers.go index 63097708f9b..e88b4da9f7c 100644 --- a/service/storagegateway/deserializers.go +++ b/service/storagegateway/deserializers.go @@ -12027,6 +12027,24 @@ func awsAwsjson11_deserializeDocumentGatewayInfo(v **types.GatewayInfo, value in sv.GatewayType = ptr.String(jtv) } + case "HostEnvironment": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostEnvironment to be of type string, got %T instead", value) + } + sv.HostEnvironment = types.HostEnvironment(jtv) + } + + case "HostEnvironmentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostEnvironmentId to be of type string, got %T instead", value) + } + sv.HostEnvironmentId = ptr.String(jtv) + } + default: _, _ = key, value @@ -16652,6 +16670,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeGatewayInformationOutput(v **Desc sv.HostEnvironment = types.HostEnvironment(jtv) } + case "HostEnvironmentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostEnvironmentId to be of type string, got %T instead", value) + } + sv.HostEnvironmentId = ptr.String(jtv) + } + case "LastSoftwareUpdate": if value != nil { jtv, ok := value.(string) diff --git a/service/storagegateway/types/enums.go b/service/storagegateway/types/enums.go index 3b5931abe04..137d66c354f 100644 --- a/service/storagegateway/types/enums.go +++ b/service/storagegateway/types/enums.go @@ -249,11 +249,12 @@ type HostEnvironment string // Enum values for HostEnvironment const ( - HostEnvironmentVmware HostEnvironment = "VMWARE" - HostEnvironmentHyperV HostEnvironment = "HYPER-V" - HostEnvironmentEc2 HostEnvironment = "EC2" - HostEnvironmentKvm HostEnvironment = "KVM" - HostEnvironmentOther HostEnvironment = "OTHER" + HostEnvironmentVmware HostEnvironment = "VMWARE" + HostEnvironmentHyperV HostEnvironment = "HYPER-V" + HostEnvironmentEc2 HostEnvironment = "EC2" + HostEnvironmentKvm HostEnvironment = "KVM" + HostEnvironmentOther HostEnvironment = "OTHER" + HostEnvironmentSnowball HostEnvironment = "SNOWBALL" ) // Values returns all known values for HostEnvironment. Note that this can be @@ -266,6 +267,7 @@ func (HostEnvironment) Values() []HostEnvironment { "EC2", "KVM", "OTHER", + "SNOWBALL", } } diff --git a/service/storagegateway/types/types.go b/service/storagegateway/types/types.go index 502d38832f1..0ae9f363c54 100644 --- a/service/storagegateway/types/types.go +++ b/service/storagegateway/types/types.go @@ -406,6 +406,14 @@ type GatewayInfo struct { // The type of the gateway. GatewayType *string + // The type of hardware or software platform on which the gateway is running. + HostEnvironment HostEnvironment + + // A unique identifier for the specific instance of the host platform running the + // gateway. This value is only available for certain host environments, and its + // format depends on the host environment type. + HostEnvironmentId *string + noSmithyDocumentSerde } diff --git a/service/workspacesweb/LICENSE.txt b/service/workspacesweb/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/workspacesweb/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/workspacesweb/api_client.go b/service/workspacesweb/api_client.go new file mode 100644 index 00000000000..1bc7cc8d3c1 --- /dev/null +++ b/service/workspacesweb/api_client.go @@ -0,0 +1,317 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + cryptorand "crypto/rand" + "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/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyrand "github.com/aws/smithy-go/rand" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "time" +) + +const ServiceID = "WorkSpaces Web" +const ServiceAPIVersion = "2020-07-08" + +// Client provides the API client to make operations call for Amazon WorkSpaces +// Web. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + resolveRetryer(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveDefaultEndpointConfiguration(&options) + + resolveIdempotencyTokenProvider(&options) + + for _, fn := range optFns { + fn(&options) + } + + client := &Client{ + options: options, + } + + return client +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + EndpointResolver EndpointResolver + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // Provides idempotency tokens values that will be automatically populated into + // idempotent API operations. + IdempotencyTokenProvider IdempotencyTokenProvider + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. + Retryer aws.Retryer + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + return to +} +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + for _, fn := range optFns { + fn(&options) + } + + finalizeClientEndpointResolverOptions(&options) + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + resolveUseDualStackEndpoint(cfg, &opts) + resolveUseFIPSEndpoint(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + if o.HTTPClient != nil { + return + } + o.HTTPClient = awshttp.NewBuildableClient() +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + o.Retryer = retry.NewStandard() +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver()) +} + +func addClientUserAgent(stack *middleware.Stack) error { + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "workspacesweb", goModuleVersion)(stack) +} + +func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { + mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ + CredentialsProvider: o.Credentials, + Signer: o.HTTPSignerV4, + LogSigning: o.ClientLogMode.IsSigning(), + }) + return stack.Finalize.Add(mw, middleware.After) +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func resolveIdempotencyTokenProvider(o *Options) { + if o.IdempotencyTokenProvider != nil { + return + } + o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// resolves dual-stack endpoint configuration +func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseDualStackEndpoint = value + } + return nil +} + +// resolves FIPS endpoint configuration +func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseFIPSEndpoint = value + } + return nil +} + +// IdempotencyTokenProvider interface for providing idempotency token +type IdempotencyTokenProvider interface { + GetIdempotencyToken() (string, error) +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} diff --git a/service/workspacesweb/api_op_AssociateBrowserSettings.go b/service/workspacesweb/api_op_AssociateBrowserSettings.go new file mode 100644 index 00000000000..07fc49a66c7 --- /dev/null +++ b/service/workspacesweb/api_op_AssociateBrowserSettings.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a browser settings resource with a web portal. +func (c *Client) AssociateBrowserSettings(ctx context.Context, params *AssociateBrowserSettingsInput, optFns ...func(*Options)) (*AssociateBrowserSettingsOutput, error) { + if params == nil { + params = &AssociateBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateBrowserSettings", params, optFns, c.addOperationAssociateBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateBrowserSettingsInput struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type AssociateBrowserSettingsOutput struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateBrowserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "AssociateBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_AssociateNetworkSettings.go b/service/workspacesweb/api_op_AssociateNetworkSettings.go new file mode 100644 index 00000000000..dba129c60f3 --- /dev/null +++ b/service/workspacesweb/api_op_AssociateNetworkSettings.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a network settings resource with a web portal. +func (c *Client) AssociateNetworkSettings(ctx context.Context, params *AssociateNetworkSettingsInput, optFns ...func(*Options)) (*AssociateNetworkSettingsOutput, error) { + if params == nil { + params = &AssociateNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateNetworkSettings", params, optFns, c.addOperationAssociateNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateNetworkSettingsInput struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type AssociateNetworkSettingsOutput struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateNetworkSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "AssociateNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_AssociateTrustStore.go b/service/workspacesweb/api_op_AssociateTrustStore.go new file mode 100644 index 00000000000..b765d0e2bbd --- /dev/null +++ b/service/workspacesweb/api_op_AssociateTrustStore.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a trust store with a web portal. +func (c *Client) AssociateTrustStore(ctx context.Context, params *AssociateTrustStoreInput, optFns ...func(*Options)) (*AssociateTrustStoreOutput, error) { + if params == nil { + params = &AssociateTrustStoreInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateTrustStore", params, optFns, c.addOperationAssociateTrustStoreMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateTrustStoreOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateTrustStoreInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + noSmithyDocumentSerde +} + +type AssociateTrustStoreOutput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateTrustStore{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateTrustStore{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateTrustStoreValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateTrustStore(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateTrustStore(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "AssociateTrustStore", + } +} diff --git a/service/workspacesweb/api_op_AssociateUserSettings.go b/service/workspacesweb/api_op_AssociateUserSettings.go new file mode 100644 index 00000000000..b5a8f8e3596 --- /dev/null +++ b/service/workspacesweb/api_op_AssociateUserSettings.go @@ -0,0 +1,132 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a user settings resource with a web portal. +func (c *Client) AssociateUserSettings(ctx context.Context, params *AssociateUserSettingsInput, optFns ...func(*Options)) (*AssociateUserSettingsOutput, error) { + if params == nil { + params = &AssociateUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateUserSettings", params, optFns, c.addOperationAssociateUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateUserSettingsInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + noSmithyDocumentSerde +} + +type AssociateUserSettingsOutput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationAssociateUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpAssociateUserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opAssociateUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "AssociateUserSettings", + } +} diff --git a/service/workspacesweb/api_op_CreateBrowserSettings.go b/service/workspacesweb/api_op_CreateBrowserSettings.go new file mode 100644 index 00000000000..917709c1581 --- /dev/null +++ b/service/workspacesweb/api_op_CreateBrowserSettings.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a browser settings resource that can be associated with a web portal. +// Once associated with a web portal, browser settings control how the browser will +// behave once a user starts a streaming session for the web portal. +func (c *Client) CreateBrowserSettings(ctx context.Context, params *CreateBrowserSettingsInput, optFns ...func(*Options)) (*CreateBrowserSettingsOutput, error) { + if params == nil { + params = &CreateBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateBrowserSettings", params, optFns, c.addOperationCreateBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateBrowserSettingsInput struct { + + // A JSON string containing Chrome Enterprise policies that will be applied to all + // streaming sessions. + // + // This member is required. + BrowserPolicy *string + + // Additional encryption context of the browser settings. + AdditionalEncryptionContext map[string]string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // The custom managed key of the browser settings. + CustomerManagedKey *string + + // The tags to add to the browser settings resource. A tag is a key-value pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateBrowserSettingsOutput struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateBrowserSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateBrowserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateBrowserSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateBrowserSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateBrowserSettingsInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateBrowserSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateBrowserSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "CreateBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_CreateIdentityProvider.go b/service/workspacesweb/api_op_CreateIdentityProvider.go new file mode 100644 index 00000000000..7b3eb946930 --- /dev/null +++ b/service/workspacesweb/api_op_CreateIdentityProvider.go @@ -0,0 +1,250 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates an identity provider resource that is then associated with a web portal. +func (c *Client) CreateIdentityProvider(ctx context.Context, params *CreateIdentityProviderInput, optFns ...func(*Options)) (*CreateIdentityProviderOutput, error) { + if params == nil { + params = &CreateIdentityProviderInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateIdentityProvider", params, optFns, c.addOperationCreateIdentityProviderMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateIdentityProviderOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateIdentityProviderInput struct { + + // The identity provider details. The following list describes the provider detail + // keys for each identity provider type. + // + // * For Google and Login with Amazon: + // + // * + // client_id + // + // * client_secret + // + // * authorize_scopes + // + // * For Facebook: + // + // * client_id + // + // * + // client_secret + // + // * authorize_scopes + // + // * api_version + // + // * For Sign in with Apple: + // + // * + // client_id + // + // * team_id + // + // * key_id + // + // * private_key + // + // * authorize_scopes + // + // * For OIDC + // providers: + // + // * client_id + // + // * client_secret + // + // * attributes_request_method + // + // * + // oidc_issuer + // + // * authorize_scopes + // + // * authorize_url if not available from discovery + // URL specified by oidc_issuer key + // + // * token_url if not available from discovery + // URL specified by oidc_issuer key + // + // * attributes_url if not available from + // discovery URL specified by oidc_issuer key + // + // * jwks_uri if not available from + // discovery URL specified by oidc_issuer key + // + // * For SAML providers: + // + // * + // MetadataFile OR MetadataURL + // + // * IDPSignout optional + // + // This member is required. + IdentityProviderDetails map[string]string + + // The identity provider name. + // + // This member is required. + IdentityProviderName *string + + // The identity provider type. + // + // This member is required. + IdentityProviderType types.IdentityProviderType + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + noSmithyDocumentSerde +} + +type CreateIdentityProviderOutput struct { + + // The ARN of the identity provider. + // + // This member is required. + IdentityProviderArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateIdentityProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateIdentityProvider{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateIdentityProvider{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateIdentityProviderMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateIdentityProviderValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIdentityProvider(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateIdentityProvider struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateIdentityProvider) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateIdentityProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateIdentityProviderInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIdentityProviderInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateIdentityProviderMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIdentityProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateIdentityProvider(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "CreateIdentityProvider", + } +} diff --git a/service/workspacesweb/api_op_CreateNetworkSettings.go b/service/workspacesweb/api_op_CreateNetworkSettings.go new file mode 100644 index 00000000000..ea34b122a75 --- /dev/null +++ b/service/workspacesweb/api_op_CreateNetworkSettings.go @@ -0,0 +1,186 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a network settings resource that can be associated with a web portal. +// Once associated with a web portal, network settings define how streaming +// instances will connect with your specified VPC. +func (c *Client) CreateNetworkSettings(ctx context.Context, params *CreateNetworkSettingsInput, optFns ...func(*Options)) (*CreateNetworkSettingsOutput, error) { + if params == nil { + params = &CreateNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkSettings", params, optFns, c.addOperationCreateNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateNetworkSettingsInput struct { + + // One or more security groups used to control access from streaming instances to + // your VPC. + // + // This member is required. + SecurityGroupIds []string + + // The subnets in which network interfaces are created to connect streaming + // instances to your VPC. At least two of these subnets must be in different + // availability zones. + // + // This member is required. + SubnetIds []string + + // The VPC that streaming instances will connect to. + // + // This member is required. + VpcId *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // The tags to add to the network settings resource. A tag is a key-value pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateNetworkSettingsOutput struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateNetworkSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateNetworkSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateNetworkSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateNetworkSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkSettingsInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateNetworkSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "CreateNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_CreatePortal.go b/service/workspacesweb/api_op_CreatePortal.go new file mode 100644 index 00000000000..1d679e915d0 --- /dev/null +++ b/service/workspacesweb/api_op_CreatePortal.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a web portal. +func (c *Client) CreatePortal(ctx context.Context, params *CreatePortalInput, optFns ...func(*Options)) (*CreatePortalOutput, error) { + if params == nil { + params = &CreatePortalInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreatePortal", params, optFns, c.addOperationCreatePortalMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreatePortalOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreatePortalInput struct { + + // The additional encryption context of the portal. + AdditionalEncryptionContext map[string]string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // The customer managed key of the web portal. + CustomerManagedKey *string + + // The name of the web portal. This is not visible to users who log into the web + // portal. + DisplayName *string + + // The tags to add to the web portal. A tag is a key-value pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreatePortalOutput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The endpoint URL of the web portal that users access in order to start streaming + // sessions. + // + // This member is required. + PortalEndpoint *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreatePortalMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreatePortal{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreatePortal{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreatePortalMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreatePortalValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePortal(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreatePortal struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreatePortal) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreatePortal) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreatePortalInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreatePortalInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreatePortalMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreatePortal{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreatePortal(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "CreatePortal", + } +} diff --git a/service/workspacesweb/api_op_CreateTrustStore.go b/service/workspacesweb/api_op_CreateTrustStore.go new file mode 100644 index 00000000000..28f2535250a --- /dev/null +++ b/service/workspacesweb/api_op_CreateTrustStore.go @@ -0,0 +1,176 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a trust store that can be associated with a web portal. A trust store +// contains certificate authority (CA) certificates. Once associated with a web +// portal, the browser in a streaming session will recognize certificates that have +// been issued using any of the CAs in the trust store. If your organization has +// internal websites that use certificates issued by private CAs, you should add +// the private CA certificate to the trust store. +func (c *Client) CreateTrustStore(ctx context.Context, params *CreateTrustStoreInput, optFns ...func(*Options)) (*CreateTrustStoreOutput, error) { + if params == nil { + params = &CreateTrustStoreInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateTrustStore", params, optFns, c.addOperationCreateTrustStoreMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateTrustStoreOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateTrustStoreInput struct { + + // A list of CA certificates to be added to the trust store. + // + // This member is required. + CertificateList [][]byte + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // The tags to add to the trust store. A tag is a key-value pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateTrustStoreOutput struct { + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTrustStore{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTrustStore{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateTrustStoreMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateTrustStoreValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTrustStore(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateTrustStore struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateTrustStore) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateTrustStoreInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateTrustStoreMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateTrustStore{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateTrustStore(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "CreateTrustStore", + } +} diff --git a/service/workspacesweb/api_op_CreateUserSettings.go b/service/workspacesweb/api_op_CreateUserSettings.go new file mode 100644 index 00000000000..c5c397e6567 --- /dev/null +++ b/service/workspacesweb/api_op_CreateUserSettings.go @@ -0,0 +1,197 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a user settings resource that can be associated with a web portal. Once +// associated with a web portal, user settings control how users can transfer data +// between a streaming session and the their local devices. +func (c *Client) CreateUserSettings(ctx context.Context, params *CreateUserSettingsInput, optFns ...func(*Options)) (*CreateUserSettingsOutput, error) { + if params == nil { + params = &CreateUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateUserSettings", params, optFns, c.addOperationCreateUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateUserSettingsInput struct { + + // Specifies whether the user can copy text from the streaming session to the local + // device. + // + // This member is required. + CopyAllowed types.EnabledType + + // Specifies whether the user can download files from the streaming session to the + // local device. + // + // This member is required. + DownloadAllowed types.EnabledType + + // Specifies whether the user can paste text from the local device to the streaming + // session. + // + // This member is required. + PasteAllowed types.EnabledType + + // Specifies whether the user can print to the local device. + // + // This member is required. + PrintAllowed types.EnabledType + + // Specifies whether the user can upload files from the local device to the + // streaming session. + // + // This member is required. + UploadAllowed types.EnabledType + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // The tags to add to the user settings resource. A tag is a key-value pair. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateUserSettingsOutput struct { + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateUserSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateUserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateUserSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateUserSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateUserSettingsInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateUserSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateUserSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "CreateUserSettings", + } +} diff --git a/service/workspacesweb/api_op_DeleteBrowserSettings.go b/service/workspacesweb/api_op_DeleteBrowserSettings.go new file mode 100644 index 00000000000..44f9fe50cd5 --- /dev/null +++ b/service/workspacesweb/api_op_DeleteBrowserSettings.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes browser settings. +func (c *Client) DeleteBrowserSettings(ctx context.Context, params *DeleteBrowserSettingsInput, optFns ...func(*Options)) (*DeleteBrowserSettingsOutput, error) { + if params == nil { + params = &DeleteBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteBrowserSettings", params, optFns, c.addOperationDeleteBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteBrowserSettingsInput struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + noSmithyDocumentSerde +} + +type DeleteBrowserSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteBrowserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DeleteBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_DeleteIdentityProvider.go b/service/workspacesweb/api_op_DeleteIdentityProvider.go new file mode 100644 index 00000000000..e50c24f0f51 --- /dev/null +++ b/service/workspacesweb/api_op_DeleteIdentityProvider.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the identity provider. +func (c *Client) DeleteIdentityProvider(ctx context.Context, params *DeleteIdentityProviderInput, optFns ...func(*Options)) (*DeleteIdentityProviderOutput, error) { + if params == nil { + params = &DeleteIdentityProviderInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteIdentityProvider", params, optFns, c.addOperationDeleteIdentityProviderMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteIdentityProviderOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteIdentityProviderInput struct { + + // The ARN of the identity provider. + // + // This member is required. + IdentityProviderArn *string + + noSmithyDocumentSerde +} + +type DeleteIdentityProviderOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteIdentityProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteIdentityProvider{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteIdentityProvider{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteIdentityProviderValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIdentityProvider(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteIdentityProvider(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DeleteIdentityProvider", + } +} diff --git a/service/workspacesweb/api_op_DeleteNetworkSettings.go b/service/workspacesweb/api_op_DeleteNetworkSettings.go new file mode 100644 index 00000000000..c330a18bc55 --- /dev/null +++ b/service/workspacesweb/api_op_DeleteNetworkSettings.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes network settings. +func (c *Client) DeleteNetworkSettings(ctx context.Context, params *DeleteNetworkSettingsInput, optFns ...func(*Options)) (*DeleteNetworkSettingsOutput, error) { + if params == nil { + params = &DeleteNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkSettings", params, optFns, c.addOperationDeleteNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteNetworkSettingsInput struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + noSmithyDocumentSerde +} + +type DeleteNetworkSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteNetworkSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DeleteNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_DeletePortal.go b/service/workspacesweb/api_op_DeletePortal.go new file mode 100644 index 00000000000..16bf0b4e8c1 --- /dev/null +++ b/service/workspacesweb/api_op_DeletePortal.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a web portal. +func (c *Client) DeletePortal(ctx context.Context, params *DeletePortalInput, optFns ...func(*Options)) (*DeletePortalOutput, error) { + if params == nil { + params = &DeletePortalInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeletePortal", params, optFns, c.addOperationDeletePortalMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeletePortalOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeletePortalInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type DeletePortalOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeletePortalMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeletePortal{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeletePortal{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeletePortalValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePortal(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeletePortal(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DeletePortal", + } +} diff --git a/service/workspacesweb/api_op_DeleteTrustStore.go b/service/workspacesweb/api_op_DeleteTrustStore.go new file mode 100644 index 00000000000..1ab57188448 --- /dev/null +++ b/service/workspacesweb/api_op_DeleteTrustStore.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the trust store. +func (c *Client) DeleteTrustStore(ctx context.Context, params *DeleteTrustStoreInput, optFns ...func(*Options)) (*DeleteTrustStoreOutput, error) { + if params == nil { + params = &DeleteTrustStoreInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteTrustStore", params, optFns, c.addOperationDeleteTrustStoreMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteTrustStoreOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteTrustStoreInput struct { + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + noSmithyDocumentSerde +} + +type DeleteTrustStoreOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteTrustStore{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteTrustStore{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteTrustStoreValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTrustStore(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteTrustStore(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DeleteTrustStore", + } +} diff --git a/service/workspacesweb/api_op_DeleteUserSettings.go b/service/workspacesweb/api_op_DeleteUserSettings.go new file mode 100644 index 00000000000..18674cb469b --- /dev/null +++ b/service/workspacesweb/api_op_DeleteUserSettings.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes user settings. +func (c *Client) DeleteUserSettings(ctx context.Context, params *DeleteUserSettingsInput, optFns ...func(*Options)) (*DeleteUserSettingsOutput, error) { + if params == nil { + params = &DeleteUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteUserSettings", params, optFns, c.addOperationDeleteUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteUserSettingsInput struct { + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + noSmithyDocumentSerde +} + +type DeleteUserSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteUserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DeleteUserSettings", + } +} diff --git a/service/workspacesweb/api_op_DisassociateBrowserSettings.go b/service/workspacesweb/api_op_DisassociateBrowserSettings.go new file mode 100644 index 00000000000..b84707a95e6 --- /dev/null +++ b/service/workspacesweb/api_op_DisassociateBrowserSettings.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates browser settings from a web portal. +func (c *Client) DisassociateBrowserSettings(ctx context.Context, params *DisassociateBrowserSettingsInput, optFns ...func(*Options)) (*DisassociateBrowserSettingsOutput, error) { + if params == nil { + params = &DisassociateBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateBrowserSettings", params, optFns, c.addOperationDisassociateBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateBrowserSettingsInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type DisassociateBrowserSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateBrowserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DisassociateBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_DisassociateNetworkSettings.go b/service/workspacesweb/api_op_DisassociateNetworkSettings.go new file mode 100644 index 00000000000..dd29f207c15 --- /dev/null +++ b/service/workspacesweb/api_op_DisassociateNetworkSettings.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates network settings from a web portal. +func (c *Client) DisassociateNetworkSettings(ctx context.Context, params *DisassociateNetworkSettingsInput, optFns ...func(*Options)) (*DisassociateNetworkSettingsOutput, error) { + if params == nil { + params = &DisassociateNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateNetworkSettings", params, optFns, c.addOperationDisassociateNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateNetworkSettingsInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type DisassociateNetworkSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateNetworkSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DisassociateNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_DisassociateTrustStore.go b/service/workspacesweb/api_op_DisassociateTrustStore.go new file mode 100644 index 00000000000..282a862862e --- /dev/null +++ b/service/workspacesweb/api_op_DisassociateTrustStore.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates a trust store from a web portal. +func (c *Client) DisassociateTrustStore(ctx context.Context, params *DisassociateTrustStoreInput, optFns ...func(*Options)) (*DisassociateTrustStoreOutput, error) { + if params == nil { + params = &DisassociateTrustStoreInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateTrustStore", params, optFns, c.addOperationDisassociateTrustStoreMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateTrustStoreOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateTrustStoreInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type DisassociateTrustStoreOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateTrustStore{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateTrustStore{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateTrustStoreValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTrustStore(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateTrustStore(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DisassociateTrustStore", + } +} diff --git a/service/workspacesweb/api_op_DisassociateUserSettings.go b/service/workspacesweb/api_op_DisassociateUserSettings.go new file mode 100644 index 00000000000..e5f39e911fa --- /dev/null +++ b/service/workspacesweb/api_op_DisassociateUserSettings.go @@ -0,0 +1,116 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disassociates user settings from a web portal. +func (c *Client) DisassociateUserSettings(ctx context.Context, params *DisassociateUserSettingsInput, optFns ...func(*Options)) (*DisassociateUserSettingsOutput, error) { + if params == nil { + params = &DisassociateUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateUserSettings", params, optFns, c.addOperationDisassociateUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateUserSettingsInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type DisassociateUserSettingsOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDisassociateUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisassociateUserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisassociateUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "DisassociateUserSettings", + } +} diff --git a/service/workspacesweb/api_op_GetBrowserSettings.go b/service/workspacesweb/api_op_GetBrowserSettings.go new file mode 100644 index 00000000000..b7cff8136db --- /dev/null +++ b/service/workspacesweb/api_op_GetBrowserSettings.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets browser settings. +func (c *Client) GetBrowserSettings(ctx context.Context, params *GetBrowserSettingsInput, optFns ...func(*Options)) (*GetBrowserSettingsOutput, error) { + if params == nil { + params = &GetBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetBrowserSettings", params, optFns, c.addOperationGetBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetBrowserSettingsInput struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + noSmithyDocumentSerde +} + +type GetBrowserSettingsOutput struct { + + // The browser settings. + BrowserSettings *types.BrowserSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetBrowserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_GetIdentityProvider.go b/service/workspacesweb/api_op_GetIdentityProvider.go new file mode 100644 index 00000000000..8d4aa821a7d --- /dev/null +++ b/service/workspacesweb/api_op_GetIdentityProvider.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the identity provider. +func (c *Client) GetIdentityProvider(ctx context.Context, params *GetIdentityProviderInput, optFns ...func(*Options)) (*GetIdentityProviderOutput, error) { + if params == nil { + params = &GetIdentityProviderInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetIdentityProvider", params, optFns, c.addOperationGetIdentityProviderMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetIdentityProviderOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetIdentityProviderInput struct { + + // The ARN of the identity provider. + // + // This member is required. + IdentityProviderArn *string + + noSmithyDocumentSerde +} + +type GetIdentityProviderOutput struct { + + // The identity provider. + IdentityProvider *types.IdentityProvider + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetIdentityProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetIdentityProvider{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetIdentityProvider{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetIdentityProviderValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIdentityProvider(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetIdentityProvider(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetIdentityProvider", + } +} diff --git a/service/workspacesweb/api_op_GetNetworkSettings.go b/service/workspacesweb/api_op_GetNetworkSettings.go new file mode 100644 index 00000000000..e82ae3d6520 --- /dev/null +++ b/service/workspacesweb/api_op_GetNetworkSettings.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the network settings. +func (c *Client) GetNetworkSettings(ctx context.Context, params *GetNetworkSettingsInput, optFns ...func(*Options)) (*GetNetworkSettingsOutput, error) { + if params == nil { + params = &GetNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetNetworkSettings", params, optFns, c.addOperationGetNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetNetworkSettingsInput struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + noSmithyDocumentSerde +} + +type GetNetworkSettingsOutput struct { + + // The network settings. + NetworkSettings *types.NetworkSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetNetworkSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_GetPortal.go b/service/workspacesweb/api_op_GetPortal.go new file mode 100644 index 00000000000..5137fc08d54 --- /dev/null +++ b/service/workspacesweb/api_op_GetPortal.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the web portal. +func (c *Client) GetPortal(ctx context.Context, params *GetPortalInput, optFns ...func(*Options)) (*GetPortalOutput, error) { + if params == nil { + params = &GetPortalInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetPortal", params, optFns, c.addOperationGetPortalMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetPortalOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetPortalInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type GetPortalOutput struct { + + // The web portal. + Portal *types.Portal + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetPortalMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPortal{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPortal{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetPortalValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPortal(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetPortal(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetPortal", + } +} diff --git a/service/workspacesweb/api_op_GetPortalServiceProviderMetadata.go b/service/workspacesweb/api_op_GetPortalServiceProviderMetadata.go new file mode 100644 index 00000000000..fc663e36251 --- /dev/null +++ b/service/workspacesweb/api_op_GetPortalServiceProviderMetadata.go @@ -0,0 +1,125 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the service provider metadata. +func (c *Client) GetPortalServiceProviderMetadata(ctx context.Context, params *GetPortalServiceProviderMetadataInput, optFns ...func(*Options)) (*GetPortalServiceProviderMetadataOutput, error) { + if params == nil { + params = &GetPortalServiceProviderMetadataInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetPortalServiceProviderMetadata", params, optFns, c.addOperationGetPortalServiceProviderMetadataMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetPortalServiceProviderMetadataOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetPortalServiceProviderMetadataInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + noSmithyDocumentSerde +} + +type GetPortalServiceProviderMetadataOutput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The service provider SAML metadata. + ServiceProviderSamlMetadata *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetPortalServiceProviderMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPortalServiceProviderMetadata{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPortalServiceProviderMetadata{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetPortalServiceProviderMetadataValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPortalServiceProviderMetadata(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetPortalServiceProviderMetadata(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetPortalServiceProviderMetadata", + } +} diff --git a/service/workspacesweb/api_op_GetTrustStore.go b/service/workspacesweb/api_op_GetTrustStore.go new file mode 100644 index 00000000000..9c7e14d9028 --- /dev/null +++ b/service/workspacesweb/api_op_GetTrustStore.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the trust store. +func (c *Client) GetTrustStore(ctx context.Context, params *GetTrustStoreInput, optFns ...func(*Options)) (*GetTrustStoreOutput, error) { + if params == nil { + params = &GetTrustStoreInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetTrustStore", params, optFns, c.addOperationGetTrustStoreMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetTrustStoreOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetTrustStoreInput struct { + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + noSmithyDocumentSerde +} + +type GetTrustStoreOutput struct { + + // The trust store. + TrustStore *types.TrustStore + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetTrustStore{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetTrustStore{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetTrustStoreValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTrustStore(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetTrustStore(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetTrustStore", + } +} diff --git a/service/workspacesweb/api_op_GetTrustStoreCertificate.go b/service/workspacesweb/api_op_GetTrustStoreCertificate.go new file mode 100644 index 00000000000..43a0a772010 --- /dev/null +++ b/service/workspacesweb/api_op_GetTrustStoreCertificate.go @@ -0,0 +1,129 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets the trust store certificate. +func (c *Client) GetTrustStoreCertificate(ctx context.Context, params *GetTrustStoreCertificateInput, optFns ...func(*Options)) (*GetTrustStoreCertificateOutput, error) { + if params == nil { + params = &GetTrustStoreCertificateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetTrustStoreCertificate", params, optFns, c.addOperationGetTrustStoreCertificateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetTrustStoreCertificateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetTrustStoreCertificateInput struct { + + // The thumbprint of the trust store certificate. + // + // This member is required. + Thumbprint *string + + // The ARN of the trust store certificate. + // + // This member is required. + TrustStoreArn *string + + noSmithyDocumentSerde +} + +type GetTrustStoreCertificateOutput struct { + + // The certificate of the trust store certificate. + Certificate *types.Certificate + + // The ARN of the trust store certificate. + TrustStoreArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetTrustStoreCertificateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetTrustStoreCertificate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetTrustStoreCertificate{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetTrustStoreCertificateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTrustStoreCertificate(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetTrustStoreCertificate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetTrustStoreCertificate", + } +} diff --git a/service/workspacesweb/api_op_GetUserSettings.go b/service/workspacesweb/api_op_GetUserSettings.go new file mode 100644 index 00000000000..c5c6a6ba440 --- /dev/null +++ b/service/workspacesweb/api_op_GetUserSettings.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Gets user settings. +func (c *Client) GetUserSettings(ctx context.Context, params *GetUserSettingsInput, optFns ...func(*Options)) (*GetUserSettingsOutput, error) { + if params == nil { + params = &GetUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetUserSettings", params, optFns, c.addOperationGetUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetUserSettingsInput struct { + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + noSmithyDocumentSerde +} + +type GetUserSettingsOutput struct { + + // The user settings. + UserSettings *types.UserSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetUserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "GetUserSettings", + } +} diff --git a/service/workspacesweb/api_op_ListBrowserSettings.go b/service/workspacesweb/api_op_ListBrowserSettings.go new file mode 100644 index 00000000000..b79eed826a8 --- /dev/null +++ b/service/workspacesweb/api_op_ListBrowserSettings.go @@ -0,0 +1,212 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of browser settings. +func (c *Client) ListBrowserSettings(ctx context.Context, params *ListBrowserSettingsInput, optFns ...func(*Options)) (*ListBrowserSettingsOutput, error) { + if params == nil { + params = &ListBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListBrowserSettings", params, optFns, c.addOperationListBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListBrowserSettingsInput struct { + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListBrowserSettingsOutput struct { + + // The browser settings. + BrowserSettings []types.BrowserSettingsSummary + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +// ListBrowserSettingsAPIClient is a client that implements the ListBrowserSettings +// operation. +type ListBrowserSettingsAPIClient interface { + ListBrowserSettings(context.Context, *ListBrowserSettingsInput, ...func(*Options)) (*ListBrowserSettingsOutput, error) +} + +var _ ListBrowserSettingsAPIClient = (*Client)(nil) + +// ListBrowserSettingsPaginatorOptions is the paginator options for +// ListBrowserSettings +type ListBrowserSettingsPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListBrowserSettingsPaginator is a paginator for ListBrowserSettings +type ListBrowserSettingsPaginator struct { + options ListBrowserSettingsPaginatorOptions + client ListBrowserSettingsAPIClient + params *ListBrowserSettingsInput + nextToken *string + firstPage bool +} + +// NewListBrowserSettingsPaginator returns a new ListBrowserSettingsPaginator +func NewListBrowserSettingsPaginator(client ListBrowserSettingsAPIClient, params *ListBrowserSettingsInput, optFns ...func(*ListBrowserSettingsPaginatorOptions)) *ListBrowserSettingsPaginator { + if params == nil { + params = &ListBrowserSettingsInput{} + } + + options := ListBrowserSettingsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListBrowserSettingsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListBrowserSettingsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListBrowserSettings page. +func (p *ListBrowserSettingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListBrowserSettingsOutput, 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.ListBrowserSettings(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_opListBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_ListIdentityProviders.go b/service/workspacesweb/api_op_ListIdentityProviders.go new file mode 100644 index 00000000000..f61c80cfdb6 --- /dev/null +++ b/service/workspacesweb/api_op_ListIdentityProviders.go @@ -0,0 +1,220 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of identity providers for a specific web portal. +func (c *Client) ListIdentityProviders(ctx context.Context, params *ListIdentityProvidersInput, optFns ...func(*Options)) (*ListIdentityProvidersOutput, error) { + if params == nil { + params = &ListIdentityProvidersInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListIdentityProviders", params, optFns, c.addOperationListIdentityProvidersMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListIdentityProvidersOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListIdentityProvidersInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListIdentityProvidersOutput struct { + + // The identity providers. + IdentityProviders []types.IdentityProviderSummary + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListIdentityProvidersMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListIdentityProviders{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListIdentityProviders{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListIdentityProvidersValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListIdentityProviders(options.Region), middleware.Before); 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 + } + return nil +} + +// ListIdentityProvidersAPIClient is a client that implements the +// ListIdentityProviders operation. +type ListIdentityProvidersAPIClient interface { + ListIdentityProviders(context.Context, *ListIdentityProvidersInput, ...func(*Options)) (*ListIdentityProvidersOutput, error) +} + +var _ ListIdentityProvidersAPIClient = (*Client)(nil) + +// ListIdentityProvidersPaginatorOptions is the paginator options for +// ListIdentityProviders +type ListIdentityProvidersPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListIdentityProvidersPaginator is a paginator for ListIdentityProviders +type ListIdentityProvidersPaginator struct { + options ListIdentityProvidersPaginatorOptions + client ListIdentityProvidersAPIClient + params *ListIdentityProvidersInput + nextToken *string + firstPage bool +} + +// NewListIdentityProvidersPaginator returns a new ListIdentityProvidersPaginator +func NewListIdentityProvidersPaginator(client ListIdentityProvidersAPIClient, params *ListIdentityProvidersInput, optFns ...func(*ListIdentityProvidersPaginatorOptions)) *ListIdentityProvidersPaginator { + if params == nil { + params = &ListIdentityProvidersInput{} + } + + options := ListIdentityProvidersPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListIdentityProvidersPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListIdentityProvidersPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListIdentityProviders page. +func (p *ListIdentityProvidersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListIdentityProvidersOutput, 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.ListIdentityProviders(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_opListIdentityProviders(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListIdentityProviders", + } +} diff --git a/service/workspacesweb/api_op_ListNetworkSettings.go b/service/workspacesweb/api_op_ListNetworkSettings.go new file mode 100644 index 00000000000..8b350bad202 --- /dev/null +++ b/service/workspacesweb/api_op_ListNetworkSettings.go @@ -0,0 +1,212 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of network settings. +func (c *Client) ListNetworkSettings(ctx context.Context, params *ListNetworkSettingsInput, optFns ...func(*Options)) (*ListNetworkSettingsOutput, error) { + if params == nil { + params = &ListNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListNetworkSettings", params, optFns, c.addOperationListNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListNetworkSettingsInput struct { + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListNetworkSettingsOutput struct { + + // The network settings. + NetworkSettings []types.NetworkSettingsSummary + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +// ListNetworkSettingsAPIClient is a client that implements the ListNetworkSettings +// operation. +type ListNetworkSettingsAPIClient interface { + ListNetworkSettings(context.Context, *ListNetworkSettingsInput, ...func(*Options)) (*ListNetworkSettingsOutput, error) +} + +var _ ListNetworkSettingsAPIClient = (*Client)(nil) + +// ListNetworkSettingsPaginatorOptions is the paginator options for +// ListNetworkSettings +type ListNetworkSettingsPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListNetworkSettingsPaginator is a paginator for ListNetworkSettings +type ListNetworkSettingsPaginator struct { + options ListNetworkSettingsPaginatorOptions + client ListNetworkSettingsAPIClient + params *ListNetworkSettingsInput + nextToken *string + firstPage bool +} + +// NewListNetworkSettingsPaginator returns a new ListNetworkSettingsPaginator +func NewListNetworkSettingsPaginator(client ListNetworkSettingsAPIClient, params *ListNetworkSettingsInput, optFns ...func(*ListNetworkSettingsPaginatorOptions)) *ListNetworkSettingsPaginator { + if params == nil { + params = &ListNetworkSettingsInput{} + } + + options := ListNetworkSettingsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListNetworkSettingsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListNetworkSettingsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListNetworkSettings page. +func (p *ListNetworkSettingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListNetworkSettingsOutput, 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.ListNetworkSettings(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_opListNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_ListPortals.go b/service/workspacesweb/api_op_ListPortals.go new file mode 100644 index 00000000000..418ddad2293 --- /dev/null +++ b/service/workspacesweb/api_op_ListPortals.go @@ -0,0 +1,210 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list or web portals. +func (c *Client) ListPortals(ctx context.Context, params *ListPortalsInput, optFns ...func(*Options)) (*ListPortalsOutput, error) { + if params == nil { + params = &ListPortalsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListPortals", params, optFns, c.addOperationListPortalsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListPortalsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListPortalsInput struct { + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListPortalsOutput struct { + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + // The portals in the list. + Portals []types.PortalSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListPortalsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListPortals{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPortals{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPortals(options.Region), middleware.Before); 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 + } + return nil +} + +// ListPortalsAPIClient is a client that implements the ListPortals operation. +type ListPortalsAPIClient interface { + ListPortals(context.Context, *ListPortalsInput, ...func(*Options)) (*ListPortalsOutput, error) +} + +var _ ListPortalsAPIClient = (*Client)(nil) + +// ListPortalsPaginatorOptions is the paginator options for ListPortals +type ListPortalsPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListPortalsPaginator is a paginator for ListPortals +type ListPortalsPaginator struct { + options ListPortalsPaginatorOptions + client ListPortalsAPIClient + params *ListPortalsInput + nextToken *string + firstPage bool +} + +// NewListPortalsPaginator returns a new ListPortalsPaginator +func NewListPortalsPaginator(client ListPortalsAPIClient, params *ListPortalsInput, optFns ...func(*ListPortalsPaginatorOptions)) *ListPortalsPaginator { + if params == nil { + params = &ListPortalsInput{} + } + + options := ListPortalsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListPortalsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListPortalsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListPortals page. +func (p *ListPortalsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPortalsOutput, 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.ListPortals(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_opListPortals(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListPortals", + } +} diff --git a/service/workspacesweb/api_op_ListTagsForResource.go b/service/workspacesweb/api_op_ListTagsForResource.go new file mode 100644 index 00000000000..2a8162d8b3e --- /dev/null +++ b/service/workspacesweb/api_op_ListTagsForResource.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of tags for a resource. +func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { + if params == nil { + params = &ListTagsForResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTagsForResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTagsForResourceInput struct { + + // The ARN of the resource. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type ListTagsForResourceOutput struct { + + // The tags of the resource. + Tags []types.Tag + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListTagsForResource", + } +} diff --git a/service/workspacesweb/api_op_ListTrustStoreCertificates.go b/service/workspacesweb/api_op_ListTrustStoreCertificates.go new file mode 100644 index 00000000000..f64a01da2cf --- /dev/null +++ b/service/workspacesweb/api_op_ListTrustStoreCertificates.go @@ -0,0 +1,225 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of trust store certificates. +func (c *Client) ListTrustStoreCertificates(ctx context.Context, params *ListTrustStoreCertificatesInput, optFns ...func(*Options)) (*ListTrustStoreCertificatesOutput, error) { + if params == nil { + params = &ListTrustStoreCertificatesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTrustStoreCertificates", params, optFns, c.addOperationListTrustStoreCertificatesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTrustStoreCertificatesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTrustStoreCertificatesInput struct { + + // The ARN of the trust store + // + // This member is required. + TrustStoreArn *string + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListTrustStoreCertificatesOutput struct { + + // The certificate list. + CertificateList []types.CertificateSummary + + // The pagination token used to retrieve the next page of results for this + // operation.> + NextToken *string + + // The ARN of the trust store. + TrustStoreArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTrustStoreCertificatesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTrustStoreCertificates{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTrustStoreCertificates{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTrustStoreCertificatesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTrustStoreCertificates(options.Region), middleware.Before); 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 + } + return nil +} + +// ListTrustStoreCertificatesAPIClient is a client that implements the +// ListTrustStoreCertificates operation. +type ListTrustStoreCertificatesAPIClient interface { + ListTrustStoreCertificates(context.Context, *ListTrustStoreCertificatesInput, ...func(*Options)) (*ListTrustStoreCertificatesOutput, error) +} + +var _ ListTrustStoreCertificatesAPIClient = (*Client)(nil) + +// ListTrustStoreCertificatesPaginatorOptions is the paginator options for +// ListTrustStoreCertificates +type ListTrustStoreCertificatesPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListTrustStoreCertificatesPaginator is a paginator for +// ListTrustStoreCertificates +type ListTrustStoreCertificatesPaginator struct { + options ListTrustStoreCertificatesPaginatorOptions + client ListTrustStoreCertificatesAPIClient + params *ListTrustStoreCertificatesInput + nextToken *string + firstPage bool +} + +// NewListTrustStoreCertificatesPaginator returns a new +// ListTrustStoreCertificatesPaginator +func NewListTrustStoreCertificatesPaginator(client ListTrustStoreCertificatesAPIClient, params *ListTrustStoreCertificatesInput, optFns ...func(*ListTrustStoreCertificatesPaginatorOptions)) *ListTrustStoreCertificatesPaginator { + if params == nil { + params = &ListTrustStoreCertificatesInput{} + } + + options := ListTrustStoreCertificatesPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTrustStoreCertificatesPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTrustStoreCertificatesPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListTrustStoreCertificates page. +func (p *ListTrustStoreCertificatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrustStoreCertificatesOutput, 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.ListTrustStoreCertificates(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_opListTrustStoreCertificates(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListTrustStoreCertificates", + } +} diff --git a/service/workspacesweb/api_op_ListTrustStores.go b/service/workspacesweb/api_op_ListTrustStores.go new file mode 100644 index 00000000000..177560ca1bc --- /dev/null +++ b/service/workspacesweb/api_op_ListTrustStores.go @@ -0,0 +1,211 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of trust stores. +func (c *Client) ListTrustStores(ctx context.Context, params *ListTrustStoresInput, optFns ...func(*Options)) (*ListTrustStoresOutput, error) { + if params == nil { + params = &ListTrustStoresInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTrustStores", params, optFns, c.addOperationListTrustStoresMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTrustStoresOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTrustStoresInput struct { + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListTrustStoresOutput struct { + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + // The trust stores. + TrustStores []types.TrustStoreSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTrustStoresMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTrustStores{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTrustStores{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTrustStores(options.Region), middleware.Before); 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 + } + return nil +} + +// ListTrustStoresAPIClient is a client that implements the ListTrustStores +// operation. +type ListTrustStoresAPIClient interface { + ListTrustStores(context.Context, *ListTrustStoresInput, ...func(*Options)) (*ListTrustStoresOutput, error) +} + +var _ ListTrustStoresAPIClient = (*Client)(nil) + +// ListTrustStoresPaginatorOptions is the paginator options for ListTrustStores +type ListTrustStoresPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListTrustStoresPaginator is a paginator for ListTrustStores +type ListTrustStoresPaginator struct { + options ListTrustStoresPaginatorOptions + client ListTrustStoresAPIClient + params *ListTrustStoresInput + nextToken *string + firstPage bool +} + +// NewListTrustStoresPaginator returns a new ListTrustStoresPaginator +func NewListTrustStoresPaginator(client ListTrustStoresAPIClient, params *ListTrustStoresInput, optFns ...func(*ListTrustStoresPaginatorOptions)) *ListTrustStoresPaginator { + if params == nil { + params = &ListTrustStoresInput{} + } + + options := ListTrustStoresPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTrustStoresPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTrustStoresPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListTrustStores page. +func (p *ListTrustStoresPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTrustStoresOutput, 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.ListTrustStores(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_opListTrustStores(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListTrustStores", + } +} diff --git a/service/workspacesweb/api_op_ListUserSettings.go b/service/workspacesweb/api_op_ListUserSettings.go new file mode 100644 index 00000000000..5ee76a047d6 --- /dev/null +++ b/service/workspacesweb/api_op_ListUserSettings.go @@ -0,0 +1,211 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves a list of user settings. +func (c *Client) ListUserSettings(ctx context.Context, params *ListUserSettingsInput, optFns ...func(*Options)) (*ListUserSettingsOutput, error) { + if params == nil { + params = &ListUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListUserSettings", params, optFns, c.addOperationListUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListUserSettingsInput struct { + + // The maximum number of results to be included in the next page. + MaxResults *int32 + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + noSmithyDocumentSerde +} + +type ListUserSettingsOutput struct { + + // The pagination token used to retrieve the next page of results for this + // operation. + NextToken *string + + // The user settings. + UserSettings []types.UserSettingsSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +// ListUserSettingsAPIClient is a client that implements the ListUserSettings +// operation. +type ListUserSettingsAPIClient interface { + ListUserSettings(context.Context, *ListUserSettingsInput, ...func(*Options)) (*ListUserSettingsOutput, error) +} + +var _ ListUserSettingsAPIClient = (*Client)(nil) + +// ListUserSettingsPaginatorOptions is the paginator options for ListUserSettings +type ListUserSettingsPaginatorOptions struct { + // The maximum number of results to be included in the next page. + 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 +} + +// ListUserSettingsPaginator is a paginator for ListUserSettings +type ListUserSettingsPaginator struct { + options ListUserSettingsPaginatorOptions + client ListUserSettingsAPIClient + params *ListUserSettingsInput + nextToken *string + firstPage bool +} + +// NewListUserSettingsPaginator returns a new ListUserSettingsPaginator +func NewListUserSettingsPaginator(client ListUserSettingsAPIClient, params *ListUserSettingsInput, optFns ...func(*ListUserSettingsPaginatorOptions)) *ListUserSettingsPaginator { + if params == nil { + params = &ListUserSettingsInput{} + } + + options := ListUserSettingsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListUserSettingsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListUserSettingsPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next ListUserSettings page. +func (p *ListUserSettingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListUserSettingsOutput, 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.ListUserSettings(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_opListUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "ListUserSettings", + } +} diff --git a/service/workspacesweb/api_op_TagResource.go b/service/workspacesweb/api_op_TagResource.go new file mode 100644 index 00000000000..4e024dad831 --- /dev/null +++ b/service/workspacesweb/api_op_TagResource.go @@ -0,0 +1,167 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Adds or overwrites one or more tags for the specified resource. +func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { + if params == nil { + params = &TagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TagResourceInput struct { + + // The ARN of the resource. + // + // This member is required. + ResourceArn *string + + // The tags of the resource. + // + // This member is required. + Tags []types.Tag + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token returns the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + noSmithyDocumentSerde +} + +type TagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opTagResourceMiddleware(stack, options); err != nil { + return err + } + if err = addOpTagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpTagResource struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpTagResource) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *TagResourceInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opTagResourceMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpTagResource{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "TagResource", + } +} diff --git a/service/workspacesweb/api_op_UntagResource.go b/service/workspacesweb/api_op_UntagResource.go new file mode 100644 index 00000000000..32a2075db1c --- /dev/null +++ b/service/workspacesweb/api_op_UntagResource.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes one or more tags from the specified resource. +func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { + if params == nil { + params = &UntagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UntagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UntagResourceInput struct { + + // The ARN of the resource. + // + // This member is required. + ResourceArn *string + + // The list of tag keys to remove from the resource. + // + // This member is required. + TagKeys []string + + noSmithyDocumentSerde +} + +type UntagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUntagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UntagResource", + } +} diff --git a/service/workspacesweb/api_op_UpdateBrowserSettings.go b/service/workspacesweb/api_op_UpdateBrowserSettings.go new file mode 100644 index 00000000000..5907c0ac913 --- /dev/null +++ b/service/workspacesweb/api_op_UpdateBrowserSettings.go @@ -0,0 +1,172 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates browser settings. +func (c *Client) UpdateBrowserSettings(ctx context.Context, params *UpdateBrowserSettingsInput, optFns ...func(*Options)) (*UpdateBrowserSettingsOutput, error) { + if params == nil { + params = &UpdateBrowserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateBrowserSettings", params, optFns, c.addOperationUpdateBrowserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateBrowserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateBrowserSettingsInput struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + // A JSON string containing Chrome Enterprise policies that will be applied to all + // streaming sessions. + BrowserPolicy *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token return the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + noSmithyDocumentSerde +} + +type UpdateBrowserSettingsOutput struct { + + // The browser settings. + // + // This member is required. + BrowserSettings *types.BrowserSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateBrowserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateBrowserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateBrowserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateBrowserSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateBrowserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateBrowserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateBrowserSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateBrowserSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateBrowserSettingsInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateBrowserSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateBrowserSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateBrowserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UpdateBrowserSettings", + } +} diff --git a/service/workspacesweb/api_op_UpdateIdentityProvider.go b/service/workspacesweb/api_op_UpdateIdentityProvider.go new file mode 100644 index 00000000000..2717e977ec5 --- /dev/null +++ b/service/workspacesweb/api_op_UpdateIdentityProvider.go @@ -0,0 +1,177 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the identity provider. +func (c *Client) UpdateIdentityProvider(ctx context.Context, params *UpdateIdentityProviderInput, optFns ...func(*Options)) (*UpdateIdentityProviderOutput, error) { + if params == nil { + params = &UpdateIdentityProviderInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateIdentityProvider", params, optFns, c.addOperationUpdateIdentityProviderMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateIdentityProviderOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateIdentityProviderInput struct { + + // The ARN of the identity provider. + // + // This member is required. + IdentityProviderArn *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token return the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // The details of the identity provider. + IdentityProviderDetails map[string]string + + // The name of the identity provider. + IdentityProviderName *string + + // The type of the identity provider. + IdentityProviderType types.IdentityProviderType + + noSmithyDocumentSerde +} + +type UpdateIdentityProviderOutput struct { + + // The identity provider. + // + // This member is required. + IdentityProvider *types.IdentityProvider + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateIdentityProviderMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateIdentityProvider{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateIdentityProvider{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateIdentityProviderMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateIdentityProviderValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateIdentityProvider(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateIdentityProvider struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateIdentityProvider) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateIdentityProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateIdentityProviderInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateIdentityProviderInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateIdentityProviderMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateIdentityProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateIdentityProvider(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UpdateIdentityProvider", + } +} diff --git a/service/workspacesweb/api_op_UpdateNetworkSettings.go b/service/workspacesweb/api_op_UpdateNetworkSettings.go new file mode 100644 index 00000000000..2f600d22b38 --- /dev/null +++ b/service/workspacesweb/api_op_UpdateNetworkSettings.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates network settings. +func (c *Client) UpdateNetworkSettings(ctx context.Context, params *UpdateNetworkSettingsInput, optFns ...func(*Options)) (*UpdateNetworkSettingsOutput, error) { + if params == nil { + params = &UpdateNetworkSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateNetworkSettings", params, optFns, c.addOperationUpdateNetworkSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateNetworkSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateNetworkSettingsInput struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token return the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // One or more security groups used to control access from streaming instances to + // your VPC. + SecurityGroupIds []string + + // The subnets in which network interfaces are created to connect streaming + // instances to your VPC. At least two of these subnets must be in different + // availability zones. + SubnetIds []string + + // The VPC that streaming instances will connect to. + VpcId *string + + noSmithyDocumentSerde +} + +type UpdateNetworkSettingsOutput struct { + + // The network settings. + // + // This member is required. + NetworkSettings *types.NetworkSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateNetworkSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateNetworkSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateNetworkSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateNetworkSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateNetworkSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateNetworkSettings(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateNetworkSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateNetworkSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateNetworkSettingsInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateNetworkSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateNetworkSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateNetworkSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UpdateNetworkSettings", + } +} diff --git a/service/workspacesweb/api_op_UpdatePortal.go b/service/workspacesweb/api_op_UpdatePortal.go new file mode 100644 index 00000000000..5bccba01699 --- /dev/null +++ b/service/workspacesweb/api_op_UpdatePortal.go @@ -0,0 +1,125 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a web portal. +func (c *Client) UpdatePortal(ctx context.Context, params *UpdatePortalInput, optFns ...func(*Options)) (*UpdatePortalOutput, error) { + if params == nil { + params = &UpdatePortalInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdatePortal", params, optFns, c.addOperationUpdatePortalMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdatePortalOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdatePortalInput struct { + + // The ARN of the web portal. + // + // This member is required. + PortalArn *string + + // The name of the web portal. This is not visible to users who log into the web + // portal. + DisplayName *string + + noSmithyDocumentSerde +} + +type UpdatePortalOutput struct { + + // The web portal. + Portal *types.Portal + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdatePortalMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePortal{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePortal{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdatePortalValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePortal(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opUpdatePortal(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UpdatePortal", + } +} diff --git a/service/workspacesweb/api_op_UpdateTrustStore.go b/service/workspacesweb/api_op_UpdateTrustStore.go new file mode 100644 index 00000000000..ed6a4fcc290 --- /dev/null +++ b/service/workspacesweb/api_op_UpdateTrustStore.go @@ -0,0 +1,173 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the trust store. +func (c *Client) UpdateTrustStore(ctx context.Context, params *UpdateTrustStoreInput, optFns ...func(*Options)) (*UpdateTrustStoreOutput, error) { + if params == nil { + params = &UpdateTrustStoreInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTrustStore", params, optFns, c.addOperationUpdateTrustStoreMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTrustStoreOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTrustStoreInput struct { + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + // A list of CA certificates to add to the trust store. + CertificatesToAdd [][]byte + + // A list of CA certificates to delete from a trust store. + CertificatesToDelete []string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token return the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + noSmithyDocumentSerde +} + +type UpdateTrustStoreOutput struct { + + // The ARN of the trust store. + // + // This member is required. + TrustStoreArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTrustStore{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTrustStore{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateTrustStoreMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateTrustStoreValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTrustStore(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateTrustStore struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateTrustStore) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateTrustStoreInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateTrustStoreMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateTrustStore{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateTrustStore(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UpdateTrustStore", + } +} diff --git a/service/workspacesweb/api_op_UpdateUserSettings.go b/service/workspacesweb/api_op_UpdateUserSettings.go new file mode 100644 index 00000000000..975332827ed --- /dev/null +++ b/service/workspacesweb/api_op_UpdateUserSettings.go @@ -0,0 +1,187 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the user settings. +func (c *Client) UpdateUserSettings(ctx context.Context, params *UpdateUserSettingsInput, optFns ...func(*Options)) (*UpdateUserSettingsOutput, error) { + if params == nil { + params = &UpdateUserSettingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateUserSettings", params, optFns, c.addOperationUpdateUserSettingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateUserSettingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateUserSettingsInput struct { + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. Idempotency ensures that an API request completes only once. + // With an idempotent request, if the original request completes successfully, + // subsequent retries with the same client token return the result from the + // original successful request. If you do not specify a client token, one is + // automatically generated by the AWS SDK. + ClientToken *string + + // Specifies whether the user can copy text from the streaming session to the local + // device. + CopyAllowed types.EnabledType + + // Specifies whether the user can download files from the streaming session to the + // local device. + DownloadAllowed types.EnabledType + + // Specifies whether the user can paste text from the local device to the streaming + // session. + PasteAllowed types.EnabledType + + // Specifies whether the user can print to the local device. + PrintAllowed types.EnabledType + + // Specifies whether the user can upload files from the local device to the + // streaming session. + UploadAllowed types.EnabledType + + noSmithyDocumentSerde +} + +type UpdateUserSettingsOutput struct { + + // The user settings. + // + // This member is required. + UserSettings *types.UserSettings + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateUserSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateUserSettings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateUserSettings{}, middleware.After) + if 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); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opUpdateUserSettingsMiddleware(stack, options); err != nil { + return err + } + if err = addOpUpdateUserSettingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateUserSettings(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpUpdateUserSettings struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpUpdateUserSettings) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpUpdateUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*UpdateUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *UpdateUserSettingsInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opUpdateUserSettingsMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpUpdateUserSettings{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opUpdateUserSettings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "workspaces-web", + OperationName: "UpdateUserSettings", + } +} diff --git a/service/workspacesweb/deserializers.go b/service/workspacesweb/deserializers.go new file mode 100644 index 00000000000..0d6ee11a8e0 --- /dev/null +++ b/service/workspacesweb/deserializers.go @@ -0,0 +1,8853 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "bytes" + "context" + "encoding/base64" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strconv" + "strings" +) + +type awsRestjson1_deserializeOpAssociateBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpAssociateBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpAssociateBrowserSettings) 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, awsRestjson1_deserializeOpErrorAssociateBrowserSettings(response, &metadata) + } + output := &AssociateBrowserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentAssociateBrowserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorAssociateBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentAssociateBrowserSettingsOutput(v **AssociateBrowserSettingsOutput, 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 *AssociateBrowserSettingsOutput + if *v == nil { + sv = &AssociateBrowserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.BrowserSettingsArn = ptr.String(jtv) + } + + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpAssociateNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpAssociateNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpAssociateNetworkSettings) 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, awsRestjson1_deserializeOpErrorAssociateNetworkSettings(response, &metadata) + } + output := &AssociateNetworkSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentAssociateNetworkSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorAssociateNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentAssociateNetworkSettingsOutput(v **AssociateNetworkSettingsOutput, 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 *AssociateNetworkSettingsOutput + if *v == nil { + sv = &AssociateNetworkSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "networkSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.NetworkSettingsArn = ptr.String(jtv) + } + + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpAssociateTrustStore struct { +} + +func (*awsRestjson1_deserializeOpAssociateTrustStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpAssociateTrustStore) 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, awsRestjson1_deserializeOpErrorAssociateTrustStore(response, &metadata) + } + output := &AssociateTrustStoreOutput{} + 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 = awsRestjson1_deserializeOpDocumentAssociateTrustStoreOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorAssociateTrustStore(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentAssociateTrustStoreOutput(v **AssociateTrustStoreOutput, 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 *AssociateTrustStoreOutput + if *v == nil { + sv = &AssociateTrustStoreOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpAssociateUserSettings struct { +} + +func (*awsRestjson1_deserializeOpAssociateUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpAssociateUserSettings) 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, awsRestjson1_deserializeOpErrorAssociateUserSettings(response, &metadata) + } + output := &AssociateUserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentAssociateUserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorAssociateUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentAssociateUserSettingsOutput(v **AssociateUserSettingsOutput, 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 *AssociateUserSettingsOutput + if *v == nil { + sv = &AssociateUserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + case "userSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.UserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpCreateBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateBrowserSettings) 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, awsRestjson1_deserializeOpErrorCreateBrowserSettings(response, &metadata) + } + output := &CreateBrowserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateBrowserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateBrowserSettingsOutput(v **CreateBrowserSettingsOutput, 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 *CreateBrowserSettingsOutput + if *v == nil { + sv = &CreateBrowserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.BrowserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateIdentityProvider struct { +} + +func (*awsRestjson1_deserializeOpCreateIdentityProvider) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateIdentityProvider) 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, awsRestjson1_deserializeOpErrorCreateIdentityProvider(response, &metadata) + } + output := &CreateIdentityProviderOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateIdentityProvider(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateIdentityProviderOutput(v **CreateIdentityProviderOutput, 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 *CreateIdentityProviderOutput + if *v == nil { + sv = &CreateIdentityProviderOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "identityProviderArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.IdentityProviderArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpCreateNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateNetworkSettings) 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, awsRestjson1_deserializeOpErrorCreateNetworkSettings(response, &metadata) + } + output := &CreateNetworkSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateNetworkSettingsOutput(v **CreateNetworkSettingsOutput, 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 *CreateNetworkSettingsOutput + if *v == nil { + sv = &CreateNetworkSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "networkSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.NetworkSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreatePortal struct { +} + +func (*awsRestjson1_deserializeOpCreatePortal) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreatePortal) 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, awsRestjson1_deserializeOpErrorCreatePortal(response, &metadata) + } + output := &CreatePortalOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreatePortalOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreatePortal(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreatePortalOutput(v **CreatePortalOutput, 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 *CreatePortalOutput + if *v == nil { + sv = &CreatePortalOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + case "portalEndpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalEndpoint to be of type string, got %T instead", value) + } + sv.PortalEndpoint = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateTrustStore struct { +} + +func (*awsRestjson1_deserializeOpCreateTrustStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateTrustStore) 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, awsRestjson1_deserializeOpErrorCreateTrustStore(response, &metadata) + } + output := &CreateTrustStoreOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateTrustStoreOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateTrustStore(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateTrustStoreOutput(v **CreateTrustStoreOutput, 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 *CreateTrustStoreOutput + if *v == nil { + sv = &CreateTrustStoreOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpCreateUserSettings struct { +} + +func (*awsRestjson1_deserializeOpCreateUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpCreateUserSettings) 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, awsRestjson1_deserializeOpErrorCreateUserSettings(response, &metadata) + } + output := &CreateUserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentCreateUserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorCreateUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentCreateUserSettingsOutput(v **CreateUserSettingsOutput, 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 *CreateUserSettingsOutput + if *v == nil { + sv = &CreateUserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "userSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.UserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpDeleteBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpDeleteBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteBrowserSettings) 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, awsRestjson1_deserializeOpErrorDeleteBrowserSettings(response, &metadata) + } + output := &DeleteBrowserSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteIdentityProvider struct { +} + +func (*awsRestjson1_deserializeOpDeleteIdentityProvider) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteIdentityProvider) 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, awsRestjson1_deserializeOpErrorDeleteIdentityProvider(response, &metadata) + } + output := &DeleteIdentityProviderOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteIdentityProvider(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpDeleteNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteNetworkSettings) 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, awsRestjson1_deserializeOpErrorDeleteNetworkSettings(response, &metadata) + } + output := &DeleteNetworkSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeletePortal struct { +} + +func (*awsRestjson1_deserializeOpDeletePortal) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeletePortal) 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, awsRestjson1_deserializeOpErrorDeletePortal(response, &metadata) + } + output := &DeletePortalOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeletePortal(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteTrustStore struct { +} + +func (*awsRestjson1_deserializeOpDeleteTrustStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteTrustStore) 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, awsRestjson1_deserializeOpErrorDeleteTrustStore(response, &metadata) + } + output := &DeleteTrustStoreOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteTrustStore(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDeleteUserSettings struct { +} + +func (*awsRestjson1_deserializeOpDeleteUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDeleteUserSettings) 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, awsRestjson1_deserializeOpErrorDeleteUserSettings(response, &metadata) + } + output := &DeleteUserSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDeleteUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDisassociateBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpDisassociateBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDisassociateBrowserSettings) 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, awsRestjson1_deserializeOpErrorDisassociateBrowserSettings(response, &metadata) + } + output := &DisassociateBrowserSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDisassociateBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDisassociateNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpDisassociateNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDisassociateNetworkSettings) 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, awsRestjson1_deserializeOpErrorDisassociateNetworkSettings(response, &metadata) + } + output := &DisassociateNetworkSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDisassociateNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDisassociateTrustStore struct { +} + +func (*awsRestjson1_deserializeOpDisassociateTrustStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDisassociateTrustStore) 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, awsRestjson1_deserializeOpErrorDisassociateTrustStore(response, &metadata) + } + output := &DisassociateTrustStoreOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDisassociateTrustStore(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpDisassociateUserSettings struct { +} + +func (*awsRestjson1_deserializeOpDisassociateUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDisassociateUserSettings) 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, awsRestjson1_deserializeOpErrorDisassociateUserSettings(response, &metadata) + } + output := &DisassociateUserSettingsOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDisassociateUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpGetBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpGetBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetBrowserSettings) 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, awsRestjson1_deserializeOpErrorGetBrowserSettings(response, &metadata) + } + output := &GetBrowserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetBrowserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetBrowserSettingsOutput(v **GetBrowserSettingsOutput, 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 *GetBrowserSettingsOutput + if *v == nil { + sv = &GetBrowserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettings": + if err := awsRestjson1_deserializeDocumentBrowserSettings(&sv.BrowserSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetIdentityProvider struct { +} + +func (*awsRestjson1_deserializeOpGetIdentityProvider) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetIdentityProvider) 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, awsRestjson1_deserializeOpErrorGetIdentityProvider(response, &metadata) + } + output := &GetIdentityProviderOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetIdentityProvider(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetIdentityProviderOutput(v **GetIdentityProviderOutput, 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 *GetIdentityProviderOutput + if *v == nil { + sv = &GetIdentityProviderOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "identityProvider": + if err := awsRestjson1_deserializeDocumentIdentityProvider(&sv.IdentityProvider, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpGetNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetNetworkSettings) 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, awsRestjson1_deserializeOpErrorGetNetworkSettings(response, &metadata) + } + output := &GetNetworkSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetNetworkSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetNetworkSettingsOutput(v **GetNetworkSettingsOutput, 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 *GetNetworkSettingsOutput + if *v == nil { + sv = &GetNetworkSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "networkSettings": + if err := awsRestjson1_deserializeDocumentNetworkSettings(&sv.NetworkSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetPortal struct { +} + +func (*awsRestjson1_deserializeOpGetPortal) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetPortal) 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, awsRestjson1_deserializeOpErrorGetPortal(response, &metadata) + } + output := &GetPortalOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetPortalOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetPortal(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetPortalOutput(v **GetPortalOutput, 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 *GetPortalOutput + if *v == nil { + sv = &GetPortalOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portal": + if err := awsRestjson1_deserializeDocumentPortal(&sv.Portal, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetPortalServiceProviderMetadata struct { +} + +func (*awsRestjson1_deserializeOpGetPortalServiceProviderMetadata) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetPortalServiceProviderMetadata) 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, awsRestjson1_deserializeOpErrorGetPortalServiceProviderMetadata(response, &metadata) + } + output := &GetPortalServiceProviderMetadataOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetPortalServiceProviderMetadataOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetPortalServiceProviderMetadata(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetPortalServiceProviderMetadataOutput(v **GetPortalServiceProviderMetadataOutput, 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 *GetPortalServiceProviderMetadataOutput + if *v == nil { + sv = &GetPortalServiceProviderMetadataOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + case "serviceProviderSamlMetadata": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SamlMetadata to be of type string, got %T instead", value) + } + sv.ServiceProviderSamlMetadata = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetTrustStore struct { +} + +func (*awsRestjson1_deserializeOpGetTrustStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetTrustStore) 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, awsRestjson1_deserializeOpErrorGetTrustStore(response, &metadata) + } + output := &GetTrustStoreOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetTrustStoreOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetTrustStore(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetTrustStoreOutput(v **GetTrustStoreOutput, 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 *GetTrustStoreOutput + if *v == nil { + sv = &GetTrustStoreOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "trustStore": + if err := awsRestjson1_deserializeDocumentTrustStore(&sv.TrustStore, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetTrustStoreCertificate struct { +} + +func (*awsRestjson1_deserializeOpGetTrustStoreCertificate) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetTrustStoreCertificate) 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, awsRestjson1_deserializeOpErrorGetTrustStoreCertificate(response, &metadata) + } + output := &GetTrustStoreCertificateOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetTrustStoreCertificateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetTrustStoreCertificate(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetTrustStoreCertificateOutput(v **GetTrustStoreCertificateOutput, 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 *GetTrustStoreCertificateOutput + if *v == nil { + sv = &GetTrustStoreCertificateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "certificate": + if err := awsRestjson1_deserializeDocumentCertificate(&sv.Certificate, value); err != nil { + return err + } + + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpGetUserSettings struct { +} + +func (*awsRestjson1_deserializeOpGetUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetUserSettings) 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, awsRestjson1_deserializeOpErrorGetUserSettings(response, &metadata) + } + output := &GetUserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentGetUserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetUserSettingsOutput(v **GetUserSettingsOutput, 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 *GetUserSettingsOutput + if *v == nil { + sv = &GetUserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "userSettings": + if err := awsRestjson1_deserializeDocumentUserSettings(&sv.UserSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpListBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListBrowserSettings) 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, awsRestjson1_deserializeOpErrorListBrowserSettings(response, &metadata) + } + output := &ListBrowserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListBrowserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListBrowserSettingsOutput(v **ListBrowserSettingsOutput, 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 *ListBrowserSettingsOutput + if *v == nil { + sv = &ListBrowserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettings": + if err := awsRestjson1_deserializeDocumentBrowserSettingsList(&sv.BrowserSettings, 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 +} + +type awsRestjson1_deserializeOpListIdentityProviders struct { +} + +func (*awsRestjson1_deserializeOpListIdentityProviders) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListIdentityProviders) 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, awsRestjson1_deserializeOpErrorListIdentityProviders(response, &metadata) + } + output := &ListIdentityProvidersOutput{} + 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 = awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListIdentityProviders(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListIdentityProvidersOutput(v **ListIdentityProvidersOutput, 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 *ListIdentityProvidersOutput + if *v == nil { + sv = &ListIdentityProvidersOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "identityProviders": + if err := awsRestjson1_deserializeDocumentIdentityProviderList(&sv.IdentityProviders, 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 +} + +type awsRestjson1_deserializeOpListNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpListNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListNetworkSettings) 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, awsRestjson1_deserializeOpErrorListNetworkSettings(response, &metadata) + } + output := &ListNetworkSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListNetworkSettingsOutput(v **ListNetworkSettingsOutput, 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 *ListNetworkSettingsOutput + if *v == nil { + sv = &ListNetworkSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "networkSettings": + if err := awsRestjson1_deserializeDocumentNetworkSettingsList(&sv.NetworkSettings, 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 +} + +type awsRestjson1_deserializeOpListPortals struct { +} + +func (*awsRestjson1_deserializeOpListPortals) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListPortals) 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, awsRestjson1_deserializeOpErrorListPortals(response, &metadata) + } + output := &ListPortalsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListPortalsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListPortals(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListPortalsOutput(v **ListPortalsOutput, 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 *ListPortalsOutput + if *v == nil { + sv = &ListPortalsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + 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) + } + + case "portals": + if err := awsRestjson1_deserializeDocumentPortalList(&sv.Portals, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTagsForResource struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + 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, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + 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 = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, 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 *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tags": + if err := awsRestjson1_deserializeDocumentTagList(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTrustStoreCertificates struct { +} + +func (*awsRestjson1_deserializeOpListTrustStoreCertificates) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTrustStoreCertificates) 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, awsRestjson1_deserializeOpErrorListTrustStoreCertificates(response, &metadata) + } + output := &ListTrustStoreCertificatesOutput{} + 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 = awsRestjson1_deserializeOpDocumentListTrustStoreCertificatesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTrustStoreCertificates(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTrustStoreCertificatesOutput(v **ListTrustStoreCertificatesOutput, 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 *ListTrustStoreCertificatesOutput + if *v == nil { + sv = &ListTrustStoreCertificatesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "certificateList": + if err := awsRestjson1_deserializeDocumentCertificateSummaryList(&sv.CertificateList, 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) + } + + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListTrustStores struct { +} + +func (*awsRestjson1_deserializeOpListTrustStores) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTrustStores) 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, awsRestjson1_deserializeOpErrorListTrustStores(response, &metadata) + } + output := &ListTrustStoresOutput{} + 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 = awsRestjson1_deserializeOpDocumentListTrustStoresOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTrustStores(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTrustStoresOutput(v **ListTrustStoresOutput, 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 *ListTrustStoresOutput + if *v == nil { + sv = &ListTrustStoresOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + 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) + } + + case "trustStores": + if err := awsRestjson1_deserializeDocumentTrustStoreSummaryList(&sv.TrustStores, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpListUserSettings struct { +} + +func (*awsRestjson1_deserializeOpListUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListUserSettings) 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, awsRestjson1_deserializeOpErrorListUserSettings(response, &metadata) + } + output := &ListUserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentListUserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListUserSettingsOutput(v **ListUserSettingsOutput, 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 *ListUserSettingsOutput + if *v == nil { + sv = &ListUserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + 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) + } + + case "userSettings": + if err := awsRestjson1_deserializeDocumentUserSettingsList(&sv.UserSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpTagResource struct { +} + +func (*awsRestjson1_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpTagResource) 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, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorTagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("TooManyTagsException", errorCode): + return awsRestjson1_deserializeErrorTooManyTagsException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) 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, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUntagResource(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUpdateBrowserSettings struct { +} + +func (*awsRestjson1_deserializeOpUpdateBrowserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateBrowserSettings) 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, awsRestjson1_deserializeOpErrorUpdateBrowserSettings(response, &metadata) + } + output := &UpdateBrowserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateBrowserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateBrowserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateBrowserSettingsOutput(v **UpdateBrowserSettingsOutput, 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 *UpdateBrowserSettingsOutput + if *v == nil { + sv = &UpdateBrowserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettings": + if err := awsRestjson1_deserializeDocumentBrowserSettings(&sv.BrowserSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateIdentityProvider struct { +} + +func (*awsRestjson1_deserializeOpUpdateIdentityProvider) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateIdentityProvider) 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, awsRestjson1_deserializeOpErrorUpdateIdentityProvider(response, &metadata) + } + output := &UpdateIdentityProviderOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateIdentityProvider(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateIdentityProviderOutput(v **UpdateIdentityProviderOutput, 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 *UpdateIdentityProviderOutput + if *v == nil { + sv = &UpdateIdentityProviderOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "identityProvider": + if err := awsRestjson1_deserializeDocumentIdentityProvider(&sv.IdentityProvider, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateNetworkSettings struct { +} + +func (*awsRestjson1_deserializeOpUpdateNetworkSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateNetworkSettings) 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, awsRestjson1_deserializeOpErrorUpdateNetworkSettings(response, &metadata) + } + output := &UpdateNetworkSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateNetworkSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateNetworkSettingsOutput(v **UpdateNetworkSettingsOutput, 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 *UpdateNetworkSettingsOutput + if *v == nil { + sv = &UpdateNetworkSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "networkSettings": + if err := awsRestjson1_deserializeDocumentNetworkSettings(&sv.NetworkSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdatePortal struct { +} + +func (*awsRestjson1_deserializeOpUpdatePortal) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdatePortal) 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, awsRestjson1_deserializeOpErrorUpdatePortal(response, &metadata) + } + output := &UpdatePortalOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdatePortalOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdatePortal(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdatePortalOutput(v **UpdatePortalOutput, 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 *UpdatePortalOutput + if *v == nil { + sv = &UpdatePortalOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "portal": + if err := awsRestjson1_deserializeDocumentPortal(&sv.Portal, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTrustStore struct { +} + +func (*awsRestjson1_deserializeOpUpdateTrustStore) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTrustStore) 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, awsRestjson1_deserializeOpErrorUpdateTrustStore(response, &metadata) + } + output := &UpdateTrustStoreOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateTrustStoreOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTrustStore(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateTrustStoreOutput(v **UpdateTrustStoreOutput, 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 *UpdateTrustStoreOutput + if *v == nil { + sv = &UpdateTrustStoreOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateUserSettings struct { +} + +func (*awsRestjson1_deserializeOpUpdateUserSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateUserSettings) 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, awsRestjson1_deserializeOpErrorUpdateUserSettings(response, &metadata) + } + output := &UpdateUserSettingsOutput{} + 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 = awsRestjson1_deserializeOpDocumentUpdateUserSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateUserSettings(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 + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, 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(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateUserSettingsOutput(v **UpdateUserSettingsOutput, 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 *UpdateUserSettingsOutput + if *v == nil { + sv = &UpdateUserSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "userSettings": + if err := awsRestjson1_deserializeDocumentUserSettings(&sv.UserSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeOpHttpBindingsInternalServerException(v *types.InternalServerException, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + vv, err := strconv.ParseInt(headerValues[0], 0, 32) + if err != nil { + return err + } + v.RetryAfterSeconds = int32(vv) + } + + return nil +} +func awsRestjson1_deserializeOpHttpBindingsThrottlingException(v *types.ThrottlingException, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + vv, err := strconv.ParseInt(headerValues[0], 0, 32) + if err != nil { + return err + } + v.RetryAfterSeconds = int32(vv) + } + + return nil +} +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_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 awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&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) + + if err := awsRestjson1_deserializeOpHttpBindingsInternalServerException(output, response); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)} + } + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_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(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&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) + + if err := awsRestjson1_deserializeOpHttpBindingsThrottlingException(output, response); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)} + } + + return output +} + +func awsRestjson1_deserializeErrorTooManyTagsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.TooManyTagsException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentTooManyTagsException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_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 awsRestjson1_deserializeDocumentArnList(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 ARN to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBrowserSettings(v **types.BrowserSettings, 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.BrowserSettings + if *v == nil { + sv = &types.BrowserSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedPortalArns": + if err := awsRestjson1_deserializeDocumentArnList(&sv.AssociatedPortalArns, value); err != nil { + return err + } + + case "browserPolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BrowserPolicy to be of type string, got %T instead", value) + } + sv.BrowserPolicy = ptr.String(jtv) + } + + case "browserSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.BrowserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBrowserSettingsList(v *[]types.BrowserSettingsSummary, 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.BrowserSettingsSummary + if *v == nil { + cv = []types.BrowserSettingsSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BrowserSettingsSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentBrowserSettingsSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentBrowserSettingsSummary(v **types.BrowserSettingsSummary, 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.BrowserSettingsSummary + if *v == nil { + sv = &types.BrowserSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.BrowserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCertificate(v **types.Certificate, 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.Certificate + if *v == nil { + sv = &types.Certificate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "body": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificateAuthorityBody to be []byte, got %T instead", value) + } + dv, err := base64.StdEncoding.DecodeString(jtv) + if err != nil { + return fmt.Errorf("failed to base64 decode CertificateAuthorityBody, %w", err) + } + sv.Body = dv + } + + case "issuer": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificatePrincipal to be of type string, got %T instead", value) + } + sv.Issuer = ptr.String(jtv) + } + + case "notValidAfter": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.NotValidAfter = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "notValidBefore": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.NotValidBefore = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "subject": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificatePrincipal to be of type string, got %T instead", value) + } + sv.Subject = ptr.String(jtv) + } + + case "thumbprint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificateThumbprint to be of type string, got %T instead", value) + } + sv.Thumbprint = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCertificateSummary(v **types.CertificateSummary, 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.CertificateSummary + if *v == nil { + sv = &types.CertificateSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "issuer": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificatePrincipal to be of type string, got %T instead", value) + } + sv.Issuer = ptr.String(jtv) + } + + case "notValidAfter": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.NotValidAfter = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "notValidBefore": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.NotValidBefore = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "subject": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificatePrincipal to be of type string, got %T instead", value) + } + sv.Subject = ptr.String(jtv) + } + + case "thumbprint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CertificateThumbprint to be of type string, got %T instead", value) + } + sv.Thumbprint = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCertificateSummaryList(v *[]types.CertificateSummary, 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.CertificateSummary + if *v == nil { + cv = []types.CertificateSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CertificateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentCertificateSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, 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.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } 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 ResourceId to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentIdentityProvider(v **types.IdentityProvider, 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.IdentityProvider + if *v == nil { + sv = &types.IdentityProvider{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "identityProviderArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.IdentityProviderArn = ptr.String(jtv) + } + + case "identityProviderDetails": + if err := awsRestjson1_deserializeDocumentIdentityProviderDetails(&sv.IdentityProviderDetails, value); err != nil { + return err + } + + case "identityProviderName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityProviderName to be of type string, got %T instead", value) + } + sv.IdentityProviderName = ptr.String(jtv) + } + + case "identityProviderType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityProviderType to be of type string, got %T instead", value) + } + sv.IdentityProviderType = types.IdentityProviderType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentIdentityProviderDetails(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StringType to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentIdentityProviderList(v *[]types.IdentityProviderSummary, 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.IdentityProviderSummary + if *v == nil { + cv = []types.IdentityProviderSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.IdentityProviderSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentIdentityProviderSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentIdentityProviderSummary(v **types.IdentityProviderSummary, 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.IdentityProviderSummary + if *v == nil { + sv = &types.IdentityProviderSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "identityProviderArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.IdentityProviderArn = ptr.String(jtv) + } + + case "identityProviderName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityProviderName to be of type string, got %T instead", value) + } + sv.IdentityProviderName = ptr.String(jtv) + } + + case "identityProviderType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityProviderType to be of type string, got %T instead", value) + } + sv.IdentityProviderType = types.IdentityProviderType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, 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.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } 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 "retryAfterSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected RetryAfterSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RetryAfterSeconds = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentNetworkSettings(v **types.NetworkSettings, 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.NetworkSettings + if *v == nil { + sv = &types.NetworkSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedPortalArns": + if err := awsRestjson1_deserializeDocumentArnList(&sv.AssociatedPortalArns, value); err != nil { + return err + } + + case "networkSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.NetworkSettingsArn = ptr.String(jtv) + } + + case "securityGroupIds": + if err := awsRestjson1_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil { + return err + } + + case "subnetIds": + if err := awsRestjson1_deserializeDocumentSubnetIdList(&sv.SubnetIds, value); err != nil { + return err + } + + case "vpcId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) + } + sv.VpcId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentNetworkSettingsList(v *[]types.NetworkSettingsSummary, 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.NetworkSettingsSummary + if *v == nil { + cv = []types.NetworkSettingsSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.NetworkSettingsSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkSettingsSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentNetworkSettingsSummary(v **types.NetworkSettingsSummary, 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.NetworkSettingsSummary + if *v == nil { + sv = &types.NetworkSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "networkSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.NetworkSettingsArn = ptr.String(jtv) + } + + case "vpcId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) + } + sv.VpcId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPortal(v **types.Portal, 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.Portal + if *v == nil { + sv = &types.Portal{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.BrowserSettingsArn = ptr.String(jtv) + } + + case "browserType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BrowserType to be of type string, got %T instead", value) + } + sv.BrowserType = types.BrowserType(jtv) + } + + case "creationDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "displayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "networkSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.NetworkSettingsArn = ptr.String(jtv) + } + + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + case "portalEndpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalEndpoint to be of type string, got %T instead", value) + } + sv.PortalEndpoint = ptr.String(jtv) + } + + case "portalStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalStatus to be of type string, got %T instead", value) + } + sv.PortalStatus = types.PortalStatus(jtv) + } + + case "rendererType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RendererType to be of type string, got %T instead", value) + } + sv.RendererType = types.RendererType(jtv) + } + + case "statusReason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StatusReason to be of type string, got %T instead", value) + } + sv.StatusReason = ptr.String(jtv) + } + + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + case "userSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.UserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPortalList(v *[]types.PortalSummary, 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.PortalSummary + if *v == nil { + cv = []types.PortalSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.PortalSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentPortalSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPortalSummary(v **types.PortalSummary, 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.PortalSummary + if *v == nil { + sv = &types.PortalSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "browserSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.BrowserSettingsArn = ptr.String(jtv) + } + + case "browserType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BrowserType to be of type string, got %T instead", value) + } + sv.BrowserType = types.BrowserType(jtv) + } + + case "creationDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreationDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "displayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DisplayName to be of type string, got %T instead", value) + } + sv.DisplayName = ptr.String(jtv) + } + + case "networkSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.NetworkSettingsArn = ptr.String(jtv) + } + + case "portalArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.PortalArn = ptr.String(jtv) + } + + case "portalEndpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalEndpoint to be of type string, got %T instead", value) + } + sv.PortalEndpoint = ptr.String(jtv) + } + + case "portalStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PortalStatus to be of type string, got %T instead", value) + } + sv.PortalStatus = types.PortalStatus(jtv) + } + + case "rendererType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RendererType to be of type string, got %T instead", value) + } + sv.RendererType = types.RendererType(jtv) + } + + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + case "userSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.UserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, 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.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } 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 ResourceId to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSecurityGroupIdList(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 SecurityGroupId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, 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.ServiceQuotaExceededException + if *v == nil { + sv = &types.ServiceQuotaExceededException{} + } 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 "quotaCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected QuotaCode to be of type string, got %T instead", value) + } + sv.QuotaCode = ptr.String(jtv) + } + + case "resourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = ptr.String(jtv) + } + + case "serviceCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) + } + sv.ServiceCode = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSubnetIdList(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 SubnetId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTag(v **types.Tag, 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.Tag + if *v == nil { + sv = &types.Tag{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Key": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) + } + sv.Key = ptr.String(jtv) + } + + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, 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.Tag + if *v == nil { + cv = []types.Tag{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, 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.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } 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 "quotaCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected QuotaCode to be of type string, got %T instead", value) + } + sv.QuotaCode = ptr.String(jtv) + } + + case "retryAfterSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected RetryAfterSeconds to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RetryAfterSeconds = int32(i64) + } + + case "serviceCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ServiceCode to be of type string, got %T instead", value) + } + sv.ServiceCode = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsException, 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.TooManyTagsException + if *v == nil { + sv = &types.TooManyTagsException{} + } 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 TagExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "resourceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.ResourceName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTrustStore(v **types.TrustStore, 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.TrustStore + if *v == nil { + sv = &types.TrustStore{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedPortalArns": + if err := awsRestjson1_deserializeDocumentArnList(&sv.AssociatedPortalArns, value); err != nil { + return err + } + + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTrustStoreSummary(v **types.TrustStoreSummary, 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.TrustStoreSummary + if *v == nil { + sv = &types.TrustStoreSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "trustStoreArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.TrustStoreArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTrustStoreSummaryList(v *[]types.TrustStoreSummary, 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.TrustStoreSummary + if *v == nil { + cv = []types.TrustStoreSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TrustStoreSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTrustStoreSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentUserSettings(v **types.UserSettings, 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.UserSettings + if *v == nil { + sv = &types.UserSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "associatedPortalArns": + if err := awsRestjson1_deserializeDocumentArnList(&sv.AssociatedPortalArns, value); err != nil { + return err + } + + case "copyAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.CopyAllowed = types.EnabledType(jtv) + } + + case "downloadAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.DownloadAllowed = types.EnabledType(jtv) + } + + case "pasteAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.PasteAllowed = types.EnabledType(jtv) + } + + case "printAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.PrintAllowed = types.EnabledType(jtv) + } + + case "uploadAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.UploadAllowed = types.EnabledType(jtv) + } + + case "userSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.UserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentUserSettingsList(v *[]types.UserSettingsSummary, 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.UserSettingsSummary + if *v == nil { + cv = []types.UserSettingsSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.UserSettingsSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentUserSettingsSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentUserSettingsSummary(v **types.UserSettingsSummary, 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.UserSettingsSummary + if *v == nil { + sv = &types.UserSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "copyAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.CopyAllowed = types.EnabledType(jtv) + } + + case "downloadAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.DownloadAllowed = types.EnabledType(jtv) + } + + case "pasteAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.PasteAllowed = types.EnabledType(jtv) + } + + case "printAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.PrintAllowed = types.EnabledType(jtv) + } + + case "uploadAllowed": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EnabledType to be of type string, got %T instead", value) + } + sv.UploadAllowed = types.EnabledType(jtv) + } + + case "userSettingsArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ARN to be of type string, got %T instead", value) + } + sv.UserSettingsArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, 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.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "fieldList": + if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil { + return err + } + + 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 "reason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ValidationExceptionReason to be of type string, got %T instead", value) + } + sv.Reason = types.ValidationExceptionReason(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.ValidationExceptionField, 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.ValidationExceptionField + if *v == nil { + sv = &types.ValidationExceptionField{} + } 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 "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, 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.ValidationExceptionField + if *v == nil { + cv = []types.ValidationExceptionField{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ValidationExceptionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} diff --git a/service/workspacesweb/doc.go b/service/workspacesweb/doc.go new file mode 100644 index 00000000000..2781ce62b91 --- /dev/null +++ b/service/workspacesweb/doc.go @@ -0,0 +1,13 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package workspacesweb provides the API client, operations, and parameter types +// for Amazon WorkSpaces Web. +// +// WorkSpaces Web is a low cost, fully managed WorkSpace built specifically to +// facilitate secure, web-based workloads. WorkSpaces Web makes it easy for +// customers to safely provide their employees with access to internal websites and +// SaaS web applications without the administrative burden of appliances or +// specialized client software. WorkSpaces Web provides simple policy tools +// tailored for user interactions, while offloading common tasks like capacity +// management, scaling, and maintaining browser images. +package workspacesweb diff --git a/service/workspacesweb/endpoints.go b/service/workspacesweb/endpoints.go new file mode 100644 index 00000000000..d4ac5441006 --- /dev/null +++ b/service/workspacesweb/endpoints.go @@ -0,0 +1,200 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/workspacesweb/internal/endpoints" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/url" + "strings" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +func resolveDefaultEndpointConfiguration(o *Options) { + if o.EndpointResolver != nil { + return + } + o.EndpointResolver = NewDefaultEndpointResolver() +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + eo := m.Options + eo.Logger = middleware.GetLogger(ctx) + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "workspaces-web" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolverWithOptions + resolver EndpointResolver +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + if w.awsResolver == nil { + goto fallback + } + endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) + if err == nil { + return endpoint, nil + } + + if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { + return endpoint, err + } + +fallback: + if w.resolver == nil { + return endpoint, fmt.Errorf("default endpoint resolver provided was nil") + } + return w.resolver.ResolveEndpoint(region, options) +} + +type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) + +func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { + return a(service, region) +} + +var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) + +// withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. +// If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided +// fallbackResolver for resolution. +// +// fallbackResolver must not be nil +func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { + var resolver aws.EndpointResolverWithOptions + + if awsResolverWithOptions != nil { + resolver = awsResolverWithOptions + } else if awsResolver != nil { + resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) + } + + return &wrappedEndpointResolver{ + awsResolver: resolver, + resolver: fallbackResolver, + } +} + +func finalizeClientEndpointResolverOptions(options *Options) { + options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() + + if len(options.EndpointOptions.ResolvedRegion) == 0 { + const fipsInfix = "-fips-" + const fipsPrefix = "fips-" + const fipsSuffix = "-fips" + + if strings.Contains(options.Region, fipsInfix) || + strings.Contains(options.Region, fipsPrefix) || + strings.Contains(options.Region, fipsSuffix) { + options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( + options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") + options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled + } + } + +} diff --git a/service/workspacesweb/generated.json b/service/workspacesweb/generated.json new file mode 100644 index 00000000000..cac413a3a90 --- /dev/null +++ b/service/workspacesweb/generated.json @@ -0,0 +1,70 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", + "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", + "github.com/aws/smithy-go": "v1.4.0" + }, + "files": [ + "api_client.go", + "api_op_AssociateBrowserSettings.go", + "api_op_AssociateNetworkSettings.go", + "api_op_AssociateTrustStore.go", + "api_op_AssociateUserSettings.go", + "api_op_CreateBrowserSettings.go", + "api_op_CreateIdentityProvider.go", + "api_op_CreateNetworkSettings.go", + "api_op_CreatePortal.go", + "api_op_CreateTrustStore.go", + "api_op_CreateUserSettings.go", + "api_op_DeleteBrowserSettings.go", + "api_op_DeleteIdentityProvider.go", + "api_op_DeleteNetworkSettings.go", + "api_op_DeletePortal.go", + "api_op_DeleteTrustStore.go", + "api_op_DeleteUserSettings.go", + "api_op_DisassociateBrowserSettings.go", + "api_op_DisassociateNetworkSettings.go", + "api_op_DisassociateTrustStore.go", + "api_op_DisassociateUserSettings.go", + "api_op_GetBrowserSettings.go", + "api_op_GetIdentityProvider.go", + "api_op_GetNetworkSettings.go", + "api_op_GetPortal.go", + "api_op_GetPortalServiceProviderMetadata.go", + "api_op_GetTrustStore.go", + "api_op_GetTrustStoreCertificate.go", + "api_op_GetUserSettings.go", + "api_op_ListBrowserSettings.go", + "api_op_ListIdentityProviders.go", + "api_op_ListNetworkSettings.go", + "api_op_ListPortals.go", + "api_op_ListTagsForResource.go", + "api_op_ListTrustStoreCertificates.go", + "api_op_ListTrustStores.go", + "api_op_ListUserSettings.go", + "api_op_TagResource.go", + "api_op_UntagResource.go", + "api_op_UpdateBrowserSettings.go", + "api_op_UpdateIdentityProvider.go", + "api_op_UpdateNetworkSettings.go", + "api_op_UpdatePortal.go", + "api_op_UpdateTrustStore.go", + "api_op_UpdateUserSettings.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/workspacesweb", + "unstable": false +} diff --git a/service/workspacesweb/go.mod b/service/workspacesweb/go.mod new file mode 100644 index 00000000000..fbdb5e5a5c5 --- /dev/null +++ b/service/workspacesweb/go.mod @@ -0,0 +1,16 @@ +module github.com/aws/aws-sdk-go-v2/service/workspacesweb + +go 1.15 + +require ( + github.com/aws/aws-sdk-go-v2 v1.11.1 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.1 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.0.1 + github.com/aws/smithy-go v1.9.0 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ + +replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ + +replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum new file mode 100644 index 00000000000..45efc0b1e03 --- /dev/null +++ b/service/workspacesweb/go.sum @@ -0,0 +1,14 @@ +github.com/aws/smithy-go v1.9.0 h1:c7FUdEqrQA1/UVKKCNDFQPNKGp4FQg3YW4Ck5SLTG58= +github.com/aws/smithy-go v1.9.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/service/workspacesweb/go_module_metadata.go b/service/workspacesweb/go_module_metadata.go new file mode 100644 index 00000000000..73537c30c1f --- /dev/null +++ b/service/workspacesweb/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package workspacesweb + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "tip" diff --git a/service/workspacesweb/internal/endpoints/endpoints.go b/service/workspacesweb/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..505a43f0dfc --- /dev/null +++ b/service/workspacesweb/internal/endpoints/endpoints.go @@ -0,0 +1,261 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" + "github.com/aws/smithy-go/logging" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + // Logger is a logging implementation that log events should be sent to. + Logger logging.Logger + + // LogDeprecated indicates that deprecated endpoints should be logged to the + // provided logger. + LogDeprecated bool + + // ResolvedRegion is used to override the region to be resolved, rather then the + // using the value passed to the ResolveEndpoint method. This value is used by the + // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative + // name. You must not set this value directly in your application. + ResolvedRegion string + + // DisableHTTPS informs the resolver to return an endpoint that does not use the + // HTTPS scheme. + DisableHTTPS bool + + // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. + UseDualStackEndpoint aws.DualStackEndpointState + + // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. + UseFIPSEndpoint aws.FIPSEndpointState +} + +func (o Options) GetResolvedRegion() string { + return o.ResolvedRegion +} + +func (o Options) GetDisableHTTPS() bool { + return o.DisableHTTPS +} + +func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { + return o.UseDualStackEndpoint +} + +func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { + return o.UseFIPSEndpoint +} + +func transformToSharedOptions(options Options) endpoints.Options { + return endpoints.Options{ + Logger: options.Logger, + LogDeprecated: options.LogDeprecated, + ResolvedRegion: options.ResolvedRegion, + DisableHTTPS: options.DisableHTTPS, + UseDualStackEndpoint: options.UseDualStackEndpoint, + UseFIPSEndpoint: options.UseFIPSEndpoint, + } +} + +// Resolver WorkSpaces Web endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := transformToSharedOptions(options) + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "workspaces-web.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-web-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "workspaces-web-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces-web.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "eu-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-2", + }: endpoints.Endpoint{}, + }, + }, + { + ID: "aws-cn", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "workspaces-web.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-web-fips.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "workspaces-web-fips.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces-web.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-web-fips.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces-web.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-web-fips.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces-web.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "workspaces-web.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-web-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "workspaces-web-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces-web.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/workspacesweb/internal/endpoints/endpoints_test.go b/service/workspacesweb/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/workspacesweb/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/workspacesweb/protocol_test.go b/service/workspacesweb/protocol_test.go new file mode 100644 index 00000000000..46f8bf093f4 --- /dev/null +++ b/service/workspacesweb/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb diff --git a/service/workspacesweb/serializers.go b/service/workspacesweb/serializers.go new file mode 100644 index 00000000000..7bc91496c9f --- /dev/null +++ b/service/workspacesweb/serializers.go @@ -0,0 +1,3153 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +type awsRestjson1_serializeOpAssociateBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpAssociateBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpAssociateBrowserSettings) 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.(*AssociateBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/browserSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsAssociateBrowserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsAssociateBrowserSettingsInput(v *AssociateBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BrowserSettingsArn != nil { + encoder.SetQuery("browserSettingsArn").String(*v.BrowserSettingsArn) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpAssociateNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpAssociateNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpAssociateNetworkSettings) 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.(*AssociateNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/networkSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsAssociateNetworkSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsAssociateNetworkSettingsInput(v *AssociateNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.NetworkSettingsArn != nil { + encoder.SetQuery("networkSettingsArn").String(*v.NetworkSettingsArn) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpAssociateTrustStore struct { +} + +func (*awsRestjson1_serializeOpAssociateTrustStore) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpAssociateTrustStore) 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.(*AssociateTrustStoreInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/trustStores") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsAssociateTrustStoreInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsAssociateTrustStoreInput(v *AssociateTrustStoreInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + if v.TrustStoreArn != nil { + encoder.SetQuery("trustStoreArn").String(*v.TrustStoreArn) + } + + return nil +} + +type awsRestjson1_serializeOpAssociateUserSettings struct { +} + +func (*awsRestjson1_serializeOpAssociateUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpAssociateUserSettings) 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.(*AssociateUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/userSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsAssociateUserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsAssociateUserSettingsInput(v *AssociateUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + if v.UserSettingsArn != nil { + encoder.SetQuery("userSettingsArn").String(*v.UserSettingsArn) + } + + return nil +} + +type awsRestjson1_serializeOpCreateBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpCreateBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateBrowserSettings) 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.(*CreateBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/browserSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateBrowserSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateBrowserSettingsInput(v *CreateBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateBrowserSettingsInput(v *CreateBrowserSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AdditionalEncryptionContext != nil { + ok := object.Key("additionalEncryptionContext") + if err := awsRestjson1_serializeDocumentEncryptionContextMap(v.AdditionalEncryptionContext, ok); err != nil { + return err + } + } + + if v.BrowserPolicy != nil { + ok := object.Key("browserPolicy") + ok.String(*v.BrowserPolicy) + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.CustomerManagedKey != nil { + ok := object.Key("customerManagedKey") + ok.String(*v.CustomerManagedKey) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateIdentityProvider struct { +} + +func (*awsRestjson1_serializeOpCreateIdentityProvider) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateIdentityProvider) 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.(*CreateIdentityProviderInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/identityProviders") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateIdentityProviderInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateIdentityProviderInput(v *CreateIdentityProviderInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateIdentityProviderInput(v *CreateIdentityProviderInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.IdentityProviderDetails != nil { + ok := object.Key("identityProviderDetails") + if err := awsRestjson1_serializeDocumentIdentityProviderDetails(v.IdentityProviderDetails, ok); err != nil { + return err + } + } + + if v.IdentityProviderName != nil { + ok := object.Key("identityProviderName") + ok.String(*v.IdentityProviderName) + } + + if len(v.IdentityProviderType) > 0 { + ok := object.Key("identityProviderType") + ok.String(string(v.IdentityProviderType)) + } + + if v.PortalArn != nil { + ok := object.Key("portalArn") + ok.String(*v.PortalArn) + } + + return nil +} + +type awsRestjson1_serializeOpCreateNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpCreateNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateNetworkSettings) 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.(*CreateNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/networkSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateNetworkSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateNetworkSettingsInput(v *CreateNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateNetworkSettingsInput(v *CreateNetworkSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.SecurityGroupIds != nil { + ok := object.Key("securityGroupIds") + if err := awsRestjson1_serializeDocumentSecurityGroupIdList(v.SecurityGroupIds, ok); err != nil { + return err + } + } + + if v.SubnetIds != nil { + ok := object.Key("subnetIds") + if err := awsRestjson1_serializeDocumentSubnetIdList(v.SubnetIds, ok); err != nil { + return err + } + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + if v.VpcId != nil { + ok := object.Key("vpcId") + ok.String(*v.VpcId) + } + + return nil +} + +type awsRestjson1_serializeOpCreatePortal struct { +} + +func (*awsRestjson1_serializeOpCreatePortal) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreatePortal) 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.(*CreatePortalInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreatePortalInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreatePortalInput(v *CreatePortalInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreatePortalInput(v *CreatePortalInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AdditionalEncryptionContext != nil { + ok := object.Key("additionalEncryptionContext") + if err := awsRestjson1_serializeDocumentEncryptionContextMap(v.AdditionalEncryptionContext, ok); err != nil { + return err + } + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.CustomerManagedKey != nil { + ok := object.Key("customerManagedKey") + ok.String(*v.CustomerManagedKey) + } + + if v.DisplayName != nil { + ok := object.Key("displayName") + ok.String(*v.DisplayName) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateTrustStore struct { +} + +func (*awsRestjson1_serializeOpCreateTrustStore) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateTrustStore) 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.(*CreateTrustStoreInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateTrustStoreInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateTrustStoreInput(v *CreateTrustStoreInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateTrustStoreInput(v *CreateTrustStoreInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CertificateList != nil { + ok := object.Key("certificateList") + if err := awsRestjson1_serializeDocumentCertificateList(v.CertificateList, ok); err != nil { + return err + } + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpCreateUserSettings struct { +} + +func (*awsRestjson1_serializeOpCreateUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreateUserSettings) 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.(*CreateUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/userSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateUserSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreateUserSettingsInput(v *CreateUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreateUserSettingsInput(v *CreateUserSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if len(v.CopyAllowed) > 0 { + ok := object.Key("copyAllowed") + ok.String(string(v.CopyAllowed)) + } + + if len(v.DownloadAllowed) > 0 { + ok := object.Key("downloadAllowed") + ok.String(string(v.DownloadAllowed)) + } + + if len(v.PasteAllowed) > 0 { + ok := object.Key("pasteAllowed") + ok.String(string(v.PasteAllowed)) + } + + if len(v.PrintAllowed) > 0 { + ok := object.Key("printAllowed") + ok.String(string(v.PrintAllowed)) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + if len(v.UploadAllowed) > 0 { + ok := object.Key("uploadAllowed") + ok.String(string(v.UploadAllowed)) + } + + return nil +} + +type awsRestjson1_serializeOpDeleteBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpDeleteBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteBrowserSettings) 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.(*DeleteBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/browserSettings/{browserSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteBrowserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteBrowserSettingsInput(v *DeleteBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BrowserSettingsArn == nil || len(*v.BrowserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member browserSettingsArn must not be empty")} + } + if v.BrowserSettingsArn != nil { + if err := encoder.SetURI("browserSettingsArn").String(*v.BrowserSettingsArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteIdentityProvider struct { +} + +func (*awsRestjson1_serializeOpDeleteIdentityProvider) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteIdentityProvider) 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.(*DeleteIdentityProviderInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/identityProviders/{identityProviderArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteIdentityProviderInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteIdentityProviderInput(v *DeleteIdentityProviderInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.IdentityProviderArn == nil || len(*v.IdentityProviderArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member identityProviderArn must not be empty")} + } + if v.IdentityProviderArn != nil { + if err := encoder.SetURI("identityProviderArn").String(*v.IdentityProviderArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpDeleteNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteNetworkSettings) 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.(*DeleteNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/networkSettings/{networkSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteNetworkSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteNetworkSettingsInput(v *DeleteNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.NetworkSettingsArn == nil || len(*v.NetworkSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member networkSettingsArn must not be empty")} + } + if v.NetworkSettingsArn != nil { + if err := encoder.SetURI("networkSettingsArn").String(*v.NetworkSettingsArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeletePortal struct { +} + +func (*awsRestjson1_serializeOpDeletePortal) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeletePortal) 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.(*DeletePortalInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeletePortalInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeletePortalInput(v *DeletePortalInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteTrustStore struct { +} + +func (*awsRestjson1_serializeOpDeleteTrustStore) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteTrustStore) 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.(*DeleteTrustStoreInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores/{trustStoreArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteTrustStoreInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteTrustStoreInput(v *DeleteTrustStoreInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.TrustStoreArn == nil || len(*v.TrustStoreArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trustStoreArn must not be empty")} + } + if v.TrustStoreArn != nil { + if err := encoder.SetURI("trustStoreArn").String(*v.TrustStoreArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteUserSettings struct { +} + +func (*awsRestjson1_serializeOpDeleteUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteUserSettings) 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.(*DeleteUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/userSettings/{userSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteUserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteUserSettingsInput(v *DeleteUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.UserSettingsArn == nil || len(*v.UserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member userSettingsArn must not be empty")} + } + if v.UserSettingsArn != nil { + if err := encoder.SetURI("userSettingsArn").String(*v.UserSettingsArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDisassociateBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpDisassociateBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDisassociateBrowserSettings) 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.(*DisassociateBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/browserSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDisassociateBrowserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDisassociateBrowserSettingsInput(v *DisassociateBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDisassociateNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpDisassociateNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDisassociateNetworkSettings) 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.(*DisassociateNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/networkSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDisassociateNetworkSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDisassociateNetworkSettingsInput(v *DisassociateNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDisassociateTrustStore struct { +} + +func (*awsRestjson1_serializeOpDisassociateTrustStore) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDisassociateTrustStore) 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.(*DisassociateTrustStoreInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/trustStores") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDisassociateTrustStoreInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDisassociateTrustStoreInput(v *DisassociateTrustStoreInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDisassociateUserSettings struct { +} + +func (*awsRestjson1_serializeOpDisassociateUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDisassociateUserSettings) 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.(*DisassociateUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/userSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDisassociateUserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDisassociateUserSettingsInput(v *DisassociateUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpGetBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetBrowserSettings) 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.(*GetBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/browserSettings/{browserSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetBrowserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetBrowserSettingsInput(v *GetBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BrowserSettingsArn == nil || len(*v.BrowserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member browserSettingsArn must not be empty")} + } + if v.BrowserSettingsArn != nil { + if err := encoder.SetURI("browserSettingsArn").String(*v.BrowserSettingsArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetIdentityProvider struct { +} + +func (*awsRestjson1_serializeOpGetIdentityProvider) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetIdentityProvider) 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.(*GetIdentityProviderInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/identityProviders/{identityProviderArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetIdentityProviderInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetIdentityProviderInput(v *GetIdentityProviderInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.IdentityProviderArn == nil || len(*v.IdentityProviderArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member identityProviderArn must not be empty")} + } + if v.IdentityProviderArn != nil { + if err := encoder.SetURI("identityProviderArn").String(*v.IdentityProviderArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpGetNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetNetworkSettings) 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.(*GetNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/networkSettings/{networkSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetNetworkSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetNetworkSettingsInput(v *GetNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.NetworkSettingsArn == nil || len(*v.NetworkSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member networkSettingsArn must not be empty")} + } + if v.NetworkSettingsArn != nil { + if err := encoder.SetURI("networkSettingsArn").String(*v.NetworkSettingsArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetPortal struct { +} + +func (*awsRestjson1_serializeOpGetPortal) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetPortal) 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.(*GetPortalInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetPortalInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetPortalInput(v *GetPortalInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetPortalServiceProviderMetadata struct { +} + +func (*awsRestjson1_serializeOpGetPortalServiceProviderMetadata) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetPortalServiceProviderMetadata) 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.(*GetPortalServiceProviderMetadataInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portalIdp/{portalArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetPortalServiceProviderMetadataInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetPortalServiceProviderMetadataInput(v *GetPortalServiceProviderMetadataInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetTrustStore struct { +} + +func (*awsRestjson1_serializeOpGetTrustStore) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetTrustStore) 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.(*GetTrustStoreInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores/{trustStoreArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetTrustStoreInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetTrustStoreInput(v *GetTrustStoreInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.TrustStoreArn == nil || len(*v.TrustStoreArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trustStoreArn must not be empty")} + } + if v.TrustStoreArn != nil { + if err := encoder.SetURI("trustStoreArn").String(*v.TrustStoreArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetTrustStoreCertificate struct { +} + +func (*awsRestjson1_serializeOpGetTrustStoreCertificate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetTrustStoreCertificate) 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.(*GetTrustStoreCertificateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores/{trustStoreArn+}/certificate") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetTrustStoreCertificateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetTrustStoreCertificateInput(v *GetTrustStoreCertificateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Thumbprint != nil { + encoder.SetQuery("thumbprint").String(*v.Thumbprint) + } + + if v.TrustStoreArn == nil || len(*v.TrustStoreArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trustStoreArn must not be empty")} + } + if v.TrustStoreArn != nil { + if err := encoder.SetURI("trustStoreArn").String(*v.TrustStoreArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpGetUserSettings struct { +} + +func (*awsRestjson1_serializeOpGetUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetUserSettings) 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.(*GetUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/userSettings/{userSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetUserSettingsInput(v *GetUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.UserSettingsArn == nil || len(*v.UserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member userSettingsArn must not be empty")} + } + if v.UserSettingsArn != nil { + if err := encoder.SetURI("userSettingsArn").String(*v.UserSettingsArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpListBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListBrowserSettings) 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.(*ListBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/browserSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListBrowserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListBrowserSettingsInput(v *ListBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListIdentityProviders struct { +} + +func (*awsRestjson1_serializeOpListIdentityProviders) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListIdentityProviders) 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.(*ListIdentityProvidersInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}/identityProviders") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListIdentityProvidersInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListIdentityProvidersInput(v *ListIdentityProvidersInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpListNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListNetworkSettings) 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.(*ListNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/networkSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListNetworkSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListNetworkSettingsInput(v *ListNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListPortals struct { +} + +func (*awsRestjson1_serializeOpListPortals) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListPortals) 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.(*ListPortalsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListPortalsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListPortalsInput(v *ListPortalsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListTagsForResource struct { +} + +func (*awsRestjson1_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTagsForResource) 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.(*ListTagsForResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListTrustStoreCertificates struct { +} + +func (*awsRestjson1_serializeOpListTrustStoreCertificates) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTrustStoreCertificates) 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.(*ListTrustStoreCertificatesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores/{trustStoreArn+}/certificates") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListTrustStoreCertificatesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTrustStoreCertificatesInput(v *ListTrustStoreCertificatesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if v.TrustStoreArn == nil || len(*v.TrustStoreArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trustStoreArn must not be empty")} + } + if v.TrustStoreArn != nil { + if err := encoder.SetURI("trustStoreArn").String(*v.TrustStoreArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpListTrustStores struct { +} + +func (*awsRestjson1_serializeOpListTrustStores) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTrustStores) 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.(*ListTrustStoresInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListTrustStoresInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTrustStoresInput(v *ListTrustStoresInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpListUserSettings struct { +} + +func (*awsRestjson1_serializeOpListUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListUserSettings) 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.(*ListUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/userSettings") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListUserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListUserSettingsInput(v *ListUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + return nil +} + +type awsRestjson1_serializeOpTagResource struct { +} + +func (*awsRestjson1_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpTagResource) 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.(*TagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentTagResourceInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUntagResource struct { +} + +func (*awsRestjson1_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUntagResource) 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.(*UntagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + if v.TagKeys != nil { + for i := range v.TagKeys { + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateBrowserSettings struct { +} + +func (*awsRestjson1_serializeOpUpdateBrowserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateBrowserSettings) 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.(*UpdateBrowserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/browserSettings/{browserSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateBrowserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateBrowserSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateBrowserSettingsInput(v *UpdateBrowserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.BrowserSettingsArn == nil || len(*v.BrowserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member browserSettingsArn must not be empty")} + } + if v.BrowserSettingsArn != nil { + if err := encoder.SetURI("browserSettingsArn").String(*v.BrowserSettingsArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateBrowserSettingsInput(v *UpdateBrowserSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BrowserPolicy != nil { + ok := object.Key("browserPolicy") + ok.String(*v.BrowserPolicy) + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateIdentityProvider struct { +} + +func (*awsRestjson1_serializeOpUpdateIdentityProvider) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateIdentityProvider) 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.(*UpdateIdentityProviderInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/identityProviders/{identityProviderArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateIdentityProviderInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateIdentityProviderInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateIdentityProviderInput(v *UpdateIdentityProviderInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.IdentityProviderArn == nil || len(*v.IdentityProviderArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member identityProviderArn must not be empty")} + } + if v.IdentityProviderArn != nil { + if err := encoder.SetURI("identityProviderArn").String(*v.IdentityProviderArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateIdentityProviderInput(v *UpdateIdentityProviderInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.IdentityProviderDetails != nil { + ok := object.Key("identityProviderDetails") + if err := awsRestjson1_serializeDocumentIdentityProviderDetails(v.IdentityProviderDetails, ok); err != nil { + return err + } + } + + if v.IdentityProviderName != nil { + ok := object.Key("identityProviderName") + ok.String(*v.IdentityProviderName) + } + + if len(v.IdentityProviderType) > 0 { + ok := object.Key("identityProviderType") + ok.String(string(v.IdentityProviderType)) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateNetworkSettings struct { +} + +func (*awsRestjson1_serializeOpUpdateNetworkSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateNetworkSettings) 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.(*UpdateNetworkSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/networkSettings/{networkSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateNetworkSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateNetworkSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateNetworkSettingsInput(v *UpdateNetworkSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.NetworkSettingsArn == nil || len(*v.NetworkSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member networkSettingsArn must not be empty")} + } + if v.NetworkSettingsArn != nil { + if err := encoder.SetURI("networkSettingsArn").String(*v.NetworkSettingsArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateNetworkSettingsInput(v *UpdateNetworkSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.SecurityGroupIds != nil { + ok := object.Key("securityGroupIds") + if err := awsRestjson1_serializeDocumentSecurityGroupIdList(v.SecurityGroupIds, ok); err != nil { + return err + } + } + + if v.SubnetIds != nil { + ok := object.Key("subnetIds") + if err := awsRestjson1_serializeDocumentSubnetIdList(v.SubnetIds, ok); err != nil { + return err + } + } + + if v.VpcId != nil { + ok := object.Key("vpcId") + ok.String(*v.VpcId) + } + + return nil +} + +type awsRestjson1_serializeOpUpdatePortal struct { +} + +func (*awsRestjson1_serializeOpUpdatePortal) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdatePortal) 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.(*UpdatePortalInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/portals/{portalArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdatePortalInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdatePortalInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdatePortalInput(v *UpdatePortalInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.PortalArn == nil || len(*v.PortalArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member portalArn must not be empty")} + } + if v.PortalArn != nil { + if err := encoder.SetURI("portalArn").String(*v.PortalArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdatePortalInput(v *UpdatePortalInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DisplayName != nil { + ok := object.Key("displayName") + ok.String(*v.DisplayName) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateTrustStore struct { +} + +func (*awsRestjson1_serializeOpUpdateTrustStore) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTrustStore) 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.(*UpdateTrustStoreInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/trustStores/{trustStoreArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateTrustStoreInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTrustStoreInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTrustStoreInput(v *UpdateTrustStoreInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.TrustStoreArn == nil || len(*v.TrustStoreArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member trustStoreArn must not be empty")} + } + if v.TrustStoreArn != nil { + if err := encoder.SetURI("trustStoreArn").String(*v.TrustStoreArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateTrustStoreInput(v *UpdateTrustStoreInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CertificatesToAdd != nil { + ok := object.Key("certificatesToAdd") + if err := awsRestjson1_serializeDocumentCertificateList(v.CertificatesToAdd, ok); err != nil { + return err + } + } + + if v.CertificatesToDelete != nil { + ok := object.Key("certificatesToDelete") + if err := awsRestjson1_serializeDocumentCertificateThumbprintList(v.CertificatesToDelete, ok); err != nil { + return err + } + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateUserSettings struct { +} + +func (*awsRestjson1_serializeOpUpdateUserSettings) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateUserSettings) 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.(*UpdateUserSettingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/userSettings/{userSettingsArn+}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateUserSettingsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateUserSettingsInput(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 = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateUserSettingsInput(v *UpdateUserSettingsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.UserSettingsArn == nil || len(*v.UserSettingsArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member userSettingsArn must not be empty")} + } + if v.UserSettingsArn != nil { + if err := encoder.SetURI("userSettingsArn").String(*v.UserSettingsArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateUserSettingsInput(v *UpdateUserSettingsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if len(v.CopyAllowed) > 0 { + ok := object.Key("copyAllowed") + ok.String(string(v.CopyAllowed)) + } + + if len(v.DownloadAllowed) > 0 { + ok := object.Key("downloadAllowed") + ok.String(string(v.DownloadAllowed)) + } + + if len(v.PasteAllowed) > 0 { + ok := object.Key("pasteAllowed") + ok.String(string(v.PasteAllowed)) + } + + if len(v.PrintAllowed) > 0 { + ok := object.Key("printAllowed") + ok.String(string(v.PrintAllowed)) + } + + if len(v.UploadAllowed) > 0 { + ok := object.Key("uploadAllowed") + ok.String(string(v.UploadAllowed)) + } + + return nil +} + +func awsRestjson1_serializeDocumentCertificateList(v [][]byte, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if vv := v[i]; vv == nil { + continue + } + av.Base64EncodeBytes(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentCertificateThumbprintList(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_serializeDocumentEncryptionContextMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentIdentityProviderDetails(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentSecurityGroupIdList(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_serializeDocumentSubnetIdList(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_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Key != nil { + ok := object.Key("Key") + ok.String(*v.Key) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) + } + + return nil +} + +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { + return err + } + } + return nil +} diff --git a/service/workspacesweb/types/enums.go b/service/workspacesweb/types/enums.go new file mode 100644 index 00000000000..ed2319a5b24 --- /dev/null +++ b/service/workspacesweb/types/enums.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type BrowserType string + +// Enum values for BrowserType +const ( + BrowserTypeChrome BrowserType = "Chrome" +) + +// Values returns all known values for BrowserType. 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 (BrowserType) Values() []BrowserType { + return []BrowserType{ + "Chrome", + } +} + +type EnabledType string + +// Enum values for EnabledType +const ( + EnabledTypeDisabled EnabledType = "Disabled" + EnabledTypeEnabled EnabledType = "Enabled" +) + +// Values returns all known values for EnabledType. 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 (EnabledType) Values() []EnabledType { + return []EnabledType{ + "Disabled", + "Enabled", + } +} + +type IdentityProviderType string + +// Enum values for IdentityProviderType +const ( + IdentityProviderTypeSaml IdentityProviderType = "SAML" + IdentityProviderTypeFacebook IdentityProviderType = "Facebook" + IdentityProviderTypeGoogle IdentityProviderType = "Google" + IdentityProviderTypeLoginWithAmazon IdentityProviderType = "LoginWithAmazon" + IdentityProviderTypeSignInWithApple IdentityProviderType = "SignInWithApple" + IdentityProviderTypeOidc IdentityProviderType = "OIDC" +) + +// Values returns all known values for IdentityProviderType. 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 (IdentityProviderType) Values() []IdentityProviderType { + return []IdentityProviderType{ + "SAML", + "Facebook", + "Google", + "LoginWithAmazon", + "SignInWithApple", + "OIDC", + } +} + +type PortalStatus string + +// Enum values for PortalStatus +const ( + PortalStatusIncomplete PortalStatus = "Incomplete" + PortalStatusPending PortalStatus = "Pending" + PortalStatusActive PortalStatus = "Active" +) + +// Values returns all known values for PortalStatus. 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 (PortalStatus) Values() []PortalStatus { + return []PortalStatus{ + "Incomplete", + "Pending", + "Active", + } +} + +type RendererType string + +// Enum values for RendererType +const ( + RendererTypeAppstream RendererType = "AppStream" +) + +// Values returns all known values for RendererType. 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 (RendererType) Values() []RendererType { + return []RendererType{ + "AppStream", + } +} + +type ValidationExceptionReason string + +// Enum values for ValidationExceptionReason +const ( + ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "unknownOperation" + ValidationExceptionReasonCannotParse ValidationExceptionReason = "cannotParse" + ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "fieldValidationFailed" + ValidationExceptionReasonOther ValidationExceptionReason = "other" +) + +// Values returns all known values for ValidationExceptionReason. 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 (ValidationExceptionReason) Values() []ValidationExceptionReason { + return []ValidationExceptionReason{ + "unknownOperation", + "cannotParse", + "fieldValidationFailed", + "other", + } +} diff --git a/service/workspacesweb/types/errors.go b/service/workspacesweb/types/errors.go new file mode 100644 index 00000000000..dc9dda26481 --- /dev/null +++ b/service/workspacesweb/types/errors.go @@ -0,0 +1,182 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// Access is denied. +type AccessDeniedException struct { + Message *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There is a conflict. +type ConflictException struct { + Message *string + + ResourceId *string + ResourceType *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { return "ConflictException" } +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There is an internal server error. +type InternalServerException struct { + Message *string + + RetryAfterSeconds int32 + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { return "InternalServerException" } +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// The resource cannot be found. +type ResourceNotFoundException struct { + Message *string + + ResourceId *string + ResourceType *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The service quota has been exceeded. +type ServiceQuotaExceededException struct { + Message *string + + ResourceId *string + ResourceType *string + ServiceCode *string + QuotaCode *string + + noSmithyDocumentSerde +} + +func (e *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServiceQuotaExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServiceQuotaExceededException) ErrorCode() string { return "ServiceQuotaExceededException" } +func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There is a throttling error. +type ThrottlingException struct { + Message *string + + ServiceCode *string + QuotaCode *string + RetryAfterSeconds int32 + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { return "ThrottlingException" } +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There are too many tags. +type TooManyTagsException struct { + Message *string + + ResourceName *string + + noSmithyDocumentSerde +} + +func (e *TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *TooManyTagsException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } +func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There is a validation error. +type ValidationException struct { + Message *string + + Reason ValidationExceptionReason + FieldList []ValidationExceptionField + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { return "ValidationException" } +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/workspacesweb/types/types.go b/service/workspacesweb/types/types.go new file mode 100644 index 00000000000..a26b0c30911 --- /dev/null +++ b/service/workspacesweb/types/types.go @@ -0,0 +1,430 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" + "time" +) + +// The browser settings resource that can be associated with a web portal. Once +// associated with a web portal, browser settings control how the browser will +// behave once a user starts a streaming session for the web portal. +type BrowserSettings struct { + + // The ARN of the browser settings. + // + // This member is required. + BrowserSettingsArn *string + + // A list of web portal ARNs that this browser settings is associated with. + AssociatedPortalArns []string + + // A JSON string containing Chrome Enterprise policies that will be applied to all + // streaming sessions. + BrowserPolicy *string + + noSmithyDocumentSerde +} + +// The summary for browser settings. +type BrowserSettingsSummary struct { + + // The ARN of the browser settings. + BrowserSettingsArn *string + + noSmithyDocumentSerde +} + +// The certificate. +type Certificate struct { + + // The body of the certificate. + Body []byte + + // The entity that issued the certificate. + Issuer *string + + // The certificate is not valid after this date. + NotValidAfter *time.Time + + // The certificate is not valid before this date. + NotValidBefore *time.Time + + // The entity the certificate belongs to. + Subject *string + + // A hexadecimal identifier for the certificate. + Thumbprint *string + + noSmithyDocumentSerde +} + +// The summary of the certificate. +type CertificateSummary struct { + + // The entity that issued the certificate. + Issuer *string + + // The certificate is not valid after this date. + NotValidAfter *time.Time + + // The certificate is not valid before this date. + NotValidBefore *time.Time + + // The entity the certificate belongs to. + Subject *string + + // A hexadecimal identifier for the certificate. + Thumbprint *string + + noSmithyDocumentSerde +} + +// The identity provider. +type IdentityProvider struct { + + // The ARN of the identity provider. + // + // This member is required. + IdentityProviderArn *string + + // The identity provider details. The following list describes the provider detail + // keys for each identity provider type. + // + // * For Google and Login with Amazon: + // + // * + // client_id + // + // * client_secret + // + // * authorize_scopes + // + // * For Facebook: + // + // * client_id + // + // * + // client_secret + // + // * authorize_scopes + // + // * api_version + // + // * For Sign in with Apple: + // + // * + // client_id + // + // * team_id + // + // * key_id + // + // * private_key + // + // * authorize_scopes + // + // * For OIDC + // providers: + // + // * client_id + // + // * client_secret + // + // * attributes_request_method + // + // * + // oidc_issuer + // + // * authorize_scopes + // + // * authorize_url if not available from discovery + // URL specified by oidc_issuer key + // + // * token_url if not available from discovery + // URL specified by oidc_issuer key + // + // * attributes_url if not available from + // discovery URL specified by oidc_issuer key + // + // * jwks_uri if not available from + // discovery URL specified by oidc_issuer key + // + // * For SAML providers: + // + // * + // MetadataFile OR MetadataURL + // + // * IDPSignout optional + IdentityProviderDetails map[string]string + + // The identity provider name. + IdentityProviderName *string + + // The identity provider type. + IdentityProviderType IdentityProviderType + + noSmithyDocumentSerde +} + +// The summary of the identity provider. +type IdentityProviderSummary struct { + + // The ARN of the identity provider. + IdentityProviderArn *string + + // The identity provider name. + IdentityProviderName *string + + // The identity provider type. + IdentityProviderType IdentityProviderType + + noSmithyDocumentSerde +} + +// A network settings resource that can be associated with a web portal. Once +// associated with a web portal, network settings define how streaming instances +// will connect with your specified VPC. +type NetworkSettings struct { + + // The ARN of the network settings. + // + // This member is required. + NetworkSettingsArn *string + + // A list of web portal ARNs that this network settings is associated with. + AssociatedPortalArns []string + + // One or more security groups used to control access from streaming instances to + // your VPC. + SecurityGroupIds []string + + // The subnets in which network interfaces are created to connect streaming + // instances to your VPC. At least two of these subnets must be in different + // availability zones. + SubnetIds []string + + // The VPC that streaming instances will connect to. + VpcId *string + + noSmithyDocumentSerde +} + +// The summary of network settings. +type NetworkSettingsSummary struct { + + // The ARN of the network settings. + NetworkSettingsArn *string + + // The VPC ID of the network settings. + VpcId *string + + noSmithyDocumentSerde +} + +// The web portal. +type Portal struct { + + // The ARN of the browser settings that is associated with this web portal. + BrowserSettingsArn *string + + // The browser that users see when using a streaming session. + BrowserType BrowserType + + // The creation date of the web portal. + CreationDate *time.Time + + // The name of the web portal. + DisplayName *string + + // The ARN of the network settings that is associated with the web portal. + NetworkSettingsArn *string + + // The ARN of the web portal. + PortalArn *string + + // The endpoint URL of the web portal that users access in order to start streaming + // sessions. + PortalEndpoint *string + + // The status of the web portal. + PortalStatus PortalStatus + + // The renderer that is used in streaming sessions. + RendererType RendererType + + // A message that explains why the web portal is in its current status. + StatusReason *string + + // The ARN of the trust store that is associated with the web portal. + TrustStoreArn *string + + // The ARN of the trust store that is associated with the web portal. + UserSettingsArn *string + + noSmithyDocumentSerde +} + +// The summary of the portal. +type PortalSummary struct { + + // The ARN of the browser settings that is associated with the web portal. + BrowserSettingsArn *string + + // The browser type of the web portal. + BrowserType BrowserType + + // The creation date of the web portal. + CreationDate *time.Time + + // The name of the web portal. + DisplayName *string + + // The ARN of the network settings that is associated with the web portal. + NetworkSettingsArn *string + + // The ARN of the web portal. + PortalArn *string + + // The endpoint URL of the web portal that users access in order to start streaming + // sessions. + PortalEndpoint *string + + // The status of the web portal. + PortalStatus PortalStatus + + // The renderer that is used in streaming sessions. + RendererType RendererType + + // The ARN of the trust that is associated with this web portal. + TrustStoreArn *string + + // The ARN of the user settings that is associated with the web portal. + UserSettingsArn *string + + noSmithyDocumentSerde +} + +// The tag. +type Tag struct { + + // The key of the tag. + // + // This member is required. + Key *string + + // The value of the tag + // + // This member is required. + Value *string + + noSmithyDocumentSerde +} + +// A trust store that can be associated with a web portal. A trust store contains +// certificate authority (CA) certificates. Once associated with a web portal, the +// browser in a streaming session will recognize certificates that have been issued +// using any of the CAs in the trust store. If your organization has internal +// websites that use certificates issued by private CAs, you should add the private +// CA certificate to the trust store. +type TrustStore struct { + + // A list of web portal ARNs that this trust store is associated with. + AssociatedPortalArns []string + + // The ARN of the trust store. + TrustStoreArn *string + + noSmithyDocumentSerde +} + +// The summary of the trust store. +type TrustStoreSummary struct { + + // The ARN of the trust store. + TrustStoreArn *string + + noSmithyDocumentSerde +} + +// A user settings resource that can be associated with a web portal. Once +// associated with a web portal, user settings control how users can transfer data +// between a streaming session and the their local devices. +type UserSettings struct { + + // The ARN of the user settings. + // + // This member is required. + UserSettingsArn *string + + // A list of web portal ARNs that this user settings is associated with. + AssociatedPortalArns []string + + // Specifies whether the user can copy text from the streaming session to the local + // device. + CopyAllowed EnabledType + + // Specifies whether the user can download files from the streaming session to the + // local device. + DownloadAllowed EnabledType + + // Specifies whether the user can paste text from the local device to the streaming + // session. + PasteAllowed EnabledType + + // Specifies whether the user can print to the local device. + PrintAllowed EnabledType + + // Specifies whether the user can upload files from the local device to the + // streaming session. + UploadAllowed EnabledType + + noSmithyDocumentSerde +} + +// The summary of user settings. +type UserSettingsSummary struct { + + // Specifies whether the user can copy text from the streaming session to the local + // device. + CopyAllowed EnabledType + + // Specifies whether the user can download files from the streaming session to the + // local device. + DownloadAllowed EnabledType + + // Specifies whether the user can paste text from the local device to the streaming + // session. + PasteAllowed EnabledType + + // Specifies whether the user can print to the local device. + PrintAllowed EnabledType + + // Specifies whether the user can upload files from the local device to the + // streaming session. + UploadAllowed EnabledType + + // The ARN of the user settings. + UserSettingsArn *string + + noSmithyDocumentSerde +} + +// Information about a field passed inside a request that resulted in an exception. +type ValidationExceptionField struct { + + // The message describing why the field failed validation. + // + // This member is required. + Message *string + + // The name of the field that failed validation. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/workspacesweb/validators.go b/service/workspacesweb/validators.go new file mode 100644 index 00000000000..b62662a6cc1 --- /dev/null +++ b/service/workspacesweb/validators.go @@ -0,0 +1,1641 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package workspacesweb + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/workspacesweb/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpAssociateBrowserSettings struct { +} + +func (*validateOpAssociateBrowserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateBrowserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpAssociateNetworkSettings struct { +} + +func (*validateOpAssociateNetworkSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateNetworkSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpAssociateTrustStore struct { +} + +func (*validateOpAssociateTrustStore) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateTrustStoreInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpAssociateUserSettings struct { +} + +func (*validateOpAssociateUserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateUserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateBrowserSettings struct { +} + +func (*validateOpCreateBrowserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateBrowserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateIdentityProvider struct { +} + +func (*validateOpCreateIdentityProvider) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateIdentityProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateIdentityProviderInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateIdentityProviderInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateNetworkSettings struct { +} + +func (*validateOpCreateNetworkSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateNetworkSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreatePortal struct { +} + +func (*validateOpCreatePortal) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreatePortal) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreatePortalInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreatePortalInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateTrustStore struct { +} + +func (*validateOpCreateTrustStore) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateTrustStoreInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateUserSettings struct { +} + +func (*validateOpCreateUserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateUserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteBrowserSettings struct { +} + +func (*validateOpDeleteBrowserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteBrowserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteIdentityProvider struct { +} + +func (*validateOpDeleteIdentityProvider) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteIdentityProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteIdentityProviderInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteIdentityProviderInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteNetworkSettings struct { +} + +func (*validateOpDeleteNetworkSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteNetworkSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeletePortal struct { +} + +func (*validateOpDeletePortal) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeletePortal) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeletePortalInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeletePortalInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteTrustStore struct { +} + +func (*validateOpDeleteTrustStore) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteTrustStoreInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteUserSettings struct { +} + +func (*validateOpDeleteUserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteUserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDisassociateBrowserSettings struct { +} + +func (*validateOpDisassociateBrowserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateBrowserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDisassociateNetworkSettings struct { +} + +func (*validateOpDisassociateNetworkSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateNetworkSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDisassociateTrustStore struct { +} + +func (*validateOpDisassociateTrustStore) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateTrustStoreInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDisassociateUserSettings struct { +} + +func (*validateOpDisassociateUserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateUserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetBrowserSettings struct { +} + +func (*validateOpGetBrowserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetBrowserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetIdentityProvider struct { +} + +func (*validateOpGetIdentityProvider) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetIdentityProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetIdentityProviderInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetIdentityProviderInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetNetworkSettings struct { +} + +func (*validateOpGetNetworkSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetNetworkSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetPortal struct { +} + +func (*validateOpGetPortal) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetPortal) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetPortalInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetPortalInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetPortalServiceProviderMetadata struct { +} + +func (*validateOpGetPortalServiceProviderMetadata) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetPortalServiceProviderMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetPortalServiceProviderMetadataInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetPortalServiceProviderMetadataInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetTrustStoreCertificate struct { +} + +func (*validateOpGetTrustStoreCertificate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetTrustStoreCertificate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetTrustStoreCertificateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetTrustStoreCertificateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetTrustStore struct { +} + +func (*validateOpGetTrustStore) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetTrustStoreInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetUserSettings struct { +} + +func (*validateOpGetUserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetUserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListIdentityProviders struct { +} + +func (*validateOpListIdentityProviders) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListIdentityProviders) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListIdentityProvidersInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListIdentityProvidersInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTagsForResource struct { +} + +func (*validateOpListTagsForResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTagsForResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTagsForResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTrustStoreCertificates struct { +} + +func (*validateOpListTrustStoreCertificates) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTrustStoreCertificates) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTrustStoreCertificatesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTrustStoreCertificatesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTagResource struct { +} + +func (*validateOpTagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUntagResource struct { +} + +func (*validateOpUntagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UntagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUntagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateBrowserSettings struct { +} + +func (*validateOpUpdateBrowserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateBrowserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateBrowserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateBrowserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateIdentityProvider struct { +} + +func (*validateOpUpdateIdentityProvider) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateIdentityProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateIdentityProviderInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateIdentityProviderInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateNetworkSettings struct { +} + +func (*validateOpUpdateNetworkSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateNetworkSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateNetworkSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateNetworkSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdatePortal struct { +} + +func (*validateOpUpdatePortal) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdatePortal) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdatePortalInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdatePortalInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateTrustStore struct { +} + +func (*validateOpUpdateTrustStore) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTrustStore) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTrustStoreInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTrustStoreInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateUserSettings struct { +} + +func (*validateOpUpdateUserSettings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateUserSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateUserSettingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateUserSettingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpAssociateBrowserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateBrowserSettings{}, middleware.After) +} + +func addOpAssociateNetworkSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateNetworkSettings{}, middleware.After) +} + +func addOpAssociateTrustStoreValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateTrustStore{}, middleware.After) +} + +func addOpAssociateUserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateUserSettings{}, middleware.After) +} + +func addOpCreateBrowserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateBrowserSettings{}, middleware.After) +} + +func addOpCreateIdentityProviderValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateIdentityProvider{}, middleware.After) +} + +func addOpCreateNetworkSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateNetworkSettings{}, middleware.After) +} + +func addOpCreatePortalValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreatePortal{}, middleware.After) +} + +func addOpCreateTrustStoreValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateTrustStore{}, middleware.After) +} + +func addOpCreateUserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateUserSettings{}, middleware.After) +} + +func addOpDeleteBrowserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteBrowserSettings{}, middleware.After) +} + +func addOpDeleteIdentityProviderValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteIdentityProvider{}, middleware.After) +} + +func addOpDeleteNetworkSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteNetworkSettings{}, middleware.After) +} + +func addOpDeletePortalValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeletePortal{}, middleware.After) +} + +func addOpDeleteTrustStoreValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteTrustStore{}, middleware.After) +} + +func addOpDeleteUserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteUserSettings{}, middleware.After) +} + +func addOpDisassociateBrowserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateBrowserSettings{}, middleware.After) +} + +func addOpDisassociateNetworkSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateNetworkSettings{}, middleware.After) +} + +func addOpDisassociateTrustStoreValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateTrustStore{}, middleware.After) +} + +func addOpDisassociateUserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateUserSettings{}, middleware.After) +} + +func addOpGetBrowserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetBrowserSettings{}, middleware.After) +} + +func addOpGetIdentityProviderValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetIdentityProvider{}, middleware.After) +} + +func addOpGetNetworkSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetNetworkSettings{}, middleware.After) +} + +func addOpGetPortalValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetPortal{}, middleware.After) +} + +func addOpGetPortalServiceProviderMetadataValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetPortalServiceProviderMetadata{}, middleware.After) +} + +func addOpGetTrustStoreCertificateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetTrustStoreCertificate{}, middleware.After) +} + +func addOpGetTrustStoreValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetTrustStore{}, middleware.After) +} + +func addOpGetUserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetUserSettings{}, middleware.After) +} + +func addOpListIdentityProvidersValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListIdentityProviders{}, middleware.After) +} + +func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) +} + +func addOpListTrustStoreCertificatesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTrustStoreCertificates{}, middleware.After) +} + +func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) +} + +func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) +} + +func addOpUpdateBrowserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateBrowserSettings{}, middleware.After) +} + +func addOpUpdateIdentityProviderValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateIdentityProvider{}, middleware.After) +} + +func addOpUpdateNetworkSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateNetworkSettings{}, middleware.After) +} + +func addOpUpdatePortalValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdatePortal{}, middleware.After) +} + +func addOpUpdateTrustStoreValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTrustStore{}, middleware.After) +} + +func addOpUpdateUserSettingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateUserSettings{}, middleware.After) +} + +func validateTag(v *types.Tag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Tag"} + if v.Key == nil { + invalidParams.Add(smithy.NewErrParamRequired("Key")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTagList(v []types.Tag) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagList"} + for i := range v { + if err := validateTag(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpAssociateBrowserSettingsInput(v *AssociateBrowserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateBrowserSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if v.BrowserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("BrowserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpAssociateNetworkSettingsInput(v *AssociateNetworkSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateNetworkSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if v.NetworkSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpAssociateTrustStoreInput(v *AssociateTrustStoreInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateTrustStoreInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if v.TrustStoreArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrustStoreArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpAssociateUserSettingsInput(v *AssociateUserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateUserSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if v.UserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("UserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateBrowserSettingsInput(v *CreateBrowserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateBrowserSettingsInput"} + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if v.BrowserPolicy == nil { + invalidParams.Add(smithy.NewErrParamRequired("BrowserPolicy")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateIdentityProviderInput(v *CreateIdentityProviderInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateIdentityProviderInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if v.IdentityProviderName == nil { + invalidParams.Add(smithy.NewErrParamRequired("IdentityProviderName")) + } + if len(v.IdentityProviderType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("IdentityProviderType")) + } + if v.IdentityProviderDetails == nil { + invalidParams.Add(smithy.NewErrParamRequired("IdentityProviderDetails")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateNetworkSettingsInput(v *CreateNetworkSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateNetworkSettingsInput"} + if v.VpcId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VpcId")) + } + if v.SubnetIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetIds")) + } + if v.SecurityGroupIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SecurityGroupIds")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreatePortalInput(v *CreatePortalInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreatePortalInput"} + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateTrustStoreInput(v *CreateTrustStoreInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateTrustStoreInput"} + if v.CertificateList == nil { + invalidParams.Add(smithy.NewErrParamRequired("CertificateList")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateUserSettingsInput(v *CreateUserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateUserSettingsInput"} + if len(v.CopyAllowed) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("CopyAllowed")) + } + if len(v.PasteAllowed) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PasteAllowed")) + } + if len(v.DownloadAllowed) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("DownloadAllowed")) + } + if len(v.UploadAllowed) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("UploadAllowed")) + } + if len(v.PrintAllowed) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PrintAllowed")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteBrowserSettingsInput(v *DeleteBrowserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteBrowserSettingsInput"} + if v.BrowserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("BrowserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteIdentityProviderInput(v *DeleteIdentityProviderInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteIdentityProviderInput"} + if v.IdentityProviderArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("IdentityProviderArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteNetworkSettingsInput(v *DeleteNetworkSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteNetworkSettingsInput"} + if v.NetworkSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeletePortalInput(v *DeletePortalInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeletePortalInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteTrustStoreInput(v *DeleteTrustStoreInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteTrustStoreInput"} + if v.TrustStoreArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrustStoreArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteUserSettingsInput(v *DeleteUserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteUserSettingsInput"} + if v.UserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("UserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDisassociateBrowserSettingsInput(v *DisassociateBrowserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateBrowserSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDisassociateNetworkSettingsInput(v *DisassociateNetworkSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateNetworkSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDisassociateTrustStoreInput(v *DisassociateTrustStoreInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateTrustStoreInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDisassociateUserSettingsInput(v *DisassociateUserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateUserSettingsInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetBrowserSettingsInput(v *GetBrowserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetBrowserSettingsInput"} + if v.BrowserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("BrowserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetIdentityProviderInput(v *GetIdentityProviderInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetIdentityProviderInput"} + if v.IdentityProviderArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("IdentityProviderArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetNetworkSettingsInput(v *GetNetworkSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetNetworkSettingsInput"} + if v.NetworkSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetPortalInput(v *GetPortalInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetPortalInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetPortalServiceProviderMetadataInput(v *GetPortalServiceProviderMetadataInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetPortalServiceProviderMetadataInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetTrustStoreCertificateInput(v *GetTrustStoreCertificateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetTrustStoreCertificateInput"} + if v.TrustStoreArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrustStoreArn")) + } + if v.Thumbprint == nil { + invalidParams.Add(smithy.NewErrParamRequired("Thumbprint")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetTrustStoreInput(v *GetTrustStoreInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetTrustStoreInput"} + if v.TrustStoreArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrustStoreArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetUserSettingsInput(v *GetUserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetUserSettingsInput"} + if v.UserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("UserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListIdentityProvidersInput(v *ListIdentityProvidersInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListIdentityProvidersInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTrustStoreCertificatesInput(v *ListTrustStoreCertificatesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTrustStoreCertificatesInput"} + if v.TrustStoreArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrustStoreArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTagResourceInput(v *TagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.Tags == nil { + invalidParams.Add(smithy.NewErrParamRequired("Tags")) + } else if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUntagResourceInput(v *UntagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.TagKeys == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateBrowserSettingsInput(v *UpdateBrowserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateBrowserSettingsInput"} + if v.BrowserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("BrowserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateIdentityProviderInput(v *UpdateIdentityProviderInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateIdentityProviderInput"} + if v.IdentityProviderArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("IdentityProviderArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateNetworkSettingsInput(v *UpdateNetworkSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateNetworkSettingsInput"} + if v.NetworkSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdatePortalInput(v *UpdatePortalInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdatePortalInput"} + if v.PortalArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortalArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateTrustStoreInput(v *UpdateTrustStoreInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTrustStoreInput"} + if v.TrustStoreArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrustStoreArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateUserSettingsInput(v *UpdateUserSettingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateUserSettingsInput"} + if v.UserSettingsArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("UserSettingsArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +}